<%@ Page Language="vb" AutoEventWireup="true" MasterPageFile="~/FiniqAppMasterPage.Master"
    CodeBehind="LoginRMMapping.aspx.vb" Inherits="FinIQWebApp.LoginRMMapping" Title="LoginRMMapping"  %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
     <style type="text/css">
          .btn_padding {
            padding-right: 10px;
            padding-top: 5px;
        }
    </style>
    <script type="text/javascript">


          function EnterKeySearchByUser(evt) {
                var code = (evt.which) ? evt.which : evt.keyCode;

                if (code == 13 || code == 9) {
                    document.getElementById('<%=btnFindUser.ClientID%>').click();
            }
        }


         //<Start:Changed by Mayuri C on 22-Sep-2020 for jira RHBUPINT 2286 as per discussed with Nitin N and Sakshi B>
        function EnterKeySearchByDescription(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

            if (code == 13 || code == 9) {
                document.getElementById('<%=btnFindDescription.ClientID%>').click();
               }
        }

        function EnterKeySearchByRMGroups(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

            if (code == 13 || code == 9) {
                document.getElementById('<%=btnFindRMGroups.ClientID%>').click();
              }
        }

        function EnterKeySearchByRMs(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

            if (code == 13 || code == 9) {
                document.getElementById('<%=btnFindRMs.ClientID%>').click();
              }
          }
          //<End:Changed by Mayuri C on 22-Sep-2020 for jira RHBUPINT 2286 as per discussed with Nitin N and Sakshi B>
        window.onload = function () {
            var rr = [];
            var list = document.getElementById("<%=lstUserName.ClientID%>");
            $("#ctl00_MainContent_lstUserName :selected").each(function (i, selected) {

                if (Number($(selected).index()) < 35) {

                    $("#ctl00_MainContent_lstUserName").scrollTop(0);

                } else {
                    $("#ctl00_MainContent_lstUserName").scrollTop($(list).prop("scrollHeight"));

                }
            });

        }

        var parameter = Sys.WebForms.PageRequestManager.getInstance();

        parameter.add_endRequest(function () {

            var rr = [];
            var list = document.getElementById("<%=lstUserName.ClientID%>");
            $("#ctl00_MainContent_lstUserName :selected").each(function (i, selected) {
                if (Number($(selected).index()) < 35) {

                    $("#ctl00_MainContent_lstUserName").scrollTop(0);

                } else {
                    $("#ctl00_MainContent_lstUserName").scrollTop($(list).prop("scrollHeight"));

                }
            });


        });
