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

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">


    <%--    <script type="text/javascript" src='<%=ResolveClientUrl("~/FinIQJS/ui/1.11.4/jquery-ui.js")%>'></script>
    <link rel="stylesheet" href="/../code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">--%>
    <%-- <link rel="stylesheet" href='<%=ResolveClientUrl("~/FinIQJS/jquery-ui.min.css")%>' />--%>
    <%--<link rel="stylesheet" href='FinIQJS/Jquery/jquery-ui.css' />--%>
    <script src="../FinIQJS/conformationBox.js" language="javascript" type="text/javascript"></script>

    <script type="text/javascript">
        

        // <ManasiA || 19-Apr-2021 || Removed JS functions--%>
        //function checkAll() {
        //    for (i = 0; i < document.getElementById('tabs_1').getElementsByTagName('input').length ; i++) {
        //        elm = document.getElementById('tabs_1').getElementsByTagName('input')[i];
        //        if (elm.type == 'checkbox') {
        //            if (document.getElementById("chk_all").checked == true)
        //                elm.checked = true;
        //            else
        //                elm.checked = false;
        //        }

        //    }
        //}


        //function checkAll1() {
        //    for (i = 0; i < document.getElementById('tabs_2').getElementsByTagName('input').length; i++) {
        //        elm1 = document.getElementById('tabs_2').getElementsByTagName('input')[i];

        //        if (elm1.type == 'checkbox') {
        //            if (document.getElementById("chk_all1").checked == true) {
        //                elm1.checked = true;

        //            }

        //            else {
        //                elm1.checked = false;

        //            }

        //        }
        //    }
        //}


        //function checkAll2() {
        //    for (i = 0; i < document.getElementById('tabs_3').getElementsByTagName('input').length; i++) {
        //        elm1 = document.getElementById('tabs_3').getElementsByTagName('input')[i];

        //        if (elm1.type == 'checkbox') {
        //            if (document.getElementById("chk_all2").checked == true)
        //                elm1.checked = true;
        //            else
        //                elm1.checked = false;
        //        }
        //    }
        //}

    </script>
    <style type="text/css">
