<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="FrmAllTabNameList.aspx.vb" Inherits="FinIQWebApp.FrmAllTabNameList" MaintainScrollPositionOnPostback="true" %>

<!DOCTYPE html>
<html>
<head id="Head2" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css"  href="../../FinIQJS/jquery-ui.min.css" /> 
    <script lang="javascript" type="text/javascript" src="../../FinIQJS/external/jquery/jquery.min.js" ></script>
    <script lang="javascript" type="text/javascript" src="../../FinIQJS/jquery-ui.min.js" ></script>
<%--    <link rel="stylesheet" type="text/css" href="../../App_Themes/Style1.css" />--%>
     <%--Added by Shekhar L. @24-aug-2021 for Theme--%>
    <link id="FinIQTheme" runat="server" href="../../App_Themes/Style1.CSS" type="text/css" rel="stylesheet" />

<%--    <script lang="javascript" type="text/javascript" src="../../FinIQJS/FinIQCommon.js"></script>--%>
  
  <style  type="text/css" >
       
        .frmtbl {
        margin: 0px;
    border-spacing: 0px !important;
    padding: 0px !important;
    border:none 0px !important;
        }
        .frmtbl td{
            padding:0px !important;
            /*padding-bottom:2px!important;*/
        }
       

        
    </style>
