<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FinIQ_QueueBackgroundActions_Checker.aspx.vb" Inherits="FinIQWebApp.FinIQ_QueueBackgroundActions_Checker"
    MasterPageFile="~/FiniqAppMasterPage.Master" Title="Queue Background Actions Checker" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>
    <script src="../FinIQJS/SortFilter_Grid.js"></script>
    <%--    <script src="../FinIQJS/FreezeGrid.js"></script>
    <link href="../FinIQJS/FreezeGrid.css" rel="stylesheet" type="text/css"/>--%>
    <style type="text/css">
        .btn {
            width: 70px;
        }

        .ddl {
            width: 100px;
        }

        .constantWidth {
            width: 6px;
        }

        #ctl00_MainContent_dgvQueueBkAction tr:not(:first-child) td:nth-child(1) {
            display: inline-flex;
            border: none !important;
            justify-content: space-around;
            text-align: center;
        }

        .ui-state-active a, .ui-state-active a:link {
            color: #000000 !important;
            background-color: #efefef !important;
        }

        .ui-widget-content.ui-widget {
            border: solid 1px white;
        }

        .ui-tabs .ui-tabs-nav {
            background: white;
            border: none;
            border-bottom: 1px solid #dddddd;
        }

        .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
            border: 1px solid #fff !important;
        }

        .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
            background-color: #e6e6e600;
            color: #8080808c;
           
        }
       .ui-tabs .ui-tabs-panel {  
    padding: 1em 0 !important;   
}
       .ui-tabs .ui-tabs-nav {
margin: 0;
padding: .0em .0em 0 !important;
}
    </style>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <table style="padding-bottom: 10px; margin: 5px; width: auto;">
                <tr>
                    <td>
                       <asp:Label ID="lblSuccess" CssClass="lblSuccess" runat="server" Text=""></asp:Label>
								<asp:Label ID="lblInfo" CssClass="lblInfo" runat="server" Text=""></asp:Label>
                                    <asp:Label ID="lblError" CssClass="lbl lblerror" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
            <table style="padding-bottom: 10px; margin: 5px; width: auto;">
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="Workflow Type"></asp:Label>&nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="cboWFType" runat="server" CssClass="ddl ddlCommon" Width=" 240px" AutoPostBack="true" AppendDataBoundItems="true" TabIndex="1">
                        </asp:DropDownList>
                    </td>
                    <td class="constantWidth">
                    <td>
                        <asp:Button ID="BtnLoad" runat="server" CssClass="btn btnCommon" Text="Load" />
                    </td>
                    <td>&nbsp;</td>
                    <td>
                        <asp:Label ID="lblRowsPerPage" runat="server" Text="Row(s) per page :" Style="margin-left: 10px;" />
                        <asp:TextBox ID="txtRowsPerPage" runat="server" Text="999" Width="40px" Style="text-align: center;" AutoPostBack="true" MaxLength="3" onkeydown="EnterKeyEvent(event)" onkeypress="return isNumberKey(event)" />
                    </td>

                </tr>
            </table>

             <table>
        <tr>
            <td>
                <asp:Button ID="btnUnVerifiedRecs" runat="server" Text="" Style="display: none"></asp:Button>
                <asp:Button ID="btnVerifiedRecs" runat="server" Text="" Style="display: none"></asp:Button>
                <div id="tabs" runat="server">
                    <ul>
                        <li id="Li1" runat="server" onclick="clearErrorLabel1()"><a href="#tabs_1">Pending Requests</a></li>
                        <li id="Li2" runat="server" onclick="clearErrorLabel()"><a href="#tabs_2">Processed Requests</a></li>
                    </ul>
                    <div id="tabs_1">
                        <asp:GridView ID="dgvQueueBkAction" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                            BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview" AllowPaging="true" PageSize="999" ShowHeaderWhenEmpty="true"  HeaderStyle-CssClass="GridHeaderTitle">
                            <SelectedRowStyle CssClass="GridItemSelect" />
                            <RowStyle CssClass="GridItem" />
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <EmptyDataTemplate>
                                <asp:Label ID="lblqueuedatagrid" runat="server" Text="No data found."></asp:Label>
                            </EmptyDataTemplate>

                            <Columns>

                                <asp:TemplateField Visible="false">
                                    <ItemStyle Width="20px" />
                                    <HeaderStyle Width="20px" />
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckboxRow" runat="server" AutoPostBack="false"></asp:CheckBox>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderStyle-Wrap="True" Visible="True" ControlStyle-Width="120px">
                                    <ItemStyle Width="120px" HorizontalAlign="Left" />
                                    <HeaderStyle Width="120px" />
                                    <ItemTemplate>
                                        <%--<asp:Label ID="lblID4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Name").ToString)%>' />--%>
                                        <asp:LinkButton ID="linkVerify" runat="server" CommandName="Verify" CommandArgument='<%# Container.DataItemIndex%>' Text='Verify'></asp:LinkButton>
                                        <asp:LinkButton ID="linkReject" runat="server" CommandName="Reject" CommandArgument='<%# Container.DataItemIndex%>' Text='Reject'></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
								
								<asp:TemplateField HeaderText="Actions" Visible="True" ControlStyle-Width="100px">
                                    <HeaderStyle Width="100px" Wrap="True" />
                                    <ItemStyle Width="100px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblActions" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Action").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>


                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Serial No" Visible="False">
                                    <ItemStyle Width="80px" />
                                    <HeaderStyle Width="80px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblSer" runat="server" Text='<%#Container.DataItemIndex + 1%>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:Label ID="lblSer1" runat="server" Text='<%#Container.DataItemIndex + 1%>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Id" Visible="False">
                                    <ItemStyle Width="80px" HorizontalAlign="Right" />
                                    <HeaderStyle Width="80px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_ID").ToString)%>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:Label ID="lblID1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_ID").ToString)%>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Queue" ControlStyle-Width="200">
                                    <HeaderStyle Width="100" />
                                    <ItemStyle Wrap="true" Width="100" HorizontalAlign="left" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblQueue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Queue_Name").ToString)%>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlQueue" runat="server" AutoPostBack="False" CssClass="ddl">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Button" ControlStyle-Width="200">
                                    <HeaderStyle Width="100" />
                                    <ItemStyle Wrap="true" Width="100" HorizontalAlign="left" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblButton" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Button_Name").ToString)%>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlButton" runat="server" AutoPostBack="False" CssClass="ddl">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Priority" Visible="true">
                                    <ItemStyle Width="80px" HorizontalAlign="Right" />
                                    <HeaderStyle Width="80px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblPriority" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Execution_Priority").ToString)%>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtPriority" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Execution_Priority").ToString)%>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Constraint" Visible="true">
                                    <ItemStyle Width="200px" />
                                    <HeaderStyle Width="200px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblConstraint" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Execution_constraint").ToString)%>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtConstraint" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Execution_constraint").ToString)%>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Verified Y/N" Visible="True" ControlStyle-Width="40px">
                                    <HeaderStyle Width="40px" Wrap="True" />
                                    <ItemStyle Width="40px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblVerifiedYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_VerifiedYN").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Verified At" Visible="True" ControlStyle-Width="180px">
                                    <HeaderStyle Width="180px" Wrap="True" />
                                    <ItemStyle Width="180px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblVerifiedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Verified_At").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Verified By" Visible="True" ControlStyle-Width="100px">
                                    <HeaderStyle Width="100px" Wrap="True" />
                                    <ItemStyle Width="100px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblVerifiedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Verified_By").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Rejected Y/N" Visible="True" ControlStyle-Width="40px">
                                    <HeaderStyle Width="40px" Wrap="True" />
                                    <ItemStyle Width="40px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblRejectedYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_RejectedYN").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Rejected At" Visible="True" ControlStyle-Width="180px">
                                    <HeaderStyle Width="180px" Wrap="True" />
                                    <ItemStyle Width="180px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblRejectedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Rejected_At").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Rejected By" Visible="True" ControlStyle-Width="100px">
                                    <HeaderStyle Width="100px" Wrap="True" />
                                    <ItemStyle Width="100px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblRejectedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Rejected_By").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Marked For Deletion" Visible="True" ControlStyle-Width="40px">
                                    <HeaderStyle Width="40px" Wrap="True" />
                                    <ItemStyle Width="40px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDeletedYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_DeletedYN").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Deleted At" Visible="True" ControlStyle-Width="180px">
                                    <HeaderStyle Width="180px" Wrap="True" />
                                    <ItemStyle Width="180px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDeletedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Deleted_At").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Deleted By" Visible="True" ControlStyle-Width="100px">
                                    <HeaderStyle Width="100px" Wrap="True" />
                                    <ItemStyle Width="100px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDeletedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Deleted_By").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                

                                <asp:TemplateField HeaderText="CheckerID" Visible="FALSE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCheckerID" runat="server" CssClass="lbl" Text='<%# DataBinder.Eval(Container, "DataItem.QBA_Checker_ID")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="RecordCreatedBy" Visible="FALSE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblRecordCreatedBy" runat="server" CssClass="lbl" Text='<%# DataBinder.Eval(Container, "DataItem.QBA_Requested_By")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>

                        </asp:GridView>
                    </div>
                    <div id="tabs_2">
                        <asp:GridView ID="GV_Viewer" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                            BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview" AllowPaging="true" PageSize="999" ShowHeaderWhenEmpty="true"  HeaderStyle-CssClass="GridHeaderTitle">
                            <SelectedRowStyle CssClass="GridItemSelect" />
                            <RowStyle CssClass="GridItem" />
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <EmptyDataTemplate>
                                <asp:Label ID="lblqueuedatagrid" runat="server" Text="No data found."></asp:Label>
                            </EmptyDataTemplate>

                            <Columns>
							
							<asp:TemplateField HeaderText="Actions" Visible="True" ControlStyle-Width="100px">
                                    <HeaderStyle Width="100px" Wrap="True" />
                                    <ItemStyle Width="100px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblActions" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Action").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Serial No" Visible="False">
                                    <ItemStyle Width="80px" />
                                    <HeaderStyle Width="80px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblSer" runat="server" Text='<%#Container.DataItemIndex + 1%>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:Label ID="lblSer1" runat="server" Text='<%#Container.DataItemIndex + 1%>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Id" Visible="False">
                                    <ItemStyle Width="80px" HorizontalAlign="Right" />
                                    <HeaderStyle Width="80px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_ID").ToString)%>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:Label ID="lblID1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_ID").ToString)%>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Queue" ControlStyle-Width="200">
                                    <HeaderStyle Width="100" />
                                    <ItemStyle Wrap="true" Width="100" HorizontalAlign="left" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblQueue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Queue_Name").ToString)%>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlQueue" runat="server" AutoPostBack="False" CssClass="ddl">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Button" ControlStyle-Width="200">
                                    <HeaderStyle Width="100" />
                                    <ItemStyle Wrap="true" Width="100" HorizontalAlign="left" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblButton" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Button_Name").ToString)%>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlButton" runat="server" AutoPostBack="False" CssClass="ddl">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Priority" Visible="true">
                                    <ItemStyle Width="80px" HorizontalAlign="Right" />
                                    <HeaderStyle Width="80px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblPriority" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Execution_Priority").ToString)%>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtPriority" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Execution_Priority").ToString)%>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Constraint" Visible="true">
                                    <ItemStyle Width="200px" />
                                    <HeaderStyle Width="200px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblConstraint" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Execution_constraint").ToString)%>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtConstraint" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Execution_constraint").ToString)%>' />
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Verified Y/N" Visible="True" ControlStyle-Width="40px">
                                    <HeaderStyle Width="40px" Wrap="True" />
                                    <ItemStyle Width="40px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblVerifiedYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_VerifiedYN").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Verified At" Visible="True" ControlStyle-Width="180px">
                                    <HeaderStyle Width="180px" Wrap="True" />
                                    <ItemStyle Width="180px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblVerifiedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Verified_At").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Verified By" Visible="True" ControlStyle-Width="100px">
                                    <HeaderStyle Width="100px" Wrap="True" />
                                    <ItemStyle Width="100px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblVerifiedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Verified_By").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Rejected Y/N" Visible="True" ControlStyle-Width="40px">
                                    <HeaderStyle Width="40px" Wrap="True" />
                                    <ItemStyle Width="40px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblRejectedYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_RejectedYN").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Rejected At" Visible="True" ControlStyle-Width="180px">
                                    <HeaderStyle Width="180px" Wrap="True" />
                                    <ItemStyle Width="180px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblRejectedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Rejected_At").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Rejected By" Visible="True" ControlStyle-Width="100px">
                                    <HeaderStyle Width="100px" Wrap="True" />
                                    <ItemStyle Width="100px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblRejectedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Rejected_By").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Marked For Deletion" Visible="True" ControlStyle-Width="40px">
                                    <HeaderStyle Width="40px" Wrap="True" />
                                    <ItemStyle Width="40px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDeletedYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_DeletedYN").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Deleted At" Visible="True" ControlStyle-Width="180px">
                                    <HeaderStyle Width="180px" Wrap="True" />
                                    <ItemStyle Width="180px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDeletedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Deleted_At").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Deleted By" Visible="True" ControlStyle-Width="100px">
                                    <HeaderStyle Width="100px" Wrap="True" />
                                    <ItemStyle Width="100px" Wrap="True" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDeletedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Deleted_By").ToString)%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                

                                <asp:TemplateField HeaderText="CheckerID" Visible="FALSE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCheckerID" runat="server" CssClass="lbl" Text='<%# DataBinder.Eval(Container, "DataItem.QBA_Checker_ID")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="RecordCreatedBy" Visible="FALSE">
                                    <ItemTemplate>
                                        <asp:Label ID="lblRecordCreatedBy" runat="server" CssClass="lbl" Text='<%# DataBinder.Eval(Container, "DataItem.QBA_Requested_By")%>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>

                        </asp:GridView>
                    </div>
                </div>
            </td>
        </tr>
    </table>


            <%--<table style="padding-bottom: 10px; margin: 5px;">
                <tr>
                    <td>
                        <asp:Button ID="BtnAdd" runat="server" Text="Add" CssClass="btn btnCommon" /></td>
                    <td class="constantWidth"></td>
                    <td>
                        <asp:Button ID="BtnSave" runat="server" CssClass="btn btnCommon" Text="Save" />
                    </td>
                    <td class="constantWidth"></td>

                    <td>
                        <asp:Button ID="BtnDelete" runat="server" CssClass="btn btnCommon" OnClientClick="return confirm('Do you want to perform this Action ?');" Text="Delete" />
                    </td>
                    <td class="constantWidth"></td>

                    <td>
                        <asp:Button ID="BtnCancel" runat="server" CssClass="btn btnCommon" Text="Cancel" />
                    </td>
                    <td>--%>
            <%--Added by Nikhil M for Rows per page 999 on 11 Dec 2019--%>
            <%--<td>--%>
            <%--UBPINT-6 changed by Prateek M--%>
            <%--<asp:Label ID="lblRowsPerPage" runat="server" Text="Row(s) per page :" Style="margin-left:10px;"/>
                         <asp:TextBox ID="txtRowsPerPage" runat="server" Text="999" Width="40px" Style="text-align:center;" AutoPostBack="true" MaxLength="3" onkeydown="EnterKeyEvent(event)" onkeypress="return isNumberKey(event)"  />--%>
            <%--</td>
                       <asp:Label ID="lblError" runat="server" CssClass="lblError"></asp:Label>
                        <asp:Label ID="lblMessage" runat="server" CssClass="lblInfo"></asp:Label>
                   </td>--%>

            <%--</tr>


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

   

    <script type="text/javascript">

        //Start| 26-JUN-2020 | Added by Rajeshree K for grid filters        
        $(document).ready(function () {
            SetSorting_Filter1();
        });
        //End| 26-JUN-2020 | Added by Rajeshree K for grid filters

        var saveSelectedTab = 0;

        function PageLoad_WFLAccessControl() {
            SetTabs();
        }

        function clearErrorLabel1() {
            document.getElementById('<%= lblError.ClientID%>').textContent = "";
            document.getElementById('<%=btnUnVerifiedRecs.ClientID%>').click();
        }

        function clearErrorLabel() {
            document.getElementById('<%= lblerror.ClientID%>').textContent = "";
            document.getElementById('<%=btnVerifiedRecs.ClientID%>').click();
        }

        function SetTabs() {
            if (saveSelectedTab == 1) {
                $("#ctl00_MainContent_tabs_1").css("display", "none");
            }
            else if (saveSelectedTab == 0) {
                $("#ctl00_MainContent_tabs_2").css("display", "none");
            }

            $("#ctl00_MainContent_tabs").tabs({ active: saveSelectedTab });

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

                if (selectedTab == 0) {
                    $("#ctl00_MainContent_tabs_1").css("display", "block");
                    $("#ctl00_MainContent_tabs_2").css("display", "none");
                    saveSelectedTab = selectedTab;
                }
                else if (selectedTab == 1) {
                    $("#ctl00_MainContent_tabs_2").css("display", "block");
                    $("#ctl00_MainContent_tabs_1").css("display", "none");
                    saveSelectedTab = selectedTab;
                }
            });
        }
       
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : evt.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }

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

            if (code == 13) {
                __doPostBack('<%=txtrowsperpage.ClientID%>', 'TextChanged');

            }
        }
        function highlightTd() {
            try {
                $(".Grid tr td span:contains('->')").each(function () {
                    var strValue = "";
                    var indexVal = "";
                    var oldVal = "";
                    var newVal = "";
                    var strValue = $(this).text();
                    //alert("Inside" + strValue);
                    var indexVal = strValue.indexOf("->");
                    var oldVal = strValue.substring(0, indexVal);
                    var newVal = strValue.substring(indexVal + 2, strValue.length);
                    //alert(oldVal);
                    //alert(newVal);
                    var strHtml = "<span style='color: red'>" + oldVal + "</span>";

                    strHtml += "->" + "<span style='color: green'>" + newVal + "</span>";
                    $(this).html(strHtml);


                })

            }
            catch (err) {
                console.log('Error in highlightTd' + err)
            }
        }




        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_endRequest(function (s, e) {
            highlightTd();
            return void (0);

        });
    </script>
</asp:Content>
