<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Scenarios_Outcome_Graph.aspx.vb" Inherits="FinIQWebApp.Scenarios_Outcome_Graph" MasterPageFile="~/FiniqAppMasterPage.Master" %>

<%--<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Settings.aspx.vb" Inherits="FinIQWebApp.Settings" MasterPageFile="~/FiniqAppMasterPage.Master" %>--%>

<%@ Register TagPrefix="asp" Namespace="System.Web.UI.DataVisualization.Charting" Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <link href="../App_Themes/MultiDealEntry.css" rel="stylesheet" />


    <%-- <asp:UpdateProgress ID="pnlProgress" runat="server" AssociatedUpdatePanelID="pnlUpdateDCD" DisplayAfter="0">
        <ProgressTemplate>
            <div class="UpdateProgress" style="top: 0px; height: 1000px; background-color: #f2f2f2; opacity: 0.8; filter: alpha(opacity=80); vertical-align: middle; left: 0px; z-index: 99999; position: absolute; text-align: center;">
                <div class="Progress divLoading " style="font: bold 12px/14px verdana; color: #333333; padding: 10px; height: auto; width: 100%; vertical-align: middle; z-index: 999999; position: absolute; text-align: left; top: 40% !important; left: 40% !important;">
                    <img alt="Loading" src="../App_Resources/ajax-loader7.gif" /><span class="">Loading...</span>
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>--%>
    <table>
        <tr>
            <td>
                <asp:Label ID="Header" CssClass="lbl" runat="server" Text="Scenariowise Outcome Graph" Visible="True" ForeColor="#0284e0" Font-Size="25px" Style="margin-left: 470px;"></asp:Label>

            </td>
            <%--        <td>
          <asp:Label ID="lblScenarioCount" CssClass="lbl" runat="server" Visible="True" ></asp:Label>

        </td>--%>
        </tr>

        <tr>
            <td style="height: 28px;">
                <asp:Label ID="lblError" CssClass="lbl" runat="server" Visible="True" ForeColor="Red"></asp:Label>
                <asp:Label ID="lblMsg" CssClass="lbl" runat="server" Visible="True" ForeColor="Green"></asp:Label>
            </td>

        </tr>


    </table>
    <asp:UpdatePanel ID="pnlUpdateDCD" runat="server" UpdateMode="Always">
        <ContentTemplate>

            <table>
                <tr>
                    <td class="ChartPayoff" style="padding-top: 2px;">
                        <asp:Panel ID="pnlChart" runat="server" Height="345px" Width="1581px" CssClass="pnlChart" Style="margin-top: 4%;">
                            <asp:Label ID="lblPayOff1" CssClass="lbl" runat="server" Visible="True" Style="margin-left: 300px; color: gray; font-weight: bolder; font-size: 18px;"></asp:Label>
                            <asp:Chart ID="ChartPayoff" runat="server" Height="370px" Width="1570px" BackGradientStyle="None"
                                ImageStorageMode="UseHttpHandler" EnableViewState="true" BackColor="#FFFFFF">
                                <ChartAreas>
                                    <asp:ChartArea Name="Default" BackColor="#FFFFFF" Area3DStyle-Enable3D="false">
                                        <AxisY LineDashStyle="Solid" LineColor="#999999" LineWidth="1">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6" TitleAlignment ="Center">--%>
                                            <MajorGrid Enabled="true" LineDashStyle="Dot" LineColor="#F7F7F7" LineWidth="0"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisY>
                                        <AxisX LineWidth="1" LineDashStyle="Solid" LineColor="#999999" IsStartedFromZero="false" IntervalAutoMode="VariableCount">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6">--%>
                                            <MajorGrid Enabled="false"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisX>
                                        <%--<Position Width =100 Height=100 />--%>
                                    </asp:ChartArea>

                                </ChartAreas>
                                <%--                    <Legends>
                        <asp:Legend Docking="Bottom" Name="Legend" />
                    </Legends>--%>
                            </asp:Chart>
                        </asp:Panel>
                    </td>
                </tr>
                <tr></tr>
                <tr></tr>
                <tr>

                    <td class="ChartPayoff2" style="padding-top: 2px;">
                        <asp:Panel ID="pnlChart2" runat="server" Height="345px" Width="1581px" CssClass="pnlChart2" Style="margin-top: 4%;">
                            <asp:Label ID="lblPayOff2" CssClass="lbl" runat="server" Visible="True" Style="margin-left: 300px; color: gray; font-weight: bolder; font-size: 18px;"></asp:Label>
                            <asp:Chart ID="ChartPayoff2" runat="server" Height="370px" Width="1570px" BackGradientStyle="None"
                                ImageStorageMode="UseHttpHandler" EnableViewState="true" BackColor="#FFFFFF">
                                <ChartAreas>
                                    <asp:ChartArea Name="Default" BackColor="#FFFFFF" Area3DStyle-Enable3D="false">
                                        <AxisY LineDashStyle="Solid" LineColor="#999999" LineWidth="1">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6" TitleAlignment ="Center">--%>
                                            <MajorGrid Enabled="true" LineDashStyle="Dot" LineColor="#F7F7F7" LineWidth="0"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisY>
                                        <AxisX LineWidth="1" LineDashStyle="Solid" LineColor="#999999" IsStartedFromZero="false" IntervalAutoMode="VariableCount">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6">--%>
                                            <MajorGrid Enabled="false"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisX>
                                        <%--<Position Width =100 Height=100 />--%>
                                    </asp:ChartArea>

                                </ChartAreas>
                                <%--                    <Legends>
                        <asp:Legend Docking="Bottom" Name="Legend" />
                    </Legends>--%>
                            </asp:Chart>
                        </asp:Panel>
                    </td>
                </tr>
                <tr></tr>
                <tr>

                    <td class="ChartPayoff3" style="padding-top: 2px;">

                        <asp:Panel ID="pnlChart3" runat="server" Height="345px" Width="1581px" CssClass="pnlChart2" Style="margin-top: 4%;">
                            <asp:Label ID="lblPayOff3" CssClass="lbl" runat="server" Visible="True" Style="margin-left: 300px; color: gray; font-weight: bolder; font-size: 18px;"></asp:Label>

                            <asp:Chart ID="ChartPayoff3" runat="server" Height="370px" Width="1570px" BackGradientStyle="None"
                                ImageStorageMode="UseHttpHandler" EnableViewState="true" BackColor="#FFFFFF">
                                <ChartAreas>
                                    <asp:ChartArea Name="Default" BackColor="#FFFFFF" Area3DStyle-Enable3D="false">
                                        <AxisY LineDashStyle="Solid" LineColor="#999999" LineWidth="1">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6" TitleAlignment ="Center">--%>
                                            <MajorGrid Enabled="true" LineDashStyle="Dot" LineColor="#F7F7F7" LineWidth="0"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisY>
                                        <AxisX LineWidth="1" LineDashStyle="Solid" LineColor="#999999" IsStartedFromZero="false" IntervalAutoMode="VariableCount">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6">--%>
                                            <MajorGrid Enabled="false"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisX>
                                        <%--<Position Width =100 Height=100 />--%>
                                    </asp:ChartArea>

                                </ChartAreas>
                                <%--                    <Legends>
                        <asp:Legend Docking="Bottom" Name="Legend" />
                    </Legends>--%>
                            </asp:Chart>
                        </asp:Panel>
                    </td>
                </tr>
                <tr></tr>
                <tr>
                </tr>
                <tr>
                    <td class="ChartPayoff4" style="padding-top: 2px;">
                        <asp:Panel ID="pnlChart4" runat="server" Height="345px" Width="1581px" CssClass="pnlChart2" Style="margin-top: 4%;">
                            <asp:Label ID="lblPayOff4" CssClass="lbl" runat="server" Visible="True" Style="margin-left: 300px; color: gray; font-weight: bolder; font-size: 18px;"></asp:Label>

                            <asp:Chart ID="ChartPayoff4" runat="server" Height="370px" Width="1570px" BackGradientStyle="None"
                                ImageStorageMode="UseHttpHandler" EnableViewState="true" BackColor="#FFFFFF">
                                <ChartAreas>
                                    <asp:ChartArea Name="Default" BackColor="#FFFFFF" Area3DStyle-Enable3D="false">
                                        <AxisY LineDashStyle="Solid" LineColor="#999999" LineWidth="1">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6" TitleAlignment ="Center">--%>
                                            <MajorGrid Enabled="true" LineDashStyle="Dot" LineColor="#F7F7F7" LineWidth="0"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisY>
                                        <AxisX LineWidth="1" LineDashStyle="Solid" LineColor="#999999" IsStartedFromZero="false" IntervalAutoMode="VariableCount">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6">--%>
                                            <MajorGrid Enabled="false"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisX>
                                        <%--<Position Width =100 Height=100 />--%>
                                    </asp:ChartArea>

                                </ChartAreas>
                                <%--                    <Legends>
                        <asp:Legend Docking="Bottom" Name="Legend" />
                    </Legends>--%>
                            </asp:Chart>
                        </asp:Panel>
                    </td>
                </tr>
                <tr></tr>
                <tr>
                </tr>
                <tr>
                    <td class="ChartPayoff5" style="padding-top: 2px;">
                        <asp:Panel ID="pnlChart5" runat="server" Height="345px" Width="1581px" CssClass="pnlChart2" Style="margin-top: 4%;">
