<%--'Replaced Customer with Counterparty and RM with Sales by Apurva K in all labels and messages || 25 May 2022|| Assigned by DJ--%>
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Customer_Group_Mapping.aspx.vb"
    Inherits="FinIQWebApp.Customer_Group_Mapping" MasterPageFile="~/FiniqAppMasterPage.Master" MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>
   
    <script type="text/javascript">
        function checkAllRow(objRef) {
            var GridView = objRef.parentNode.parentNode.parentNode;
            var inputList = GridView.getElementsByTagName("input");
            for (var i = 0; i < inputList.length; i++) {
                var row = inputList[i].parentNode.parentNode;
                if (inputList[i].type == "checkbox" && objRef != inputList[i]) {
                    if (objRef.checked) {
                        inputList[i].checked = true;
                    }
                    else {
                        inputList[i].checked = false;
                    }
                }
            }
        }
        function EnterKeyEvent(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

            if (code == 13 ) {
                document.getElementById('<%=btnSelectedGroup.ClientID%>').click();
        }
    }
        function EnterKeySearchByMappedCustomer(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

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

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

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

     <script type="text/javascript">

         window.onload = function () {
             try{
                 var setScrollPosition;
  
                 var list = document.getElementById("<%=lstGroupCust.ClientID%>");
                 setScrollPosition = Number(list.options.length)/2;
     
                 $("#ctl00_MainContent_lstGroupCust option:selected").each(function (i, selected) {
                     console.log(Number($(selected).index()))
                     if (Number($(selected).index()) < Number(setScrollPosition)) {

                           $("#ctl00_MainContent_lstGroupCust").scrollTop(0);
                    
                     } else {
                           $("#ctl00_MainContent_lstGroupCust").scrollTop($(list).prop("scrollHeight"));
       
                     }
                 });
             }catch(error){
             console.log(error.message)
             }
     }

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

     parameter.add_endRequest(function () {
         try {

            
        
         var setScrollPosition;

         var list = document.getElementById("<%=lstGroupCust.ClientID%>");
         setScrollPosition = Number(list.options.length) / 2;

         $("#ctl00_MainContent_lstGroupCust option:selected").each(function (i, selected) {
             console.log(Number($(selected).index()))
             if (Number($(selected).index()) < Number(setScrollPosition)) {

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

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

             }
         });
     }catch(error){
             console.log(error.message)
         }

     });
</script>

<%--<script type="text/javascript">
    var div = document.getElementById("DivID");
    var div_position = $("#ctl00_MainContent_positionhdn").val();

    window.onload = function () {
          

        div.scrollTop = div_position;
        div.onscroll = function () {
         $("#ctl00_MainContent_positionhdn").val(div.scrollTop)
        };
    };

    window.onbeforeunload = function () {
        $("#ctl00_MainContent_positionhdn").val(div.scrollTop)
    }
</script>--%>

    <script type="text/javascript">
     


        var dialogConfirmed = false;
        function ViewDialogDuplicate(obj, title, dialogText) {
            if ($("#pageName").html() != null) {
            }
            if (!dialogConfirmed) {
                $('html').append(String.Format("<div id='dialog' title='{0}'><div class='infoConfirmationBox' style='float:left; height:22px !important; width:22px !important; margin: 13px 15px 20px 10px;'></div><p> " + dialogText + " </p></div>", title));
                $('#dialog').dialog
                        ({
                            height: 180,
                            width: 390, // <CHANGE BY Nitin N on 25-Fen-2021 : Change done for message overflow to next line >
                            modal: true,
                            resizable: false,
                            draggable: true,
                            close: function (event, ui) { $('html').find('#dialog').remove(); },
                            buttons:
                            {
                                'Yes': function () {
                                    if (obj == "btnhdnDelete") {
                                        $("#ctl00_MainContent_btnhdnDelete").click();
                                    }
                                    else {
                                        $("#ctl00_MainContent_btnhdnMapped").click();
                                    }


                                    $(this).dialog('close');
                                },
                                'No': function () {
                                    $(this).dialog('close');
                                    $('html').find("#dialog").remove();
                                    return false;
                                }
                            }
                        });
            }

            return dialogConfirmed;
            $(".ui-widget-overlay").height($("body").height());
        }

    </script>

    <style type="text/css">
        div#default_IRR_Popup1 {
            width: 820px !important;
            height: 320px !important;
            overflow: scroll !important;
            border-width: 1px !important;
            border-color: Gray !important;
            position: relative !important;
        }
        /*td.locked2, th.locked2
        {
            text-align: center !important;
           position: relative !important;
            cursor: default !important;
            margin: 0px !important;
            top: expression(document.getElementById("default_IRR_Popup1").scrollTop);
        }*/
      
        /*Start Added by Varun Patyal on 26-Feb-2021 for UBPINT431*/
        .btn_padding {
            padding-right: 10px !important;
            padding-top: 5px !important;
        }
        /*End Added by Varun Patyal on 26-Feb-2021 for UBPINT431*/
      
        .GridItem td {
            /*text-align: center;*/
        }

        .selectCustGrid {
            width: 546px;
        }
        .colCenter {
           padding-left: 10px !important;
        }

        .table_collapseap {
            border-collapse: separate !important;
        }

        .tblPadding {
            padding: 5px !important;
        }

        .table_collapseap td {
            padding-left: 5px !important;
        }

        /*start:- added by rushikesh p on 28-jun-2020 for alignment issue*/
        .table_collapseap th {
            padding-left: 5px !important;
        }
        /*end:- added by rushikesh p on 28-jun-2020 for alignment issue*/


        .divLoading {
            position: absolute;
            left: 430px;
            top: 115px !important;
        }
        /*  .paddingRight th {
    padding-right: 22px !important;
}
   .GridHeaderTitle th:hover, .GridHeader th:hover, .GridHeader td:hover {
    background-repeat: no-repeat;
    background-position: right top;
    padding: 5px !important;
    padding-right: 22px !important;
}*/
    </style>


    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
       <asp:UpdateProgress ID="UpdateProgress2" 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>
            <asp:Panel ID="Panel1" runat="server" Width="1012px">
                <table>
                    <tr>

                        <td>
                            <asp:Label ID="lblError" runat="server" CssClass="lblError" ></asp:Label>
                            <asp:Label ID="lblInfo" runat="server" CssClass="lblInfo" ></asp:Label>
                              <%-- Added by Varun Patyal for ANZDCIUPIN-44(success message should be in green color.)--%>
						 <asp:Label ID="lblSuccess" runat="server"  CssClass="lblsuccess" Text=""></asp:Label>
                        </td>
                        <td></td>
                    </tr>
                  </table>

                  <table>
				     <tr>
                        <td style="white-space:nowrap; padding-left:5px;">

                            <asp:Label runat="server" width="105px" Text="Home Entity" CssClass="lbl"></asp:Label>
                      <%--  </td>
                        <td class="lblBlotterPaddingRight">--%>
                            <asp:Label ID="lblHomeEntity" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        		<%--Changes made by Varun Patyal on 18-Mar-2021 for UBPINT-431--%>
                        <td style="white-space:nowrap; padding-left:5px; padding-top: 13px">
                            <asp:Label ID="lblEntity" Text="Entity" runat="server" width="87px" CssClass="lbl" Style="padding-right: 10px;"></asp:Label>
                            <asp:DropDownList runat="server" ID="ddlEntity" CssClass="ddl" AutoPostBack ="true" Width="200px" TabIndex ="1" />
                        </td>

                    </tr>
                      <tr><td style="height:10px;"></td></tr>
                    <tr>
                        <td style="vertical-align: top;" class="tblPadding">
                            <table class="Filter table_collapseap" style="width: 305px; height:765px; ">
                                 <tr><td colspan="3" style="height:4px;"></td></tr>
                                <tr>
                                    <td style="white-space:nowrap;" colspan="3" >

                                        <asp:Label ID="lblSelected" runat="server" Text="Selected Counterparty Group" />

                                     <asp:Label ID="lblSelectedCustomerGroup" runat="server" ForeColor="#FF66CC" />
                                    </td>
                                </tr>
                                <tr><td colspan="3" style="height:4px;"></td></tr>
                                <tr>
                                	<%--Changes made by Varun Patyal on 17-Mar-2021 for UBP--%>

                                    <td  >
                                        <asp:TextBox ID="txtCGSearch" onKeyDown="EnterKeyEvent(event)" runat="server" Width="150px" TabIndex ="2" ></asp:TextBox>
                                         </td  >
                                    <%--Changes made by Varun Patyal on 17-Mar-2021 for UBP--%>
                                    <td >
                                     <asp:Button ID="btnSelectedGroup" runat="server" CssClass="btnSearch" TabIndex ="3"  />
                                        </td  >
                                    <%--Changes made by Varun Patyal on 17-Mar-2021 for UBP--%>
                                     <td  >
                                      <asp:Button ID="btnLoadGroup" runat="server" CssClass="btn" Text="All Groups" Width="70px" TabIndex ="4" Style="margin-left:10px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 305px; height: 674px;" colspan="3">

                                       <%-- <div runat="server" id="DivID" style =" width: 400px; height: 660px; overflow:hidden ;POSITION: relative;">--%>
                                            <asp:ListBox ID="lstGroupCust"   runat="server" AutoPostBack="true" Style="width: 277px; height: 660px; "></asp:ListBox>
                                      <%--  </div>--%>
                              

                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td style="vertical-align: top;" class="tblPadding">
                            <%--Added by Varun Patyal on 17-Mar-2021 for UBP--%>
                            <table class="Filter table_collapseap" style="width: 630px; height: 765px;">
                            <%--    <tr>
                                    <td style="vertical-align: top;">
                                        <table style="margin-top: -3px; margin-right: -3px; margin-bottom: -3px;">--%>
                                             <tr><td style="height:9px;" colspan="8"></td></tr>
                                            <tr>
                                                <td colspan="8" style="vertical-align:top;height:25px;">
                                                    <asp:Label ID="lblGroupCustomer" runat="server" Text="Group Counterparty(s) " />

                                                    <asp:Label ID="lblSelectedGroup" runat="server" ForeColor="#FF66CC" />
                                                </td>
                                            </tr>
                                             <%--<tr><td class="btn_padding" style="height:4px;" colspan="8"></td></tr>--%>
                                            <tr>
                                                <td class="btn_padding" colspan="8"  style="vertical-align:top;height:18px;">
                                                    <asp:DropDownList ID="ddlMappedCustomerSearch" runat="server" CssClass="ddl" Width="200px" TabIndex ="5" >
                                                    </asp:DropDownList>
                                                 
                                           <%--  </td><td>--%>
                                                
                                                       <asp:TextBox class="btn_padding" ID="txtMappedCustomer" runat="server" TabIndex ="6" CssClass="txt" Style="width: 188px" ></asp:TextBox>
                                              <%--  </td><td style="width :100px !important ;">--%>
                                                  
                                               
                                                    <asp:Button ID="btnLoadMapCustomer" TabIndex ="7"  runat="server" CssClass="btnSearch" Height="20px" style="padding-top:5px!important  " />
                                        <%--   </td><td>--%>
                                                   
                                                
                                                    <asp:Button ID="btnAllMappedCustomer" TabIndex ="8"  runat="server" CssClass="btn" Text="All" Width="70px" Style="margin-left:10px; " />
                                                    
                                                         
                                              <%-- </td><td>  --%>   <asp:Button ID="btnDelete" TabIndex ="9"  runat="server" CssClass="btn"  Text="Delete" Width="70px" Style="margin-left:5px; " />
                                                </td>

                                            </tr>
                                            <tr ><td style="height:4px;vertical-align:top;"  colspan="8"></td>
                                            </tr> 
                                             <tr>
                                                <td style="width: 550px;vertical-align:top;" colspan="5">
                                                    <asp:GridView ID="grdMappedCustomer" runat="server" AllowPaging="true" AllowSorting="False" AutoGenerateColumns="false" autopostback="true" CssClass="Grid selectCustGrid" PageSize="10" ShowHeaderWhenEmpty="true" Style="white-space: nowrap; text-overflow: ellipsis" Visible="true">
                                                        <PagerStyle CssClass="GridPager"  />
                                                        <SelectedRowStyle CssClass="GridItemSelect" />
                                                        <RowStyle CssClass="GridItem" />
                                                        <HeaderStyle CssClass="GridHeader" />
                                                        <FooterStyle CssClass="GridFooter" />
                                                        <Columns>
                                                            <asp:TemplateField  HeaderStyle-Width="20px" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20px">
                                                                <HeaderStyle HorizontalAlign="Center" CssClass="locked2"/>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <HeaderTemplate >

                                                                   <%-- start:- changed by Rushikesh P on 28-jun-2020 for alignment issue--%>
                                                                    <%--<asp:CheckBox ID="chkAllMappedCustomer" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkAllMappedCustomer_CheckedChanged" Style="padding-left: 5px !important;" Visible="true" CssClass="locked2" />--%>
                                                                    <asp:CheckBox ID="chkAllMappedCustomer" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkAllMappedCustomer_CheckedChanged"  Visible="true" CssClass="locked2" />
                                                                    <%-- End:- changed by Rushikesh P on 28-jun-2020 for alignment issue--%>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="chkSinglemappedCustomer" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkMappedCustomer_CheckedChanged" Visible="true" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="BCFX_ID" HeaderText="BCFX ID" SortExpression="BCFX_ID" Visible="false">
                                                                <HeaderStyle Font-Bold="False" Wrap="True" />
                                                                <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="TLT_ID" HeaderText="TLT ID" SortExpression="TLT_ID" Visible="false">
                                                                <HeaderStyle Font-Bold="False" Wrap="True" />
                                                                <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="RM_ID" HeaderText="RM ID" SortExpression="RM_ID" Visible="false">
                                                                <HeaderStyle Font-Bold="False" Wrap="True" />
                                                                <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="Allocation_Code" HeaderText="Allocation Code" SortExpression="Allocation_Code" Visible="false">
                                                                <HeaderStyle Font-Bold="False" Wrap="True" />
                                                                <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" Visible="false">
                                                                <HeaderStyle Font-Bold="False" Wrap="True" />
                                                                <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="CustomerId" HeaderText="ID" SortExpression="CustomerId" >
                                                                <HeaderStyle Font-Bold="False" Wrap="True" />
                                                                <ItemStyle HorizontalAlign="Right" Wrap="False"  Width ="20"/>
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="CustomerName" HeaderText="Mapped Counterparty List" SortExpression="CustomerName" >
                                                                <HeaderStyle Font-Bold="False" Wrap="True" />
                                                                <ItemStyle HorizontalAlign="Left" Wrap="False"  Width ="250"/>
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="AIO_Account_No" HeaderText="AIO Account No" SortExpression="AIO_Account_No" Visible="false">
                                                                <HeaderStyle Font-Bold="False" Wrap="True" />
                                                                <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="PrimaryPool_YN" HeaderText="PrimaryPool YN" SortExpression="PrimaryPool_YN" Visible="false">
                                                                <HeaderStyle Font-Bold="False" Wrap="True" />
                                                                <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                            </asp:BoundField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </td>
                                            </tr>
                                        </table>
                        </td>
                        <td style="vertical-align: top;" class="tblPadding">
                            <table class="Filter table_collapseap" style="width: 562px; height:765px;">                             
                                 <tr><td style="height:9px;" colspan="8"></td></tr>
                                <tr>
                                    <td colspan="8" style="vertical-align:top;height:25px;">
                                        <asp:Label ID="lblStatus" runat="server" Text="Select counterparty(s) for mapping to selected counterparty group" />
                                        <asp:Label ID="lblStatusInfo" runat="server" />
                                    </td>
                                </tr>
                                 <tr><td colspan="8" style="height:4px; "></td></tr>
                                <tr>
                                    <td colspan="8"  style="vertical-align:top;height:18px;">
                                        <asp:DropDownList ID="ddlCustomerSearch" runat="server" TabIndex ="10"  CssClass="ddl" Width="130px" Style="padding-right: 10px">
                                        </asp:DropDownList>
                                        <asp:TextBox ID="txtCustomer" TabIndex ="11"  Style="width: 150px; margin-right:10px" runat="server"></asp:TextBox>
                                        <asp:Button ID="btnCustomerSearch" TabIndex ="12"  runat="server" CssClass="btnSearch" Style="margin-right:10px" />
                                        <asp:Button ID="btnAllCustomer" runat="server" TabIndex ="13"  CssClass="btn" Text="All" Width="70px" Style="margin-right:10px" />
                                        <asp:Button ID="btnInsert" runat="server" TabIndex ="14"  CssClass="btn" Text="Map" Width="70px" Style="margin-right:10px" />
                                    </td>
                                </tr>
                               <tr><td style="height:4px;vertical-align:top;"  colspan="8"></td></tr>
                                <tr>
                                    <td style="width: 550px;vertical-align:top;" colspan="5" ><%--   <div id="default_IRR_Popup1">--%>
                                       
                                        <asp:GridView ID="grdCustomerList"   runat="server" AllowPaging="true" AllowSorting="false" AutoGenerateColumns="false" autopostback="true"  CssClass="Grid selectCustGrid" PageSize="10" ShowHeaderWhenEmpty="true" Style="white-space: nowrap; text-overflow: ellipsis;" Visible="true">
                                            <PagerStyle CssClass="GridPager" />
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
 
                                            <Columns>
                                               <%-- <asp:TemplateField  HeaderStyle-Width="20px" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20px">
                                                    <HeaderStyle HorizontalAlign ="Center" CssClass="locked2"/>
                                                    <ItemStyle HorizontalAlign="Center"/>
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="chkAll" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkAll_CheckedChanged" Style="padding-left: 5px !important;" Visible="true" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkSingle" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkGrid_CheckedChanged" Visible="true" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>
                                                 <asp:TemplateField  HeaderStyle-Width="20px" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20px">
                                                    <HeaderStyle HorizontalAlign ="Center" CssClass="locked2"/>
                                                    <ItemStyle HorizontalAlign="Center"/>
                                                    <HeaderTemplate>
                                                        <%-- start:- changed by Rushikesh P on 28-jun-2020 for alignment issue--%>
                                                     <%--   <asp:CheckBox ID="chkAll" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkAll_CheckedChanged" Style="padding-left: 5px !important;" Visible="true" />--%>
                                                        <asp:CheckBox ID="chkAll" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkAll_CheckedChanged" Visible="true" />
                                                        <%-- end:- changed by Rushikesh P on 28-jun-2020 for alignment issue--%>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkSingle" runat="server" AutoPostBack="true" Enabled="true" OnCheckedChanged="chkGrid_CheckedChanged" Visible="true" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="BCFX_ID" HeaderText="BCFX ID" SortExpression="BCFX_ID" Visible="false">
                                                    <HeaderStyle Font-Bold="False" Wrap="True" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TLT_ID" HeaderText="TLT ID" SortExpression="TLT_ID" Visible="false">
                                                    <HeaderStyle Font-Bold="False" Wrap="True" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="RM_ID" HeaderText="RM ID" SortExpression="RM_ID" Visible="false">
                                                    <HeaderStyle Font-Bold="False" Wrap="True" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Allocation_Code" HeaderText="Allocation Code" SortExpression="Allocation_Code" Visible="false">
                                                    <HeaderStyle Font-Bold="False" Wrap="True" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" Visible="false">
                                                    <HeaderStyle Font-Bold="False" Wrap="True" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="CustomerId" HeaderText="ID" SortExpression="CustomerId" Visible="false">
                                                    <HeaderStyle Font-Bold="False" Wrap="True" />
                                                    <ItemStyle HorizontalAlign="Right" Wrap="False" Width ="20" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="CustomerName" HeaderText="Counterparty Name" SortExpression="CustomerName" Visible="false">
                                                    <HeaderStyle Font-Bold="False" Wrap="True" />
                                                    <ItemStyle HorizontalAlign="Left" Wrap="False" Width ="350"/>
                                                </asp:BoundField>
                                                <asp:BoundField DataField="AIO_Account_No" HeaderText="AIO Account No" SortExpression="AIO_Account_No" Visible="false">
                                                    <HeaderStyle Font-Bold="False" Wrap="True" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PrimaryPool_YN" HeaderText="PrimaryPool YN" SortExpression="PrimaryPool_YN" Visible="false">
                                                    <HeaderStyle Font-Bold="False" Wrap="True" />
                                                    <ItemStyle HorizontalAlign="Center" Wrap="False" />
                                                </asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                         <asp:HiddenField ID="txtconfirmRMCustomerRefresh" runat="server" />
                                <%--        </div>--%>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                </table>
                                                                <asp:TreeView ID="tvwGroupCust" runat="server" autopostback="true" HoverNodeStyle-Font-Bold="true" PathSeparator="\" ShowExpandCollapse="true" ShowLines="true" Visible="false"></asp:TreeView>
            </asp:Panel>
    <asp:Button ID="btnhdnDelete" runat="server" Width="0" Style="width: 0px; height: 0px; font-size: 0; border: none; display: none;" />
    <asp:Button ID="btnhdnMapped" runat="server" Width="0" Style="width: 0px; height: 0px; font-size: 0; border: none; display: none;" />
        </ContentTemplate>
    </asp:UpdatePanel>
   

</asp:Content>