</script>

    



  <%--  <link href="LoginRMMapping.css" rel="stylesheet" />--%>

      <link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
             <table >
                 <tr>
                    <td>
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
                            <ProgressTemplate>
                                <div class="divLoading">

                                    <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">
                                    </span>
                                </div>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </td>
                </tr>
                    </table>
            <table id="tblMain" runat="server" style="padding:5px 5px">
                <tr>
                    <td>
                         <asp:Label ID="lblError" runat="server"  CssClass="lblerror"></asp:Label>
                         <asp:Label ID="lblInfo" runat="server"  CssClass="lblinfo" Text=""></asp:Label>
                         <%-- Added by Varun Patyal for ANZDCIUPIN-61(success message should be in green color.)--%>
						 <asp:Label ID="lblSuccess" runat="server"  CssClass="lblsuccess" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <table id="tblcntl" runat="server" style="padding:5px 5px">
                            <tr>
                               
                                <td>
                                    <asp:Label ID="lblgrpHeader" CssClass ="lbl" runat="server" text="Mapping By -"></asp:Label>
                                </td>
                                <td style="padding-left:10px">
                                    <asp:RadioButton ID="optGroup" runat="server" Text="Group" GroupName="OPT" Height="20px"
                                        AutoPostBack="True" CssClass="RadioBtn"></asp:RadioButton>
                                </td>
                                <td style="padding-left:10px">
                                    <asp:RadioButton ID="optIndicator" runat="server" Text="Individual" GroupName="OPT"
                                        Height="20px" AutoPostBack="True" Checked="True" CssClass="RadioBtn"></asp:RadioButton>
                                </td>
                                <td style="padding-left:25px">
                                    <asp:RadioButton ID="optUsrGrp" runat="server" Text="User Group" GroupName="OPT1"
                                        Height="20px" AutoPostBack="True" Checked="True" CssClass="RadioBtn"></asp:RadioButton>
                                </td>
                                <td style="padding-left:10px">
                                    <asp:RadioButton ID="optUrsLgn" runat="server" Text="Users" GroupName="OPT1"
                                        Height="20px" AutoPostBack="True" CssClass="RadioBtn"></asp:RadioButton>
                                </td>
                                
                                <td >
                                    <asp:Image ID="Image1" runat="server" Visible="False" />
                                      <asp:Label ID="lblimg" class="lbl" runat="server" Height="17px" Visible="False">User Name</asp:Label>
                                </td> 
                                                  <%-- Change done by Shreya on 24/08/18 to change Positions of buttons--%>
                            </tr>
                            <tr>
                                <td class="btn_padding">
                                    <input CssClass="btn" id="btnMap" type="button" value="Map" name="Button3" runat="server" style="width: 70px;" Class="btn" disabled="disabled" />
                                </td>
                                 <td class="btn_padding">
                                    <input CssClass="btn" id="btnUpdate" type="button" value="Update" name="Button1" runat="server" style="width: 70px;" Class="btn" disabled="disabled" />
                                </td>
                                 <td class="btn_padding">
                                    <input CssClass="btn" id="btnDelete" type="button" value="Unmap" name="Button2" runat="server" style="width: 70px" disabled="disabled" Class="btn" visible="True" />
                                </td>
                                 <td class="btn_padding">
                                    <input CssClass="btn" id="btnCancel" type="button" value="Cancel" name="Cancel" runat="server" style="width: 70px;" Class="btn" disabled="disabled" />
                                </td>
                                  <%-- Change done by Shreya on 24/08/18 to change Positions of Buttons--%>

                                  <%-- Change done by Shreya on 24/08/18 to add excel button--%>
                                   <td class="btn_padding">
                                    <input cssclass="btn" id="btnExcel" visible ="false"  type="button" value="Excel" name="Excel" runat="server"  style="width: 70px" Class="btn"  />
                                </td>
                               <%-- Change done by Shreya on 24/08/18 to add excel button--%>
                               
                            <%--    <td>--%>
                                    <%--<input cssclass="btn" id="btnExcel" type="button" value="Excel" name="btnExcel" runat="server"
                                        visible="False" />
                                    <input cssclass="btn" id="btnExcel" type="button" value="Excel" name="btnExcel" runat="server"
                                        visible="True" onclick="return btnExcel_onclick()" />
                                   <asp:Button ID="btnExcel" Class="btnExcel" Text="Excel" runat="server" visible="True" /> --%>
                                  <%--  <asp:Button ID="btnExport" runat="server" Class="btnExcel" ToolTip="Export To Excel"
                                        Width="22px" TabIndex="6" visible="False" />
                                </td>--%>
                                 <td >
                                    <asp:Label ID="lblEntity" Text="<%$ Resources:LocalizedText, Entity %>" CssClass="lbl" runat="server" Visible ="false"></asp:Label><%-- ----%>
                                </td>
                                <td colspan="5" style="padding-left:10px">
                                    <asp:DropDownList ID="cboEntity" CssClass="ddl" runat="server" Width="182px" AutoPostBack="true" Visible ="false"><%-- ----%>
                                    </asp:DropDownList>
                                   
                                </td>
                                 <%--  <Mayuri C| 30-Jul-2020 |Changes done |>
                                 RHBUpgrade 4.7.2
                                 JIRA NO :RHBUPINT-1850: Login RM Map: Add search for Login, Rm group and RM
                             --%>
                                 <%--  <td style="padding-left:20px">
                                      <asp:Label ID="lblSearch" runat="server" Text="Search" CssClass="lbl"></asp:Label>

                                    </td>
                                      <td>
                                      <asp:TextBox ID="txtSearch" runat="server" CssClass="txt" AutoPostBack="false"  Width="200px"></asp:TextBox> <%--onkeydown="return EnterEvent(event)"--%>
                               <%--      <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers, UppercaseLetters, LowercaseLetters"  TargetControlID="txtSearch" />  <%--Change done by Shreya on 05/09/18--%>
                                  <%--   <asp:Button ID="BtnSearch" runat="server" CssClass="btnSearch" />
                                            </td>--%>
                                <%--<Mayuri C| 30-Jul-2020 |Changes done |>   --%>
                            </tr>

                        </table>
                       
                       
                    </td>
                </tr>
                <tr>
                    <td valign="top" style="padding-top:10px">
                        <table id="tblLoginMap" runat="server">
                            <tr>
                                <td valign="top">
                                    <table id="tblUgroups" runat="server">
                                        <tr>
                                            <td class="">
                                                <asp:Label ID="lblUgroups" runat="server" Width="288px" CssClass ="lbl">User Group</asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top">
                                                <asp:Panel ID="Panel2" runat="server" Height="612px">
                                                    <asp:ListBox ID="lstGroupName" runat="server" Rows="20" AutoPostBack="True" Height="612px"
                                                        Width="288px" SelectionMode="Single" CssClass="lst"></asp:ListBox>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td valign="top">
                                    <table id="tblausers" runat="server">
                                        <tr>
