<%@ Page Language="vb" AutoEventWireup="true" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="UCP_StaticAccessMatrix.aspx.vb" Inherits="FinIQWebApp.UCP_StaticAccessMatrix" EnableSessionState="True" EnableEventValidation="false" EnableViewState="true" ViewStateEncryptionMode="Always" %>

<%--<%@ Register Src="~/UCP/StaticAccessMatrixControls/UCP_ButtonMapping_Control.ascx" TagPrefix="uc1" TagName="ButtonMapping" %>
<%@ Register Src="~/UCP/StaticAccessMatrixControls/UCP_TemplateMapping_Control.ascx" TagPrefix="uc2" TagName="TemplateMapping" %>--%>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" EnableViewState="true" runat="server"></asp:ScriptManagerProxy>

    <style>
        fieldset {
            border: 1px solid #DDDDDD !important;
        }

        /*Added by TejaswiniB on 25-Feb-2021*/
        .ddlTargetValcss {
            width: 185px;
        }
        /*''Added by TejaswiniB on 1-Feb-2021*/
        .ui-widget-content.ui-widget {
            border-bottom: solid 0px #DDDDDD !important;
        }

        .td_padding {
            padding-right: 10px;
        }

        /* Template Mapping CSS */
        .fieldset_div {
            height: 608px;
            overflow-y: overlay;
            border: thin;
        }
        /* End of Template Mapping CSS */

        /* Button Mapping CSS */
        .TemplateTable td {
            padding: 5px;
            /*vertical-align: top;*/
        }

        .fieldSet_tr {
            height: 340px;
        }
        
        .chk_padding input[type="checkbox"] {
            margin-right: 5px;
        }
        /* End of Button Mapping CSS */
    </style>

    <script>
        function txtbxSrchModule_enterEvent(e) {
            if (e.keyCode == 13) {
                __doPostBack("txtbxSrchModule", "TextChanged");
            }
        }

        function txtbxSrchScheme_enterEvent(e) {
            if (e.keyCode == 13) {
                __doPostBack("txtbxSrchScheme", "TextChanged");
            }
        }

        function txtbxSrchTemplate_enterEvent(e) {
            if (e.keyCode == 13) {
                __doPostBack("txtbxSrchTemplate", "TextChanged");
            }
        }

        function txtSrchMultiUCP_enterEvent(e) {
            if (e.keyCode == 13) {
                __doPostBack("txtSrchMultiUCP", "TextChanged");
            }
        }

        function txtSrchPostcard_enterEvent(e) {
            if (e.keyCode == 13) {
                __doPostBack("txtSrchPostcard", "TextChanged");
            }
        }

        function txtSrchUserControl_enterEvent(e) {
            if (e.keyCode == 13) {
                __doPostBack("txtSrchUserControl", "TextChanged");
            }
        }
    </script>

    <asp:UpdatePanel ID="updatePanelStaticAccessMatrix" runat="server">
        <ContentTemplate>
            <div>
                <table>
                    <tr>
                        <td>
                            <%--''Changes done by TejaswiniB on 1-Feb-2021--%>
                            <table>
                                <tr>
                                    <td>
                                        <table>
                                            <tr>
                                                <td class="td_padding">
                                                    <asp:DropDownList ID="ddlAddType" CssClass="ddl" runat="server" AutoPostBack="true" Width="90">
                                                        <asp:ListItem Text="Entity" Value="Entity"></asp:ListItem>
                                                        <asp:ListItem Text="Login" Value="Login"></asp:ListItem>
                                                        <asp:ListItem Text="User Group" Value="User Group"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                                <td class="td_padding">
                                                    <asp:DropDownList ID="ddlTargetVal" CssClass="ddl ddlTargetValcss" runat="server" AutoPostBack="true"></asp:DropDownList>
                                                </td>
                                                <td class="td_padding">
                                                    <asp:RadioButtonList RepeatColumns="2" RepeatDirection="Horizontal" RepeatLayout="Table" runat="server" ID="rdlMapping" AutoPostBack="True" CssClass="rblMapping" CellPadding="2" CellSpacing="0" BorderWidth="0px">
                                                        <asp:ListItem Text="Button Mapping" Value="Button Mapping" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="Template Mapping" Value="Template Mapping"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </td>
                                                <td class="td_padding">
                                                    <asp:Button ID="btnLoad" CssClass="btn" runat="server" Text="Load" Width="100px" />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnSave" CssClass="btn" runat="server" Text="Save" Width="100px" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblError" runat="server" CssClass="lblError" Style="color: #FF4E4E !important"></asp:Label>
                                        <asp:Label ID="lblInfo" runat="server" CssClass="lblError" Style="color: #0368B6 !important"></asp:Label>
                                        <asp:Label ID="lblSuccess" runat="server" CssClass="lblError" Style="color: #008000 !important"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Panel runat="server">
                                <asp:Panel ID="pnlTemplateMapping" runat="server" EnableViewState="true">
                                    <%--<uc2:TemplateMapping ID="oTemplateMapping" Visible="true" runat="server" EnableViewState="true" />--%>
                                    <%-- Template Mapping control removed and added here in pnlTemplateMapping --%>
                                    <div>
                                        <asp:Table ID="Table1" runat="server">
                                            <asp:TableRow>
                                                <asp:TableCell VerticalAlign="Top">
                                                    <fieldset style="width: 300px;">
                                                        <legend class="lbl">Module</legend>
                                                        <asp:TableCell>
                                                            <asp:DropDownList ID="ddlDefaultModules" CssClass="ddl" Style="margin-bottom: 5px" runat="server" Width="300px" AutoPostBack="true"></asp:DropDownList>
                                                        </asp:TableCell>
                                                        <asp:TableCell>
                                                            <asp:TextBox ID="txtbxSrchModule" runat="server" Width="300px" AutoPostBack="true" placeholder="Search" onkeydown="txtbxSrchModule_enterEvent(event)"></asp:TextBox>
                                                        </asp:TableCell>
                                                        <div class="fieldset_div">
                                                            <div style="padding-left: 3px;">
                                                                <asp:CheckBox ID="chkAllModule" runat="server" Text="All" AutoPostBack="true" />
                                                            </div>
                                                            <asp:CheckBoxList ID="chklstModule" runat="server" Width="300px" AutoPostBack="true" OnSelectedIndexChanged="chklstModule_SelectedIndexChanged"></asp:CheckBoxList>
                                                        </div>
                                                    </fieldset>
                                                </asp:TableCell>

                                                <asp:TableCell VerticalAlign="Top">
                                                    <fieldset style="width: 300px">
                                                        <legend class="lbl">Scheme</legend>
                                                        <asp:TableCell>
                                                            <asp:DropDownList ID="ddlDefaultSchemes" CssClass="ddl" runat="server" Style="margin-bottom: 5px" Width="300px" AutoPostBack="true"></asp:DropDownList>
                                                        </asp:TableCell>
                                                        <asp:TableCell>
                                                            <asp:TextBox ID="txtbxSrchScheme" runat="server" Width="300px" AutoPostBack="true" placeholder="Search" onkeydown="txtbxSrchScheme_enterEvent(event)"></asp:TextBox>
                                                        </asp:TableCell>
                                                        <div class="fieldset_div">
                                                            <div style="padding-left: 3px;">
                                                                <asp:CheckBox ID="chkAllScheme" runat="server" Text="All" AutoPostBack="true" />
                                                            </div>
                                                            <asp:CheckBoxList ID="chklstScheme" runat="server" Width="300px" AutoPostBack="true" OnSelectedIndexChanged="chklstScheme_SelectedIndexChanged"></asp:CheckBoxList>
                                                        </div>
                                                    </fieldset>
                                                </asp:TableCell>


                                                <asp:TableCell VerticalAlign="Top">
                                                    <fieldset style="width: 300px">
                                                        <legend class="lbl">Deal Entry</legend>
                                                        <asp:TableCell>
                                                            <asp:DropDownList ID="ddlDefaultTemplates" CssClass="ddl" Style="margin-bottom: 5px" runat="server" Width="300px"></asp:DropDownList>
                                                        </asp:TableCell>
                                                        <asp:TableCell>
                                                            <asp:TextBox ID="txtbxSrchTemplate" runat="server" Width="300px" AutoPostBack="true" placeholder="Search" onkeydown="txtbxSrchTemplate_enterEvent(event)"></asp:TextBox>
                                                        </asp:TableCell>
                                                        <div class="fieldset_div">
                                                            <div style="padding-left: 3px;">
                                                                <asp:CheckBox ID="chkAllTemplate" runat="server" Text="All" AutoPostBack="true" />
                                                            </div>
                                                            <asp:CheckBoxList ID="chklstTemplate" runat="server" Width="300px" AutoPostBack="true" OnSelectedIndexChanged="chklstTemplate_SelectedIndexChanged"></asp:CheckBoxList>
                                                        </div>
                                                    </fieldset>
                                                </asp:TableCell>

                                                <asp:TableCell VerticalAlign="Top">
                                                    <fieldset style="width: 300px">
                                                        <legend class="lbl">Multi UCP Templates</legend>
                                                        <asp:TableCell>
                                                            <asp:DropDownList ID="ddlDefaultMultiUCPTemplates" Style="margin-bottom: 5px" CssClass="ddl" runat="server" Width="300px"></asp:DropDownList>
                                                        </asp:TableCell>
                                                        <asp:TableCell>
                                                            <asp:TextBox ID="txtSrchMultiUCP" runat="server" Width="300px" AutoPostBack="true" placeholder="Search" onkeydown="txtSrchMultiUCP_enterEvent(event)"></asp:TextBox>
                                                        </asp:TableCell>
                                                        <div class="fieldset_div">
                                                            <div style="padding-left: 3px;">
                                                                <asp:CheckBox ID="chkAllMultiUCPTemplate" runat="server" Text="All" AutoPostBack="true" />
                                                            </div>
                                                            <asp:CheckBoxList ID="chklstMultiUCPTemplate" runat="server" Width="300px" AutoPostBack="true" OnSelectedIndexChanged="chklstMultiUCPTemplate_SelectedIndexChanged"></asp:CheckBoxList>
                                                        </div>
                                                    </fieldset>
                                                </asp:TableCell>

                                                <asp:TableCell VerticalAlign="Top">
                                                    <fieldset style="width: 300px">
                                                        <legend class="lbl">Postcard</legend>
                                                        <asp:TableCell>
                                                            <asp:DropDownList ID="ddlDefaultPostcardTemplates" Style="margin-bottom: 5px" CssClass="ddl" runat="server" Width="300px"></asp:DropDownList>
                                                        </asp:TableCell>
                                                        <asp:TableCell>
                                                            <asp:TextBox ID="txtSrchPostcard" runat="server" Width="300px" AutoPostBack="true" placeholder="Search" onkeydown="txtSrchPostcard_enterEvent(event)"></asp:TextBox>
                                                        </asp:TableCell>
                                                        <div class="fieldset_div">
                                                            <div style="padding-left: 3px;">
                                                                <asp:CheckBox ID="chkAllPostcard" runat="server" Text="All" AutoPostBack="true" />
                                                            </div>
                                                            <asp:CheckBoxList ID="chklstPostcard" runat="server" Width="300px" AutoPostBack="true" OnSelectedIndexChanged="chklstPostcard_SelectedIndexChanged"></asp:CheckBoxList>
                                                        </div>
                                                    </fieldset>
                                                </asp:TableCell>

                                                <asp:TableCell VerticalAlign="Top">
                                                    <fieldset style="width: 300px">
                                                        <legend class="lbl">User Control</legend>
                                                        <asp:TableCell>
                                                            <asp:DropDownList ID="ddlDefaultUserControls" Style="margin-bottom: 5px" CssClass="ddl" runat="server" Width="300px"></asp:DropDownList>
                                                        </asp:TableCell>
                                                        <asp:TableCell>
                                                            <asp:TextBox ID="txtSrchUserControl" runat="server" Width="300px" AutoPostBack="true" placeholder="Search" onkeydown="txtSrchUserControl_enterEvent(event)"></asp:TextBox>
                                                        </asp:TableCell>
                                                        <div class="fieldset_div">
                                                            <div style="padding-left: 3px;">
                                                                <asp:CheckBox ID="chkAllUserControl" runat="server" Text="All" AutoPostBack="true" />
                                                            </div>
                                                            <asp:CheckBoxList ID="chklstUserControl" runat="server" Width="300px" AutoPostBack="true" OnSelectedIndexChanged="chklstUserControl_SelectedIndexChanged"></asp:CheckBoxList>
                                                        </div>
                                                    </fieldset>
                                                </asp:TableCell>
                                            </asp:TableRow>
                                        </asp:Table>
                                    </div>
                                </asp:Panel>

                                <asp:Panel ID="pnlButtonMapping" runat="server" EnableViewState="true">
                                    <%--<uc1:ButtonMapping ID="oButtonMapping" Visible="true" runat="server" EnableViewState="true" />--%>
                                    <%-- Button Mapping control removed and added here in pnlButtonMapping --%>
                                    <table class="TemplateTable">
                                        <tr>
                                            <td>
                                                <fieldset class="fieldSet_tr">
                                                    <legend>Static Buttons</legend>
                                                    <table>
                                                        <tr>
                                                            <td></td>
                                                            <td>Text</td>
                                                            <td>Visible </td>
                                                            <td>Readonly</td>
                                                            <td>Sequence</td>
                                                        </tr>
                                                        <tr>
                                                            <td>Draft</td>
                                                            <td>
                                                                <asp:TextBox ID="txtDraft" runat="server" Text="Draft"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkDraftVis" runat="server"></asp:CheckBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkDraftRO" runat="server" Style="margin-left: 20px"></asp:CheckBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtDraftSeq" runat="server" Width="25px" Style="margin-left: 30px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Save</td>
                                                            <td>
                                                                <asp:TextBox ID="txtSave" runat="server" Text="Save"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkSaveVis" runat="server"></asp:CheckBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkSaveRO" runat="server" Style="margin-left: 20px"></asp:CheckBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtSaveSeq" runat="server" Width="25px" Style="margin-left: 30px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Reprice</td>
                                                            <td>
                                                                <asp:TextBox ID="txtReprice" runat="server" Text="Reprice"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkRepriceVis" runat="server"></asp:CheckBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkRepriceRO" runat="server" Style="margin-left: 20px"></asp:CheckBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtRepriceSeq" runat="server" Width="25px" Style="margin-left: 30px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Simulation</td>
                                                            <td>
                                                                <asp:TextBox ID="txtSimulation" runat="server" Text="Simulation"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkSimulationVis" runat="server"></asp:CheckBox></td>
                                                            <td>
                                                                <asp:CheckBox ID="chkSimulationRO" runat="server" Style="margin-left: 20px"></asp:CheckBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtSimulationSeq" runat="server" Width="25px" Style="margin-left: 30px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Clear</td>
                                                            <td>
                                                                <asp:TextBox ID="txtClear" runat="server" Text="Clear"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkClearVis" runat="server"></asp:CheckBox></td>
                                                            <td>
                                                                <asp:CheckBox ID="chkClearRO" runat="server" Style="margin-left: 20px"></asp:CheckBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtClearSeq" runat="server" Width="25px" Style="margin-left: 30px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <asp:CheckBox ID="chkShowPayoffGraph" Text="Show Payoff Graph" AutoPostBack="true" runat="server" CssClass="chk_padding" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <asp:CheckBox ID="chkShowRemark" Text="Show Remark" AutoPostBack="true" runat="server" CssClass="chk_padding" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <asp:CheckBox ID="chkShowTabsVisiblity" Text="Show Tabs Visibility" AutoPostBack="true" runat="server" CssClass="chk_padding" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </fieldset>
                                            </td>
                                            <td>
                                                <fieldset class="fieldSet_tr">
                                                    <legend>Hedging type</legend>
                                                    <table>
                                                        <tr>
                                                            <td style="vertical-align: middle">
                                                                <asp:Label ID="lblDefHedgingType" runat="server" Text="Default Hedging Type" CssClass="lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlDefHedgeType" CssClass="ddl" runat="server" Width="139px">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <asp:CheckBoxList ID="chklsthedging" runat="server" AutoPostBack="true">
                                                                    <asp:ListItem Text="Back to Back"></asp:ListItem>
                                                                    <asp:ListItem Text="Dynamic"></asp:ListItem>
                                                                    <%--<asp:ListItem Text="Hidden" Selected="True"></asp:ListItem>--%>
                                                                    <asp:ListItem Text="Market"></asp:ListItem>
                                                                    <asp:ListItem Text="Order"></asp:ListItem>
                                                                    <asp:ListItem Text="Pooling"></asp:ListItem>
                                                                    <asp:ListItem Text="Price"></asp:ListItem>
                                                                    <asp:ListItem Text="Product"></asp:ListItem>
                                                                    <%--<asp:ListItem Text="Recipe Mode" Selected="True"></asp:ListItem>--%>
                                                                    <asp:ListItem Text="RFQ"></asp:ListItem>
                                                                    <asp:ListItem Text="UDF"></asp:ListItem>
                                                                </asp:CheckBoxList>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </fieldset>
                                            </td>
                                            <td>
                                                <fieldset class="fieldSet_tr">
                                                    <legend>Label Text</legend>
                                                    <table>
                                                        <tr>
                                                            <td></td>
                                                            <td>Text </td>
                                                            <td>Visible</td>
                                                            <td>Readonly</td>
                                                        </tr>
                                                        <tr>
                                                            <td>Entity </td>
                                                            <td>
                                                                <asp:TextBox ID="txtEntity" runat="server" Text="Entity"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkEntityVis" runat="server" />
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkEntityRO" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Module </td>
                                                            <td>
                                                                <asp:TextBox ID="txtModule" runat="server" Text="Module"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkModuleVis" runat="server" />
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkModuleRO" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Asset Class </td>
                                                            <td>
                                                                <asp:TextBox ID="txtAssetClass" runat="server" Text="Asset Class"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkAssetClassVis" runat="server" />
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkAssetClassRO" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Product </td>
                                                            <td>
                                                                <asp:TextBox ID="txtProduct" runat="server" Text="Product"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkProductVis" runat="server" />
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkProductRO" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Sub Template </td>
                                                            <td>
                                                                <asp:TextBox ID="txtSubTemplate" runat="server" Text="Sub Template"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkSubTemplateVis" runat="server" />
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkSubTemplateRO" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Hedging Type </td>
                                                            <td>
                                                                <asp:TextBox ID="txtHedgingType" runat="server" Text="Hedging Type"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkHedgingTypeVis" runat="server" />
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkHedgingTypeRO" runat="server" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </fieldset>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