<%--                            <asp:Label ID="lblPayOff5" CssClass="lbl" runat="server" Visible="True" Style="margin-left: 300px; color: gray; font-weight: bolder; font-size: 18px;"></asp:Label>--%>
                            <asp:Label ID="lblPayOff5" CssClass="lbl" runat="server" Visible="True" Style="margin-left: 300px; color: gray; font-weight: bolder; font-size: 18px;"></asp:Label>

                            <asp:Chart ID="ChartPayoff5" runat="server" Height="370px" Width="1570px" BackGradientStyle="None"
                                ImageStorageMode="UseHttpHandler" EnableViewState="true" BackColor="#FFFFFF">
                                <ChartAreas>
                                    <asp:ChartArea Name="Default" BackColor="#FFFFFF" Area3DStyle-Enable3D="false">
                                        <AxisY LineDashStyle="Solid" LineColor="#999999" LineWidth="1">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6" TitleAlignment ="Center">--%>
                                            <MajorGrid Enabled="true" LineDashStyle="Dot" LineColor="#F7F7F7" LineWidth="0"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisY>
                                        <AxisX LineWidth="1" LineDashStyle="Solid" LineColor="#999999" IsStartedFromZero="false" IntervalAutoMode="VariableCount">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6">--%>
                                            <MajorGrid Enabled="false"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisX>
                                        <%--<Position Width =100 Height=100 />--%>
                                    </asp:ChartArea>

                                </ChartAreas>
                                <%--                    <Legends>
                        <asp:Legend Docking="Bottom" Name="Legend" />
                    </Legends>--%>
                            </asp:Chart>
                        </asp:Panel>
                    </td>
                </tr>
                <tr></tr>
                <tr>
                </tr>
                <tr>
                    <td class="ChartPayoff6" style="padding-top: 2px;">
                        <asp:Panel ID="pnlChart6" runat="server" Height="345px" Width="1581px" CssClass="pnlChart2" Style="margin-top: 4%;">
                            <asp:Label ID="lblPayOff6" CssClass="lbl" runat="server" Visible="True" Style="margin-left: 300px; color: gray; font-weight: bolder; font-size: 18px;"></asp:Label>

                            <asp:Chart ID="ChartPayoff6" runat="server" Height="370px" Width="1570px" BackGradientStyle="None"
                                ImageStorageMode="UseHttpHandler" EnableViewState="true" BackColor="#FFFFFF">
                                <ChartAreas>
                                    <asp:ChartArea Name="Default" BackColor="#FFFFFF" Area3DStyle-Enable3D="false">
                                        <AxisY LineDashStyle="Solid" LineColor="#999999" LineWidth="1">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6" TitleAlignment ="Center">--%>
                                            <MajorGrid Enabled="true" LineDashStyle="Dot" LineColor="#F7F7F7" LineWidth="0"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisY>
                                        <AxisX LineWidth="1" LineDashStyle="Solid" LineColor="#999999" IsStartedFromZero="false" IntervalAutoMode="VariableCount">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6">--%>
                                            <MajorGrid Enabled="false"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisX>
                                        <%--<Position Width =100 Height=100 />--%>
                                    </asp:ChartArea>

                                </ChartAreas>
                                <%--                    <Legends>
                        <asp:Legend Docking="Bottom" Name="Legend" />
                    </Legends>--%>
                            </asp:Chart>
                        </asp:Panel>
                    </td>
                </tr>
                <tr></tr>
                <tr>
                </tr>
                <tr>
                    <td class="ChartPayoff7" style="padding-top: 2px;">
                        <asp:Panel ID="pnlChart7" runat="server" Height="345px" Width="1581px" CssClass="pnlChart2" Style="margin-top: 4%;">
                            <asp:Label ID="lblPayOff7" CssClass="lbl" runat="server" Visible="True" Style="margin-left: 300px; color: gray; font-weight: bolder; font-size: 18px;"></asp:Label>

                            <asp:Chart ID="ChartPayoff7" runat="server" Height="370px" Width="1570px" BackGradientStyle="None"
                                ImageStorageMode="UseHttpHandler" EnableViewState="true" BackColor="#FFFFFF">
                                <ChartAreas>
                                    <asp:ChartArea Name="Default" BackColor="#FFFFFF" Area3DStyle-Enable3D="false">
                                        <AxisY LineDashStyle="Solid" LineColor="#999999" LineWidth="1">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6" TitleAlignment ="Center">--%>
                                            <MajorGrid Enabled="true" LineDashStyle="Dot" LineColor="#F7F7F7" LineWidth="0"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisY>
                                        <AxisX LineWidth="1" LineDashStyle="Solid" LineColor="#999999" IsStartedFromZero="false" IntervalAutoMode="VariableCount">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6">--%>
                                            <MajorGrid Enabled="false"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisX>
                                        <%--<Position Width =100 Height=100 />--%>
                                    </asp:ChartArea>

                                </ChartAreas>
                                <%--                    <Legends>
                        <asp:Legend Docking="Bottom" Name="Legend" />
                    </Legends>--%>
                            </asp:Chart>
                        </asp:Panel>
                    </td>
                </tr>
                 <tr></tr>
                <tr>
                </tr>
                <tr>
                    <td class="ChartPayoff8" style="padding-top: 2px;">
                        <asp:Panel ID="pnlChart8" runat="server" Height="345px" Width="1581px" CssClass="pnlChart2" Style="margin-top: 4%;">
                            <asp:Label ID="lblPayOff8" CssClass="lbl" runat="server" Visible="True" Style="margin-left: 300px; color: gray; font-weight: bolder; font-size: 18px;"></asp:Label>

                            <asp:Chart ID="ChartPayoff8" runat="server" Height="370px" Width="1570px" BackGradientStyle="None"
                                ImageStorageMode="UseHttpHandler" EnableViewState="true" BackColor="#FFFFFF">
                                <ChartAreas>
                                    <asp:ChartArea Name="Default" BackColor="#FFFFFF" Area3DStyle-Enable3D="false">
                                        <AxisY LineDashStyle="Solid" LineColor="#999999" LineWidth="1">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6" TitleAlignment ="Center">--%>
                                            <MajorGrid Enabled="true" LineDashStyle="Dot" LineColor="#F7F7F7" LineWidth="0"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisY>
                                        <AxisX LineWidth="1" LineDashStyle="Solid" LineColor="#999999" IsStartedFromZero="false" IntervalAutoMode="VariableCount">
                                            <%--LabelAutoFitMinFontSize="6" LabelAutoFitMaxFontSize="6">--%>
                                            <MajorGrid Enabled="false"></MajorGrid>
                                            <MajorTickMark Enabled="false" />
                                        </AxisX>
                                        <%--<Position Width =100 Height=100 />--%>
                                    </asp:ChartArea>

                                </ChartAreas>
                                <%--                    <Legends>
                        <asp:Legend Docking="Bottom" Name="Legend" />
                    </Legends>--%>
                            </asp:Chart>
                        </asp:Panel>
                    </td>
                </tr>
            </table>

            <script type="text/javascript">
                function HideErrorPanel() {

                    document.getElementById('ctl00_MainContent_pnlUpdateDCD').style.visibility = "hidden";

                }
                function CallChildSetVisibility() {

                    
                    //window.opener.callParentSetFieldVisibility();
                    $('<option value="' + $("[id$=txtCode]").val() + '">' + $("[id$=txtCurveName]").val() + '</option>').appendTo(window.opener.$("[id$=ddlScenarioList]"));
                    //$("id$=txtCurveName").val(window.opener.$("[id$=dgvCurveDetails]"))
                    window.close();
                }
                function CloseSettings() {
                    window.close();
                }


            </script>


        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

