<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FinIQ_Template_Workflow_Mapping_Checker.aspx.vb" Inherits="FinIQWebApp.FinIQ_Template_Workflow_Mapping_Checker" MasterPageFile="~/FiniqAppMasterPage.Master" Title="Workflow Template Mapping (Checker)" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>
	 <%--Added by Shraddha D || 02-Sep-2021 || INT1FIN47-64  --%>
        <script src="../FinIQJS/SortFilter_Grid.js"></script>
    <style type="text/css">
        #ctl00_MainContent_dgvTemplateMappingChecker 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: #005682 !important;*/
            background-color: #a29c9c !important; /*Edited By ShubhamPodhade on 24-Aug-2019 As told By Nikhil P ==> BG COLOR SET to DARK GREY for SELECTED TAB*/
        }

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

        .divLoading {
            position: absolute;
            left: 600px;
            top: 90px;
        }

        .GridItem a {
            /**/
            color: #005682 !important;
        }
    </style>

    <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

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

        function clearErrorLabel() {
            document.getElementById('<%= lblError.ClientID%>').textContent = "";
            document.getElementById('<%=btnCallViewerTab.ClientID%>').click();
        }
        function deleteRecord() {
            return confirm('Are you sure to delete this record(s) ?');
        }
    </script>


    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        <asp:UpdateProgress ID="UpdateProgress3" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
                            DisplayAfter="0">
                            <ProgressTemplate>
                                <div class="divLoading">
                                    <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp;</span>
                                </div>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblError" runat="server" CssClass="lblError"></asp:Label>
                                    <asp:Label ID="lblInfo" CssClass="lblInfo" runat="server" Text=""></asp:Label>
                                    <asp:Label ID="lblSuccess" CssClass="lblSuccess" runat="server" Text=""></asp:Label>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnCallCheckerTab" runat="server" Text="" Style="display: none"></asp:Button>
                        <asp:Button ID="btnCallViewerTab" runat="server" Text="" Style="display: none"></asp:Button>
                        <br />
                        <br />
                        <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>
                            <br />

                            <div>
                                

                                <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)" />


                            </div>


                            <div id="tabs_1">

                                <table>

                                    <tr>
                                        <td>
                                            <asp:GridView ID="dgvTemplateMappingChecker" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                                BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview" AllowPaging="true" PageSize="999" ShowHeaderWhenEmpty="true" EnableCallBacks="false" HeaderStyle-CssClass="GridHeaderTitle">
                                                <SelectedRowStyle CssClass="GridItemSelect" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <PagerSettings Mode="NumericFirstLast"
                                                    FirstPageText="First"
                                                    LastPageText="Last"
                                                    Position="Bottom" />

                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-Wrap="True" HeaderText="Actions" 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="Workflow Super Type" Visible="False" ControlStyle-Width="110">
                                                        <HeaderStyle Width="120px" />
                                                        <ItemStyle Wrap="true" Width="120px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWorkflowSuperType" runat="server" />
                                                        </ItemTemplate>

                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="WT_Checker_ID" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblCheckerID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Checker_ID").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:Label ID="lblCheckerID1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Checker_ID").ToString)%>' />
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>


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



                                                    <asp:TemplateField HeaderText="Object Types" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70" />
                                                        <ItemStyle Wrap="true" Width="70" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblObjectTypes" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Hedging_Type").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>

                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Template" Visible="True" ControlStyle-Width="140">
                                                        <HeaderStyle Width="140px" />
                                                        <ItemStyle Wrap="true" Width="140px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <div style="word-wrap: break-word">
                                                                <asp:Label ID="lblTemplate" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Template_Name").ToString)%>' />
                                                            </div>
                                                        </ItemTemplate>

                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Template ID" Visible="False" ControlStyle-Width="140">
                                                        <HeaderStyle Width="140px" />
                                                        <ItemStyle Wrap="true" Width="140px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <div style="word-wrap: break-word">
                                                                <asp:Label ID="lblTemplateID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Template_ID").ToString)%>' />
                                                            </div>
                                                        </ItemTemplate>

                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Workflow" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70" />
                                                        <ItemStyle Wrap="true" Width="70" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWorkflow" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Workflow_Name").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>


                                                    <asp:TemplateField HeaderText="Workflow ID" ControlStyle-Width="70" Visible="false">
                                                        <HeaderStyle Width="70" />
                                                        <ItemStyle Wrap="true" Width="70" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWorkflowID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Workflow_Type_ID").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </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.WT_Verified_YN").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.WT_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.WT_Verified_By").ToString)%>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>


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

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

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

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

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


                                                </Columns>
                                            </asp:GridView>
                                        </td>
                                    </tr>

                                </table>
                            </div>
                            <div id="tabs_2">
                                <table>

                                    <tr>
                                        <td>
                                            <asp:GridView ID="dgvTemplateMappingViewer" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                                BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview" AllowPaging="true" PageSize="999" ShowHeaderWhenEmpty="true" EnableCallBacks="false" HeaderStyle-CssClass="GridHeaderTitle">
                                                <SelectedRowStyle CssClass="GridItemSelect" />
                                                <RowStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                                <PagerSettings Mode="NumericFirstLast"
                                                    FirstPageText="First"
                                                    LastPageText="Last"
                                                    Position="Bottom" />

                                                <Columns>
                                                    <asp:TemplateField HeaderText="Workflow Super Type" Visible="False" ControlStyle-Width="110">
                                                        <HeaderStyle Width="120px" />
                                                        <ItemStyle Wrap="true" Width="120px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWorkflowSuperType" runat="server" />
                                                        </ItemTemplate>

                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="WT_Checker_ID" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblCheckerID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Checker_ID").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:Label ID="lblCheckerID1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Checker_ID").ToString)%>' />
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>


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



                                                    <asp:TemplateField HeaderText="Object Types" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70" />
                                                        <ItemStyle Wrap="true" Width="70" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblObjectTypes" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Hedging_Type").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>

                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Template" Visible="True" ControlStyle-Width="140">
                                                       <HeaderStyle Width="140px" />
                                                       <ItemStyle Wrap="true" Width="140px" HorizontalAlign="left" />
                                                       <ItemTemplate>
                                                           <div style="word-wrap: break-word">
                                                               <asp:Label ID="lblTemplate" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Template_Name").ToString)%>' />
                                                           </div>
                                                       </ItemTemplate>
                                                       
                                                   </asp:TemplateField>

                                                   <asp:TemplateField HeaderText="Workflow" ControlStyle-Width="70">
                                                       <HeaderStyle Width="70" />
                                                       <ItemStyle Wrap="true" Width="70" HorizontalAlign="left" />
                                                       <ItemTemplate>
                                                           <asp:Label ID="lblWorkflow" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WT_Workflow_Name").ToString)%>'>
                                                           </asp:Label>
                                                       </ItemTemplate>
                                                   </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.WT_Verified_YN").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.WT_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.WT_Verified_By").ToString)%>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>


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

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

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

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

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


                                                </Columns>
                                            </asp:GridView>

                                        </td>
                                    </tr>
                                </table>
                            </div>

                        </div>
                    </td>
                </tr>
            </table>

        </ContentTemplate>
    </asp:UpdatePanel>

    <script type="text/javascript">
        var saveSelectedTab = 0;

        function PageLoad_WFLAccessControl() {
            debugger;
            SetTabs();

        }

        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 SetTabs() {
            debugger;
            if (saveSelectedTab == 1) {
                $("#ctl00_MainContent_tabs_1").css("display", "none");
                //$("#ctl00_btnVerifySecond").css("display", "none");
            }
            else if (saveSelectedTab == 0) {
                $("#ctl00_MainContent_tabs_2").css("display", "none");
                //$("#ctl00_btnVerifyFirst").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');
                debugger;
                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;

                }

            });
        }

    </script>
</asp:Content>
