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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>
    <script src="../FinIQJS/SortFilter_Grid.js"></script>
    <style type="text/css">
      

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

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

               #ctl00_MainContent_grdworkflowtype 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>

    <script type="text/javascript">

        //Start| 26-JUN-2020 | Added by Rajeshree K for grid filters        
        $(document).ready(function () {
            SetSorting_Filter1();
            highlightTd();
        });
        //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>
                                </td>
                            </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="lblworkflow" runat="server" CssClass="lbl" Text="WorkFlow Type" Width="100" Visible="True"></asp:Label>
                               
                                   <asp:DropDownList ID="cboworkflowtype" runat="server" CssClass="ddl" AppendDataBoundItems="true"
                                        Width="300px" Visible="True" AutoPostBack="True" OnSelectedIndexChanged="cboworkflowtype_SelectedIndexChanged">
                                    </asp:DropDownList>
                               
                                <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)" />

                                <%--Added by Nikhil Mali on 20-11-2019 for vertical editing : END--%>
                            </div>
                              <div id="tabs_1">
                                <table>
                                    <tr>
                                            <td>
                        <asp:GridView ID="grdworkflowtype" runat="server" PagerStyle-Height="32px"
                            AutoGenerateColumns="False" CssClass="Grid" BorderStyle="None" BorderWidth="0px" AllowSorting="True"
                            AllowPaging="True" ShowFooter="False" PageSize="999" ShowHeaderWhenEmpty="true">
                                <SelectedRowStyle CssClass="GridItemSelect" />
                                <%--<AlternatingRowStyle CssClass="GridItem" />--%>
                                <RowStyle CssClass="GridItem" />
                                <HeaderStyle CssClass="GridHeader" HorizontalAlign="Center" />
                               
                                <PagerStyle CssClass="GridPager" />
                               
                                <EmptyDataTemplate>
                                    <asp:Label ID="lblEmpty" runat="server" Text="No data found.." />
                                </EmptyDataTemplate>
                                <PagerSettings Mode="NumericFirstLast"
                                    FirstPageText="First"
                                    LastPageText="Last"
                                    Position="Bottom" />
                                <Columns>

                                    <asp:TemplateField ControlStyle-Width="20px" visible="false">
                                        <HeaderStyle Width="20px" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkSelect" OnCheckedChanged="chkSelect_CheckedChanged" AutoPostBack="true" runat="server"></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:LinkButton ID="btnVerify" runat="server" CommandName="Verify" CommandArgument='<%# Container.DataItemIndex%>' Text='Verify'></asp:LinkButton>
                                                            <asp:LinkButton ID="btnReject" runat="server" CommandName="Reject" CommandArgument='<%# Container.DataItemIndex%>' Text='Reject'></asp:LinkButton>
                                                        </ItemTemplate>

                                      </asp:TemplateField>

                                                 
                               
                                    <asp:TemplateField HeaderText="WBM ID" ControlStyle-Width="50px" Visible="false">
                                        <HeaderStyle Wrap="False" Width="50px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="50px" HorizontalAlign="Right" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblId" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_ID").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                      <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="WBM_Checker_ID" Visible="false">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCheckerID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Checker_id").ToString)%>' />
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:Label ID="lblCheckerID1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Checker_id").ToString)%>' />
                                    </EditItemTemplate>
                                                    </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.WBM_Action").ToString)%>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Target Database" Visible="False">
                                        <HeaderStyle Wrap="False" Width="50px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="50px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblTargetDatabase" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.DNAME").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Target Table" Visible="False">
                                        <HeaderStyle Wrap="False" Width="50px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="50px" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblTargetTable" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.TNAME").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Target Column">
                                        <HeaderStyle Wrap="False" Width="250px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="250px"  HorizontalAlign="left"/>
                                        <ItemTemplate>
                                            <asp:Label ID="lblTargetValue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Target_Value").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Blotter Header">
                                        <HeaderStyle Wrap="False" Width="250px"  HorizontalAlign="left"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="250px" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblBlotterHeader" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Blotter_Header").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>

                                <asp:TemplateField HeaderText="Format Type">
                                    <HeaderStyle Wrap="False" Width="120px" ></HeaderStyle>
                                    <ItemStyle Wrap="false" Width="120px" HorizontalAlign="left"/>
                                    <ItemTemplate>
                                        <asp:Label ID="lblFormatType" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Format_Type").ToString)%>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                   
                                </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Display Index">
                                        <HeaderStyle Wrap="False" Width="80px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="80px" HorizontalAlign="Right" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblDisplayIndex" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Sequence").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Use as Filter Y/N">
                                        <HeaderStyle Wrap="False" Width="100px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="100px" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblUseasFilter" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_UseForFilter").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>

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

                                    <asp:TemplateField HeaderText="Active Y/N">
                                        <HeaderStyle Wrap="False" Width="80px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="80px" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblActiveYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Active_YN").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="User Group Access Permission" ControlStyle-Width="300" ItemStyle-Wrap="true" Visible="false">
                                        <HeaderStyle Width="200" />
                                        <ItemStyle Wrap="true" Width="300" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <%--<asp:Label ID="lblGroupPermission" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.GroupPermission").ToString)%>' />--%>
                                            <asp:Label ID="lblGroupPermission" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Blotter_Header").ToString)%>' />
                                        </ItemTemplate>
                                        
                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Font Size" ControlStyle-Width="100" ItemStyle-Wrap="true">
                                                        <HeaderStyle Width="100" />
                                                        <ItemStyle Wrap="true" Width="100" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <%--<asp:Label ID="lblGroupPermission" CssClass="lbl" runat="servler" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.GroupPermission").ToString)%>' />--%>
                                                           <%-- <asp:Label ID="lblCssStyle" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Workflow_Css_Style").ToString)%>' />--%>
                                                     <asp:Label ID="lblCssStyle" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc1").ToString)%>' />
                                                            </ItemTemplate>

                                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Font Color" ControlStyle-Width="100" ItemStyle-Wrap="true">
                                        <HeaderStyle Width="100" />
                                        <ItemStyle Wrap="true" Width="100" HorizontalAlign="left" />
                                        <ItemTemplate>

                                            <asp:Label ID="lblforeColour" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc2").ToString)%>' />

                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Masked While Export">
                                         <HeaderStyle Wrap="False" Width="80px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="80px" HorizontalAlign="Center"/>
                                        <ItemTemplate>
                                            <asp:Label ID="lblMasked" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc3").ToString)%>'></asp:Label>
                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>
									
									<asp:TemplateField HeaderText="Filter Value Source">
                                     <HeaderStyle Wrap="False" Width="120px"></HeaderStyle>
                                    <ItemStyle Wrap="false" Width="120px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblFilterValue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Common_Data_field").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.WBM_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.WBM_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.WBM_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.WBM_RejectedYN").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.WBM_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.WBM_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.WBM_DeletedYN").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.WBM_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.WBM_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.WBM_Requested_By").ToString)%>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    



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

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

                                    <tr>
                                            <td>
                        <asp:GridView ID="grdworkflowtype_Viewer" runat="server" PagerStyle-Height="32px"
                            AutoGenerateColumns="False" CssClass="Grid" BorderStyle="None" BorderWidth="0px" AllowSorting="True"
                            AllowPaging="True" ShowFooter="False" PageSize="999" ShowHeaderWhenEmpty="true">
                                <SelectedRowStyle CssClass="GridItemSelect" />
                                <%--<AlternatingRowStyle CssClass="GridItem" />--%>
                                <RowStyle CssClass="GridItem" />
                                <HeaderStyle CssClass="GridHeader" HorizontalAlign="Center" />
                               
                                <PagerStyle CssClass="GridPager" />
                               
                                <EmptyDataTemplate>
                                    <asp:Label ID="lblEmpty" runat="server" Text="No data found.." />
                                </EmptyDataTemplate>
                                <PagerSettings Mode="NumericFirstLast"
                                    FirstPageText="First"
                                    LastPageText="Last"
                                    Position="Bottom" />
                                <Columns>

                                    <asp:TemplateField ControlStyle-Width="20px" visible="false">
                                        <HeaderStyle Width="20px" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkSelect" OnCheckedChanged="chkSelect_CheckedChanged" AutoPostBack="true" runat="server"></asp:CheckBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                                    
                               
                                    <asp:TemplateField HeaderText="WBM ID" ControlStyle-Width="50px" Visible="false">
                                        <HeaderStyle Wrap="False" Width="50px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="50px" HorizontalAlign="Right" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblId" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_ID").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

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

                                    <asp:TemplateField HeaderText="Target Database" Visible="False">
                                        <HeaderStyle Wrap="False" Width="50px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="50px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblTargetDatabase" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.DNAME").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Target Table" Visible="False">
                                        <HeaderStyle Wrap="False" Width="50px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="50px" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblTargetTable" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.TNAME").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Target Column">
                                        <HeaderStyle Wrap="False" Width="250px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="250px"  HorizontalAlign="left"/>
                                        <ItemTemplate>
                                            <asp:Label ID="lblTargetValue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Target_Value").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Blotter Header">
                                        <HeaderStyle Wrap="False" Width="250px"  HorizontalAlign="left"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="250px" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblBlotterHeader" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Blotter_Header").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>

                                <asp:TemplateField HeaderText="Format Type">
                                    <HeaderStyle Wrap="False" Width="120px" ></HeaderStyle>
                                    <ItemStyle Wrap="false" Width="120px" HorizontalAlign="left"/>
                                    <ItemTemplate>
                                        <asp:Label ID="lblFormatType" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Format_Type").ToString)%>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                   
                                </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Display Index">
                                        <HeaderStyle Wrap="False" Width="80px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="80px" HorizontalAlign="Right" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblDisplayIndex" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Sequence").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Use as Filter Y/N">
                                        <HeaderStyle Wrap="False" Width="100px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="100px" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblUseasFilter" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_UseForFilter").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>

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

                                    <asp:TemplateField HeaderText="Active Y/N">
                                        <HeaderStyle Wrap="False" Width="80px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="80px" HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblActiveYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Active_YN").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="User Group Access Permission" ControlStyle-Width="300" ItemStyle-Wrap="true" Visible="false">
                                        <HeaderStyle Width="200" />
                                        <ItemStyle Wrap="true" Width="300" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <%--<asp:Label ID="lblGroupPermission" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.GroupPermission").ToString)%>' />--%>
                                            <asp:Label ID="lblGroupPermission" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Blotter_Header").ToString)%>' />
                                        </ItemTemplate>
                                        
                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Font Size" ControlStyle-Width="100" ItemStyle-Wrap="true">
                                                        <HeaderStyle Width="100" />
                                                        <ItemStyle Wrap="true" Width="100" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <%--<asp:Label ID="lblGroupPermission" CssClass="lbl" runat="servler" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.GroupPermission").ToString)%>' />--%>
                                                            <%--<asp:Label ID="lblCssStyle" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Workflow_Css_Style").ToString)%>' />--%>
                                                        
                                                        <asp:Label ID="Label2" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc1").ToString)%>' />
                                                        
                                                        </ItemTemplate>

                                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Font Color" ControlStyle-Width="100" ItemStyle-Wrap="true">
                                        <HeaderStyle Width="100" />
                                        <ItemStyle Wrap="true" Width="100" HorizontalAlign="left" />
                                        <ItemTemplate>

                                            <asp:Label ID="lblforeColour" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc2").ToString)%>' />

                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Masked While Export">
                                         <HeaderStyle Wrap="False" Width="80px"></HeaderStyle>
                                        <ItemStyle Wrap="false" Width="80px" HorizontalAlign="Center"/>
                                        <ItemTemplate>
                                            <asp:Label ID="lblMasked" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc3").ToString)%>'></asp:Label>
                                        </ItemTemplate>
                                       
                                    </asp:TemplateField>
									
									<asp:TemplateField HeaderText="Filter Value Source">
                                     <HeaderStyle Wrap="False" Width="120px"></HeaderStyle>
                                    <ItemStyle Wrap="false" Width="120px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblFilterValue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Common_Data_field").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.WBM_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.WBM_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.WBM_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.WBM_RejectedYN").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.WBM_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.WBM_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.WBM_DeletedYN").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.WBM_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.WBM_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.WBM_Requested_By").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;

                }

            });
        }


        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>