</head>
<body>
    <form id="form1_TabNameList" autocomplete="off" method="post" runat="server">
        <asp:ScriptManager ID="ScriptManager_TabMapping" LoadScriptsBeforeUI="false" EnableHistory="true"
            EnablePartialRendering="true" ScriptMode="Release" runat="server" EnablePageMethods="true" AsyncPostBackTimeout="3000" AjaxFrameworkMode="Enabled">
            <CompositeScript ScriptMode="Release">
                <Scripts>
                    <asp:ScriptReference Name="MicrosoftAjax.js" />
                    <asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
                    <asp:ScriptReference Name="MicrosoftAjaxTimer.js" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                    <asp:ScriptReference Path="~/FinIQJS/FinIQCommon.js" />
                </Scripts>
            </CompositeScript>
        </asp:ScriptManager>
        <asp:HiddenField ID="hdnUCPSessionID" runat="server" Value="0" />       <%--Added by Bhagyashri B 16-01-2020 BNPINT-269, for session id--%>
       
        <div id="divID" style="height: 740px; width: max-content;">
            <table id="tblTabName" style="width: 100%; height: auto; overflow: auto;" runat="server">
                <tr>
                    <td>
                        <asp:Label ID="lblerror" runat="server" ForeColor="Red" CssClass="lblError"></asp:Label>
                        <asp:Label ID="lblCustGrid" runat="server" ForeColor="Red" CssClass="lblError"  ></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="padding-bottom: 5px; padding-left: 10px; padding-top: 5px;">
                        <asp:Button CssClass="btn" ID="btnTabApply" runat="server" Text="Apply" Width="80px" />
                    </td>

                </tr>
                <tr>
                    <td style="padding-left: 20px">
                        <asp:CheckBox ID="chkAllTabList" Text="Select All" runat="server" AutoPostBack="true" />
                    </td>

                </tr>

                <tr>
                    <td>
                        <div style="height: 740px; margin-left: 10px; min-width:initial">
                            <asp:GridView ID="GridAllTabDetails" runat="server" AutoGenerateColumns="false" ShowHeader="false" HeaderStyle-CssClass="GridHeaderTitle" EmptyDataText="No Records Found">
                                <SelectedRowStyle CssClass="GridItemSelect" />
                                <RowStyle CssClass="GridItem" BorderStyle="None" />
                                <HeaderStyle CssClass="GridHeader" />
                                <FooterStyle CssClass="GridFooter" />
                                <PagerStyle CssClass="GridPager" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkTabList" runat="server" AutoPostBack="true" OnCheckedChanged="chkTabList_CheckedChanged" Text='<%#Eval("Display_Name") %>'/>
                                            <asp:BoundField DataField="Field_Name" HeaderText="Field Name"/>
                                            <%--'Added by VijayH || BBVAORINT-535 || 23-05-2022--%> 
                                            <%--Start--%>
                                            <asp:Panel runat="server" ID="pnlberg1" Visible="false" style ="height: 400px;overflow-y: scroll;">
                                                <table id="tblMPGCodes" style="width: 100%; height: auto; overflow: auto;" runat="server">
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="lblErrorMPG" runat="server" ForeColor="Red" CssClass="lblError"></asp:Label>
                                                           <%-- <asp:Label ID="lblErrorMPG" runat="server" ForeColor="Red" CssClass="lblError"  ></asp:Label>--%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="padding-bottom: 5px; padding-left: 10px; padding-top: 5px;">
                                                            <asp:Button CssClass="btn" ID="btnMPGCodesApply" OnClick="btnMPGCodesApply_Click" runat="server" Text="Apply" Width="80px" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="padding-left: 20px">
                                                            <asp:CheckBox ID="chkAllMPGCodes" Text="Select All" OnCheckedChanged="chkAllMPGCodes_CheckedChanged" runat="server" AutoPostBack="true" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <div style="height: 740px; margin-left: 10px; min-width:initial">
                                                                <asp:GridView ID="GridAllMPGDetails1" runat="server" AutoGenerateColumns="false" ShowHeader="false" HeaderStyle-CssClass="GridHeaderTitle" EmptyDataText="No Records Found">

                                <SelectedRowStyle CssClass="GridItemSelect" />
                                <RowStyle CssClass="GridItem" BorderStyle="None" />
                                <HeaderStyle CssClass="GridHeader" />
                                <FooterStyle CssClass="GridFooter" />
                                <PagerStyle CssClass="GridPager" />

                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                                                                <asp:CheckBox ID="chkMPGTabList" runat="server" AutoPostBack="false" OnCheckedChanged="chkMPGTabList_CheckedChanged" Val='<%#Eval("BCM_Code") %>'/>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="BCM_Long_Name" HeaderText="Blotter Name"/>
                                                                        <asp:BoundField DataField="BCM_Code" HeaderText="Blotter Code" />
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                            <%--End--%>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <%--<asp:BoundField DataField="Field_Name" HeaderText="Field Name"/>
                                    <asp:BoundField DataField="Display_Name" HeaderText="Display Name" />--%>
                                </Columns>
                            </asp:GridView>
                        </div>


                    </td>
                </tr>
            </table>
            <table id="tblWFL" class="frmtbl" runat="server">
                <tr>
                    <td>
                        <span>Workflow</span>
                         <span style="padding-left:202px"> Hedging Type</span>
                        </td>
                    </tr>
                <tr>
                    
                     <td>
                        <asp:DropDownList ID="ddlWorkflowType" CssClass="ddl colGrid" runat="server" OnSelectedIndexChanged="ddlWorkFlow_SelectedIndexChanged"  AutoPostBack="true" Enabled="true" />   
                          <asp:DropDownList ID="ddlHedgingType" style="margin-left:65px;width:80px" CssClass="ddl colGrid" runat="server" OnSelectedIndexChanged="ddlHedgingType_SelectedIndexChanged"  AutoPostBack="true" Enabled="true" >  
                            <asp:ListItem Text="All" Value="All"></asp:ListItem>
                                                                                    <asp:ListItem Text="Deal" Value="Deal"></asp:ListItem>
                                                                                    <asp:ListItem Text="Order" Value="Order"></asp:ListItem>
                                                                                    <asp:ListItem Text="Product" Value="Product"></asp:ListItem>
                                                                                    <asp:ListItem Text="RFQ" Value="RFQ"></asp:ListItem>
                            </asp:DropDownList>
                    </td>
                   
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblWFLerror" runat="server" ForeColor="Red" CssClass="lblError"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnSelect" CssClass="btn" runat="server" Text="Apply" />
                    </td>
                </tr>
                <tr>
                    <td >
                        <asp:CheckBox ID="chkAllWFL" Text="Select All" runat="server" AutoPostBack="true" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBoxList ID="chkWFLlist" CssClass="frmtbl" runat="server" Style="width:400px">
                        </asp:CheckBoxList>
                    </td>
                </tr>
            </table>
            <table id="tblEvents" class="frmtbl" runat="server">
                  <tr>
                      <td>
                          <asp:DropDownList ID="ddlEvent" CssClass="ddl colGrid" runat="server" OnSelectedIndexChanged="ddlEvent_SelectedIndexChanged"  AutoPostBack="true" Enabled="true" style="margin-right:3px;">  
                            <asp:ListItem Text="All" Value="ALL"></asp:ListItem>                            
                            <asp:ListItem Text="Customer Grid" Value="CG"></asp:ListItem>
                            <asp:ListItem Text="Static" Value="Static"></asp:ListItem>
                            <asp:ListItem Text="UDF" Value="UDF"></asp:ListItem>
                            <asp:ListItem Text="Workflow" Value="WFL"></asp:ListItem>  
                    </asp:DropDownList>
                      </td>
                      <td>  <%--style="padding-bottom: 5px; padding-left: 10px; padding-top: 5px;"--%>
                        <asp:Button CssClass="btn" ID="btnApply_Event" runat="server" Text="Apply" Width="80px" />
                    </td>
                      <td>  <%--style="padding-bottom: 5px; padding-left: 10px; padding-top: 5px;"--%>
                        <asp:Button CssClass="btn" ID="btnRefresh" runat="server" Text="Refresh" Width="80px" />
                    </td>
                    <td>  <%--style="padding-bottom: 5px; padding-left: 10px; padding-top: 5px;"--%>
                        <asp:Button CssClass="btn" ID="btnClose_Event" runat="server" Text="Close" Width="80px" />
                    </td>                   
                </tr>
                <tr>
                     <td>
                        <asp:Label ID="lblevent_err" runat="server" ForeColor="Red" CssClass="lblError"></asp:Label>     
                    </td>                    
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="chkSelectAll" Text="Select All" style="margin-left:1px" runat="server" AutoPostBack="true" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <div style="height: 740px; min-width:335px">
                            <asp:GridView ID="grdEvent" runat="server" AutoGenerateColumns="false" ShowHeader="false" HeaderStyle-CssClass="GridHeaderTitle" EmptyDataText="No Records Found">
                                <%-- <SelectedRowStyle CssClass="GridItemSelect"></SelectedRowStyle>
                            <HeaderStyle HorizontalAlign="Center" CssClass="GridHeader" VerticalAlign="Middle"></HeaderStyle>
                             <RowStyle BorderStyle="None" CssClass="GridItem1" />--%>
                                <SelectedRowStyle CssClass="GridItemSelect" />
                                <RowStyle CssClass="GridItem" BorderStyle="None" />
                                <HeaderStyle CssClass="GridHeader" />
                                <FooterStyle CssClass="GridFooter" />
                                <PagerStyle CssClass="GridPager" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkEventList" runat="server" AutoPostBack="true" OnCheckedChanged="chkEventList_CheckedChanged" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="ButtonCode" HeaderText="Field Name"/>
                                    <asp:BoundField DataField="ButtonName" HeaderText="Display Name"/>
                                    <asp:BoundField DataField="ButtonType" HeaderText="Display Name"/>
                                </Columns>
                            </asp:GridView>
                        </div>
                    </td>
                </tr>
            </table>
            <asp:HiddenField ID="hdnSelectedTabNames" runat="server" />
            <asp:HiddenField ID="hdnpreviousTabs" runat="server" />
            <asp:HiddenField ID="hdnpreviousTabIDs" runat="server" />   <%--Added by BhagyashriB on 08-Dec-2021 | UWI-241--%>
            <asp:HiddenField ID="hdnSelectedWFLName" runat="server" />
            <asp:HiddenField ID="hdnWFLPrevious" runat="server" />
            <asp:HiddenField ID="hdnVisibilityMap" runat="server" />
            <asp:HiddenField ID="hdnUserGroupsMap" runat="server" />
            <asp:HiddenField ID="hdnMappedEvents" runat="server" />   <%--Added by Devesh J on 17-Jan-2022| UWI-268--%>
            <asp:HiddenField ID="hdnSelectedEvents" runat="server" /> <%--Added by Devesh J on 17-Jan-2022| UWI-268--%>
            <asp:HiddenField ID="hdnSelectedMPGTabNames" runat="server" />
        </div>
        <div id="dialog_Confirm_MPG" title="Conformation-box" style="display: none; overflow: hidden; height: 450px; border: solid 1px #DDDDDD; border-bottom-width: 0px;">
            <iframe id="iFrame_Reconfirm_MPG" style="overflow: auto; width: 100%; height: 100%; border: 0px"></iframe>
        </div>
        <script type="text/javascript">
    var confoMPG;
   <%-- function ConfirmMPG() {
        debugger;
        confoMPG = $(document).find("#dialog_Confirm_MPG").dialog({
            title: 'Blotter Codes',
            modal: true,
            autoOpen: true,
            width: 300, 
            height: 350,
            top: 100, 
            close: function () {
                __doPostBack();
                $("#iFrame_Reconfirm_MPG").removeAttr("id");
                confoMPG.dialog('close');
            },
        
        });
        UCPMPGSessionID=$(document).find('input[id$="hdnUCPMPGSessionID"]').val();
        //$("#iFrame_Reconfirm_MPG").attr("src", "LayoutDesignControls/MPGMasterPopUP.aspx?Master_Popup=Popup&sessionId="+UCPMPGSessionID+"");      //Session id added by Bhagyashri B 16-01-2020 BNPINT-269
        $("#iFrame_Reconfirm_MPG").attr("src", "../LayoutDesignControls/MPGMasterPopUP.aspx?Master_Popup=Popup&sessionId=" + document.getElementById('<%=hdnUCPMPGSessionID.ClientID%>').value);
        confoMPG.dialog('open');
    }--%>
        </script>
    </form>
</body>
</html>
