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

<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>
    <script src="../FinIQJS/SortFilter_Grid.js"></script>
    <style type="text/css">
        #ctl00_MainContent_dgvButtonMst tr:not(:first-child) td:nth-child(1) {
            display: inline-flex;
            border: none !important;
            justify-content: space-around;
            text-align: center;
        }

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

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

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

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

        .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
            background-color: #e6e6e600;
            color: #8080808c;
        }


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

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

    <script type="text/javascript">

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

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

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


    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        <asp:UpdateProgress ID="UpdateProgress3" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
                            DisplayAfter="0">
                            <ProgressTemplate>
                                <div class="divLoading">
                                    <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp;</span>
                                </div>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblError" runat="server" CssClass="lblerror"></asp:Label></td>
                                <asp:Label ID="lblInfo" CssClass="lblInfo" runat="server" Text=""></asp:Label>
                                <asp:Label ID="lblSuccess" CssClass="lblSuccess" runat="server" Text=""></asp:Label>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <asp:Label ID="lblWorkflow" runat="server" Text="Workflow"></asp:Label>&nbsp;
                <asp:DropDownList ID="cboWFType" runat="server" CssClass="ddl ddlCommon" AutoPostBack="true" AppendDataBoundItems="true" TabIndex="1">
                </asp:DropDownList>
                            <%--Added by Nikhil Mali on 20-11-2019 for vertical editing : START--%>
                            <%--UBPINT-6 changed by Prateek M--%>
                            <asp:Label ID="lblRowsPerPage" runat="server" Text="Row(s) per page :" Style="margin-left: 10px;" />
                            <asp:TextBox ID="txtRowsPerPage" runat="server" Text="999" Width="40px" Style="text-align: center;" AutoPostBack="true" MaxLength="3" onkeydown="EnterKeyEvent(event)" onkeypress="return isNumberKey(event)" />

                            <%--Added by Nikhil Mali on 20-11-2019 for vertical editing : END--%>
                        </div>

                        <asp:Button ID="btnCallCheckerTab" runat="server" Text="" Style="display: none"></asp:Button>
                        <asp:Button ID="btnCallViewerTab" runat="server" Text="" Style="display: none"></asp:Button>
                        <br />
                        <div id="tabs" runat="server">
                            <ul>

                                <li id="Li1" runat="server" onclick="clearErrorLabel1()"><a href="#tabs_1">Pending Requests</a></li>
                                <li id="Li2" runat="server" onclick="clearErrorLabel()"><a href="#tabs_2">Processed Requests</a></li>
                            </ul>
                            <br />


                            <div id="tabs_1">

                                <table>

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

                                                <Columns>
                                                    <%-- <asp:TemplateField>
                                                        <ItemStyle />
                                                        <HeaderStyle />
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="btnVerify" CommandName="Verify" runat="server" Text="Verify" Width="40px" CommandArgument='<%# Container.DataItemIndex%>' />
                                                        </ItemTemplate>

                                                    </asp:TemplateField>

                                                    <asp:TemplateField>
                                                        <ItemStyle />
                                                        <HeaderStyle />
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="btnReject" CommandName="Reject" runat="server" Text="Reject" Width="40px" CommandArgument='<%# Container.DataItemIndex%>'/>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>--%>






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



                                                    <asp:TemplateField HeaderStyle-Wrap="True" Visible="True" ControlStyle-Width="120px">
                                                        <ItemStyle Width="120px" HorizontalAlign="Left" />
                                                        <HeaderStyle Width="120px" />

                                                        <ItemTemplate>
                                                            <%--<asp:Label ID="lblID4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Name").ToString)%>' />--%>
                                                            <asp:LinkButton ID="linkVerify" runat="server" CommandName="Verify" CommandArgument='<%# Container.DataItemIndex%>' Text='Verify'></asp:LinkButton>
                                                            <asp:LinkButton ID="linkReject" runat="server" CommandName="Reject" CommandArgument='<%# Container.DataItemIndex%>' Text='Reject'></asp:LinkButton>
                                                        </ItemTemplate>

                                                    </asp:TemplateField>


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



                                                    <asp:TemplateField HeaderText="Button Caption" Visible="True" ControlStyle-Width="110">
                                                        <HeaderStyle Width="120px" />
                                                        <ItemStyle Wrap="true" Width="120px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblButtonCaption" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Caption").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtButtonCaption" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Caption").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

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


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



                                                    <asp:TemplateField HeaderText="Primary Execution Type" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70" />
                                                        <ItemStyle Wrap="true" Width="70" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblPrimeExe" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_type").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlPrimeExe" runat="server" AutoPostBack="True" CssClass="ddl">
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Primary Execution Code" Visible="True" ControlStyle-Width="140">
                                                        <HeaderStyle Width="140px" />
                                                        <ItemStyle Wrap="true" Width="140px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <div style="word-wrap: break-word">
                                                                <asp:Label ID="lblPrimeExeCode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype").ToString)%>' />
                                                            </div>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtPrimeExeCode" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Secondary Execution Type" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70" />
                                                        <ItemStyle Wrap="true" Width="70" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSecExe" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_type_sec").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlSecExe" runat="server" AutoPostBack="True" CssClass="ddl">
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Secondary Execution Code" Visible="True" ControlStyle-Width="80">
                                                        <HeaderStyle Width="80px" />
                                                        <ItemStyle Wrap="true" Width="80px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <div style="word-wrap: break-word;">
                                                                <asp:Label ID="lblPrimeSecCode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype_sec").ToString)%>' />
                                                            </div>
                                                            <div style="word-wrap: break-word;">
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtPrimeSecCode" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype_sec").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Success Queue" ControlStyle-Width="140">
                                                        <HeaderStyle Width="150" />
                                                        <ItemStyle Wrap="true" Width="150" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <%-- <asp:Label ID="lblSuccessQ" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_Success_Queue_Name").ToString)%>'>--%>
                                                            <asp:Label ID="lblSuccessQ" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Name_Success").ToString)%>'>
                                                                
                                                            
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlSuccessQ" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Fail Queue" ControlStyle-Width="140">
                                                        <HeaderStyle Width="150" />
                                                        <ItemStyle Wrap="true" Width="150" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <%-- <asp:Label ID="lblFailQ" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_Fail_Queue_Name").ToString)%>'>--%>
                                                            <asp:Label ID="Label1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.QM_Name_Fail").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlFailQ" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <%-- <asp:TemplateField HeaderText="User Group Access Permission" ControlStyle-Width="230" visible="false">
                                    <HeaderStyle Width="230" />
                                    <ItemStyle Wrap="true" Width="230" HorizontalAlign="left" />
                                    <ItemTemplate>
                                        <div style="word-wrap: break-word;">
                                            <asp:Label ID="lblUsrGrp" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserPermission").ToString)%>'>
                                            </asp:Label>
                                        </div>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtUsrGrp" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserPermission").ToString)%>'>
                                        </asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>--%>




                                                    <asp:TemplateField HeaderText="Display Priority" Visible="True">
                                                        <HeaderStyle Width="45px" HorizontalAlign="Center" />
                                                        <%--Edited By ShubhamPodhade on 24-Aug-2019 As told By Nikhil P ==> WIDTH SET to 45px--%>
                                                        <ItemStyle Wrap="true" Width="45px" HorizontalAlign="Right" CssClass="PaddingToDPColumnElements" />
                                                        <%--Edited By ShubhamPodhade on 24-Aug-2019 As told By Nikhil P ==> Added CSS Class:'PaddingToDPColumnElements'--%>
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDisplay" Width="45px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Display_Priority").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtDisplay" Width="45px" runat="server" Style="text-align: right;" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Display_Priority").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Workflow Visible YN" ControlStyle-Width="50">
                                                        <HeaderStyle Width="50" />
                                                        <ItemStyle Wrap="true" Width="50" HorizontalAlign="center" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblVisibleYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Visible_YN").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlVisibleYN" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                                <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>


                                                    <asp:TemplateField HeaderText="WFL Visible" ControlStyle-Width="50">
                                                        <HeaderStyle Width="60" />
                                                        <ItemStyle Wrap="true" Width="60" HorizontalAlign="center" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblActive_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Active_YN").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlActive_YN" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                                <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>



                                                    <asp:TemplateField HeaderText="Stored Procedure" Visible="True" ControlStyle-Width="260"><%-- column width changed--%>
                                                        <HeaderStyle Width="260px" />
                                                        <ItemStyle Wrap="true" Width="260px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <div style="word-wrap: break-word">
                                                                <asp:Label ID="lblStoredProc" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_SP_Name").ToString)%>' />
                                                            </div>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtStoredProc" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_SP_Name").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Right Click YN" ControlStyle-Width="40"><%-- column width changed--%>
                                                        <HeaderStyle Width="40" />
                                                        <ItemStyle Wrap="true" Width="40" HorizontalAlign="center" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblEnableYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Enable_YN").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlEnableYN" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                                <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Button Colour" Visible="True" ControlStyle-Width="60"><%-- column width changed--%>
                                                        <HeaderStyle Width="60px" />
                                                        <ItemStyle Wrap="true" Width="60px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblColour" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Color_YN").ToString)%>' />
                                                            <asp:Label ID="lblColour1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Color_YN").ToString)%>' Visible="false" />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtColour" runat="server" CssClass="txt" AutoPostBack="true" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Color_YN").ToString)%>'></asp:TextBox>
                                                            <%-- <cc1:ColorPickerExtender ID="txtColor_ColorPickerExtender" TargetControlID="txtColour" Enabled="True" runat="server"></cc1:ColorPickerExtender>--%>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Button Forecolor" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbltxtColour" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc2").ToString)%>' />
                                                            <asp:Label ID="lblforeColour1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc2").ToString)%>' Visible="false" />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtforeColour" runat="server" CssClass="txt" AutoPostBack="true" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc2").ToString)%>'></asp:TextBox>
                                                            <%--<cc1:ColorPickerExtender ID="txtColor_ForeColorPickerExtender" TargetControlID="txtforeColour" Enabled="True" runat="server"></cc1:ColorPickerExtender>--%>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Display PopUp YN" Visible="True" ControlStyle-Width="50">
                                                        <HeaderStyle Width="50px" />
                                                        <ItemStyle Wrap="true" Width="50px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDisPopUpYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Display_PopUp_YN").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlDisPopUpYN" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                                <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="PopUp Message" Visible="True" ControlStyle-Width="80">
                                                        <HeaderStyle Width="80px" />
                                                        <ItemStyle Wrap="true" Width="120px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblPopUpMsg" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_PopUpMessage").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtPopUpMsg" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_PopUpMessage").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="SubType" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSubType" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_SubType").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtSubType" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_SubType").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Remark1" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRemark1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark1").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtRemark1" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark1").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>


                                                    <asp:TemplateField HeaderText="Remark2" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRemark2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark2").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtRemark2" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark2").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Remark3" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRemark3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark3").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtRemark3" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark3").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>



                                                    <asp:TemplateField HeaderText="UDFCondition" Visible="True" ControlStyle-Width="100">
                                                        <HeaderStyle Width="100px" />
                                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWBUdfCondition" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFCondition").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtWBUdfCondition" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFCondition").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="UDFConditionRemark" Visible="True" ControlStyle-Width="150">
                                                        <HeaderStyle Width="100px" />
                                                        <ItemStyle Wrap="true" Width="150px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblUDFConditionRemark" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFConditionRemark").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtUDFConditionRemark" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFConditionRemark").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Condition" Visible="True" ControlStyle-Width="100">
                                                        <HeaderStyle Width="100px" />
                                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWB_Condition" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Condition").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtWB_Condition" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Condition").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="EditUCPColumns" Visible="True" ControlStyle-Width="150">
                                                        <HeaderStyle Width="100px" />
                                                        <ItemStyle Wrap="true" Width="150px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWB_EditUCPColumns" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_EditUCPColumns").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtWB_EditUCPColumns" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_EditUCPColumns").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--  Added by Jyoti K on 12 Aug 2021 | Start--%>
                                                    <asp:TemplateField HeaderText="Misc1" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMisc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc1").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtMisc1" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc1").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Misc3" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMisc3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc3").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtMisc3" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc3").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Misc4" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMisc4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc4").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtMisc4" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc4").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Misc5" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMisc5" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc5").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtMisc5" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc5").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--  Added by Jyoti K on 12 Aug 2021 | End--%>
													 <%--Added by Jyotik |25 Aug 2021 for JIRA: UCP_InternalUCP-225 |start--%>

                                                    <asp:TemplateField HeaderText="WB_Code" Visible="true">

                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWBCode" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Code").ToString)%>' />
                                                        </ItemTemplate>
                                                        <%--                                                <EditItemTemplate>
                                                    <asp:TextBox ID="txtCode" runat="server" CssClass="txt"></asp:TextBox>
                                                </EditItemTemplate>--%>
                                                    </asp:TemplateField>
													 <%--Added by Jyotik |25 Aug 2021 for JIRA: UCP_InternalUCP-225 |end--%>



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

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

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


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


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

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

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

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

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

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




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

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

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

                                                <Columns>
                                                    <%-- <asp:TemplateField>
                                                        <ItemStyle />
                                                        <HeaderStyle />
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="btnVerify" CommandName="Verify" runat="server" Text="Verify" Width="40px" CommandArgument='<%# Container.DataItemIndex%>'/>
                                                        </ItemTemplate>

                                                    </asp:TemplateField>

                                                    <asp:TemplateField>
                                                        <ItemStyle />
                                                        <HeaderStyle />
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="btnReject" CommandName="Reject" runat="server" Text="Reject" Width="40px" CommandArgument='<%# Container.DataItemIndex%>'/>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>--%>






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



                                                    <asp:CommandField ButtonType="Link" ShowEditButton="true" EditText="Edit" UpdateText="Update" CancelText="Cancel" ShowCancelButton="true" ControlStyle-Width="40" Visible="false">
                                                        <HeaderStyle Width="90" />
                                                        <ItemStyle Wrap="false" Width="40" HorizontalAlign="center" />
                                                    </asp:CommandField>

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


                                                    <asp:TemplateField HeaderText="Button Caption" Visible="True" ControlStyle-Width="110">
                                                        <HeaderStyle Width="120px" />
                                                        <ItemStyle Wrap="true" Width="120px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblButtonCaption" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Caption").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtButtonCaption" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Caption").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>


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

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



                                                    <asp:TemplateField HeaderText="Primary Execution Type" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70" />
                                                        <ItemStyle Wrap="true" Width="70" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblPrimeExe" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_type").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlPrimeExe" runat="server" AutoPostBack="True" CssClass="ddl">
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Primary Execution Code" Visible="True" ControlStyle-Width="140">
                                                        <HeaderStyle Width="140px" />
                                                        <ItemStyle Wrap="true" Width="140px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <div style="word-wrap: break-word">
                                                                <asp:Label ID="lblPrimeExeCode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype").ToString)%>' />
                                                            </div>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtPrimeExeCode" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Secondary Execution Type" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70" />
                                                        <ItemStyle Wrap="true" Width="70" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSecExe" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_type_sec").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlSecExe" runat="server" AutoPostBack="True" CssClass="ddl">
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Secondary Execution Code" Visible="True" ControlStyle-Width="80">
                                                        <HeaderStyle Width="80px" />
                                                        <ItemStyle Wrap="true" Width="80px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <div style="word-wrap: break-word;">
                                                                <asp:Label ID="lblPrimeSecCode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype_sec").ToString)%>' />
                                                            </div>
                                                            <div style="word-wrap: break-word;">
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtPrimeSecCode" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_execution_object_subtype_sec").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Success Queue" ControlStyle-Width="140">
                                                        <HeaderStyle Width="150" />
                                                        <ItemStyle Wrap="true" Width="150" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSuccessQ" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_Success_Queue_Name").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlSuccessQ" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Fail Queue" ControlStyle-Width="140">
                                                        <HeaderStyle Width="150" />
                                                        <ItemStyle Wrap="true" Width="150" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblFailQ" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_Fail_Queue_Name").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlFailQ" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <%-- <asp:TemplateField HeaderText="User Group Access Permission" ControlStyle-Width="230" visible="false">
                                    <HeaderStyle Width="230" />
                                    <ItemStyle Wrap="true" Width="230" HorizontalAlign="left" />
                                    <ItemTemplate>
                                        <div style="word-wrap: break-word;">
                                            <asp:Label ID="lblUsrGrp" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserPermission").ToString)%>'>
                                            </asp:Label>
                                        </div>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtUsrGrp" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserPermission").ToString)%>'>
                                        </asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>--%>




                                                    <asp:TemplateField HeaderText="Display Priority" Visible="True">
                                                        <HeaderStyle Width="45px" HorizontalAlign="Center" />
                                                        <%--Edited By ShubhamPodhade on 24-Aug-2019 As told By Nikhil P ==> WIDTH SET to 45px--%>
                                                        <ItemStyle Wrap="true" Width="45px" HorizontalAlign="Right" CssClass="PaddingToDPColumnElements" />
                                                        <%--Edited By ShubhamPodhade on 24-Aug-2019 As told By Nikhil P ==> Added CSS Class:'PaddingToDPColumnElements'--%>
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDisplay" Width="45px" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Display_Priority").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtDisplay" Width="45px" runat="server" Style="text-align: right;" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Display_Priority").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Workflow Visible YN" ControlStyle-Width="50">
                                                        <HeaderStyle Width="50" />
                                                        <ItemStyle Wrap="true" Width="50" HorizontalAlign="center" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblVisibleYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Visible_YN").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlVisibleYN" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                                <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>


                                                    <asp:TemplateField HeaderText="WFL Visible" ControlStyle-Width="50">
                                                        <HeaderStyle Width="60" />
                                                        <ItemStyle Wrap="true" Width="60" HorizontalAlign="center" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblActive_YN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Active_YN").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlActive_YN" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                                <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>



                                                    <asp:TemplateField HeaderText="Stored Procedure" Visible="True" ControlStyle-Width="260"><%-- column width changed--%>
                                                        <HeaderStyle Width="260px" />
                                                        <ItemStyle Wrap="true" Width="260px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <div style="word-wrap: break-word">
                                                                <asp:Label ID="lblStoredProc" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_SP_Name").ToString)%>' />
                                                            </div>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtStoredProc" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Process_SP_Name").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Right Click YN" ControlStyle-Width="40"><%-- column width changed--%>
                                                        <HeaderStyle Width="40" />
                                                        <ItemStyle Wrap="true" Width="40" HorizontalAlign="center" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblEnableYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Enable_YN").ToString)%>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlEnableYN" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                                <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Button Colour" Visible="True" ControlStyle-Width="60"><%-- column width changed--%>
                                                        <HeaderStyle Width="60px" />
                                                        <ItemStyle Wrap="true" Width="60px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblColour" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Color_YN").ToString)%>' />
                                                            <asp:Label ID="lblColour1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Color_YN").ToString)%>' Visible="false" />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtColour" runat="server" CssClass="txt" AutoPostBack="true" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Color_YN").ToString)%>'></asp:TextBox>
                                                            <%--<cc1:ColorPickerExtender ID="txtColor_ColorPickerExtender" TargetControlID="txtColour" Enabled="True" runat="server"></cc1:ColorPickerExtender>--%>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Button Forecolor" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbltxtColour" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc2").ToString)%>' />
                                                            <asp:Label ID="lblforeColour1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc2").ToString)%>' Visible="false" />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtforeColour" runat="server" CssClass="txt" AutoPostBack="true" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc2").ToString)%>'></asp:TextBox>
                                                            <%--  <cc1:ColorPickerExtender ID="txtColor_ForeColorPickerExtender" TargetControlID="txtforeColour" Enabled="True" runat="server"></cc1:ColorPickerExtender>--%>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Display PopUp YN" Visible="True" ControlStyle-Width="50">
                                                        <HeaderStyle Width="50px" />
                                                        <ItemStyle Wrap="true" Width="50px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblDisPopUpYN" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Display_PopUp_YN").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="ddlDisPopUpYN" runat="server" AutoPostBack="True" CssClass="ddl" Width="120">
                                                                <asp:ListItem Value="" Text=""></asp:ListItem>
                                                                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                                                                <asp:ListItem Value="N" Text="N"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="PopUp Message" Visible="True" ControlStyle-Width="80">
                                                        <HeaderStyle Width="80px" />
                                                        <ItemStyle Wrap="true" Width="120px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblPopUpMsg" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_PopUpMessage").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtPopUpMsg" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_PopUpMessage").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="SubType" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSubType" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_SubType").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtSubType" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_SubType").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Remark1" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRemark1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark1").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtRemark1" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark1").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>


                                                    <asp:TemplateField HeaderText="Remark2" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRemark2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark2").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtRemark2" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark2").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Remark3" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblRemark3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark3").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtRemark3" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Remark3").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>


                                                    <asp:TemplateField HeaderText="UDFCondition" Visible="True" ControlStyle-Width="100">
                                                        <HeaderStyle Width="100px" />
                                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWBUdfCondition" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFCondition").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtWBUdfCondition" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFCondition").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="UDFConditionRemark" Visible="True" ControlStyle-Width="150">
                                                        <HeaderStyle Width="100px" />
                                                        <ItemStyle Wrap="true" Width="150px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblUDFConditionRemark" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFConditionRemark").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtUDFConditionRemark" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_UDFConditionRemark").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Condition" Visible="True" ControlStyle-Width="100">
                                                        <HeaderStyle Width="100px" />
                                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWB_Condition" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Condition").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtWB_Condition" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Condition").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="EditUCPColumns" Visible="True" ControlStyle-Width="150">
                                                        <HeaderStyle Width="100px" />
                                                        <ItemStyle Wrap="true" Width="150px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblWB_EditUCPColumns" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_EditUCPColumns").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtWB_EditUCPColumns" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_EditUCPColumns").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <%--  Added by Jyoti K on 12 Aug 2021 | Start--%>
                                                    <asp:TemplateField HeaderText="Misc1" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMisc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc1").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtMisc1" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc1").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Misc3" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMisc3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc3").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtMisc3" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc3").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Misc4" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMisc4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc4").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtMisc4" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc4").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Misc5" Visible="True" ControlStyle-Width="70">
                                                        <HeaderStyle Width="70px" />
                                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="left" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMisc5" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc5").ToString)%>' />
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtMisc5" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Misc5").ToString)%>'></asp:TextBox>
                                                        </EditItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--  Added by Jyoti K on 12 Aug 2021 | End--%>

                                                    <asp:TemplateField HeaderText="WB_Code" Visible="true">

                                                <ItemTemplate>
                                                    <asp:Label ID="lblWBCode" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WB_Code").ToString)%>' />
                                                </ItemTemplate>
<%--                                                <EditItemTemplate>
                                                    <asp:TextBox ID="txtCode" runat="server" CssClass="txt"></asp:TextBox>
                                                </EditItemTemplate>--%>
                                            </asp:TemplateField>

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

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

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


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


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

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

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

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

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



                                                </Columns>
                                            </asp:GridView>

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

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

        </ContentTemplate>
    </asp:UpdatePanel>

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

        function PageLoad_WFLAccessControl() {
            debugger;
            SetTabs();

        }

        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : evt.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }

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

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

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


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


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

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

                }

            });
        }


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

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


                })

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

        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_endRequest(function (s, e) {
            highlightTd();
            return void (0);
        });
    </script>
</asp:Content>