<td>
      <asp:CheckBox ID="chkUser" runat="server" AutoPostBack="true" Text="All"
                                        Checked="True"  />


     <%-- Changed by Mayuri C on 22-Sep-2020 for jira RHBUPINT 2286 as per discussed with Nitin N and Sakshi B--%>
       <asp:Button ID="btnUser" CssClass="btn" runat="server" Text="Find" Width="65px" Style="float: right;"
                                        Enabled="true"  />
</td>
                                        </tr>
                                        <tr>
                                            <td class="">
                                                <asp:Label ID="lblUser" runat="server" Width="288px" CssClass ="lbl" Text="Users"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top">
                                                <asp:Panel ID="Panel1" runat="server" Height="612px" >
                                                    <asp:ListBox ID="lstUserName" runat="server" Rows="20" AutoPostBack="True" Height="612px" 
                                                        Width="288px" SelectionMode="Single"></asp:ListBox>
                                                </asp:Panel>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td valign="top">
                                    <table id="Table1" runat="server">
                                        <tr>
                                            <td>
        <asp:CheckBox ID="chkDescription" runat="server"  AutoPostBack="true" Text="All"
                                        Checked="True" />
                                        <%-- Changed by Mayuri C on 22-Sep-2020 for jira RHBUPINT 2286 as per discussed with Nitin N and Sakshi B--%>
                                                      <asp:Button ID="btnDescription" CssClass="btn" runat="server" Text="Find" Width="65px" Style="float: right;"
                                        Enabled="true"  />
                                            </td>
                                        </tr>
                                        <tr>

                                      
                                                    <td class="">
                                                        <asp:Label ID="Label1" runat="server" Width="233px" CssClass ="lbl">Description</asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top">
                                                        <asp:Panel ID="PnlLogin" runat="server"  Height="612px">
                                                            <asp:ListBox ID="lstdesc" runat="server" AutoPostBack="True" Height="612px" Width="233px" Enabled ="false" 
                                                                Rows="20" SelectionMode="Single"></asp:ListBox>
                                                        </asp:Panel>
                                                    </td> 
                                               
                                        </tr>
                                    </table>
                                </td>
                                <td valign="top">
                                    <table id="tblRMGroup" border="0" runat="server">
                                        <tr>
                                            <td>
                                                 <asp:CheckBox ID="chkRMGroup" runat="server"  AutoPostBack="true" Text="All"
                                        Checked="True"  />
                                                 <%--Changed by Mayuri C on 22-Sep-2020 for jira RHBUPINT 2286 as per discussed with Nitin N and Sakshi B--%>
                                                     <asp:Button ID="btnRMGroup" CssClass="btn" runat="server" Text="Find" Width="65px" Style="float: right;"
                                        Enabled="true"  />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="">
                                                <asp:Label ID="lblRMGroup" runat="server" Width="233px" CssClass ="lbl"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top" align="left">
                                                <div class="Filter" id="divoptradio" style="z-index: 1; overflow: auto; width: 243px; height: 610px">
                                                    <asp:RadioButtonList ID="optRMGroup" runat="server" AutoPostBack="True" Height="20px"
                                                        Width="225px" CssClass="lbl">
                                                    </asp:RadioButtonList>
                                                    <asp:TreeView ID="trvRMGroup" runat="server" Height="97px" Width="102px">
                                   <%--                    <NodeStyle CssClass="Color" ForeColor="Red" />
                                                   <RootNodeStyle CssClass ="rootNode" />
                                                        <LeafNodeStyle CssClass="leafNode" />--%>
                                                    </asp:TreeView>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td valign="top">
                                    <table id="tblRMName" border="0" runat="server">
                                        <tr>
                                            <td>
                                                  <asp:CheckBox ID="chkRMName" runat="server" AutoPostBack="true" Text="All"
                                        Checked="True"  />
                                                 <%--Changed by Mayuri C on 22-Sep-2020 for jira RHBUPINT 2286 as per discussed with Nitin N and Sakshi B--%>
                                                       <asp:Button ID="btnRMName" CssClass="btn" runat="server" Text="Find" Width="65px" Style="float: right;"
                                        Enabled="true"  />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="">
                                                <asp:Label ID="lblRMName" runat="server" Width="370px" CssClass ="lbl"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top" align="left">
                                                <div class="Filter" id="divoptradio1" style="z-index: 1; overflow: auto; width: 380px; height: 610px">
                                                    <asp:CheckBoxList ID="optRMName" runat="server" Width="363px" CssClass="lbl">
                                                    </asp:CheckBoxList>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HiddenField ID="hdnEntity" runat="server" />
                        
                    </td>
                </tr>

                
                <tr>
                    <td>
                        <table style="width: 1085px">
                            <tr>
                                <td align="left">
                                 <%--   <Start:Change done by Mayuri C on 11-Sep-2020  for jira RHBUPINT 2273 Login RM MApping- Additional Issues post Search functionality as per discussed with Nitin N and Sakshi B --%>
                                          <asp:Panel ID="pnlUser" CssClass="filter" Style="position: absolute; top: 207px; left: 100px; height: auto; padding: 5px; width: auto; background-color: #ffffff; border: 1px solid #cccccc"
                                        Visible="false" runat="server" ScrollBars="None">
                                    <%--   <End:Change done by Mayuri C on 11-Sep-2020  for jira RHBUPINT 2273 Login RM MApping- Additional Issues post Search functionality as per discussed with Nitin N and Sakshi B --%>
                                        <table class="tbl">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label2" runat="server" CssClass="lbl" Text="User(s)"></asp:Label>
                                                </td>
                                                <%--      </tr>
                                                    <tr>--%>
                                                <td style="float: right;">
                                                    <asp:Button ID="btnCloseUser" runat="server" CssClass="btn" Text="X" ToolTip="close" Width="25" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 4px;"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <table>
                                                        <tr>
                                                            <td class="lblBlotterPaddingRight">
                                                                <asp:Label ID="Label3" runat="server" Text="User"></asp:Label>
                                                            </td>
                                                            <td class="ctlBlotterPaddingRight">
                                                                <asp:TextBox ID="txtUser" onkeydown="EnterKeySearchByUser(event)" runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnFindUser" runat="server" CssClass="btn" Text="Find" ToolTip="Search User" Width="65px" />
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnApplyUser" runat="server" CssClass="btn" Text="Apply" ToolTip="Apply User" Width="65px" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Label ID="lblErrorUser" runat="server" CssClass="lbl" ForeColor="#333"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 4px;"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:DataGrid ID="dgUser" runat="server" AllowPaging="True" AutoGenerateColumns="False" BorderStyle="None" CssClass="Grid" PageSize="10" Width="263px">
                                                        <HeaderStyle CssClass="GridHeader" />
                                                        <ItemStyle CssClass="GridItem" Wrap="False" />
                                                        <PagerStyle CssClass="GridPager" Mode="NumericPages" />
                                                        <Columns>

                                                            <asp:TemplateColumn>
                                                                <HeaderStyle HorizontalAlign="Right" />
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <HeaderTemplate>
                                                                    <asp:CheckBox ID="chkAllItems" runat="server" onclick="SelectSearchRMGroup(this)" Text="" Visible="false" />
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="chkSelectedUser" runat="server" onclick="chkAllCheckBoxRMGroup(this)" />
                                                                </ItemTemplate>
                                                                <ItemStyle HorizontalAlign="center" />
                                                            </asp:TemplateColumn>
                                                            <asp:BoundColumn HeaderText="Sr No">
                                                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Right" />
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="Users" HeaderText="Users">
                                                                <HeaderStyle Wrap="False" />
                                                                <ItemStyle />
                                                            </asp:BoundColumn>
                                                          
                                                        </Columns>
                                                    </asp:DataGrid>
                                                </td>
                                            </tr>

                                        </table>
                                    </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                     <tr>
                    <td>
                        <table style="width: 1085px">
                            <tr>
                                <td align="left">
                                          <asp:Panel ID="PnlDescription" CssClass="filter" Style="position: absolute; top: 207px; left: 220px; height: auto; padding: 5px; width: auto; background-color: #ffffff; border: 1px solid #cccccc"
                                        Visible="false" runat="server" ScrollBars="None">
                                        <table class="tbl">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label4" runat="server" CssClass="lbl" Text="Description(s)"></asp:Label>
                                                </td>
                                                <%--      </tr>
                                                    <tr>--%>
                                                <td style="float: right;">
                                                    <asp:Button ID="btnCloseDescription" runat="server" CssClass="btn" Text="X" ToolTip="close" Width="25" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 4px;"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <table>
                                                        <tr>
                                                            <td class="lblBlotterPaddingRight">
                                                                <asp:Label ID="Label5" runat="server" Text="Description"></asp:Label>
                                                            </td>
                                                            <td class="ctlBlotterPaddingRight">
                                                                 <%--  Changed by Mayuri C on 22-Sep-2020 for jira RHBUPINT 2286 as per discussed with Nitin N and Sakshi B--%>
                                                                <asp:TextBox ID="txtDescription" onkeydown="EnterKeySearchByDescription(event)" runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnFindDescription" runat="server" CssClass="btn" Text="Find" ToolTip="Search Description" Width="65px" />
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnApplyDescription" runat="server" CssClass="btn" Text="Apply" ToolTip="Apply Description" Width="65px" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Label ID="lblErrorDes" runat="server" CssClass="lbl" ForeColor="#333"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 4px;"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:DataGrid ID="dgDescription" runat="server" AllowPaging="True" AutoGenerateColumns="False" BorderStyle="None" CssClass="Grid" PageSize="10" Width="263px">
                                                        <HeaderStyle CssClass="GridHeader" />
                                                        <ItemStyle CssClass="GridItem" Wrap="False" />
                                                        <PagerStyle CssClass="GridPager" Mode="NumericPages" />
                                                        <Columns>

                                                            <asp:TemplateColumn>
                                                                <HeaderStyle HorizontalAlign="Right" />
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <HeaderTemplate>
                                                                    <asp:CheckBox ID="chkAllItems" runat="server" onclick="SelectSearchRMGroup(this)" Text=""  Visible="false"/>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                     <%--   <Start:Change done by Mayuri C on 11-Sep-2020  for jira RHBUPINT 2273 Login RM MApping- Additional Issues post Search functionality as per discussed with Nitin N and Sakshi B --%>
                                                                    <asp:CheckBox ID="chkSelectedDescription" AutoPostBack="true" runat="server"  OnCheckedChanged="chkSelectedDescription_CheckedChanged"  />
                                                                   <%--   <End:Change done by Mayuri C on 11-Sep-2020  for jira RHBUPINT 2273 Login RM MApping- Additional Issues post Search functionality as per discussed with Nitin N and Sakshi B --%>
                                                                </ItemTemplate>
                                                                <ItemStyle HorizontalAlign="center" />
                                                            </asp:TemplateColumn>
                                                            <asp:BoundColumn HeaderText="Sr No">
                                                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Right" />
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="Host" HeaderText="Host">
                                                                <HeaderStyle Wrap="False" />
                                                                <ItemStyle />
                                                            </asp:BoundColumn>
                                                          
                                                        </Columns>
                                                    </asp:DataGrid>
                                                </td>
                                            </tr>

                                        </table>
                                    </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                   <tr>
                    <td>
                        <table style="width: 1085px">
                            <tr>
                                <td align="left">
                                     <%--<Start: Changed by Mayuri C on 18-Sep-2020 for jira RHBUPINT 2286> --%>
                                          <asp:Panel ID="pnlRMGroups" CssClass="filter" Style="position: absolute; top: 207px; left: 400px; height: auto; padding: 5px; width: auto; background-color: #ffffff; border: 1px solid #cccccc"
                                        Visible="false" runat="server" ScrollBars="None">
                                          <%--<Start: Changed by Mayuri C on 18-Sep-2020 for jira RHBUPINT 2286> --%>
                                        <table class="tbl">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label6" runat="server" CssClass="lbl" Text="RM Group(s)"></asp:Label>
                                                </td>
                                                <%--      </tr>
                                                    <tr>--%>
                                                <td style="float: right;">
                                                    <asp:Button ID="btncloseRMGroups" runat="server" CssClass="btn" Text="X" ToolTip="close" Width="25" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 4px;"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <table>
                                                        <tr>
                                                            <td class="lblBlotterPaddingRight">
                                                                <asp:Label ID="Label7" runat="server" Text="RM Groups"></asp:Label>
                                                            </td>
                                                            <td class="ctlBlotterPaddingRight">
                                                                 <%-- Changed by Mayuri C on 22-Sep-2020 for jira RHBUPINT 2286 as per discussed with Nitin N and Sakshi B--%>
                                                                <asp:TextBox ID="txtRMGroups" onkeydown="EnterKeySearchByRMGroups(event)" runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnFindRMGroups" runat="server" CssClass="btn" Text="Find" ToolTip="Search RMGroups" Width="65px" />
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnApplyRMGroups" runat="server" CssClass="btn" Text="Apply" ToolTip="Apply RMGroups" Width="65px" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Label ID="lblErrorRMGroups" runat="server" CssClass="lbl" ForeColor="#333"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 4px;"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:DataGrid ID="dgRMGroups" runat="server" AllowPaging="True" AutoGenerateColumns="False" BorderStyle="None" CssClass="Grid" PageSize="10" Width="263px">
                                                        <HeaderStyle CssClass="GridHeader" />
                                                        <ItemStyle CssClass="GridItem" Wrap="False" />
                                                        <PagerStyle CssClass="GridPager" Mode="NumericPages" />
                                                        <Columns>

                                                            <asp:TemplateColumn>
                                                                <HeaderStyle HorizontalAlign="Right" />
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <HeaderTemplate>
                                                                    <asp:CheckBox ID="chkAllItems" runat="server" onclick="SelectSearchRMGroup(this)" Text=""  Visible="false" />
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="chkSelectedRMGroups" runat="server" onclick="chkAllCheckBoxRMGroup(this)" />
                                                                </ItemTemplate>
                                                                <ItemStyle HorizontalAlign="center" />
                                                            </asp:TemplateColumn>
                                                            <asp:BoundColumn HeaderText="Sr No">
                                                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Right" />
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="RM_Group_Name" HeaderText="RM GroupName">
                                                                <HeaderStyle Wrap="False" />
                                                                <ItemStyle />
                                                            </asp:BoundColumn>
                                                          
                                                        </Columns>
                                                    </asp:DataGrid>
                                                </td>
                                            </tr>

                                        </table>
                                    </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                         <tr>
                    <td>
                        <table style="width: 1085px">
                            <tr>
                                <td align="left">
                                     <%--   <Start:Change done by Mayuri C on 11-Sep-2020  for jira RHBUPINT 2273 Login RM MApping- Additional Issues post Search functionality as per discussed with Nitin N and Sakshi B --%>
                                          <asp:Panel ID="pnlRMs" CssClass="filter" Style="position: absolute; top: 207px; left: 620px; height: auto; padding: 5px; width: auto; background-color: #ffffff; border: 1px solid #cccccc"
                                        Visible="false" runat="server" ScrollBars="None">
                                  <%--   <End:Change done by Mayuri C on 11-Sep-2020  for jira RHBUPINT 2273 Login RM MApping- Additional Issues post Search functionality as per discussed with Nitin N and Sakshi B --%>
                                        <table class="tbl">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label8" runat="server" CssClass="lbl" Text="RM(s)"></asp:Label>
                                                </td>
                                                <%--      </tr>
                                                    <tr>--%>
                                                <td style="float: right;">
                                                    <asp:Button ID="btnCloseRMs" runat="server" CssClass="btn" Text="X" ToolTip="close" Width="25" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 4px;"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <table>
                                                        <tr>
                                                            <td class="lblBlotterPaddingRight">
                                                                <asp:Label ID="Label9" runat="server" Text="RMs"></asp:Label>
                                                            </td>
                                                            <td class="ctlBlotterPaddingRight">
                                                                 <%-- Changed by Mayuri C on 22-Sep-2020 for jira RHBUPINT 2286 as per discussed with Nitin N and Sakshi B--%>
                                                                <asp:TextBox ID="txtRMs" onkeydown="EnterKeySearchByRMs(event)" runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnFindRMs" runat="server" CssClass="btn" Text="Find" ToolTip="Search RMs" Width="65px" />
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnApplyRMs" runat="server" CssClass="btn" Text="Apply" ToolTip="Apply RMs" Width="65px" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Label ID="lblErrorRMs" runat="server" CssClass="lbl" ForeColor="#333"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="height: 4px;"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:DataGrid ID="dgRMs" runat="server" AllowPaging="True" AutoGenerateColumns="False" BorderStyle="None" CssClass="Grid" PageSize="10" Width="263px">
                                                        <HeaderStyle CssClass="GridHeader" />
                                                        <ItemStyle CssClass="GridItem" Wrap="False" />
                                                        <PagerStyle CssClass="GridPager" Mode="NumericPages" />
                                                        <Columns>

                                                            <asp:TemplateColumn>
                                                                <HeaderStyle HorizontalAlign="Right" />
                                                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                <HeaderTemplate>
                                                                    <asp:CheckBox ID="chkAllItems" runat="server" onclick="SelectSearchRMGroup(this)" Text=""  Visible="false"/>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="chkSelectedRMs" runat="server" onclick="chkAllCheckBoxRMGroup(this)" />
                                                                </ItemTemplate>
                                                                <ItemStyle HorizontalAlign="center" />
                                                            </asp:TemplateColumn>
                                                            <asp:BoundColumn HeaderText="Sr No">
                                                                <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Right" />
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="Rel_Manager_Name" HeaderText="Rel Manager Name">
                                                                <HeaderStyle Wrap="False" />
                                                                <ItemStyle />
                                                            </asp:BoundColumn>
                                                          
                                                        </Columns>
                                                    </asp:DataGrid>
                                                </td>
                                            </tr>

                                        </table>
                                    </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>


            </table>
                     
            </ContentTemplate>
         </asp:UpdatePanel>


<%--        <Triggers>
            <asp:PostBackTrigger ControlID="btnExport" />
        </Triggers>--%>

    
</asp:Content>