<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FinIQ_Workflow_SetUp_Report.aspx.vb" Inherits="FinIQWebApp.Workflow_Setup_Report"
    MasterPageFile="~/FiniqAppMasterPage.Master" Title="Workflow Setup Report" %>

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


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <script src="../FinIQJS/SortFilter_Grid.js"></script>
    <script src="JS/SetupReportJS.js"></script>
    <script src="../FinIQJS/FreezeGrid.js"></script>
    <link href="../FinIQJS/FreezeGrid.css" rel="stylesheet" type="text/css"/>
    <meta http-equiv="Content-Language" content="en" />
    <%--<link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />--%> <%-- Commented by Pratik S || 29-Sept-2021 || Black Theme Changes --%>
    <link href="../App_Themes/workflowCSS.css" rel="stylesheet" />
    <link href="CSS/SetUpReportCSS.css" rel="stylesheet" />
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <%--Modified by Nikhil Mali for UI changes on 19-12-2019 : START--%>
            <table>
                <%--Added by Nikhil Mali on 24-12-2019 : START--%>
                <tr>
                    <td colspan="4">
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
                            DisplayAfter="0">
                            <ProgressTemplate>
                                <div style="position: fixed; top: 80px; left: 100px">
                                    <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp;</span>
                                </div>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        <asp:Label ID="lblError" runat="server"> </asp:Label>
                    </td>
                </tr>
                <%--Added by Nikhil Mali on 24-12-2019 : END--%>
                <tr>
                    <td class="ValignTop">
                        <div class="divStyle1">
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnWorkflowType" runat="server" CssClass="btn btnCommon CollpseCSS " Text="Workflow Types" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="ButtonQueueDetails" runat="server" CssClass="btn btnCommon CollpseCSS" Text="Queue Details" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="BtnWorkflowButtons" runat="server" CssClass="btn btnCommon CollpseCSS" Text="Workflow Buttons" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnWBMHeader" runat="server" CssClass="btn btnCommon CollpseCSS" Text="Workflow Blotter Metadata" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="BtnWFUserGrpMap" runat="server" CssClass="btn btnCommon CollpseCSS" Text="Workflow User Group Map" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="BtnQueueUsrGrp" runat="server" CssClass="btn btnCommon CollpseCSS " Text="Queue User Group" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnBUGHeader" runat="server" CssClass="btn btnCommon CollpseCSS" Text="Button User Group" />
                                    </td>
                                </tr>
                                <tr>
                                    <td><%---ADD a Button Header Here --%>
                                        <asp:Button ID="btnCUGHeader" runat="server" CssClass="btn btnCommon CollpseCSS" Text="Column User Group" />
                                    </td>
                                </tr>
                                <tr>
                                    <td><%---ADD a Button Header Here --%>
                                        <asp:Button ID="btnWEMHeader" runat="server" CssClass="btn btnCommon CollpseCSS" Text="Workflow Entity Mapping" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnQBAHeader" runat="server" CssClass="btn btnCommon CollpseCSS" OnClientClick="bgColour(this);" Text="Queue Background Actions" />
                                    </td>
                                </tr>
                                <tr>
                                    <td><%---ADD A Button Header Here --%>
                                        <asp:Button ID="btnQBMHeader" runat="server" CssClass="btn btnCommon CollpseCSS " Text="Queue Button Mapping" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAccType" runat="server" CssClass="btn btnCommon CollpseCSS" Text="Access Types" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnFirstAccessCntrl" runat="server" CssClass="btn btnCommon CollpseCSS" Text="First Layer Access Control" />
                                    </td>
                                </tr>

                            </table>
                        </div>

                    </td>

                    <td class="ValignTop">
                        <!-- All Grids -->
                        <asp:Panel ID="pnlWorkflowType" runat="server" Visible="false">
                            <table>
                                <tr>
                                    <td dir="ltr">
                                        <div style="display: none;" id="dvGridWidth" class="dvGridWidth"></div>
                                        <asp:GridView ID="dgvWfSetupRpt" runat="server" AllowPaging="False" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview" DataKeyNames="WTM_ID" EnablePersistedSelection="True"  Width="100%" PagerStyle-Height="32px" PageSize="10" ShowHeaderWhenEmpty="true">
                                            <SelectedRowStyle BackColor="#f7f7f7" CssClass="GridItemSelect wid" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <PagerStyle CssClass="GridPager" />
                                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" Position="Bottom" Visible="False" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="lblNDWF" runat="server" Text="No data found."></asp:Label>
                                            </EmptyDataTemplate>
                                            <Columns>
                                                <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="false" HeaderText="WTM ID" Visible="true">
                                                    <ItemStyle Wrap="false" HorizontalAlign="Right" Width="80" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_ID").ToString)%>' Width="80" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="126" HeaderStyle-Wrap="true" HeaderText="WTM Code" ItemStyle-Wrap="true" Visible="True">
                                                    <ItemStyle HorizontalAlign="Left" Width="115" />
                                                    <ItemTemplate>
                                                        <div style="word-wrap: break-word;">
                                                            <asp:Label ID="lblWTM_Code" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Code").ToString)%>' Width="115" />
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="false" HeaderText="WTM Title" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" Width="120" />
                                                    <ItemTemplate>

                                                        <div style="word-wrap: break-word;">
                                                            <asp:Label ID="lblTitle" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>' Width="120" />
                                                        </div>
                                                    </ItemTemplate>

                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="false" HeaderText="WTM Show On Dashboard YN" Visible="true">
                                                    <ItemStyle HorizontalAlign="Center" Width="120" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LabelShwDBYN" runat="server" Width="120" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_ShowOnDashBoardYN").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="260" HeaderStyle-Wrap="true" HeaderText="WTM Page Link" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" Width="260" />
                                                    <ItemTemplate>
                                                        <div style="word-wrap: break-word;">
                                                            <asp:Label ID="LabelPgLnk" Width="260" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Page_Link").ToString)%>' />
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="160" HeaderStyle-Wrap="true" HeaderText="WF Column Specifier" Visible="true">
                                                    <ItemStyle HorizontalAlign="Center" Width="160" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LabelClSpf" Width="160" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WF_Column_Specifier").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="130" HeaderStyle-Wrap="true" HeaderText="WTM Apply Date Filter" Visible="true">
                                                    <ItemStyle HorizontalAlign="Center" Width="80" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LabelDateFltr" Width="130" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Apply_Date_Filter").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="110" HeaderStyle-Wrap="true" HeaderText="WTM Display Seqence" Visible="true">
                                                    <ItemStyle HorizontalAlign="Center" Width="80" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LabelDspSeq" Width="110" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Display_seqence").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="true" HeaderText="WTM Super Type" Visible="true">
                                                    <ItemStyle HorizontalAlign="left" Width="80" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LabelSupType" Width="120" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Super_type").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="130" HeaderStyle-Wrap="true" HeaderText="WTM Created By" Visible="true">
                                                    <ItemStyle HorizontalAlign="left" Width="80" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LabelCrBy" Width="130" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Created_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="130" HeaderStyle-Wrap="true" HeaderText="WTM Last Modified By" Visible="true">
                                                    <ItemStyle HorizontalAlign="left" Width="80" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LabelLstModBy" Width="130" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_LastModified_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180" HeaderStyle-Wrap="true" HeaderText="WTM Created At" Visible="true">
                                                    <ItemStyle HorizontalAlign="Center" Width="180" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LabelCrAt" Width="100" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180" HeaderStyle-Wrap="true" HeaderText="WTM Last Modified At" Visible="true">
                                                    <ItemStyle HorizontalAlign="Center" Width="180" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LabelLstModAt" Width="0" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_LastModified_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel runat="server" DefaultButton="BtnEntWF">
                                            <asp:Button ID="btnPrev" runat="server" CssClass="btnTable" Text="Prev" />
                                            <%--<asp:TextBox ID="txtpageno" runat="server" Height="25PX" MaxLength="6" onkeypress="return isNumberKey(event)" onkeyup="getenterWF()" Style="text-align: center; float: left;" Text="1" Width="50px"></asp:TextBox>--%>
                                            <asp:TextBox ID="txtpageno" runat="server" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="getenterWF()" Text="1"></asp:TextBox>
                                            <asp:Button ID="BtnEntWF" runat="server" Style="display: none" />
                                            <asp:Button ID="btnNext" runat="server" CssClass="btnTable" Text="Next" />
                                            &nbsp;&nbsp;
                                                                            <%--UBPINT-6 changed by Prateek M--%>
                                                                            <asp:Label ID="lblrowswft" runat="server" Text="Row(s) Per Page:" />
                                            <asp:TextBox ID="txtrwswf" runat="server" AutoPostBack="true" CssClass="txtTable" MaxLength="3" onkeypress="return isNumberKey(event)" onkeyup="getenterWF()" Text="999" value="Enter rows here"></asp:TextBox>
                                            &nbsp;&nbsp;
                                                                            <asp:Button ID="btnWFTExportToExcel" runat="server" CssClass="btnExcel" />
                                            <asp:HiddenField ID="hdn_pagenumber" runat="server" />
                                            <asp:HiddenField ID="hdn_pagenochanged" runat="server" />
                                            <asp:HiddenField ID="hdn_filterschanged" runat="server" />
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>

                        <asp:Panel ID="pnlQueueDetails" runat="server" Visible="false">
                            <table>
                               <tr>
                                    <td>
                                        <asp:GridView ID="dgvQueueDetails" runat="server" AllowPaging="False" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  PageSize="10" ShowHeaderWhenEmpty="true">
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <PagerStyle CssClass="GridPager" />
                                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" Position="Bottom" Visible="False" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="LabNDQM" runat="server" Text="No data found."></asp:Label>
                                            </EmptyDataTemplate>
                                            <Columns>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="false" HeaderText="WTM Title" Visible="true">
                                                    <ItemTemplate>
                                                        <ItemStyle Wrap="false" HorizontalAlign="Left" />
                                                        <asp:Label ID="lblWtMTitle" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="false" HeaderText="QM ID" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQmID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="QM Code" Visible="true">
                                                    <ItemTemplate>
                                                        <ItemStyle Wrap="false" HorizontalAlign="left" />
                                                        <asp:Label ID="lblQmCode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Code").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Name" Visible="true">
                                                    <ItemTemplate>
                                                        <ItemStyle Wrap="false" HorizontalAlign="left" />
                                                        <div style="word-wrap: break-word;">
                                                            <asp:Label ID="lblQmName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Name").ToString)%>' />
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180" HeaderStyle-Wrap="false" HeaderText="QM Date" Visible="true">
                                                    <ItemTemplate>
                                                        <ItemStyle Wrap="false" HorizontalAlign="Center" />
                                                        <asp:Label ID="QmDate" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Date", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="false" HeaderText="QM Char" Visible="true">
                                                    <ItemTemplate>
                                                        <ItemStyle Wrap="false" HorizontalAlign="left" />
                                                        <asp:Label ID="lblQmChar" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Char").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Boolean" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQmBoolean" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Boolean").ToString)%>' />
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="true" HeaderText="QM Int" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQmInt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Int").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="true" HeaderText="QM Text" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQmTxt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Text").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Priority" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPriority" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Priority").ToString)%>' />
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Default Queue Type" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDfQuetype" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Default_Queue_Type").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Exceptional Queue Type" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblExcDfType" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Exceptional_Queue_Type").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="Scheme Alias Code" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblShAliasCode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Scheme_Alias_Code").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="QM Product ID" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblProID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Qm_Product_Id").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM GL Account No" Visible="true">
                                                    <ItemTemplate>
                                                        <div style="word-wrap: break-word;">
                                                            <asp:Label ID="lblGLAccNo" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Qm_GL_Account_No").ToString)%>' />
                                                        </div>
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Success Queue" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblsuccQue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Qm_Success_Queue").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Fail Queue" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblfailQue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Qm_Fail_Queue").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Pending YN" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPendYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Qm_PendingYN").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM AutoProcess YN" Visible="true">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAutoProcYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Qm_AutoProcessYN").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="200" HeaderStyle-Wrap="false" HeaderText="QM AutoProcess Query" Visible="true">
                                                    <ItemTemplate>
                                                        <div style="word-wrap: break-word;">
                                                            <asp:Label ID="lblAutoProcQuery" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_ProcessQuery").ToString)%>' />
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="true" HeaderText="QM Queue Status" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQueStat" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Queue_Status").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Success Link Label" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSucclnk" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Success_Link_Label").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Failure Link Label" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblfaillnk" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Failure_Link_Label").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Permission" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPermssn" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Permission").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QM PosX" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPosX" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_PosX").ToString)%>' />
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QM PosY" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPosY" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_PosY").ToString)%>' />
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QM PrePosX" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPrePosX" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_PrePosX").ToString)%>' />
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QM PrePosY" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPrePosY" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_PrePosY").ToString)%>' />
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QM Workflow Type ID" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblWFTyID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Workflow_Type_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                    <HeaderStyle Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Screen Caption" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblScrCaption" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Screen_Caption").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Read Only YN" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblRdOnlyYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Read_Only_YN").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Back Button Caption" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblBkBtnCap" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Back_Button_Caption").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Next Button Caption" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblnxtBtnCap" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Next_Button_Caption").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Back Query" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblbkQuery" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Back_Query").ToString)%>' />
                                                    </ItemTemplate>
                                                    <ControlStyle Width="100px" />
                                                    <HeaderStyle Wrap="True" />
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Back Success Queue" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblbkSuccQue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Back_Success_Queue").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Back Fail Queue" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblbkFailQue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Back_Fail_queue").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Process Button Enabled YN" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblProcsbtnEnbYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_process_Button_Enabled_YN").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Back Button Enabled YN" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblbkbtnEnbYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Back_Button_Enabled_YN").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Template ID" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTempID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Template_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Template Code" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTempCode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Template_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM SPDatabase Name" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSpDBName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_SPDatabase_Name").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Select Multiple Tokens" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSelMulToken" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Select_Multiple_Tokens").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Accept Document Changes" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAccDocChng" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Accept_Document_Changes").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Auto Docgen YN" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDocgenYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Auto_Docgen_YN").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Display On Dashboard" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDsponDB" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_DisplayOnDashboard").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Visible Tabs Id" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblVsbTabID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Visible_Tabs_Id").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Visible Tabs Name" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblVsbTabName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Visible_Tabs_Name").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Field Groups" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFldGrp" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Field_Groups").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Display YN" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDspYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Display_YN").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Timeout Min" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTmOutMin" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Timeout_Min").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="QM Updated By" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUpdBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Updated_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180" HeaderStyle-Wrap="true" HeaderText="QM Updated At" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUpdAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Updated_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel runat="server">
                                            <asp:Button ID="BtnPrevQM" runat="server" CssClass="btnTable" Text="Prev" />
                                            <asp:TextBox ID="TxtQM" runat="server" CssClass="txtTable" Height="25PX" MaxLength="6" onkeypress="return isNumberKey(event)" onkeyup="getenterQM()" Text="1" Width="50px"></asp:TextBox>
                                            <asp:Button ID="BtnEntQM" runat="server" Style="display: none" />
                                            <asp:Button ID="BtnNxtQM" runat="server" CssClass="btnTable" Text="Next" />
                                            &nbsp;&nbsp;
                                                                            <asp:Label ID="lblrwsqm" runat="server" Text="Rows Per Page:" />
                                            <asp:TextBox ID="txtrwsqm" runat="server" CssClass="txtTable" MaxLength="3" onkeypress="return isNumberKey(event)" onkeyup="getenterQM()" Text="999" value="Enter rows here"></asp:TextBox>
                                            &nbsp;&nbsp;
                                                                            <asp:Button ID="btnQMExportToExcel" runat="server" CssClass="btnExcel" />
                                            <asp:HiddenField ID="hdn_pagenumber_QM" runat="server" />
                                            <asp:HiddenField ID="hdn_pagenochanged_QM" runat="server" />
                                            <asp:HiddenField ID="hdn_filterschanged_QM" runat="server" />
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>

                        <asp:Panel ID="PnlWorkflowButtons" runat="server" Visible="false">
                            <table>
                                <tr>
                                    <td>
                                        <asp:GridView ID="dgvWorkflowButtons" runat="server" AllowPaging="False" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  PageSize="10" ShowHeaderWhenEmpty="true">
                                                    <SelectedRowStyle CssClass="GridItemSelect" />
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <PagerStyle CssClass="GridPager" />
                                                    <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" Position="Bottom" Visible="False" />
                                                    <EmptyDataTemplate>
                                                        <asp:Label ID="LabNDWB" runat="server" Text="No data found."></asp:Label>
                                                    </EmptyDataTemplate>
                                                    <Columns>
                                                        <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="true" HeaderText="WTM Title" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWTM_Title" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="true" HeaderText="WB ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWbID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="150" HeaderStyle-Wrap="true" HeaderText="WB Caption" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWBCap" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Caption").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="230" HeaderStyle-Wrap="true" HeaderText="WB Process SP Name" ItemStyle-Wrap="true" Visible="true">
                                                            <ItemTemplate>
                                                                <div style="word-wrap: break-word;">
                                                                    <asp:Label ID="LabProcSPName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_SP_Name").ToString)%>' />
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="true" HeaderText="WB Process Success Queue ID" ItemStyle-Wrap="true" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWBSucQueID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_Success_Queue_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Process Fail Queue ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWBFailQueID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_Fail_Queue_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Active YN" Visible="true">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabActYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Active_YN").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Workflow Type ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWFTyID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Workflow_Type_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="true" HeaderText="WB Workflow Type Code" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWFTyCode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Workflow_Type_Code").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Display Priority" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabDispPrio" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Display_Priority").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Enable YN" Visible="true">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Enable_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Enable_YN").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Color YN" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Color_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Color_YN").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Visible YN" Visible="true">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Visible_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Visible_YN").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="140" HeaderStyle-Wrap="true" HeaderText="WB Execution Object Type" Visible="true">
                                                            <ItemTemplate>
                                                                 <ItemStyle HorizontalAlign="left" />
                                                                <asp:Label ID="LabExcObjtype" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_type").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="200" HeaderStyle-Wrap="true" HeaderText="WB Execution Object Subtype" Visible="true">
                                                            <ItemTemplate>
                                                                <ItemStyle HorizontalAlign="left" />
                                                                <div style="word-wrap: break-word;">
                                                                    <asp:Label ID="LabExcObjsubtype" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype").ToString)%>' />
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Execution Object Type Sec" Visible="true">
                                                            <ItemTemplate>
                                                                <ItemStyle HorizontalAlign="left" />
                                                                <asp:Label ID="LabExcObjtypeSec" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_type_Sec").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Execution Object Subtype Sec" Visible="true">
                                                            <ItemTemplate>
                                                                <ItemStyle HorizontalAlign="left" />
                                                                <asp:Label ID="LabExcObjsubtypeSec" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype_Sec").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Subtype" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabSubty" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Subtype").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Remark1" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Remark1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark1").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Remark2" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Remark2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark2").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Remark3" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Remark3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark3").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Remark4" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Remark4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark4").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Remark5" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Remark5" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark5").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="true" HeaderText="WB Misc1" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Misc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc1").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="true" HeaderText="WB Misc2" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Misc2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc2").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="true" HeaderText="WB Misc3" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Misc3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc3").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="true" HeaderText="WB Misc4" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Misc4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc4").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="80" HeaderStyle-Wrap="true" HeaderText="WB Misc5" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Misc5" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc5").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Display PopUp YN" Visible="true">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabDisp_PopUp_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Display_PopUp_YN").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB PopUp Message" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabPopUpMsg" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_PopUpMessage").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="150" HeaderStyle-Wrap="true" HeaderText="WB Condition" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabCondition" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Condition").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Edit UCP Columns" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabEdUCPCol" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_EditUCPColumns").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB UDFCondition" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabUDFCond" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFCondition").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB UDF Condition Remark" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabUDFCondRmk" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFConditionRemark").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="180" HeaderStyle-Wrap="true" HeaderText="WB Created At" Visible="true">
                                                            <ItemTemplate>
                                                                <ItemStyle Width="180" HorizontalAlign="Center"/>
                                                                <asp:Label ID="LabWB_Created_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Created By" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Created_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Created_By").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="180" HeaderStyle-Wrap="true" HeaderText="WB Modified At" Visible="true">
                                                            <ItemTemplate>
                                                                <ItemStyle Width="180" HorizontalAlign="Center"/>
                                                                <asp:Label ID="LabWB_Modified_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Modified_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="WB Modified By" Visible="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWB_Modified_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Modified_By").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel runat="server" DefaultButton="BtnEntWB">
                                                <asp:Button ID="btnPrevWB" runat="server" CssClass="btnTable" Text="Prev" />
                                                <asp:TextBox ID="txtpagenoWB" runat="server" CssClass="txtTable" MaxLength="6" onkeypress="return isNumberKey(event)" onkeyup="getenterWB()" Text="1"></asp:TextBox>
                                                <asp:Button ID="BtnEntWB" runat="server" Style="display: none" />
                                                <asp:Button ID="btnNextWB" runat="server" CssClass="btnTable" Text="Next" />
                                                &nbsp;&nbsp;
                                                <asp:Label ID="lblrwsWB" runat="server" Text="Rows Per Page:" />
                                                <asp:TextBox ID="txtrwsWB" runat="server" CssClass="txtTable" MaxLength="3" onkeypress="return isNumberKey(event)" onkeyup="getenterWB()" Text="999" value="Enter rows here"></asp:TextBox>
                                                &nbsp;&nbsp;
                                                <asp:Button ID="btnWBExportToExcel" runat="server" CssClass="btnExcel" />
                                                <asp:HiddenField ID="hdn_pagenumber_WB" runat="server" />
                                                <asp:HiddenField ID="hdn_pagenochanged_WB" runat="server" />
                                                <asp:HiddenField ID="hdn_filterschanged_WB" runat="server" />
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                        </asp:Panel>

                        <asp:Panel ID="panelWBMData" runat="server" Visible="false">
                                <table>
                                     <tr>
                                        <td>
                                              <asp:GridView ID="dgvWorkflowBlotterMetadata" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  ShowHeaderWhenEmpty="true" Width="1000px">
                                                    <SelectedRowStyle CssClass="GridItemSelect" />
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <EmptyDataTemplate>
                                                        <asp:Label ID="lblWorkflowBlotterMetadata" runat="server" Text="No data found."></asp:Label>
                                                    </EmptyDataTemplate>
                                                    <Columns>
                                                        <asp:TemplateField ControlStyle-Width="120px" HeaderStyle-Wrap="true" HeaderText="WTM Title">
                                                            <ItemStyle HorizontalAlign="left" />
                                                            <HeaderStyle />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label14" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="60px" HeaderStyle-Wrap="true" HeaderText="WBM ID">
                                                            <ItemStyle HorizontalAlign="Right" />
                                                            <HeaderStyle />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Id" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Id").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="60px" HeaderStyle-Wrap="true" HeaderText="WBM WTM ID">
                                                            <ItemStyle HorizontalAlign="Right" />
                                                            <HeaderStyle />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_WTM_Id" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_WTM_Id").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="175px" HeaderStyle-Wrap="true" HeaderText="WBM Workflow SubType">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Workflow_SubType" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Workflow_SubType").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="110px" HeaderStyle-Wrap="true" HeaderText="WBM Target Value">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Target_value" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Target_value").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="90px" HeaderStyle-Wrap="true" HeaderText="WBM Blotter Header" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label15" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Blotter_Header").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="90px" HeaderStyle-Wrap="true" HeaderText="WBM Column Data Type" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Column_Data_Type" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Column_Data_Type").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Sequence" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Sequence" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Sequence").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Used For Filter" Visible="true">
                                                            <ItemStyle HorizontalAlign="center" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_UseForFilter" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_UseForFilter").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Active" Visible="true">
                                                            <ItemStyle HorizontalAlign="center" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Active_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Active_YN").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Size" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Size" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Size").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Misc1" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Misc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc1").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Misc2" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Misc2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc2").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Misc3" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Misc3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc3").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Misc4" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Misc4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc4").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Misc5" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Misc5" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Misc5").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="80px" HeaderStyle-Wrap="true" HeaderText="WBM Target Database">
                                                            <ItemStyle HorizontalAlign="left" />
                                                            <HeaderStyle />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Target_Database" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Target_Database").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Format Type" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Format_Type" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Format_Type").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Common Data Field" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Common_Data_Field" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Common_Data_Field").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Created By" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Created_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Created_By").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="true" HeaderText="WBM Created At" Visible="true">
                                                            <ItemStyle HorizontalAlign="Center" Width="180px" />
                                                            <HeaderStyle Width="180px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Created_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WBM Updated By" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Updated_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Updated_By").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="true" HeaderText="WBM Updated At" Visible="true">
                                                            <ItemStyle HorizontalAlign="Center" Width="180px" />
                                                            <HeaderStyle Width="180px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_updated_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_updated_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="Panel3" runat="server" DefaultButton="btnEnterKeyWBM">
                                                <asp:Button ID="btnWBMPrevious" runat="server" CssClass="btnTable" Text="Prev" />
                                                <asp:TextBox ID="txtWBMPageNo" runat="server" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventWBM()" Text="1"></asp:TextBox>
                                                <asp:Button ID="btnWBMNext" runat="server" CssClass="btnTable" Text="Next" />
                                                &nbsp;&nbsp;
                                                <asp:Label ID="lblWBMRowsPerPage" runat="server" Text="Rows Per Page"></asp:Label>
                                                <asp:TextBox ID="txtWBMRowsPerPage" runat="server" MaxLength="3" onkeypress="return isNumberKey(event)" CssClass="txtTable" onkeyup="enterKeyEventWBM()" Text="999"></asp:TextBox>
                                                &nbsp;&nbsp;
                                                <asp:Button ID="btnWBMExportToExcel" runat="server" CssClass="btnExcel" />
                                                <asp:Button ID="btnEnterKeyWBM" runat="server" Style="display: none" />
                                            </asp:Panel>
                                             </td>
                                    </tr>
                                </table>
                        </asp:Panel>

                        <asp:Panel ID="pnlWFUsrGrpMap" runat="server" Visible="false">                           
                                <table>
                                   <tr>
                                        <td><asp:GridView ID="dgvWFUsrGrpMap" runat="server" AllowCustomPaging="False" AllowPaging="False" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  PageSize="10" ShowHeaderWhenEmpty="true">
                                                    <SelectedRowStyle CssClass="GridItemSelect" />
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <PagerStyle CssClass="GridPager" />
                                                    <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" Position="Bottom" Visible="False" />
                                                    <EmptyDataTemplate>
                                                        <asp:Label ID="LabNDWUM" runat="server" Text="No data found."></asp:Label>
                                                    </EmptyDataTemplate>
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WTM Title" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="180px" />
                                                            <HeaderStyle Width="180px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWTM_Title" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="Workflow ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWorkflowID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WorkflowID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="Workflow Code" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="200px" />
                                                            <HeaderStyle Width="200px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabWorkflowCode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WorkflowCode").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="User Group" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                            <HeaderStyle Width="120px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabUsergrp" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Usergrp").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="User ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="60px" />
                                                            <HeaderStyle Width="60px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabUserID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="Created By" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                            <HeaderStyle Width="120px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabCreatedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.CreatedBy").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="Created At" Visible="true">
                                                            <ItemStyle HorizontalAlign="Center" Width="180px" />
                                                            <HeaderStyle Width="180px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabCreatedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.CreatedAt", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                           
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel runat="server" DefaultButton="BtnEntWUM">
                                                <asp:Button ID="btnPrev_WUM" runat="server" CssClass="btnTable" Text="Prev" />
                                                <asp:TextBox ID="txtpageno_WUM" runat="server" CssClass="txtTable" MaxLength="6" onkeypress="return isNumberKey(event)" onkeyup="getenterWUM()" Text="1"></asp:TextBox>
                                                <asp:Button ID="BtnEntWUM" runat="server" Style="display: none" />
                                                <asp:Button ID="btnNext_WUM" runat="server" CssClass="btnTable" Text="Next" />
                                                &nbsp;&nbsp;
                                                <asp:Label ID="lblrwsWUM" runat="server" Text="Rows Per Page:" />
                                                <asp:TextBox ID="txtrwsWUM" runat="server" CssClass="txtTable" MaxLength="3" onkeypress="return isNumberKey(event)" onkeyup="getenterWUM()" Text="999" value="Enter rows here"></asp:TextBox>
                                                &nbsp;&nbsp;
                                                <asp:Button ID="btnWUGExportToExcel" runat="server" CssClass="btnExcel" />
                                                <asp:HiddenField ID="hdn_pagenumber_WUM" runat="server" />
                                                <asp:HiddenField ID="hdn_pagenochanged_WUM" runat="server" />
                                                <asp:HiddenField ID="hdn_filterschanged_WUM" runat="server" />
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                           
                        </asp:Panel>

                        <asp:Panel ID="pnlQueueUsrGrp" runat="server" Visible="false">
                           <table>
                               <tr>
                                   <td>
                                            <asp:GridView ID="dgvQueueUsrGrp" runat="server" AllowCustomPaging="True" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  PageSize="15" ShowHeaderWhenEmpty="true">
                                                    <SelectedRowStyle CssClass="GridItemSelect" />
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <PagerStyle CssClass="GridPager" />
                                                    <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" Position="Bottom" Visible="False" />
                                                    <EmptyDataTemplate>
                                                        <asp:Label ID="LabNDQUG" runat="server" Text="No data found."></asp:Label>
                                                    </EmptyDataTemplate>
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="WTM Title" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                            <HeaderStyle Width="120px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabelWTM_Title" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QM Name" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                            <HeaderStyle Width="120px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabelQM_Name" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Name").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QUG ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="120px" />
                                                            <HeaderStyle Width="120px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabelQUG_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QUG_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QUG Queue ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="120px" />
                                                            <HeaderStyle Width="120px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabelQUG_Queue_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QUG_Queue_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QUG Group ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                            <HeaderStyle Width="120px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabelQUG_Group_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QUG_Group_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="true" HeaderText="QUG Created At" Visible="true">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabelQUG_Created_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QUG_Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QUG Created By" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                            <HeaderStyle Width="120px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabelQUG_Created_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QUG_Created_By").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                           
                                         </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel runat="server" DefaultButton="Button1">
                                                <asp:Button ID="btnPrev_QUG" runat="server" CssClass="btnTable" Text="Prev" />
                                                <asp:TextBox ID="txtpageno_QUG" runat="server" CssClass="txtTable" MaxLength="6" onkeypress="return isNumberKey(event)" onkeyup="getenter()" Text="1"></asp:TextBox>
                                                <asp:Button ID="Button1" runat="server" Style="display: none" />
                                                <asp:Button ID="btnNext_QUG" runat="server" CssClass="btnTable" Text="Next" />
                                                &nbsp;&nbsp;
                                                <asp:Label ID="lblrows" runat="server" Text="Rows Per Page:" />
                                                <asp:TextBox ID="txtrows" runat="server" CssClass="txtTable" MaxLength="3" onkeypress="return isNumberKey(event)" onkeyup="getenter()" Text="999"></asp:TextBox>
                                                &nbsp;&nbsp;
                                                <asp:Button ID="btnQUGExportToExcel" runat="server" CssClass="btnExcel" />
                                                <asp:HiddenField ID="hdn_pagenumber_QUG" runat="server" />
                                                <asp:HiddenField ID="hdn_pagenochanged_QUG" runat="server" />
                                                <asp:HiddenField ID="hdn_filterschanged_QUG" runat="server" />
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                        </asp:Panel>

                        <asp:Panel ID="panelBUGData" runat="server" Visible="false">                             
                                <table>
                                   <tr>
                                        <td>
                                             <asp:GridView ID="dgvButtonUserGroupReport" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  ShowHeaderWhenEmpty="true" Width="1000px">
                                                    <SelectedRowStyle CssClass="GridItemSelect" />
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <EmptyDataTemplate>
                                                        <asp:Label ID="lblWorkflowEntityMappingReport" runat="server" Text="No data found."></asp:Label>
                                                    </EmptyDataTemplate>
                                                    <Columns>
                                                        <asp:TemplateField ControlStyle-Width="120px" HeaderStyle-Wrap="false" HeaderText="WTM Title" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" />
                                                            <HeaderStyle />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWB_Workflow_Type" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="BUG ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBUG_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BUG_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100px" HeaderStyle-Wrap="false" HeaderText="WB Caption" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWB_Caption" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Caption").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="100px" HeaderStyle-Wrap="false" HeaderText="BUG Group ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBUG_Group_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BUG_Group_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="BUG Misc4 Int" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBUG_Misc4_Int" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BUG_Misc4_Int").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="BUG Misc5 Int" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBUG_Misc5_Int" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BUG_Misc5_Int").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="BUG Misc1" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBUG_Misc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BUG_Misc1").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="BUG Misc2" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBUG_Misc2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BUG_Misc2").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="BUG Misc3" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBUG_Misc3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BUG_Misc3").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="true" HeaderText="BUG Created At">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <HeaderStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBUG_Created_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BUG_Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="BUG Created By" Visible="true">
                                                            <ItemStyle HorizontalAlign="left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblBUG_Created_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BUG_Created_By").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>                                           
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="PanelDFBUG" runat="server" DefaultButton="btnEnterKeyBUG">
                                                <asp:Button ID="btnBUGPrevious" runat="server" CssClass="btnTable" Text="Prev" />
                                                <asp:TextBox ID="txtBUGPageNo" runat="server" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventBUG()" Text="1"></asp:TextBox>
                                                <asp:Button ID="btnBUGNext" runat="server" CssClass="btnTable" Text="Next" />
                                                &nbsp;&nbsp;                                                                      <asp:Label ID="lblBUGRowsPerPage" runat="server" Text="Rows Per Page"></asp:Label>
                                                <asp:TextBox ID="txtBUGRowsPerPage" runat="server" MaxLength="3" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventBUG()" Text="999"></asp:TextBox>
                                                &nbsp;&nbsp;
                                                <asp:Button ID="btnBUGExportToExcel" runat="server" CssClass="btnExcel" />
                                                <asp:Button ID="btnEnterKeyBUG" runat="server" Style="display: none" />
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                        </asp:Panel>

                        <asp:Panel ID="panelCUGData" runat="server" Visible="false">                        
                                <table>                                   
                                    <tr>
                                        <td> 
                                            <asp:GridView ID="dgvColumnuserGroupReport" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  ShowHeaderWhenEmpty="true" Width="1000px">
                                                    <SelectedRowStyle CssClass="GridItemSelect" />
                                                    <RowStyle CssClass="GridItem" />
                                                    <HeaderStyle CssClass="GridHeader" />
                                                    <FooterStyle CssClass="GridFooter" />
                                                    <EmptyDataTemplate>
                                                        <asp:Label ID="LabNDCUG" runat="server" Text="No data found."></asp:Label>
                                                    </EmptyDataTemplate>
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="CUG ID" Visible="true">
                                                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblCUG_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.CUG_ID").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="User Group" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblUsergrp" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Usergrp").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="WBM Blotter Header" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblWBM_Blotter_Header" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WBM_Blotter_Header").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="false" HeaderText="CUG Created At" Visible="true">
                                                            <ItemStyle HorizontalAlign="Center" Width="180px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblCUG_Created_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.CUG_Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="CUG Created By" Visible="true">
                                                            <ItemStyle HorizontalAlign="Left" Width="80px" />
                                                            <HeaderStyle Width="80px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblCUG_Created_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.CUG_Created_By").ToString)%>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </td>
                                    </tr> 
                                    <tr>
                                        <td>
                                            <asp:Panel ID="PanelDFCUG" runat="server" DefaultButton="btnEnterKeyCUG">
                                                <asp:Button ID="btnCUGPrevious" runat="server" CssClass="btnTable" Text="Prev" />
                                                <asp:TextBox ID="txtCUGPageNo" runat="server" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventCUG()" Text="1"></asp:TextBox>
                                                <asp:Button ID="btnCUGNext" runat="server" CssClass="btnTable" Text="Next" />
                                                &nbsp;&nbsp;                                                                  <asp:Label ID="lblCUGRowsPerPage" runat="server" Text="Rows Per Page"></asp:Label>
                                                <asp:TextBox ID="txtCUGRowsPerPage" MaxLength="3" runat="server" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventCUG()" Text="999"></asp:TextBox>
                                                &nbsp;&nbsp;
                                                <asp:Button ID="btnCUGExportToExcel" runat="server" CssClass="btnExcel" />
                                                <asp:Button ID="btnEnterKeyCUG" runat="server" Style="display: none" />
                                                <asp:Label ID="lblCUGError" runat="server" Text=""></asp:Label>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                </table>
                        </asp:Panel>

                        <asp:Panel ID="panelWEMData" runat="server" Visible="false">
                            <table>
                                <tr>
                                    <td>
                                        <asp:GridView ID="dgvWorkflowEntityMappingReport" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  ShowHeaderWhenEmpty="true" Width="1000px">
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="LabNDWEM" runat="server" Text="No data found."></asp:Label>
                                            </EmptyDataTemplate>
                                            <Columns>
                                                <asp:TemplateField ControlStyle-Width="80px" HeaderStyle-Wrap="true" HeaderText="WTM Title">
                                                    <ItemStyle HorizontalAlign="Left" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblWEM_WTMTitle" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="60px" HeaderStyle-Wrap="false" HeaderText="WEM ID" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" Width="60px" />
                                                    <HeaderStyle Width="60px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblWEM_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WEM_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="130px" HeaderStyle-Wrap="true" HeaderText="Entity Name" Visible="true">
                                                    <ItemStyle HorizontalAlign="left" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblentity_name" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.entity_name").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="40px" HeaderStyle-Wrap="true" HeaderText="WEM Display Priority" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" Width="40px" />
                                                    <HeaderStyle Width="40px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblWEM_Display_Priority" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WEM_Display_Priority").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="true" HeaderText="Created At">
                                                    <ItemStyle HorizontalAlign="Center" Width="180px" />
                                                    <HeaderStyle HorizontalAlign="center" Width="180px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCreated_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Created By" Visible="true">
                                                    <ItemStyle HorizontalAlign="left" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCreated_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Created_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="true" HeaderText="Updated At" Visible="true">
                                                    <ItemStyle HorizontalAlign="center" Width="180px" />
                                                    <HeaderStyle HorizontalAlign="center" Width="180px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUpdated_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Updated_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="Updated By" Visible="true">
                                                    <ItemStyle HorizontalAlign="left" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUpdated_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Updated_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel ID="PanelDFWEM" runat="server" DefaultButton="btnEnterKeyWEM">
                                            <asp:Button ID="btnWEMprevious" runat="server" CssClass="btnTable" Text="Prev" />
                                            <asp:TextBox ID="txtWEMPageNo" runat="server" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventWEM()" Text="1"></asp:TextBox>
                                            <asp:Button ID="btnWEMNext" runat="server" CssClass="btnTable" Text="Next" />
                                            &nbsp;&nbsp;<asp:Label ID="lblWEMRowsPerPage" runat="server" Text="Rows Per Page"></asp:Label>
                                            <asp:TextBox ID="txtWEMRowsPerPage" runat="server" MaxLength="3" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventWEM()" Text="999"></asp:TextBox>
                                            &nbsp;&nbsp;<asp:Button ID="btnWEMExportToExcel" runat="server" CssClass="btnExcel" />
                                            <asp:Button ID="btnEnterKeyWEM" runat="server" Style="display: none" />
                                            <asp:Label ID="lblWEMError" runat="server" Text=""></asp:Label>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>

                        <asp:Panel ID="panelQBAData" runat="server" Visible="false">

                            <table>

                                <tr>
                                    <td>

                                        <asp:GridView ID="dgvWRQueueBackgroundActions" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  ShowHeaderWhenEmpty="true" Width="1000px">
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="LabNDQBA" runat="server" Text="No data found."></asp:Label>
                                            </EmptyDataTemplate>
                                            <Columns>
                                                <asp:TemplateField HeaderText="WTM Title">
                                                    <ControlStyle Width="160px" />
                                                    <HeaderStyle Width="160" />
                                                    <ItemStyle HorizontalAlign="left" Width="160" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBA_WTMTitle" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="QM Name">
                                                    <ControlStyle Width="150px" />
                                                    <HeaderStyle Width="150" />
                                                    <ItemStyle HorizontalAlign="left" Width="150" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQM_Name" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Name").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="150" HeaderText="WB Caption">
                                                    <ControlStyle Width="150px" />
                                                    <HeaderStyle Width="100" />
                                                    <ItemStyle HorizontalAlign="left" Width="100" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="LblWB_Caption_QBA" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Caption").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QBA ID" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" Width="50px" />
                                                    <HeaderStyle HorizontalAlign="center" Width="50px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBA_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QBA Execution Constraint" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" Width="60px" />
                                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBA_Execution_constraint" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Execution_constraint").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QBA Created At" ControlStyle-Width="180px" Visible="true">
                                                    <ItemStyle CssClass="dateWidth" HorizontalAlign="Center" />
                                                    <HeaderStyle CssClass="dateWidth" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBA_Created_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="QBA Created By" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBA_Created_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBA_Created_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>

                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel ID="PanelDFQBA" runat="server" DefaultButton="btnEnterKeyQBA" HorizontalAlign="Left">
                                            <asp:Button ID="btnQBAPrevious" runat="server" CssClass="btnTable" Text="Prev" />
                                            <asp:TextBox ID="txtQBAPageNo" runat="server" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventQBA()" Text="1"></asp:TextBox>
                                            <asp:Button ID="btnQBANext" runat="server" CssClass="btnTable" Text="Next" />
                                            &nbsp;&nbsp;
                                                                                                                                                                            <asp:Label ID="lblQBARowsPerPage" runat="server" Text="Rows Per Page"></asp:Label>
                                            <asp:TextBox ID="txtQBARowsPerPage" MaxLength="3" runat="server" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventQBA()" Text="999"></asp:TextBox>
                                            &nbsp;&nbsp;
                                                                                                                                                                            <asp:Button ID="btnQBAExportToExcel" runat="server" CssClass="btnExcel" />
                                            <asp:Button ID="btnEnterKeyQBA" runat="server" Style="display: none" />
                                        </asp:Panel>
                                        <td>
                                            <asp:Label ID="lblQBAError" runat="server" Text=""></asp:Label>
                                        </td>
                                    </td>
                                </tr>
                            </table>

                        </asp:Panel>

                        <asp:Panel ID="panelQBMData" runat="server" Visible="false">

                            <table>
                                <tr>
                                    <td>

                                        <asp:GridView ID="dgvQueueButtonMappingReport" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  ShowHeaderWhenEmpty="true" Width="1000px">
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="lblQueueButtonMappingReport" runat="server" Text="No data found."></asp:Label>
                                            </EmptyDataTemplate>
                                            <Columns>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderText="WTM Title">
                                                    <HeaderStyle Width="120" />
                                                    <ItemStyle HorizontalAlign="left" Width="120" Wrap="true" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_WTMTitle" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="110" HeaderText="QM Name">
                                                    <HeaderStyle Width="100" />
                                                    <ItemStyle HorizontalAlign="left" Width="110" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_QMName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Name").ToString)%>'>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="false" HeaderText="WB Caption" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" Width="120px" />
                                                    <HeaderStyle Width="120px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_WBCaption" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Caption").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="QBM ID" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="true" HeaderText="QBM Enabled">
                                                    <ItemStyle HorizontalAlign="center" Width="60px" />
                                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Enabled_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Enabled_YN").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="true" HeaderText="QBM Success Queue ">
                                                    <ItemStyle HorizontalAlign="Right" Width="60px" />
                                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Success_Queue_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Success_Queue_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="true" HeaderText="QBM Fail Queue ">
                                                    <ItemStyle HorizontalAlign="Right" Width="60px" />
                                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Fail_Queue_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Fail_Queue_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="true" HeaderText="QBM Created At">
                                                    <ItemStyle HorizontalAlign="Center" Width="180px" />
                                                    <HeaderStyle HorizontalAlign="Center" Width="180px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Created_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="70px" HeaderStyle-Wrap="true" HeaderText="QBM Created By">
                                                    <ItemStyle HorizontalAlign="left" />
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Created_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Created_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="true" HeaderText="QBM Modified At">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Modified_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Modified_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="70px" HeaderStyle-Wrap="true" HeaderText="QBM Modified By">
                                                    <ItemStyle HorizontalAlign="left" />
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Modified_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Modified_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180px" HeaderStyle-Wrap="true" HeaderText="QBM Updated At">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Updated_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Updated_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="70px" HeaderStyle-Wrap="true" HeaderText="QBM Updated By">
                                                    <ItemStyle HorizontalAlign="left" />
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Updated_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Updated_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="QBM SP" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_SP" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_SP").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="QBM Text1" Visible="true">
                                                    <ItemStyle HorizontalAlign="left" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Text1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Text1").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="QBM Text2" Visible="true">
                                                    <ItemStyle HorizontalAlign="left" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Text2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Text2").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-Wrap="false" HeaderText="QBM Text3" Visible="true">
                                                    <ItemStyle HorizontalAlign="left" Width="80px" />
                                                    <HeaderStyle Width="80px" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblQBM_Text3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QBM_Text3").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>

                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel ID="PanelDFQBM" runat="server" DefaultButton="btnEnterKeyQBM">
                                            <asp:Button ID="btnQBMPrevious" runat="server" CssClass="btnTable" Text="Prev" />
                                            <asp:TextBox ID="txtQBMPageNo" runat="server" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventQBM()" Text="1"></asp:TextBox>
                                            <asp:Button ID="btnQBMNext" runat="server" CssClass="btnTable" Text="Next" />
                                            &nbsp;&nbsp;
                                                                                                                                <asp:Label ID="lblQBMRowsPerPage" runat="server" Text="Rows Per Page"></asp:Label>
                                            <asp:TextBox ID="txtQBMRowsPerPage" runat="server" MaxLength="3" CssClass="txtTable" onkeypress="return isNumberKey(event)" onkeyup="enterKeyEventQBM()" Text="999"></asp:TextBox>
                                            &nbsp;&nbsp;
                                                                                                                                <asp:Button ID="btnQBMExportToExcel" runat="server" CssClass="btnExcel" />
                                            <asp:Button ID="btnEnterKeyQBM" runat="server" Style="display: none" />
                                            <asp:Label ID="lblQBMError" runat="server" Text=""></asp:Label>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>

                        </asp:Panel>

                        <asp:Panel ID="pnlAccessTypes" runat="server" Visible="false">
                            <table>

                                <tr>
                                    <td>
                                        <asp:GridView ID="dgvAccTypes" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  ShowHeaderWhenEmpty="true" Width="1000px">
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="LabNDAT" runat="server" Text="No data found."></asp:Label>
                                            </EmptyDataTemplate>
                                            <Columns>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderText="AT ID" Visible="True">
                                                    <ItemStyle HorizontalAlign="RIght" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAT_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_id").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="false" HeaderText="AT Code" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAT_Code" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_Code").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="120" HeaderStyle-Wrap="true" HeaderText="AT LongName" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAT_LongName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_LongName").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="110" HeaderStyle-Wrap="true" HeaderText="AT misc1" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAT_misc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_misc1").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="AT misc2" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAT_misc2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_misc2").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="AT misc3" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAT_misc3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_misc3").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="AT misc4" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAT_misc4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_misc4").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="AT Created By" Visible="true">
                                                    <ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Left" />
                                                        <asp:Label ID="lblAT_CreatedBy" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_CreatedBy").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180" HeaderStyle-Wrap="true" HeaderText="AT Created At" Visible="true">
                                                    <ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        <asp:Label ID="lblAT_CreatedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_CretedAt", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel runat="server" DefaultButton="BtnEntAT">
                                            <asp:Button ID="btnPrevAT" runat="server" CssClass="btnTable" Text="Prev" />
                                            <asp:TextBox ID="txtpagenoAT" runat="server" CssClass="txtTable" MaxLength="6" onkeypress="return isNumberKey(event)" onkeyup="getenterAT()" Text="1"></asp:TextBox>
                                            <asp:Button ID="BtnEntAT" runat="server" Style="display: none" />
                                            <asp:Button ID="btnNextAT" runat="server" CssClass="btnTable" Text="Next" />
                                            &nbsp;&nbsp;
                                                                                                                                <asp:Label ID="lblrowsAT" runat="server" Text="Rows Per Page:" />
                                            <asp:TextBox ID="txtrwsAT" runat="server" CssClass="txtTable" MaxLength="3" onkeypress="return isNumberKey(event)" onkeyup="getenterAT()" Text="999" value="Enter rows here"></asp:TextBox>
                                            &nbsp;&nbsp;
                                                                                                                                <asp:Button ID="btnATExportToExcel" runat="server" CssClass="btnExcel" />
                                            <asp:HiddenField ID="hdn_pagenumberAT" runat="server" />
                                            <asp:HiddenField ID="hdn_pagenochangedAT" runat="server" />
                                            <asp:HiddenField ID="hdn_filterschangedAT" runat="server" />
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>

                        </asp:Panel>

                        <asp:Panel ID="pnlFirstAccessCntrl" runat="server" Visible="false">
                            <table>
                                <tr>
                                    <td>
                                        <asp:GridView ID="dgvFirstAccCntrl" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid Gridview"  ShowHeaderWhenEmpty="true" Width="1000px">
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="Label7" runat="server" Text="No data found."></asp:Label>
                                            </EmptyDataTemplate>
                                            <Columns>
                                                <asp:TemplateField ControlStyle-Width="110" HeaderText="WTM Title" Visible="True">
                                                    <ItemStyle HorizontalAlign="left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_WTM_Title" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_Title").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="110" HeaderText="AT Code" Visible="True">
                                                    <ItemStyle HorizontalAlign="left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_Code").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="110" HeaderText="AT LongName" Visible="True">
                                                    <ItemStyle HorizontalAlign="left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AT_LongName").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="false" HeaderText="FAC_ID" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_FAC_Id" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="FAC_WTM_id" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_FAC_WTM_id" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_WTM_id").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="110" HeaderStyle-Wrap="true" HeaderText="FAC_Login_Group" Visible="true">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_FAC_Login_Group" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Login_Group").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="FAC_Access_Type_ID" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_FAC_AT_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Access_Type_ID").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="FAC_Misc1" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_Misc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Misc1").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="FAC_Misc2" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_Misc2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Misc2").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="FAC_Misc3" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_Misc3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Misc3").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="FAC_Misc4" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_Misc4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Misc4").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="FAC_Misc1_int" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbl_FAC_FAC_Misc1_int" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Misc1_int").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="FAC_Misc2_int" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_FAC_Misc2_int" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Misc2_int").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="FAC_Misc3_int" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_FAC_Misc3_int" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Misc3_int").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="90" HeaderStyle-Wrap="true" HeaderText="FAC_Misc4_int" Visible="true">
                                                    <ItemStyle HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_FAC_Misc4_int" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Misc4_int").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="FAC_View" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbl_FAC_View" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_View").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="100" HeaderStyle-Wrap="true" HeaderText="FAC_Created_By" Visible="true">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFAC_Created_At" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Created_By").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField ControlStyle-Width="180" HeaderStyle-Wrap="true" HeaderText="FAC_Created_At" Visible="true">
                                                    <ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        <asp:Label ID="lbl_FAC_Created_By" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FAC_Created_At", "{0:dd-MMM-yyyy hh:mm tt}").ToString)%>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel runat="server" DefaultButton="BtnEntFAC">
                                            <asp:Button ID="btnPrevFAC" runat="server" CssClass="btnTable" Text="Prev" />
                                            <asp:TextBox ID="txtpagenoFAC" runat="server" CssClass="txtTable" MaxLength="6" onkeypress="return isNumberKey(event)" onkeyup="getenterFAC()" Text="1"></asp:TextBox>
                                            <asp:Button ID="BtnEntFAC" runat="server" Style="display: none" />
                                            <asp:Button ID="btnNextFAC" runat="server" CssClass="btnTable" Text="Next" />
                                            &nbsp;&nbsp;
                                                                                                                                <asp:Label ID="lblrowsFAC" runat="server" Text="Rows Per Page:" />
                                            <asp:TextBox ID="txtrwsFAC" runat="server" CssClass="txtTable" MaxLength="3" onkeyup="getenterFAC()" Text="999" value="Enter rows here"></asp:TextBox>
                                            &nbsp;&nbsp;
                                                                                                                                <asp:Button ID="btnFACExportToExcel" runat="server" CssClass="btnExcel" />
                                            <asp:HiddenField ID="hdn_pagenumberFAC" runat="server" />
                                            <asp:HiddenField ID="hdn_pagenochangedFAC" runat="server" />
                                            <asp:HiddenField ID="hdn_filterschangedFAC" runat="server" />
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>

            </table>
            <table>

                <tr>


                    <td class="ValignTop">
                        <table>
                            <tr>
                                <td>
                                    <tr>
                                        <td class="tdalign"></td>
                                    </tr>
                                    <%-------------------------------------------------------------------------------------------------Queue Master-------------------------------------------------------------------------------%>
                                    <tr>
                                        <td class="tdalign"></td>
                                    </tr>
                                    <%--  --------------------------------------------------------------------------------------------Workflow Buttons-------------------------------------------------------------------------------%>
                                    <tr>
                                        <td class="tdalign"></td>
                                    </tr>
                                    <%--------------------------------------------------------------------------------------------------------------------------------------------------%><%----------------------------------------------------Workflow Blotter Metadata (WBM)---------------------------------------------------------------%><%--------------------------------------------------------------------------------------------------------------------------------------------------%>
                                    <tr>
                                        <td class="tdalign"></td>
                                    </tr>
                                    <%--  ----------------------------------------------------------------------------------Workflow User Group------------------------------------------------------------------------------------%>
                                    <tr>
                                        <td class="tdalign"></td>
                                    </tr>
                                    <%--------------------------------------------------------------------------------------------Queue User Group---------------------------------------------------------------------------------%>
                                    <tr>
                                        <td class="tdalign"></td>
                                    </tr>
                                    <%--  =======================================================================================Added from Shubham ===========================================================================================--%>
                                    <tr>
                                        <td class="tdalign"></td>
                                    </tr>
                                    <%--------------------------------------------------------------------------------------------------------------------------------------------------%><%----------------------------------------------------Column User Group (CUG)-----------------------------------------------------------------------%><%--------------------------------------------------------------------------------------------------------------------------------------------------%>
                                    <tr>
                                        <td class="tdalign"><%---ADD Panel Data Here --%>
                                                    
                                        </td>
                                    </tr>
                                    <%-------------------------------------------------------------------------------------WORKFLOW ENTITY MAPPING---------------------------------------------------------------------------------------%>
                                    <tr>
                                        <td class="tdalign"><%---ADD Panel Data Here --%>
                                                    
                                        </td>
                                    </tr>
                                    <%--------------------------------------------------------------------------------------------------------------------------------------------------%><%----------------------------------------------------QueueBackgroundActions (QBA)------------------------------------------------------------------%><%--------------------------------------------------------------------------------------------------------------------------------------------------%>
                                    <%--<tr>
                                                <td class="tdalign">
                                                    
                                                </td>
                                            </tr>--%>
                                    <%--------------------------------------------------------------------------------------------------------------------------------------------------%><%----------------------------------------------------QUEUE BUTTON MAPPING (QBM)--------------------------------------------------------------------%><%--------------------------------------------------------------------------------------------------------------------------------------------------%>
                                    <%--<tr>
                                                <%--<td class="tdalign">-ADD Panel Data Here 
                                                    
                                                </td>--%>
                                    <%--</tr>--%>
                                    <tr>
                                        <td class="tdalign"><%---ADD Panel Data Here --%>
                                                    
                                        </td>
                                    </tr>
                                    <%--==============================================================================================Access Types==============================================================================================--%>
                                    <tr>
                                        <td class="tdalign"></td>
                                    </tr>
                                    <%--==========================================================================================First Access Control=====================================================================================--%>
                                    <tr>
                                        <td class="tdalign"></td>
                                    </tr>
                                </td>
                            </tr>
                            <%--Modified by Nikhil Mali for UI changes on 19-12-2019 : END--%>
                        </table>
                    </td>
                </tr>
            </table>


        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnWFTExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnQMExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnWBExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnWBMExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnWUGExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnQUGExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnCUGExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnWEMExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnQBAExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnQBMExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnATExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnFACExportToExcel"></asp:PostBackTrigger>
            <asp:PostBackTrigger ControlID="btnBUGExportToExcel"></asp:PostBackTrigger>
        </Triggers>

    </asp:UpdatePanel>

    <script type="text/javascript">
       
      
       

    </script>
</asp:Content>