/* ManasiA || 11-May-2021 || UBPINT-827 : Changes done for expand collapse grid functionality */
      
        .ui-widget-header {
            background-color: #FFFFFF !important;
            border: solid 0px #DDDDDD;
        }

        .ui-widget.ui-widget-content {
            /*border-bottom: solid 1px #DDDDDD !important;*/
            border: 0px !important; /* <ManasiA || 19-Apr-2021 || Removed tab border */
        }

        .divTabs {
            min-width: 1200px;
        }

        .LoginGroupID {
            min-width: 120px !important;
            max-width: 120px !important;
        }

        /* Added By Sudhir Mali on 15-Nov-2019 as per told by Sijo sir --------- Start ---------------------
            Purpose : Select tab’s text in the File -> Pending Proposals For Checker is not clear.  */

        .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
            color: #000 !important;
            background-color: #DDDDDD !important;
        }

        /* ------------------------ End (15-Nov-2019) ----------------------------------------------------*/
     
	   /* ManasiA / ShekharL || 09-Jun-2021 || UBPINT-827 : Changes done for expand collapse grid functionality */
	    .childRow:empty, .childRow td, .childRow td div:empty{
            
        }

        #ctl00_MainContent_tabs.ui-tabs .ui-tabs-panel {
    padding: 0px;
    border: none 1px #DDDDDD;
    border-top: solid 1px #DDDDDD;
} 

        .Grid .Grid .GridHeader, .Grid .Grid .GridHeader th{
             background-color: #FFFFFF !important;
        }

        .Grid .Grid .GridItem, .Grid .Grid .GridItem td, .Grid .Grid .GridHeader, .Grid .Grid .GridHeader th, .Grid .Grid{
            border-style:none !important;
            border-bottom:solid 1px transparent !important;
            border-top:solid 1px transparent !important;
        }
        .CheckerGrid{
             border:solid 1px #dddddd !important;           
        }
       
        .CheckerGrid table, .CheckerGrid .GridItem, .CheckerGrid .GridItem td, .CheckerGrid .GridHeader, .CheckerGrid .GridHeader th {
            border-style:none !important;
            border-bottom:solid 1px #dddddd !important;
            border-top:solid 1px transparent !important;
            padding:5px 8px;
              background-color: #FFFFFF !important;
               font-family:'Segoe UI',"Helvetica Neue", Helvetica, Verdana, Arial, sans-serif, Montserrat;
             font-size:12px;
        }
		 .CheckerGrid .CheckerGrid, .CheckerGrid table .GridItem, .CheckerGrid table .GridItem td, .CheckerGrid table .GridHeader, .CheckerGrid table .GridHeader th {
            border-style:none !important;
            border-bottom:solid 1px transparent !important;
            border-top:solid 1px transparent !important;
            padding:5px 8px;
              background-color: #FFFFFF !important;
               font-family:'Segoe UI',"Helvetica Neue", Helvetica, Verdana, Arial, sans-serif, Montserrat;
             font-size:12px;
        }
        .CheckerGrid .GridHeader th{
             background-color: #F7F7F7 !important;
             font-weight:600;
             font-family:'Segoe UI',"Helvetica Neue", Helvetica, Verdana, Arial, sans-serif, Montserrat;
             font-size:12px;
              border-top:solid 1px #dddddd !important;
        }
        .CheckerGrid table{
             border-style:none !important;
        }
       /* .CheckerGrid .childRow:hover{
            background-color: #F7F7F7 !important;
        }*/
        /*  ManasiA / ShekharL || 09-Jun-2021 || UBPINT-827 : Changes done for expand collapse grid functionality */
    </style>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <%--ManasiA || 19-Apr-2021 || Added table to show proper page layout --%>
            <table>
                <tr>
                    <td>

                        <div id="tabs" runat="server">

                            <ul>
                                <li id="Li1" runat="server"><a href="#tabs_1">Status Maintenance</a></li>
                                <li id="Li2" runat="server"><a href="#tabs_2">Login Deletion</a></li>
                                <li id="Li3" runat="server"><a href="#tabs_3">Modified User Details</a></li>
                            </ul>
                            <div id="tabs_1" class="divTabs">
                                <table>
                                    <%--  <tr>
                    <td nowrap="nowrap" class="background_gray">
                       Status Maintenance
                    </td>
                </tr>--%>
                                    <tr>
                                        <td style="height: 6px;"></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblError" runat="server" CssClass="lblerror" Style="margin-left: 10px"></asp:Label>
                                            <asp:Label ID="lblInfo" runat="server" CssClass="lblInfo" Style="margin-left: 10px"></asp:Label>
                                            <asp:Label ID="lblSuccess" runat="server" CssClass="lblSuccess" Style="margin-left: 10px"></asp:Label>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>


                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Button ID="BtnLoad" runat="server" CssClass="btn" Text="Load(F5) " Width="80px" />
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="BtnApprove" runat="server" CssClass="btn" Text=" Approve " Width="80px" />
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="BtnReject" runat="server" CssClass="btn" Text=" Reject " Width="80px" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3" style="height: 6px;"></td>
                                                </tr>
                                            </table>



                                        </td>
                                    </tr>

                                    <tr>
                                        <td>

                                            <% Dim scrollPosURL1 As String = "ScrollPos.htc"%>

                                <div style="behavior: url(<%= ResolveUrl(scrollPosURL1)%>); overflow: auto;  height: 416px;"
                                    scrollpos="<%= saveScrollPos.value %>" persistid="<%= saveScrollPos.UniqueID %>">
                                  
                                       <%--ManasiA || 19-Apr-2021 || Modified Datagrid into Gridview --%>
                                                <%--  <asp:DataGrid ID="dtgChecker" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                                    CellPadding="3" CssClass="Grid">--%>
                                                <asp:GridView ID="dtgChecker" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="10" CssClass="Grid"
                                                    AllowSorting="true" ShowHeaderWhenEmpty="true">
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <PagerStyle CssClass="GridPager" />

                                                    <Columns>
                                                        <asp:TemplateField>
                                                            <HeaderTemplate>
                                                                <%--   <input id="chk_all" onclick="checkAll()" type="checkbox">--%>

                                                                <asp:CheckBox ID="chk_all" OnCheckedChanged="checkAllStatus" AutoPostBack="true" runat="server" Enabled="true" Checked="false" />


                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:CheckBox ID="chk_AppId" OnCheckedChanged="checkTextBox" AutoPostBack="true" runat="server" Enabled="true" Checked="false" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:BoundField DataField="UserID" HeaderText="Login">

                                                            <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundField>
                                             <asp:TemplateField HeaderText="ProposalID" Visible="False">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblProposalIdSM" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ProposalID")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                   

                                           <%-- <asp:BoundField DataField="ProposalID" Visible="false" HeaderText="ProposalID">

                                                <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundField>--%>
                                            <asp:TemplateField HeaderText="ProposalTimeStamp" Visible="False">
                                                <ItemTemplate>
                                                    <asp:Label ID="LSPTimestamp" runat="server" Text='<%# Convert.ToBase64String(DataBinder.Eval(Container, "DataItem.ProposalTimeStamp"))%>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="UserGroupID" HeaderText="Group Id">

                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ProposedAction" HeaderText="Proposed Action">

                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundField>
                                            <asp:BoundField DataField="StatusReason" HeaderText="Status Reason">

                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ProposedBy" HeaderText="Maker">

                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ProposedOn" HeaderText="Maker Action At">

                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundField>
                                            <%-- <asp:TemplateColumn HeaderText="Checker Remark">
                                                     <EditItemTemplate>
                                                         <asp:TextBox runat="server" Text=""></asp:TextBox>
                                                     </EditItemTemplate>
                                                     <ItemTemplate>
                                                         <asp:Label runat="server"></asp:Label>
                                                     </ItemTemplate>
                                                </asp:TemplateColumn>--%>
                                            <asp:TemplateField HeaderText="Checker Remark">
                                                <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt_CheckrRemark" runat="server" Visible="False" />
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    <asp:TextBox ID="txt_CheckrRemark1" runat="server" Visible="False"></asp:TextBox>
                                                </FooterTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                       <%-- <PagerStyle CssClass="GridFooter" HorizontalAlign="Left" Mode="NumericPages" />--%>
                                    </asp:GridView>
                                </div>
                                <input id="saveScrollPos" type="hidden" name="saveScrollPos" runat="server" />

                            </td>
                        </tr>
                    </table>
                </div>
                <div id="tabs_2" class="divTabs">
                    <table>
                        <%-- <tr>
                    <td nowrap="nowrap" class="background_gray">
                       Login Deletion
                    </td>
                </tr>--%>
                        <tr>
                            <td style="height: 6px;"></td>
                        </tr>
                         <tr>
                            <td>
                                <asp:Label ID="lblErrorD" runat="server" CssClass="lblerror" style="margin-left:10px"  ></asp:Label>
                                <asp:Label ID="lblInfoD" runat="server" CssClass="lblInfo" style="margin-left:10px" ></asp:Label>
                                <asp:Label ID="lblSuccessD" runat="server" CssClass="lblSuccess" style="margin-left:10px"  ></asp:Label>
                            </td>
                        </tr>

                        <tr>
                            <td>

                                <table>
                                    <tr>
                                        <td>
                                            <asp:Button ID="BtnLoadLD" runat="server" CssClass="btn" Text="Load(F5) " Width="80px" />
                                        </td>
                                        <td>
                                            <asp:Button ID="BtnApproveLD" runat="server" CssClass="btn" Text=" Approve " Width="80px" />
                                        </td>
                                        <td>
                                            <asp:Button ID="BtnRejectLD" runat="server" CssClass="btn" Text=" Reject " Width="80px" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td colspan="3" style="height: 6px;"></td>
                                    </tr>
                                </table>

                                </td>
                        </tr>

                        <tr>
                            <td>
                                <table>
                                    <tr class="">
                                        <td class="" valign="top">
                                            <% Dim scrollPosURL As String = "ScrollPos.htc"%>
                                            <div style="behavior: url(<%= ResolveURL(scrollPosURL)%>); overflow: auto; height: 416px;"
                                                scrollpos="<%= saveScrollPos.value %>" persistid="<%= saveScrollPos.UniqueID %>" id="divT">
                                                <%--Kapil - width: 840 to REMOVED--%>
                                                <%--ManasiA || 08-Apr-2021 || Modified Datagrid into Gridview --%>
                                                <%--  <asp:DataGrid ID="dtgLoginDelete" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                                    CellPadding="3" CssClass="Grid">--%>
                                                <asp:GridView ID="dtgLoginDelete" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="10" CssClass="Grid"
                                                    AllowSorting="true" ShowHeaderWhenEmpty="true">
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <PagerStyle CssClass="GridPager" />
                                                    <Columns>
                                                        <asp:TemplateField>
                                                            <headertemplate>
                                                                <%--<input id="chk_all1" onclick="checkAll1()" type="checkbox" />--%>
                                                                   <asp:CheckBox ID="chk_all1" OnCheckedChanged="checkAllDelete" AutoPostBack="true" runat="server" Enabled="true" Checked="false" />

                                                            </headertemplate>
                                                            <itemtemplate>
                                                                <asp:CheckBox ID="chk_AppId1" OnCheckedChanged="checkTextBox1" AutoPostBack="true" runat="server" Enabled="true" Checked="false" />

                                                            </itemtemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="UserID" HeaderText="Login" HeaderStyle-CssClass="LoginGroupID">

                                                            <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" CssClass="LoginGroupID"></ItemStyle>
                                                        </asp:BoundField>
														  <%--ManasiA || 19-Apr-2021 || To get propsal id value --%>
                                                         <asp:TemplateField HeaderText="ProposalID" Visible="False">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblProposalId" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ProposalID")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    
                                                        <asp:TemplateField HeaderText="ProposalTimeStamp" Visible="False">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LSPTimestamp1" runat="server" Text='<%# Convert.ToBase64String(DataBinder.Eval(Container, "DataItem.ProposalTimeStamp"))%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="UserGroupID" HeaderText="Group Id" HeaderStyle-CssClass="LoginGroupID">

                                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle" CssClass="LoginGroupID"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ProposedBy" HeaderText="Maker">

                                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="ProposedOn" HeaderText="Maker Action At">

                                                            <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="Checker Remark">
                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txt_CheckrRemarkLD" runat="server" Visible="False" />
                                                            </ItemTemplate>
                                                            <FooterTemplate>
                                                                <asp:TextBox ID="txt_CheckrRemark1LD" runat="server" Visible="False"></asp:TextBox>
                                                            </FooterTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                  </asp:GridView>
                                                <%--</asp:DataGrid>--%>
                                            </div>
                                            <input id="Hidden1" type="hidden" name="saveScrollPos" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </div>
                <%--Changes by Akshata --%>
                <div id="tabs_3" class="divTabs">
                    <table>
                        <%-- <tr>
                    <td style="border-bottom:0px !important" nowrap="nowrap" class="background_gray">    <%--Kapil - added border-bottom:0px- -%>
                    Modified User Details
                    </td>
                </tr>--%>
                                                <tr>
                                                    <td style="height: 6px;"></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblErrorM" runat="server" CssClass="lblerror" Style="margin-left: 10px"></asp:Label>
                                                        <asp:Label ID="lblInfoM" runat="server" CssClass="lblInfo" Style="margin-left: 10px"></asp:Label>
                                                        <asp:Label ID="lblSuccessM" runat="server" CssClass="lblSuccess" Style="margin-left: 10px"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>


                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Button ID="btnLoad_LM" runat="server" CssClass="btn" Text="Load(F5) " Width="80px" />
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btnApprove_AM" runat="server" CssClass="btn" Text=" Approve " Width="80px" />
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btnReject_RM" runat="server" CssClass="btn" Text=" Reject " Width="80px" />
                                                    </td>
                                                </tr>

                                                <tr>
                                                    <td colspan="3" style="height: 6px;"></td>
                                                </tr>
                                            </table>

                                            <table>
                                                <tr>
                                                    
                                                    <td>
                                                        <% Dim scrollPosURL2 As String = "ScrollPos.htc"%>
                                                        <div style="behavior: url(<%= ResolveUrl(scrollPosURL2)%>); overflow: auto;"
                                                            scrollpos="<%= saveScrollPos.Value%>" persistid="<%= saveScrollPos.UniqueID%>">
                                                            <%--Kapil - width: 722 to REMOVED--%>
                                                            <%--ManasiA || 08-Apr-2021 || Modified Datagrid into Gridview --%>
                                                            <%--  <asp:DataGrid ID="grdCRMakerDetails" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                        CellPadding="3" CssClass="Grid">--%>
                                                            <%--Kapil - width: 722 to 979px--%>
                                                            <asp:GridView ID="grdCRMakerDetails" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="10" CssClass="CheckerGrid"
                                                                AllowSorting="true" ShowHeaderWhenEmpty="true">
                                                                <RowStyle CssClass="GridItem" />
                                                                <HeaderStyle CssClass="GridHeader" />
                                                                <FooterStyle CssClass="GridFooter" />
                                                                <PagerStyle CssClass="GridPager" />
                                                                   <AlternatingRowStyle CssClass="GridItem"  />
                                                                <Columns>

                                                                    <asp:TemplateField>
                                                                        <HeaderTemplate>
                                                                            <%--<input id="chk_all2" onclick="checkAll2()" type="checkbox">--%>
                                                                            <asp:CheckBox ID="chk_all2" OnCheckedChanged="checkAllUpdate" AutoPostBack="true" runat="server" Enabled="true" Checked="false" />
                                                                        </HeaderTemplate>
                                                                        <ItemTemplate>
                                                                            <asp:CheckBox ID="chk_AppId2" OnCheckedChanged="checkTextBox2" AutoPostBack="true" runat="server" Enabled="true" Checked="false" />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                              <%--  ManasiA || 11-May-2021 || UBPINT-827 : Changes done for expand collapse grid functionality --%>
                                                                    <asp:TemplateField>

                                                                        <ItemTemplate>

                                                                            <asp:ImageButton ID="ImgBtnImageDisplay" CommandName="Select" Height="18px" Width="18px"
                                                                                runat="server" ImageUrl="../App_Resources/plus1.png" />

                                                                            
                                                                        </ItemTemplate>

                                                                    </asp:TemplateField>

                                                                    <asp:BoundField DataField="UserID" HeaderText="Login" ItemStyle-Width="100px">
                                                                        <Headerstyle HorizontalAlign="Left" />
                                                                        <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>



                                                                    <asp:BoundField DataField="UserGroupID" HeaderText="Group ID" ItemStyle-Width="150px">
                                                                         <Headerstyle HorizontalAlign="Left" />
                                                                        <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>




                                                                    <asp:BoundField DataField="Old_ExternalID" HeaderText="Old External ID" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>


                                                                    <asp:BoundField DataField="New_ExternalID" HeaderText="New External ID" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>


                                                                    <asp:BoundField DataField="Old_Host" HeaderText="Old Host" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>

                                                                    <asp:BoundField DataField="New_Host" HeaderText="New Host" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>

                                                                    <asp:BoundField DataField="Old_PrimaryEmailAddress" HeaderText="Old PrimaryEmailAddress" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>

                                                                    <asp:BoundField DataField="New_PrimaryEmailAddress" HeaderText="New PrimaryEmailAddress" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>


                                                                    <asp:BoundField DataField="Old_SecondaryEmailAddress" HeaderText="Old_SecondaryEmailAddress" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>


                                                                    <asp:BoundField DataField="New_SecondaryEmailAddress" HeaderText="New_Secondary_Email_Address" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>


                                                                    <asp:BoundField DataField="Old_PrimaryPhoneNumber" HeaderText="Old_PrimaryPhoneNumber" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>

                                                                    <asp:BoundField DataField="New_PrimaryPhoneNumber" HeaderText="New Primary Phone Number" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>


                                                                    <asp:BoundField DataField="Old_SecondaryPhoneNumber" HeaderText="Old_SecondaryPhoneNumber" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>


                                                                    <asp:BoundField DataField="New_SecondaryPhoneNumber" HeaderText="New_SecondaryPhoneNumber" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>


                                                                    <asp:BoundField DataField="Old_LoginADDomain" HeaderText="Old_LoginADDomain" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>


                                                                    <asp:BoundField DataField="New_LoginADDomain" HeaderText="New_LoginADDomain" Visible="false">

                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>



                                                                    <asp:BoundField DataField="ProposedBy" HeaderText="Maker" ItemStyle-Width="140px" >
                                                                         <Headerstyle HorizontalAlign="Left" />
                                                                        <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>

                                                                    <asp:BoundField DataField="ProposedOn" HeaderText="Maker Action At" ItemStyle-Width="160px">
                                                                         <Headerstyle HorizontalAlign="Left" />
                                                                        <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                                    </asp:BoundField>

                                                                    <%--ManasiA || 19-Apr-2021 || To access proposal id value --%>
                                                                    <%--  <asp:BoundField DataField="ProposalID" Visible="false" HeaderText="ProposalID">

                                                <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundField>--%>

                                                                    <asp:TemplateField HeaderText="ProposalID" Visible="False">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblProposalIdUp" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ProposalID")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>


                                                                    <asp:TemplateField HeaderText="ProposalTimeStamp" Visible="False">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="LSPTimestamp2" runat="server" Text='<%# Convert.ToBase64String(DataBinder.Eval(Container, "DataItem.ProposalTimeStamp"))%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

 <%--  ManasiA || 11-May-2021 || UBPINT-827 : Changes done for expand collapse grid functionality --%>

                                                                    <asp:TemplateField HeaderText="Checker Remark" ItemStyle-Width="180px">
                                                                        <ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="txt_CheckrRemarkLM" runat="server" Visible="False" width="180px" />
                                   
                             
                                                                              <tr id="trChild" runat="server" visible="false" class="childRow">
                                                                                <td colspan="23">
                                                                                    <asp:GridView ID="grdCRDetails" runat="server" AllowSorting="True" AutoGenerateColumns="true"
                                                                                        CellPadding="3" CssClass="">
                                                                                        <%--Kapil - width: 722 to 823px--%>

                                                                                        <RowStyle CssClass="GridItem" />
                                                                                        <HeaderStyle CssClass="GridHeader" />
                                                                                        <FooterStyle CssClass="GridFooter" />
                                                                                        <PagerStyle CssClass="GridPager" />
                                                                                        <AlternatingRowStyle CssClass="GridItem"  />
                                                                                        <Columns>


                                                                                            <asp:BoundField DataField="SRNO" HeaderText="SR No" ItemStyle-Width="170px">
                                                                                                <Headerstyle HorizontalAlign="Center" />
                                                                                                <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                                                            </asp:BoundField>


                                                                                            <asp:BoundField DataField="FieldName" HeaderText="Field Name" ItemStyle-Width="148px">
                                                                                                <Headerstyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                                                            </asp:BoundField>

                                                                                            <asp:BoundField DataField="OldValue" HeaderText="Old Value" ItemStyle-Width="141px">
                                                                                                 <Headerstyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                                                            </asp:BoundField>


                                                                                            <asp:BoundField DataField="NewValue" HeaderText="New Value" ItemStyle-Width="160px">
                                                                                                 <Headerstyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                                                            </asp:BoundField>


                                                                                        </Columns>

                                                                                    </asp:GridView>
                                                                                                                      
                                                                                </td>
                                                                            </tr>
                                                                             <input id="Hidden3" type="hidden" name="saveScrollPos" runat="server" />
                                                                        </ItemTemplate>
                                                                        <FooterTemplate>
                                                                            <asp:TextBox ID="txt_CheckrRemark1LM" runat="server" Visible="False"></asp:TextBox>
                                                                        </FooterTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                            </asp:GridView>

                                                        </div>
                                                        <input id="Hidden2" type="hidden" name="saveScrollPos" runat="server" />
                                                    </td>




                                                </tr>

                                            </table>
                                          </div>
                            
                                
                            </div>

 <%--  ManasiA || 11-May-2021 || UBPINT-827 : Changes done for expand collapse grid functionality --%>


                            <%--Changes by Akshata --%>
                        </div>

                    </td>
                </tr>
            </table>
            <input type="text" id="tabindx" value="" runat="server" style="width: 0px; height: 0px; display: none;" />
            <input type="text" id="tabChanged" value="" runat="server" style="width: 0px; height: 0px; display: none;" />

            <script type="text/javascript">



                SetJquery();

                function SetJquery() {

                    $(document).ready(function () {

                        if ($("#ctl00_MainContent_tabindx").val() == undefined) {
                            $("#ctl00_MainContent_tabindx").val(0);
                            $("#ctl00_MainContent_tabChanged").val('N');
                        }

                        $("#ctl00_MainContent_tabs").tabs(
                            {
                                active: Number($("#ctl00_MainContent_tabindx").val())

                            });
                        if ($("#automplete-1").val() != "") {
                            //Same tab no need to perform post back.
                            $('#ctl00_MainContent_tabs li').click('tabsselect', function (event, ui) {

                                var selectedTab = $("#ctl00_MainContent_tabs").tabs('option', 'active');
                                $("#ctl00_MainContent_tabindx").val(selectedTab);
                                if (selectedTab == 0) {
                                    document.getElementById("ctl00_MainContent_BtnLoad").click();
                                }
                                else if (selectedTab == 1) {
                                    document.getElementById("ctl00_MainContent_BtnLoadLD").click();
                                }
                                else if (selectedTab == 2) {
                                    document.getElementById("ctl00_MainContent_btnLoad_LM").click();
                                }


                            });
                        }
                    });

                }


                $('#ctl00_MainContent_tabs').click('tabsselect', function (event, ui) {
                    var selectedTab = $("#ctl00_MainContent_tabs").tabs('option', 'active');

                    $("#ctl00_MainContent_tabChanged").val($("#ctl00_MainContent_tabindx").val())
                    $("#ctl00_MainContent_tabindx").val(selectedTab);
                });

            </script>

        </ContentTemplate>
        <%-- <Triggers>
            <asp:PostBackTrigger ControlID="BtnLoad" />
            <asp:PostBackTrigger ControlID="BtnLoadLD" />
             <asp:PostBackTrigger ControlID="BtnApprove" />
            <asp:PostBackTrigger ControlID="BtnApproveLD" />
            <asp:PostBackTrigger ControlID="BtnReject" />
            <asp:PostBackTrigger ControlID="BtnRejectLD" />
            
        </Triggers>--%>
    </asp:UpdatePanel>


</asp:Content>
