<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="DocGenTagLibrary.aspx.vb" Inherits="FinIQWebApp.DocGenTagLibrary" %>

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

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <%--Removed unnecessary script allowOnlyNumber--%>
            <script src="../FinIQJS/SortFilter_Grid.js"></script>
            <%--Adding header freezing script--%>
            <script src="../FinIQJS/FreezeGrid.js"></script>
            <link href="../FinIQJS/FreezeGrid.css" rel="stylesheet" type="text/css"/>
            
            <style type="text/css">
                /*17-Aug-2020 | Added ruby Rajeshree Kathariya for DDL focus | JIRA FINNELPINT-284*/
                .ddl:focus {
                    background-color:#f2f2f2;
                }

                .divWidth {
                    min-width: 1200px !important;
                }

                .txtTextToSearchShowAllTag, .txtFormatCreateTag, .txtDescriptionCreateTag, .txtAliasTableAlias { /* Fix by Saurabh Kulkarni for Alignment on 02-Nov-2018 */
                    width: 193px !important;
                }

                .ddlDatabaseTableAlias, .ddlSchemaTableAlias, .ddlTableTableAlias, .ddlDataBaseCreateTag, .ddlSchemaCreateTag {
                    width: 200px !important;
                }

                .ddlTableCreateTag, .ddlAliasCreateTag, .ddlColumnCreateTag, .ddlDataTypeCreateTag, .ddlDataBaseShowAllTag, .ddlSchemaShowAllTag {
                    width: 200px !important;
                }

                .ddlTableShowAllTag, .ddlAliasShowAllTag {
                    width: 200px !important;
                }

                .btn, .btn:hover {
                    width: 95px !important;
                    /*text-align:left !important;
            font: bold 11px verdana !important;*/
                }

                .txtCapitals {
                    text-transform: uppercase;
                }
            </style>
            <%--=================================================================================--%>
            <script type="text/javascript">

                //START | 16-Aug-2020 | Added by Rajeshree for rows per page
                function allowOnlyNumber(evt) {
                    
                    evt = (evt) ? evt : window.event;
                    var char = (evt.which) ? evt.which : evt.keyCode;
                    if (char > 31 && (char < 48 || char > 57)) {
                        return false;
                    }
                    return true;
                }


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

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

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

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

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

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

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

                    if (code == 13) {
                        __doPostBack('<%=txtFreeTextTagRecordCount.ClientID%>', 'TextChanged');
                    }
                }
                //END | 16-Aug-2020 | Added by Rajeshree for rows per page

                //3-Sep-2020 | Modified  by Rajeshree K for tab sequencing in text boxes.
                function isAlpha(keyCode) {
                    return ((keyCode >= 65 && keyCode <= 90) || keyCode == 8 || keyCode == 32 || keyCode==9)
                }

                function ExpandCollapse() {
                    var collPanel = $find("CollapsiblePanelExtender1");
                    if (collPanel.get_Collapsed())
                        collPanel.set_Collapsed(false);
                    else
                        collPanel.set_Collapsed(true);
                }

                function LoadToolTips() {
                    try {
                        //create table alias
                        var ddlDatabaseTableAlias = document.getElementById("<%=ddlDatabaseTableAlias.ClientID%>");
                        for (var i = 1; i < ddlDatabaseTableAlias.options.length; i++) {
                            var title = ddlDatabaseTableAlias.options[i].value;
                            ddlDatabaseTableAlias.options[i].setAttribute("title", title);
                        }

                        var ddlSchemaTableAlias = document.getElementById("<%=ddlSchemaTableAlias.ClientID%>");
                        for (var i = 1; i < ddlSchemaTableAlias.options.length; i++) {
                            var title = ddlSchemaTableAlias.options[i].value;
                            ddlSchemaTableAlias.options[i].setAttribute("title", title);
                        }

                        var ddlTableTableAlias = document.getElementById("<%=ddlTableTableAlias.ClientID%>");
                        for (var i = 1; i < ddlTableTableAlias.options.length; i++) {
                            var title = ddlTableTableAlias.options[i].value;
                            ddlTableTableAlias.options[i].setAttribute("title", title);
                        }


                        //create tag
                        var ddlDataBaseCreateTag = document.getElementById("<%=ddlDataBaseCreateTag.ClientID%>");
                        for (var i = 1; i < ddlDataBaseCreateTag.options.length; i++) {
                            var title = ddlDataBaseCreateTag.options[i].value;
                            ddlDataBaseCreateTag.options[i].setAttribute("title", title);
                        }

                        var ddlSchemaCreateTag = document.getElementById("<%=ddlSchemaCreateTag.ClientID%>");
                        for (var i = 1; i < ddlSchemaCreateTag.options.length; i++) {
                            var title = ddlSchemaCreateTag.options[i].value;
                            ddlSchemaCreateTag.options[i].setAttribute("title", title);
                        }

                        var ddlTableCreateTag = document.getElementById("<%=ddlTableCreateTag.ClientID%>");
                        for (var i = 1; i < ddlTableCreateTag.options.length; i++) {
                            var title = ddlTableCreateTag.options[i].value;
                            ddlTableCreateTag.options[i].setAttribute("title", title);
                        }
                        var ddlAliasCreateTag = document.getElementById("<%=ddlAliasCreateTag.ClientID%>");
                        for (var i = 1; i < ddlAliasCreateTag.options.length; i++) {
                            var title = ddlAliasCreateTag.options[i].value;
                            ddlAliasCreateTag.options[i].setAttribute("title", title);
                        }

                        var ddlColumnCreateTag = document.getElementById("<%=ddlColumnCreateTag.ClientID%>");
                        for (var i = 1; i < ddlColumnCreateTag.options.length; i++) {
                            var title = ddlColumnCreateTag.options[i].value;
                            ddlColumnCreateTag.options[i].setAttribute("title", title);
                        }

                        var ddlDataTypeCreateTag = document.getElementById("<%=ddlDataTypeCreateTag.ClientID%>");
                        for (var i = 1; i < ddlDataTypeCreateTag.options.length; i++) {
                            var title = ddlDataTypeCreateTag.options[i].value;
                            ddlDataTypeCreateTag.options[i].setAttribute("title", title);
                        }

                        //show all tags
                        var ddlDataBaseShowAllTag = document.getElementById("<%=ddlDataBaseShowAllTag.ClientID%>");
                        for (var i = 1; i < ddlDataBaseShowAllTag.options.length; i++) {
                            var title = ddlDataBaseShowAllTag.options[i].value;
                            ddlDataBaseShowAllTag.options[i].setAttribute("title", title);
                        }
                        var ddlSchemaShowAllTag = document.getElementById("<%=ddlSchemaShowAllTag.ClientID%>");
                        for (var i = 1; i < ddlSchemaShowAllTag.options.length; i++) {
                            var title = ddlSchemaShowAllTag.options[i].value;
                            ddlSchemaShowAllTag.options[i].setAttribute("title", title);
                        }

                        var ddlTableShowAllTag = document.getElementById("<%=ddlTableShowAllTag.ClientID%>");
                        for (var i = 1; i < ddlTableShowAllTag.options.length; i++) {
                            var title = ddlTableShowAllTag.options[i].value;
                            ddlTableShowAllTag.options[i].setAttribute("title", title);
                        }

                        var ddlAliasShowAllTag = document.getElementById("<%=ddlAliasShowAllTag.ClientID%>");
                        for (var i = 1; i < ddlAliasShowAllTag.options.length; i++) {
                            var title = ddlAliasShowAllTag.options[i].value;
                            ddlAliasShowAllTag.options[i].setAttribute("title", title);
                        }
                    }
                    catch (err) {
                        //print?
                    }

                };
            </script>

            <%--=================================================================================--%>
            <%--START | 6-JUL-2020 | Added by Rajeshree Kathariya for JIRAS FINNELPINT 176--%>
            <script type="text/javascript">
                <%--START | 20-Aug-2020 | Added by Rajeshree Kathariya for Show all UDF tags panel--%>
                function CallLoadEvtOfShowAllUDFTags(e) {

                    if (e.keyCode == 13 || event.keyCode == 9) {
                        document.getElementById('<%=btnLoadShowUDFTag.ClientID%>').click();
                    }
                    else
                        return true;
                }
     
                function CallLoadEvtOfShowAllTags(e) {

                    if (e.keyCode == 13 || event.keyCode == 9) {
                        document.getElementById('<%=btnLoadShowAllTag.ClientID%>').click();
                    }
                    else
                        return true;
                }


                function CallLoadEvtOfCustomTags(e) {

                    if (e.keyCode == 13 || event.keyCode == 9) {
                        document.getElementById('<%=btnLoadudf.ClientID%>').click();
                    }
                    else
                        return true;
                }

				//Ashutosh.A || 5-march-2021 || Changes done for RHBUPINT-2464 || Export to excel changes
                function GetGridHeaderName(Gridname) {

                    console.log(Gridname);
                    var table = document.getElementById("ctl00_MainContent_"+Gridname);
                    console.log(table);
                    var headers = table.getElementsByTagName('th');
                    var str_headers = "";
                    var str_length_header = "";
                    for (var i = 0; i < headers.length; i++) {
                        
                        str_length_header = headers[i].innerText;
                        str_length_header.trim();

                        if (str_length_header.length > 0) {
                            str_headers = str_headers + (headers[i].innerText);
                            str_headers = str_headers + "|";
                        }
                    }
                    str_headers = str_headers.slice(0, -1);
                    //hdnGridHeaderName
                    document.getElementById("ctl00_MainContent_hdnGridHeaderName").value = str_headers;
                    console.log(str_headers);
                }

                 
                function SomeMethod(button) {
                    debugger;
                    var btn = document.getElementById(button);
                    //alert(btn.value);
                    btn.value = btn.value ;
                }
            

            </script>
            <%--END | 6-JUL-2020 | Added by Rajeshree Kathariya for JIRAS FINNELPINT 176--%>

            <table style="width: 100%;">
                <tr>
                    <td>
                        <%--<asp:Image id="imgTick" runat="server" ImageUrl="~/App_Resources/CHECKMRK1.png"/>--%>
                        <asp:Label ID="lblSuccessMessge" runat="server" ForeColor="Green"></asp:Label>
                        <asp:Label ID="lblErrorMessage" runat="server" ForeColor="Red"></asp:Label>
                        <asp:Label ID="lblWarningMessage" runat="server" ForeColor="Blue"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnCreateTableAliasPanel" runat="server" Text="Create Table Alias" CssClass="btn" Style="width: 100%; min-width: 1880px !important; text-align: left !important; font: bold 11px verdana !important;" OnClientClick="SomeMethod(this.id);"  ToolTip="Click here to maximize or minimize"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="PnlCreateTableAlias" runat="server" BorderColor="LightGray" BorderWidth="1px" BorderStyle="None">
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <tr>
                                    <td colspan="8"></td>
                                </tr>
                                <tr style="height: 35px;">
                                    <td>
                                        <asp:Label ID="lblDataBaseTableAlias" runat="server" CssClass="lbl" Text="DataBase"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlDatabaseTableAlias" runat="server" CssClass="ddl ddlDatabaseTableAlias" AutoPostBack="true" Width="200px" TabIndex="1"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblSchemaTableAlias" runat="server" CssClass="lbl" Text="Schema"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlSchemaTableAlias" runat="server" CssClass="ddl ddlSchemaTableAlias" AutoPostBack="true" Width="200px" TabIndex="2"></asp:DropDownList>
                                    </td>                                                                                                         
                                </tr>
                                <tr style="height: 35px; ">
                                    <td>
                                        <asp:Label ID="lblTableTableAlias" runat="server" CssClass="lbl" Text="Table"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlTableTableAlias" runat="server" CssClass="ddl ddlTableTableAlias" Width="200px" TabIndex="3"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblAliasTableAlias" runat="server" CssClass="lbl" Text="Alias"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:TextBox ID="txtAliasTableAlias" runat="server" CssClass="txt txtAliasTableAlias txtCapitals" MaxLength="4" Style="width: 200px !important;" onkeydown="return isAlpha(event.keyCode);" TabIndex="4"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr style="height:30px; vertical-align:middle">
								<%--  FINNELPINT-310|| Rajeshree K || 7-Sep-2020 --%>
								<td>
                                        <asp:Label ID="lblTypeTableAlias" runat="server" CssClass="lbl" Text="Alias Purpose"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlTypeTableAlias" runat="server" CssClass="ddl ddlTableTableAlias" Width="200px" TabIndex="5">
                                            <asp:ListItem Value="">Default</asp:ListItem>
                                            <asp:ListItem Value="Document">Document</asp:ListItem>
                                            <asp:ListItem Value="Interface">Interface</asp:ListItem>
                                            <asp:ListItem Value="Email">Email</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <!-- <td></td>
                                      <td style="padding-left:5px;">
                                        <asp:RadioButton runat="server" ID="rdbTableAliasInt" Text="Interface" GroupName="rdbAliasFor" TabIndex="6"></asp:RadioButton>
                                    <asp:RadioButton ID="rdbTableAliasDoc" Text="Document" runat="server" GroupName="rdbAliasFor" Width="100px" Checked="true" TabIndex="5"></asp:RadioButton>

                                      </td>-->
                                </tr>
                                <tr style="height: 50px; vertical-align: middle;">
                                    <td></td>
                                    <td style="padding-left: 10px;">
                                        <!--14-Aug-2020| Rajeshree Kathariya | Removed confirmationbox for save-->
                                        <asp:Button ID="btnSaveTableAlias" runat="server" CssClass="btn" Text="Save" TabIndex="6" />
                                        <span>&nbsp;</span>
                                        <asp:Button ID="btnCancelTableAlias" runat="server" CssClass="btn" Text="Cancel" TabIndex="7" />

                                    </td>
                                </tr>
                                <tr style="height:20px;">
                                    <td></td>
                                    <td colspan="5" style="text-align: right; padding-left: 90px;"></td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>

                <tr>
                    <td>
                        <asp:Button ID="btnShowAllTableAlias" runat="server" Text="Show All Table Alias" CssClass="btn" Style="width: 100%; min-width: 1880px !important; text-align: left !important; font: bold 11px verdana !important;" ToolTip="Click here to maximize or minimize"/>
                    </td>
                </tr>

                <tr>
                    <td>
                        <%--3-sep-2020 | Rajeshree K | Various modifications made for JIRA FINNELPINT-308--%>
                        <asp:Panel ID="pnlShowAllTableAlias" runat="server" BorderColor="LightGray" BorderWidth="1px" BorderStyle="None" Visible="false">
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <tr style="height: 5px;">
                                    <td colspan="7"></td>
                                </tr>
                                <tr style="height: 35px;">
                                    <td>
                                        <asp:Label ID="Label3" runat="server" CssClass="lbl" Text="DataBase"></asp:Label>
                                    </td>
                                    <td style="padding-right: 10px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlShowAllTableAliasDatabase" runat="server" CssClass="ddl ddlDatabaseTableAlias" AutoPostBack="true" Width="200px" TabIndex="1"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label4" runat="server" CssClass="lbl" Text="Schema"></asp:Label>
                                    </td>
                                    <td style="padding-right: 10px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlShowAllTableAliasSchema" runat="server" CssClass="ddl ddlSchemaTableAlias" AutoPostBack="true" Width="200px" TabIndex="2"></asp:DropDownList>
                                    </td>
                                    <td style="text-align: right">
                                        <asp:Button ID="btnLoadTableAlias" runat="server" CssClass="btn" Text="Load" TabIndex="11" />
                                    </td>

                                    <td style="text-align: right">
                                        <asp:Button ID="btnCreateScript" runat="server" CssClass="btn" Text="Create Scripts" TabIndex="12" />
                                    </td>
                                    <%--14-Aug-2020| Added by Shraddha Dahale for Rows per page functionality (JIRA FINNELPINT-284)--%>
                                    <%--Ashutosh.A || 5-march-2021 || Changes done for RHBUPINT-2464 || Export to excel changes--%>
                                    <td style="text-align:right">
                                        <asp:Button ID="btnExporttoExcel_ShowAllTagAlias" style="margin-left:10px"  runat="server" OnClientClick="GetGridHeaderName('gvTableAlias')" CssClass="btn" Text="Export to Excel" TabIndex="13" />
                                    </td>

                                    <td style="padding-right: 10px; padding-left: 10px; padding-top: 10px;">
                                        <asp:Label ID="lblTotalRecordsShowAllTableAlias" runat="server" Text="Total Records:" />
                                    </td>
                                    <td style="padding-right: 10px; padding-top: 10px;">
                                        <asp:Label ID="lblTotalRecordsCntShowTableAlias" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <%--17-Sep-2020 | Rajeshree Kathariya | Adding Alias For filter | FINNELPINT 310--%>
                                    <td>
                                        <asp:Label ID="lblAliasForShowAllTableAlias" runat="server" CssClass="lbl" Text="Alias Purpose"></asp:Label>
                                    </td>
                                    <td style="padding-right: 10px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlShowAllTableAliasAliasFor"  runat="server" CssClass="ddl ddlTableTableAlias" Width="200px" TabIndex="3" AutoPostBack="true">
                                            <asp:ListItem Value="All">All</asp:ListItem>
                                            <asp:ListItem Value="">Default</asp:ListItem>
                                            <asp:ListItem Value="Document">Document</asp:ListItem>
                                            <asp:ListItem Value="Interface">Interface</asp:ListItem>
                                            <asp:ListItem Value="Email">Email</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label1" runat="server" CssClass="lbl" Text="Table"></asp:Label>
                                    </td>
                                    <td style="padding-right: 10px; padding-left: 10px;">
                                        <%--8-Oct-20 | Rajeshree Kathariya | Added autopostback property for FINNELPINT-316--%>
                                        <asp:DropDownList ID="ddlShowAllTableAliasTable" runat="server" CssClass="ddl ddlTableTableAlias" Width="200px" TabIndex="3" AutoPostBack="true"></asp:DropDownList>
                                    </td>

                                  <%--  <td>
                                        <asp:Label ID="Label2" runat="server" CssClass="lbl" Text="Alias" Visible="false"></asp:Label>
                                    </td>
                                    <td style="padding-right: 10px; padding-left: 10px;">
                                        <asp:TextBox ID="TextBox1" runat="server" CssClass="txt txtAliasTableAlias txtCapitals" MaxLength="4" Style="width: 200px !important;" onkeydown="return isAlpha(event.keyCode);" TabIndex="4" Visible="false"></asp:TextBox>
                                    </td>--%>
                                    <%--16-Aug-2020 | Rajeshree Kathariya | Removed Confirmation message for Update--%>
                                    <td style="text-align: right; padding-left: 10px;">
                                        <asp:Button ID="btnUpdateTableAlias" runat="server" CssClass="btn" Text="Update" TabIndex="8" />
                                    </td>
                                    <td style="text-align: right; padding-left: 10px;">
                                        <%--28-Aug-2020 | Confirmation box removed by Rajeshree K--%>
                                        <asp:Button ID="btnDeleteTableAlias" runat="server" CssClass="btn" Text="Delete" TabIndex="9" />
                                    </td>
                                    <td style="padding-right: 10px; padding-left: 10px; padding-top: 10px;">
                                   
                                    </td>
                                    <td style="padding-right: 10px; padding-left: 10px; padding-top: 10px;">
                                        <asp:Label ID="lblRowsPerPage" runat="server" Text="Record(s) per page" />
                                    </td>
                                    <td style="padding-right: 10px; padding-top: 10px;">
                                        <asp:TextBox ID="txtRowsPerPageShowAllTableAlias" CssClass="txt" runat="server" Text="10" Width="40px" Style="text-align: right;" AutoPostBack="true" MaxLength="3" onkeydown="EnterKeyEventShowAllTableAlias(event)" onkeypress="return allowOnlyNumber(event)" />
                                    </td>
                                </tr>
                            </table>
                            <table style="margin-top: 2px; margin-bottom: 4px;">
                                <tr>
                                    <td colspan="4">
                                        <asp:GridView ID="gvTableAlias" runat="server" CssClass="Grid" CssStyle="word-break:break-all; word-wrap:break-word" AutoGenerateColumns="false" AllowPaging="true" PageSize="5" TabIndex="12" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found">
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <%--  FINNELPINT-284|| Added pagersettings for paging || ShraddhaD || 14-Aug-2020 --%>
                                            <PagerSettings Mode="NumericFirstLast" FirstPageText="First" LastPageText="Last" Position="Bottom" />
                                            <PagerStyle CssClass="GridPager" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="lblTblAlias" runat="server" CssClass="lbl" Text="No data found."></asp:Label>
                                            </EmptyDataTemplate>
                                            <Columns>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        <HeaderStyle Width="50" />
                                                        <asp:CheckBox runat="server" ID="chkHeaderTableAlias" AutoPostBack="true" OnCheckedChanged="chkHeaderTableAlias_CheckedChanged" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox runat="server" ID="chkChildTableAlias" AutoPostBack="true" OnCheckedChanged="chkChildTableAlias_CheckedChanged" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:CommandField ButtonType="Link" ShowEditButton="true" EditText="Edit" UpdateText="" runat="server"/>
                                                <asp:TemplateField HeaderText="Alias Id" Visible="false">
                                                    <HeaderStyle />
                                                    <ItemStyle />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblALIAS_IDTableAlias" runat="server" Text='<%# Eval("ALIAS_ID")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Database Name">
                                                    <HeaderStyle Width="130" />
                                                    <ItemStyle Width="130" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDataBaseNameTableAlias" runat="server" Width="130px" Text='<%# Eval("DATABASE_NAME")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Schema Name">
                                                    <HeaderStyle Width="100" />
                                                    <ItemStyle Width="100" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSchema_NameTableAlias" runat="server" Width="100px" Text='<%# Eval("Schema_Name")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Table Name">
                                                    <HeaderStyle />
                                                    <ItemStyle Width="280px" Wrap="true" />
                                                    <ItemTemplate>
                                                        <div style="word-break: break-all">
                                                            <asp:Label ID="lblTable_NameTableAlias" runat="server" Width="280px" Text='<%# Eval("Table_Name")%>'></asp:Label>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Alias Name">
                                                    <HeaderStyle Width="120" />
                                                    <ItemStyle Width="120" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAlias_NameTableAlias" runat="server" Width="120px" Text='<%# Eval("Alias_Name")%>'></asp:Label>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtAlias_Name" runat="server" Width="120px" Text='<%# Eval("Alias_Name")%>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Alias Purpose">
                                                    <HeaderStyle Width="100" />
                                                    <ItemStyle Width="100" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAliasFor" runat="server" Width="100px" Text='<%# Eval("Alias_For")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnCreateTagPanel" Text="Create Tag" CssClass="btn" Style="width: 100%; min-width: 1880px !important; text-align: left !important; font: bold 11px verdana !important;" ToolTip="Click here to maximize or minimize"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="PnlCreateTag" runat="server" Height="290px" BorderColor="LightGray" BorderWidth="1px" Visible="false" BorderStyle="None">
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <tr>
                                    <td colspan="4"></td>
                                </tr>
                                <tr style="height: 30px;">
                                    <td>
                                        <asp:Label ID="lblDataBaseCreateTag" runat="server" CssClass="lbl" Text="DataBase"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlDataBaseCreateTag" runat="server" CssClass="ddl ddlDataBaseCreateTag" AutoPostBack="true" Width="200px" TabIndex="1"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblSchemaCreateTag" runat="server" CssClass="lbl" Text="Schema"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlSchemaCreateTag" runat="server" CssClass="ddl ddlSchemaCreateTag" AutoPostBack="true" Width="200px" TabIndex="2"></asp:DropDownList>
                                    </td>
                                </tr>
                                <tr style="height: 30px;">
                                    <td>
                                        <asp:Label ID="lblTableCreateTag" runat="server" CssClass="lbl" Text="Table"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlTableCreateTag" runat="server" CssClass="ddl ddlTableCreateTag" AutoPostBack="true" Width="200px" TabIndex="3"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblActonCreateTag" runat="server" CssClass="lbl" Text="Alias"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlAliasCreateTag" runat="server" CssClass="ddl ddlAliasCreateTag" AutoPostBack="true" Width="200px" TabIndex="4"></asp:DropDownList>
                                    </td>
                                </tr>
                                <tr style="height: 30px;">
                                    <td>
                                        <asp:Label ID="lblColumnCreateTag" runat="server" CssClass="lbl" Text="Field"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlColumnCreateTag" runat="server" CssClass="ddl ddlColumnCreateTag" AutoPostBack="true" Width="200px" TabIndex="5"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblDataTypeCreateTag" runat="server" CssClass="lbl" Text="DataType"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlDataTypeCreateTag" runat="server" CssClass="ddl ddlDataTypeCreateTag" Width="205px" TabIndex="6"></asp:DropDownList>
                                    </td>
                                </tr>
                                <tr style="height: 30px;">
                                    <td>
                                        <asp:Label ID="lblFormatCreateTag" runat="server" CssClass="lbl" Text="Format"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:TextBox ID="txtFormatCreateTag" runat="server" CssClass="txtFormatCreateTag" TabIndex="7" Style="width: 200px !important;"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblDescriptionCreateTag" runat="server" CssClass="lbl" Text="Description"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:TextBox ID="txtDescriptionCreateTag" runat="server" CssClass="txt txtDescriptionCreateTag" TabIndex="8" Style="width: 200px !important;"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr style="height: 30px;">
                                    <td>
                                        <asp:Label ID="lblFreeFormateTagCreateTag" runat="server" CssClass="lbl" Text="Free Format Tag" />
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:TextBox ID="txtFreeFormatTagCreateTag" runat="Server" CssClass="txt txtFormatCreateTag" TabIndex="9" Style="width: 200px !important;" /></td>
                                    <td style="display: none;">
                                        <asp:Label ID="lblIsUsedinDocGen" runat="server" CssClass="lbl" Text="Is used in DocGen" />
                                    </td>
                                    <td style="display: none; padding-right: 30px; padding-left: 10px;">
                                        <asp:CheckBox ID="chkIsUsedInDocGenCreateTag" runat="server" Checked="false" TabIndex="10" />
                                    </td>
                                    <%--Ashutosh.A || 10-August-2020 || Change done for Mandatory YN Flag  || Finnelpint-313--%>
                                    <td>
                                        <asp:Label ID="lblMandatoryYN" runat="server" Visible="false" CssClass="lbl" Text="Mandatory Y/N"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="chkMandatoryYN"  runat="server" Visible="false" CssClass="chk" />
                                    </td>
                                </tr>
                                <tr id="TrCustodianFilter" runat="server" style="height: 30px;">
                                    <td>
                                        <asp:Label ID="lblCustodianCreateTag"  runat="server" CssClass="lbl" Text="Custodian"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlCustodianCreateTag"  runat="server" CssClass="ddl ddlDataTypeCreateTag" Width="200px"></asp:DropDownList>
                                    </td>
                                </tr>
								<%--Ashutosh.A || 18-Jan-2021 || Change done for Swift Type  || MASINT-1197 || Start--%>
                                <tr id="TrSwiftType" runat="server">
                                    <td>
                                        <asp:Label ID="lblSwiftTypeName" runat="server" CssClass="lbl" Text="Swift Type"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlSwiftType" runat="server" CssClass="ddl ddlDataTypeCreateTag" width="200px"></asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblSwiftDescription" runat="server" CssClass="lbl" Text="Swift Description"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSwiftDescription" runat="server" CssClass="txt" Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
								<%--Ashutosh.A || 10-August-2020 || Change done for Swift Type  || MASINT-1197 || END--%>
                                <tr style="height: 30px;">
                                    <td></td>
                                    <td style="padding-top: 5px;padding-right: 30px;padding-left:10px;">
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Button ID="btnSaveCreateTag" runat="server" CssClass="btn" Text="Save" TabIndex="11" />
                                                </td>
                                                <td style="padding-left:10px;">
                                                     <asp:Button ID="btnCancelCreateTag" runat="server" CssClass="btn" Text="Cancel" TabIndex="12" />
                                                </td>
                                            </tr>
                                        </table>
                                        
                                       
                                    </td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                </tr>

                            </table>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnShowAllTagsPanel" Text="Show All Tags" CssClass="btn" Style="width: 100%; min-width: 1880px !important; text-align: left !important; font: bold 11px verdana !important;" ToolTip="Click here to maximize or minimize"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="PnlShowAllTags" runat="server" BorderColor="LightGray" BorderWidth="1px" Visible="false" BorderStyle="None">
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <%--28-Aug-2020 | Rajeshree K | Alignments adjusted | FINNELPINT-306 --%>
                                <tr>
                                    <td colspan="9"></td>
                                </tr>
                                <tr >
                                    <td style="padding-top:10px">
                                        <asp:Label ID="lblDataBaseShowAllTag" runat="server" CssClass="lbl" Text="DataBase"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px;padding-left:10px; padding-top:10px;" >
                                        <asp:DropDownList ID="ddlDataBaseShowAllTag" runat="server" CssClass="ddl ddlDataBaseShowAllTag" AutoPostBack="true" Width="200px" AppendDataBoundItems="true" TabIndex="1">
                                            <asp:ListItem Text="All" Value="All" />
                                        </asp:DropDownList>
                                    </td>
                                    <td style="padding-top:10px">
                                        <asp:Label ID="lblSchemaShowAllTag" runat="server" CssClass="lbl" Text="Schema"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px;padding-left:10px;padding-top:10px;">
                                        <asp:DropDownList ID="ddlSchemaShowAllTag" runat="server" CssClass="ddl ddlSchemaShowAllTag" AutoPostBack="true" Width="200px" AppendDataBoundItems="true" TabIndex="2">
                                        </asp:DropDownList>
                                    </td>
                                   <%-- 21-Sep-2020 | Rajeshree K | Added label and dropdown for alias purpose for FINNELPINT-310--%>
                                    <%--Also re-arranged Table label and dropdown.--%>
                                                          
                                    <td style="padding-top:10px">
                                        <asp:Label ID="lblTableShowAllTag" runat="server" CssClass="lbl" Text="Table"></asp:Label>
                                    </td>
                                    <td style="padding-right: 10px;padding-left:10px;padding-top:10px">
                                        <asp:DropDownList ID="ddlTableShowAllTag" runat="server" CssClass="ddl ddlTableShowAllTag" AutoPostBack="true" Width="200px" AppendDataBoundItems="true" TabIndex="3">
                                            <asp:ListItem Text="All" Value="All" />
                                        </asp:DropDownList>
                                    </td>

                                    <td style="padding-left:10px;padding-top:10px;">
                                        <asp:Button ID="btnLoadShowAllTag" runat="server" CssClass="btn" Text="Load" TabIndex="6" />
                                    </td>
                                    <td style="padding-left: 10px; padding-top: 10px;">
                                        <%--31-Aug-2020 | Removed confirmation message as per UI standards--%>
                                        <asp:Button ID="btnUpdateShowAllTag" runat="server" CssClass="btn" Text="Update" TabIndex="7" />
                                    </td>
									<%--Ashutosh.A || 5-march-2021 || Changes done for RHBUPINT-2464 || Export to excel changes--%>
                                    <td style="padding-left: 10px; padding-top: 10px;">
                                        <asp:Button ID="btnExporttoExcel_ShowAllTag" style="margin-left:10px" runat="server" OnClientClick="GetGridHeaderName('gvShowAllTag')" CssClass="btn" Text="Export to Excel" TabIndex="8" />
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px; padding-top: 10px;">
                                        <asp:Label ID="lblTotalRecordsShowAllTags" runat="server" Text="Total Records:" />
                                    </td>
                                    <td style="padding-right: 30px; padding-left: 10px; padding-top: 10px;">
                                        <asp:Label ID="lblTotalRecordsCntShowAllTags" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                     <td style="padding-top:10px">
                                        <asp:Label ID="lblAliasShowAllTag" runat="server" CssClass="lbl" Text="Alias"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px;padding-left:10px; padding-top:10px;">
                                        <asp:DropDownList ID="ddlAliasShowAllTag" runat="server" CssClass="ddl ddlAliasShowAllTag" Width="200px" AppendDataBoundItems="true" TabIndex="4" AutoPostBack="True">
                                            <asp:ListItem Text="All" Value="All" />
                                        </asp:DropDownList>
                                    </td>

                                      <td>
                                        <asp:Label ID="lblAliasForShowAllTags" runat="server" CssClass="lbl" Text="Alias Purpose"></asp:Label>
                                    </td>
                                    <td style="padding-right: 10px; padding-left: 10px;">
                                        <asp:DropDownList ID="ddlAliasForShowAllTags"  runat="server" CssClass="ddl ddlTableTableAlias" Width="200px" TabIndex="3" AutoPostBack="true">
                                            <asp:ListItem Value="All">All</asp:ListItem>
                                            <asp:ListItem Value="">Default</asp:ListItem>
                                            <asp:ListItem Value="Document">Document</asp:ListItem>
                                            <asp:ListItem Value="Interface">Interface</asp:ListItem>
                                            <asp:ListItem Value="Email">Email</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>  
                                    
                                   
                                   <%-- 28-Aug-2020 | Rajeshree K | onkeydown moved from label to textbox--%>
                                    <td>
                                        <asp:Label ID="lblTextToSearchShowAllTag" runat="server" CssClass="lbl" Text="Text to Search" ></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px;padding-left:10px;padding-top:10px;">
                                        <asp:TextBox ID="txtTextToSearchShowAllTag" runat="server" CssClass="txt txtTextToSearchShowAllTag" TabIndex="5" Style="width: 200px !important;" onkeydown="return CallLoadEvtOfShowAllTags(event)"></asp:TextBox>
                                    </td>
                                    <td style="padding-left:10px;padding-top:10px;">
                                        <%--28-Aug-2020 | Confirmation box removed by Rajeshree K--%>
                                        <asp:Button ID="btnDeleteShowAllTag" runat="server" CssClass="btn" Text="Delete" TabIndex="8" />
                                    </td>

                                    <td style="padding-left:10px;padding-top:10px;">
                                        <asp:Button ID="btnCancelShowAllTag" runat="server" CssClass="btn" Text="Cancel" TabIndex="9" />
                                    </td>
                                    <td style="padding-left:10px;padding-top:10px;"></td>
                                    <td style="padding-left:10px;padding-top:10px;"><%--  FINNELPINT-284|| Added Records per page || ShraddhaD || 14-Aug-2020 --%>
									 <asp:Label runat="server" ID="lblShowAllTagPageSize" CssClass="lbl" Text="Record(s) per page"></asp:Label>
									</td>
                                    <td style="padding-right: 30px;padding-left:10px;padding-top:10px;">
									<asp:TextBox ID="txtShowAllTagRecordCount"  runat="server" CssClass="txt txtTextToSearchShowAllTag" style="text-align:right; width: 40px !important;" AutoPostBack="True" onkeypress="return allowOnlyNumber(event);" MaxLength="3" Width="40px" Text="10"  ></asp:TextBox>
									</td>
                                </tr>

                                <tr id="TrCustodianFilterShowAllTag"  runat="server" >
                                    <td style="padding-top:10px">
                                        <asp:Label ID="lblCustodianShowAllTag" runat="server" CssClass="lbl" Text="Custodian"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px;padding-left:10px; padding-top:10px;">
                                        <asp:DropDownList ID="ddlCustodianShowAllTag" runat="server" CssClass="ddl ddlAliasShowAllTag" Width="200px"></asp:DropDownList>
                                    </td>                                    
                                </tr>
								<%--Ashutosh.A || 18-Jan-2021 || Change done for Swift Type  || MASINT-1197--%>
                                <tr id="TrSwiftTypeShowAllTag" runat="server">
                                    <td style="padding-top:10px">
                                        <asp:Label ID="lblSwiftTypeShowAllTag" runat="server" CssClass="lbl" Text="Swift Type"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px;padding-left:10px; padding-top:10px;">
                                        <asp:DropDownList ID="DDLSwiftTypeShowAllTag" runat="server" CssClass="ddl" Width="200px"></asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="8" style="text-align: right;padding-left:10px;"></td>
                                </tr>
                            </table>
                            <table style="margin-top: 2px; margin-bottom: 4px;">
                                <tr>
                                    <td colspan="6">
                                        <asp:GridView ID="gvShowAllTag" runat="server" CssClass="Grid" AutoGenerateColumns="false" PageSize="20" AllowPaging="true" TabIndex="10" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found">
                                            <%--AllowPaging="true"   PageSize="10"--%>
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <%--  FINNELPINT-284|| Added pagersettings for paging || ShraddhaD || 14-Aug-2020 --%>
											<PagerSettings Mode="NumericFirstLast" FirstPageText="First" LastPageText="Last" Position="Bottom" />
                                            <PagerStyle CssClass="GridPager" />
                                            <%-- 8-Oct-20 | Rajeshree Kathariya | Modified widths of columns for FINNELPINT-316--%>
                                            <Columns>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        <asp:CheckBox runat="server" ID="chkHeader" AutoPostBack="true" OnCheckedChanged="chkHeader_CheckedChanged" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox runat="server" ID="chkChild" AutoPostBack="true" OnCheckedChanged="chkChild_CheckedChanged" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:CommandField ButtonType="Link" ShowEditButton="true" EditText="Edit" UpdateText="" runat="server" />
                                                <asp:TemplateField HeaderText="Tag Id" ItemStyle-HorizontalAlign="center">
                                                    <HeaderStyle  Width="30"/>
                                                    <ItemStyle  Width="30" HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTag_Id" width="30px" runat="server" Text='<%# Eval("Tag_Id")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Database">
                                                    <HeaderStyle  Width="100"/>
                                                    <ItemStyle  Width="100"/>
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word ">
                                                            <asp:Label ID="lblDataBase_Name"  Width="100px" runat="server" Text='<%# Eval("DataBase_Name")%>'></asp:Label>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Schema">
                                                    <HeaderStyle  Width="40"/>
                                                    <ItemStyle  Width="40"/>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSchema_Name"  Width="40px" runat="server" Text='<%# Eval("Schema_Name")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Table">
                                                    <%--<HeaderStyle  Width="100"/>
                                                    <ItemStyle  Width="100"/>--%>
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word ">
                                                        <asp:Label ID="lblTable_Name" min-Width="100px" runat="server" Text='<%# Eval("Table_Name")%>'></asp:Label>
                                                            </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Alias">
                                                    <%--<HeaderStyle Width="30"/>
                                                    <ItemStyle Width="30"/>--%>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAlias_Name" min-Width="30px" runat="server" Text='<%# Eval("Alias_Name")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Field">
                                                    <%--<HeaderStyle Width="110"/>
                                                    <ItemStyle Width="110"/>--%>
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word">
                                                            <asp:Label ID="lblDTI_TAG_VALUE" min-Width="110px" runat="server" Text='<%# Eval("DTI_TAG_VALUE")%>'></asp:Label>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tag">
                                                    <%--<HeaderStyle Width="110"/>
                                                    <ItemStyle Width="110"/>--%>
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word ">
                                                            <asp:Label ID="lblTag" runat="server" min-Width="110" Text='<%# Eval("Tag")%>'></asp:Label>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                                <asp:TemplateField HeaderText="Data Type">
                                                    <HeaderStyle Width="50"/>
                                                    <ItemStyle Width="50"/>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblDataType" Width="50" runat="server" Text='<%# Eval("DTI_DATA_TYPE")%>'></asp:Label>
                                                    </ItemTemplate>
                                                    <%--16-Aug-2020| Modified by Rajeshree Kathariya | JIRA FINNELPINT-177--%>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlDataType" Width="100" runat="server"></asp:DropDownList>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Format">
                                                    <HeaderStyle Width="100"/>
                                                    <ItemStyle Width="100"/>
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word ">
                                                            <asp:Label ID="lblFormat" Width="100" runat="server" Text='<%# Eval("Format")%>'></asp:Label>
                                                        </div>             
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtFormat" Width="100" runat="server" Text='<%# Eval("Format")%>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Description">
                                                    <%--<HeaderStyle Width="80"/>
                                                    <ItemStyle Width="80"/>--%>
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word ">
                                                            <asp:Label ID="lblDTI_Description" min-Width="80" runat="server" Text='<%# Eval("DTI_Description")%>'></asp:Label>
                                                        </div>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtDTI_Description" TextMode ="MultiLine"  Width="80" runat="server" Text='<%# Eval("DTI_Description")%>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Free Format Tag">
                                                    <HeaderStyle Width="120"/>
                                                    <ItemStyle Width="120"/>
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word ">
                                                            <asp:Label ID="lblTemplateColumn" Width="120" runat="server" Text='<%# Eval("TemplateColumn")%>'></asp:Label>
                                                        </div>                                                    
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtTemplateColumn" Width="120" runat="server" Text='<%# Eval("TemplateColumn")%>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Used In DocGen" Visible="true">
                                                    <HeaderStyle Width="20"/>
                                                    <ItemStyle Width="20" HorizontalAlign="Center"/>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUsedInDocGen" Width="20px" runat="server" Text='<%# Eval("DTI_USEDINDOCGENYN")%>'></asp:Label>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlUsedInDocgen" Width="45px" runat="server" />
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Alias Purpose">
                                                    <HeaderStyle Width="50"/>
                                                    <ItemStyle Width="50"/>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAliasFor" Width="50" runat="server" Text='<%# Eval("Alias_For")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--Ashutosh.A || 10-August-2020 || Change done for Mandatory YN Flag || Finnelpint-313--%>
                                                 <asp:TemplateField HeaderText="Mandatory Y/N" Visible="true">
                                                    <HeaderStyle Width="40"/>
                                                    <ItemStyle Width="40" HorizontalAlign="Center"/>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblisMandatory" Width="20px" runat="server" Text='<%# Eval("DTI_ISMANDATORYYN")%>'></asp:Label>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlisMandatory" Width="50px" runat="server" />
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
												<%--Ashutosh.A || 18-Jan-2021 || Change done for Swift Type  || MASINT-1197 || Start--%>
                                                <asp:TemplateField HeaderText="Swift Type" Visible="true">
                                                    <HeaderStyle Width="100"/>
                                                    <ItemStyle Width="100" HorizontalAlign="Center"/>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSwiftType_ShowAllTag" Width="100px" runat="server" Text='<%# Eval("DTI_SwiftType")%>'></asp:Label>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:DropDownList ID="ddlSwiftType_showalltag" Width="100px" runat="server" />
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Swift Description" Visible="true">
                                                    <HeaderStyle Width="100"/>
                                                    <ItemStyle Width="100" HorizontalAlign="Center"/>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSwiftDescription_ShowAllTag" Width="100px" runat="server" Text='<%# Eval("DTI_SwiftTypeDescription")%>'></asp:Label>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtSwiftDescription_ShowAllTag" Width="100px" runat="server" />
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
												<%--Ashutosh.A || 18-Jan-2021 || Change done for Swift Type  || MASINT-1197 || End--%>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnUDFTagsPanel" Text="UDF Tags" CssClass="btn" Style="width: 100%; min-width: 1880px !important; text-align: left !important; font: bold 11px verdana !important;" ToolTip="Click here to maximize or minimize"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="PnlUDFTags" runat="server" BorderColor="LightGray" BorderWidth="1px" Visible="false" BorderStyle="None">
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <tr>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <table>
                                            <tr style="height:30px;">
                                                <td>
                                                    <asp:Label ID="lblUDFTagType" runat="server" CssClass="lbl" Text="UDF Tag Type "></asp:Label>
                                                </td>
                                                <td style="padding-right: 30px;padding-left:10px;">
                                                    <%--<asp:TextBox ID="txtUDFTagType" runat="server" CssClass="txt"></asp:TextBox>--%>
                                                    <asp:DropDownList ID="ddlUDFTagType" runat="server" CssClass="ddl" Style="width: 200px !important;" TabIndex="1">
                                                        <asp:ListItem>SERVER_DATE</asp:ListItem>
                                                        <asp:ListItem>CLIENT_DATE</asp:ListItem>
                                                        <asp:ListItem>SERVER_TIME</asp:ListItem>
                                                        <asp:ListItem>CLIENT_TIME</asp:ListItem>
                                                        <asp:ListItem>SERVER_DATETIME</asp:ListItem>
                                                        <asp:ListItem>CLIENT_DATETIME</asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr style="height:30px;">
                                                <td>
                                                    <asp:Label ID="lblUDFTagFormat" runat="server" CssClass="lbl" Text="UDF Tag Format "></asp:Label>
                                                </td>
                                                <td style="padding-right: 30px;padding-left:10px;">
                                                    <%--<asp:TextBox ID="txtUDFTagFormat" runat="server" CssClass="txt"></asp:TextBox>--%>
                                                    <asp:DropDownList ID="ddlUDFTagFormat" runat="server" CssClass="ddl" Style="width: 200px !important;" TabIndex="2">
                                                        <asp:ListItem>dd-MMM-yyyy</asp:ListItem>
                                                        <asp:ListItem>dd-MMM-yy</asp:ListItem>
                                                        <asp:ListItem>dd-mm-yyyy</asp:ListItem>
                                                        <asp:ListItem>MM-dd-yyyy</asp:ListItem>
                                                        <asp:ListItem>yyyy-mm-dd</asp:ListItem>
                                                        <asp:ListItem>yyyy-dd-mm</asp:ListItem>

                                                        <asp:ListItem>dd-MMM-yyyy HH:mm:ss</asp:ListItem>
                                                        <asp:ListItem>dd-MMM-yyyy HH:mm:ss.fff</asp:ListItem>
                                                        <asp:ListItem>dd-MMM-yyyy hh:mm:ss tt</asp:ListItem>
                                                        <asp:ListItem>dd-MMM-yyyy hh:mm:ss.fff tt</asp:ListItem>

                                                        <asp:ListItem>HH:mm</asp:ListItem>
                                                        <asp:ListItem>hh:mm tt</asp:ListItem>
                                                        <asp:ListItem>HH:mm:ss</asp:ListItem>
                                                        <asp:ListItem>HH:mm:ss.fff</asp:ListItem>
                                                        <asp:ListItem>hh:mm:ss tt</asp:ListItem>
                                                        <asp:ListItem>hh:mm:ss.fff tt</asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>

                                            </tr>
                                           <tr style="height:30px;">
                                                <td>
                                                    <asp:Label ID="lblUDFTagValue" runat="server" CssClass="lbl" Text="UDF Tag Value "></asp:Label>
                                                </td>
                                                <td style="padding-right: 30px;padding-left:10px;">
                                                    <asp:TextBox ID="txtUDFTagValue" runat="server" CssClass="txt" TabIndex="3" Width="184px" Style="width: 200px !important;"></asp:TextBox>
                                                </td>

                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <tr style="height:30px;">
                                    <td style="width: 93px"></td>
                                    <td style="padding-left:10px;">
                                        <asp:Button runat="server" ID="btnCreateUDFTag" Text="Create" CssClass="btn" TabIndex="4" />
                                    </td>
                                    <td style="padding-left:10px;">
                                        <asp:Button runat="server" ID="btnCancelUDFTag" Text="Cancel" CssClass="btn" TabIndex="5" />
                                    </td>
                                    
                                </tr>
                            </table>
                           
                        </asp:Panel>
                    </td>
                </tr>

                <%--Start || Show UDF Tags || FINNELPINT- 294 || Shraddha D || 19- Aug-2020--%>
                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnShowUDFTags" Text="Show All UDF Tags" CssClass="btn" Style="width: 100%; min-width: 1880px !important; text-align: left !important; font: bold 11px verdana !important;" ToolTip="Click here to maximize or minimize"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="PnlShowUDFTags" runat="server" BorderColor="LightGray" BorderWidth="1px" Visible="false" BorderStyle="None">
                              
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <tr>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <table>
                                            <tr style="height:30px;">
                                                <td>
                                                    <asp:Label ID="lblTagTypeShowUDF" runat="server" CssClass="lbl" Text="UDF Tag Type "></asp:Label>
                                                </td>
                                                <td style="padding-right: 30px;padding-left:10px;">
                                                    
                                                    <asp:DropDownList ID="ddlTagTypeSHowUDF" runat="server" CssClass="ddl" Style="width: 200px !important;" TabIndex="1" AutoPostBack="True">
                                                        <asp:ListItem>ALL</asp:ListItem>
                                                        <asp:ListItem>SERVER_DATE</asp:ListItem>
                                                        <asp:ListItem>CLIENT_DATE</asp:ListItem>
                                                        <asp:ListItem>SERVER_TIME</asp:ListItem>
                                                        <asp:ListItem>CLIENT_TIME</asp:ListItem>
                                                        <asp:ListItem>SERVER_DATETIME</asp:ListItem>
                                                        <asp:ListItem>CLIENT_DATETIME</asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr style="height:30px;">
                                                <td>
                                                    <asp:Label ID="lblTagFormatSHowUDF" runat="server" CssClass="lbl" Text="UDF Tag Format "></asp:Label>
                                                </td>
                                                <td style="padding-right: 30px;padding-left:10px;">
                                                    
                                                    <asp:DropDownList ID="ddlTagFormatShowUDF" runat="server" CssClass="ddl" Style="width: 200px !important;" TabIndex="2" AutoPostBack="True">
                                                        <asp:ListItem>ALL</asp:ListItem>
                                                        <asp:ListItem>dd-MMM-yyyy</asp:ListItem>
                                                        <asp:ListItem>dd-MMM-yy</asp:ListItem>
                                                        <asp:ListItem>dd-mm-yyyy</asp:ListItem>
                                                        <asp:ListItem>MM-dd-yyyy</asp:ListItem>
                                                        <asp:ListItem>yyyy-mm-dd</asp:ListItem>
                                                        <asp:ListItem>yyyy-dd-mm</asp:ListItem>

                                                        <asp:ListItem>dd-MMM-yyyy HH:mm:ss</asp:ListItem>
                                                        <asp:ListItem>dd-MMM-yyyy HH:mm:ss.fff</asp:ListItem>
                                                        <asp:ListItem>dd-MMM-yyyy hh:mm:ss tt</asp:ListItem>
                                                        <asp:ListItem>dd-MMM-yyyy hh:mm:ss.fff tt</asp:ListItem>

                                                        <asp:ListItem>HH:mm</asp:ListItem>
                                                        <asp:ListItem>hh:mm tt</asp:ListItem>
                                                        <asp:ListItem>HH:mm:ss</asp:ListItem>
                                                        <asp:ListItem>HH:mm:ss.fff</asp:ListItem>
                                                        <asp:ListItem>hh:mm:ss tt</asp:ListItem>
                                                        <asp:ListItem>hh:mm:ss.fff tt</asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>

                                            </tr>
                                           <tr style="height:30px;">
                                                <td>
                                                    <asp:Label ID="lblTagValueShowUDF" runat="server" CssClass="lbl" Text="UDF Tag Value "></asp:Label>
                                                </td>
                                                <td style="padding-right: 30px;padding-left:10px;">
                                                    <asp:TextBox ID="txtTagValueShowUDF" runat="server" CssClass="txt" TabIndex="3" Width="184px" Style="width: 200px !important;" onkeydown="return CallLoadEvtOfShowAllUDFTags(event)" AutoPostBack="True"></asp:TextBox>
                                                </td>

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

                            <table>
                                <tr style="height:30px;">
                                    <td style="width: 93px"></td>
                                    <td style="padding-left:10px;">
                                        <asp:Button runat="server" ID="btnLoadShowUDFTag" Text="Load" CssClass="btn" TabIndex="4" />
                                    </td>
                                    <td style="padding-left:10px;">
                                        <asp:Button runat="server" ID="btnUpdateUDFTag" Text="Update" CssClass="btn" TabIndex="5" />
                                    </td>
                                    <td style="padding-left:10px;">
                                        <asp:Button runat="server" ID="btnDeleteUDFTag" Text="Delete" CssClass="btn" TabIndex="6" />
                                    </td>
									<%--Ashutosh.A || 5-march-2021 || Changes done for RHBUPINT-2464 || Export to excel changes--%>
                                    <td style="padding-left:10px;">
                                        <asp:Button runat="server" ID="btnExporttoExcel_UDFTages" OnClientClick="GetGridHeaderName('gvUDFTags')" Text="Export to Excel" CssClass="btn" TabIndex="7" />
                                    </td>
                                    
                                     <%--14-Sep-20| Rajeshree K | Modified padding | JIRA FINNELPINT-308--%>
									<td style="padding-left:10px;padding-right:5px;">
                                        <asp:Label runat="server" ID="lblUDFTagPageSize" CssClass="lbl" Text="Record(s) per page"></asp:Label>
                                    </td>
                                    <td style="padding-right: 20px;">
                                        <asp:TextBox ID="txtUDFTagRecordCount"  runat="server" CssClass="txt" style="text-align:right" Height="20px" AutoPostBack="True" onkeypress="return allowOnlyNumber(event);" MaxLength="3" Width="40px" Text="10"  ></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblTotalRecordsUDFTags" runat="server" Text="Total Records:" />
                                   </td>
                                   <td>
                                        <asp:Label ID="lblTotalRecordsCntUDFTags" runat="server"  />
                                   </td>
                                </tr>
                            </table>
                            <table style="margin-top: 2px; margin-bottom: 4px;">
                                <tr style="height:10px">
                                    <td></td>
                                </tr>

                                <tr>
                                    <td>
                                        <asp:GridView ID="gvUDFTags" runat="server" CssClass="Grid" AutoGenerateColumns="false" PageSize="20" AllowPaging="true" TabIndex="8" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found">
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <%--  FINNELPINT-284|| Added pagersettings for paging || ShraddhaD || 14-Aug-2020 --%>
											<PagerSettings Mode="NumericFirstLast" FirstPageText="First"
											    LastPageText="Last" Position="Bottom" />
                                            <PagerStyle CssClass="GridPager" />
                                            <%--14-Sep-20| Rajeshree K | Modified widths of columns| JIRA FINNELPINT-308--%>
                                            <Columns>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        <asp:CheckBox runat="server" ID="chkHeaderUDF" AutoPostBack="true" OnCheckedChanged="chkHeaderUDF_CheckedChanged" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox runat="server" ID="chkChildUDF" AutoPostBack="true" OnCheckedChanged="chkChildUDF_CheckedChanged" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:CommandField ButtonType="Link" ShowEditButton="true" EditText="Edit" UpdateText="" runat="server" />
                                                <asp:TemplateField HeaderText="Tag Id" ItemStyle-HorizontalAlign="center">
                                                    <HeaderStyle />
                                                    <ItemStyle />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUDFTagId" runat="server" Text='<%# Eval("DUT_ID")%>' Width="50px"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tag Type">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUDFTagTypeColumn" runat="server" Text='<%#Eval("DUT_TAG_TYPE") %>' Width="135px" />
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <%--<asp:TextBox ID="txtUDFTagTypeColumn" runat="server" Text='<%#Eval("DUT_TAG_TYPE") %>' width="100px"/>--%>
                                                        <asp:DropDownList ID="ddlUDFTagTypeColumn" runat="server" Width="135px"/>
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tag Format">
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word ">
                                                        <asp:Label ID="lblUDFTagFormatColumn" runat="server" Text='<%#Eval("DUT_TAG_FORMAT")%>' Width="135px" />
                                                            </div>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtUDFTagFormatColumn" runat="server" Text='<%#Eval("DUT_TAG_FORMAT") %>' Width="135px" />
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tag Value">
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word ">
                                                        <asp:Label ID="lblUDFTagValueColumn" runat="server" Text='<%#Eval("DUT_TAG_VALUE")%>' Width="250px" />
                                                            </div>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtUDFTagValueColumn" runat="server" Text='<%#Eval("DUT_TAG_VALUE") %>' Width="250px" />
                                                    </EditItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
                 <%--End || FINNELPINT- 294 || Shraddha D || 19- Aug-2020--%>

                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnFreeTextPanel" Text="Create Custom Tag" CssClass="btn" Style="width: 100%; min-width: 1880px !important; text-align: left !important; font: bold 11px verdana !important;" TabIndex="5" ToolTip="Click here to maximize or minimize"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="PnlUDFTagsFreeText" runat="server" BorderColor="LightGray" BorderWidth="1px" Visible="false" BorderStyle="None">
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <tr>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel runat="server" ID="pnlCreateUDF" BorderStyle="None"></asp:Panel>
                                        <table>
                                            <tr>
                                                <td colspan="3">
                                                    <asp:Label ID="lblerr" runat="server" CssClass="lbl" ForeColor="Red" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblTemplate" runat="server" CssClass="lbl" Text="Template"></asp:Label>
                                                </td>
                                                <%--28-Aug-2020 | Rajeshree K |Increased width of dropdown and textbox--%>
                                                <td style="padding-right: 30px;padding-left:10px;">
                                                    <asp:DropDownList ID="ddlTemplates" runat="server" CssClass="ddl" AutoPostBack="true" Width="270px" TabIndex="1" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblTagFreeText" runat="server" CssClass="lbl" Text="Tag" />
                                                </td>
                                                <td style="padding-right: 30px;padding-left:10px;">
                                                    <asp:TextBox ID="txtTagFreeText" runat="server" CssClass="txtAliasTableAlias" TabIndex="2" Style="width: 270px !important;" />
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblCondition" runat="server" CssClass="lbl" ForeColor="green" />
                                                </td>
                                            </tr>

                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <tr style="height:30px">
                                    <td style="width: 55px"></td>
                                    <td style="padding-left:10px;">
                                        <asp:Button runat="server" ID="btnCreateFreeTextTag" Text="Create" CssClass="btn" TabIndex="3" />
                                    </td>
                                    <td style="padding-left:10px;">
                                        <asp:Button runat="server" ID="btnCancelFreeTextTag" Text="Cancel" CssClass="btn" TabIndex="4" />
                                    </td>
                                    <%-- <td>
                                        <asp:button runat="server" ID="btnTemp" Text="Test btn" CssClass="btn" onclick="" />
                                    </td>--%>
                                </tr>
                            </table>
                            <br />
                            
                        </asp:Panel>

                    </td>
                </tr>
				<%--16-Aug-2020| Rajeshree Kathariya | Added additional panel and reorganised components for Show All custom Tags- JIRA FINNELPINT-200--%>
                <tr>
                    <td>
                        <asp:Button runat="server" ID="btnShowAllCutomTags" Text="Show Custom Tags" CssClass="btn" Style="width: 100%; min-width: 1880px !important; text-align: left !important; font: bold 11px verdana !important;" TabIndex="5" ToolTip="Click here to maximize or minimize"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlShowAllCustomTags" runat="server" BorderColor="LightGray" BorderWidth="1px" Visible="false" BorderStyle="None">
                        <table style="margin-top: 10px; margin-bottom: 2px;">
                                <tr>
                                    <%-- <td style="width:55px"></td>--%>
                                    <%--3-Sep-2020 | Label added by Rajeshree K for JIRA FINNELPINT-201--%>
                                    <td colspan="3">
                                        <asp:Label ID="lblErrShowCustomTags"  runat="server" CssClass="lbl" ForeColor="Red" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblTemplateShowAllCustomTags" runat="server" CssClass="lbl" Text="Template"></asp:Label>
                                    </td>
                                    <td style="padding-right: 30px;padding-left:10px;">
                                        <asp:DropDownList ID="ddlfilter" runat="server" CssClass="ddl" Width="190px" AutoPostBack="true" AppendDataBoundItems="true" TabIndex="5">
                                        </asp:DropDownList>
                                    </td>
                                 </tr>
                                 <tr >
                                    <td style="padding-top: 10px;">
                                        <asp:Label ID="lblTagShowAllCustomTags" runat="server" CssClass="lbl" Text="Tag" />
                                    </td>
                                    <td style="padding-right: 30px;padding-left:10px;padding-top: 10px;">
                                        <asp:TextBox ID="txtfilter" runat="server" CssClass="txt" Width="191px" TabIndex="6" onkeydown=" return CallLoadEvtOfCustomTags(event)"/>
                                    </td>
                                  </tr>
                            </table>
                            <table>
                                  <tr style="padding-top: 10px;">
                                    <td style="width:58px; padding-top: 10px;"></td>
                                    <td style="padding-left:10px; padding-top: 10px;">
                                        <asp:Button runat="server" ID="btnLoadudf" Text="Load" CssClass="btn" TabIndex="7" />
                                    </td>
                                    <td style="padding-left:10px; padding-top: 10px;"> <%--  FINNELPINT-284|| Added padding || ShraddhaD || 14-Aug-2020 --%>
                                        <asp:Button runat="server" ID="btnUpdateFreeTextTag" Text="Update" CssClass="btn" TabIndex="8" />
                                    </td>
                                    <td style="padding-left:10px; padding-top: 10px;">
                                        <asp:Button runat="server" ID="btnDeleteFreeTextTag" Text="Delete" CssClass="btn" TabIndex="9" />
                                    </td>
									 <%--14-Sep-20| Rajeshree K | Modified padding | JIRA FINNELPINT-308--%>
									 <%--Ashutosh.A || 5-march-2021 || Changes done for RHBUPINT-2464 || Export to excel changes--%>
                                      <td style="padding-left:10px; padding-top: 10px;">
                                        <asp:Button runat="server" ID="btnExporttoExcel_CustomTags"  OnClientClick="GetGridHeaderName('gvFreeTextTags')" Text="Export to Excel" CssClass="btn" TabIndex="10" />
                                    </td>
									<td style="padding-left:15px; padding-top: 10px;">
                                        <asp:Label runat="server" ID="lblFreeTextTagPageSize" CssClass="lbl" Text="Record(s) per page"></asp:Label>
                                    </td>
                                    <td style="padding-top: 10px;">
                                        <asp:TextBox ID="txtFreeTextTagRecordCount"  runat="server" CssClass="txt" style="text-align:right" Height="20px" AutoPostBack="True" onkeypress="return allowOnlyNumber(event);" MaxLength="3" Width="40px" Text="10"  ></asp:TextBox>
                                    </td>
                                      <td style="padding-left:20px; padding-top: 10px;" >
                                        <asp:Label ID="lblTotalRecordsCustomTags" runat="server" Text="Total Records:" />
                                   </td>
                                   <td style="padding-top: 10px;">
                                        <asp:Label ID="lblTotalRecordsCntCustomTags" runat="server"  />
                                   </td>
                                </tr>
                            </table>
                            <table style="margin-top: 2px; margin-bottom: 2px;">
                                <tr style="height:10px">
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:GridView ID="gvFreeTextTags" runat="server" CssClass="Grid" AutoGenerateColumns="false" PageSize="20" AllowPaging="true" TabIndex="10" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found">
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <RowStyle CssClass="GridItem" />
                                            <HeaderStyle CssClass="GridHeader" />
                                            <FooterStyle CssClass="GridFooter" />
                                            <%--  FINNELPINT-284|| Added pagersettings for paging || ShraddhaD || 14-Aug-2020 --%>
											<PagerSettings Mode="NumericFirstLast" FirstPageText="First" LastPageText="Last" Position="Bottom" />
                                            <PagerStyle CssClass="GridPager" />
                                            <Columns>
                                                <asp:TemplateField ControlStyle-Width="50" ItemStyle-HorizontalAlign="Center">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox runat="server" ID="chkhdrFreeTextTags" AutoPostBack="true" OnCheckedChanged="chkHeaderFreeText_CheckedChanged" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox runat="server" ID="chkFreeTextTags" AutoPostBack="true" OnCheckedChanged="chkChildFreeText_CheckedChanged" />
                                                    </ItemTemplate>
                                                    <ControlStyle Width="50px" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:CommandField ButtonType="Link" ShowEditButton="true" EditText="Edit" UpdateText="" runat="server" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center">
                                                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                                                </asp:CommandField>
                                                <asp:TemplateField HeaderText="ID" Visible="false">
                                                    <HeaderStyle />
                                                    <ItemStyle />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblFreeTextTagId" runat="server" Text='<%# Eval("TAG_ID")%>' Width="40px"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tag" ItemStyle-Width="360px" ControlStyle-Width="360px">
                                                    <ControlStyle Width="360px" />
                                                    <ItemStyle Width="360px" />
                                                    <ItemTemplate>
                                                        <div style="word-wrap: break-word">
                                                            <asp:Label ID="lblFreeTextTagColumn" runat="server" Text='<%#Eval("TAG") %>' Width="350px" />
                                                        </div>
                                                    </ItemTemplate>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="txtFreeTextTagColumn" runat="server" Text='<%#Eval("TAG") %>' Width="350px" />
                                                        <%--<asp:DropDownList ID="DropDownList1" runat="server" />--%>
                                                    </EditItemTemplate>
                                                  
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Template Name" ItemStyle-Width="300px" ControlStyle-Width="330px">
                                                    <ControlStyle Width="300px" />
                                                    <ItemStyle Width="300px" />
                                                    <ItemTemplate>
                                                        <div style="word-wrap:break-word ">
                                                            <asp:Label ID="lblTemplateName" runat="server" Text='<%#Eval("Template_Name")%>'></asp:Label>
                                                        </div>
                                                    </ItemTemplate>
                                               
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Template ID" Visible="false">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTemplateIds" runat="server" Text='<%#Eval("Template_ID")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Template Code" ItemStyle-Width="210px" ControlStyle-Width="110px" Visible="false">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTemplateCode" runat="server" Text='<%#Eval("Template_Code")%>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ControlStyle Width="110px" />
                                                    <ItemStyle Width="110px" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
            <asp:HiddenField ID="hdnAddNewRow" runat="server" />
            <asp:HiddenField ID="hdnGridHeaderName" runat="server" /> <%--Ashutosh.A || 5-march-2021 || Changes done for RHBUPINT-2464 || Export to excel changes--%>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnCreateScript" />
            <asp:PostBackTrigger ControlID="btnCreateFreeTextTag" />
			<%--Ashutosh.A || 5-march-2021 || Changes done for RHBUPINT-2464 || Export to excel changes--%>
            <asp:PostBackTrigger ControlID="btnExporttoExcel_ShowAllTagAlias" />
            <asp:PostBackTrigger ControlID="btnExporttoExcel_ShowAllTag" />
            <asp:PostBackTrigger ControlID="btnExporttoExcel_CustomTags" />
            <asp:PostBackTrigger ControlID="btnExporttoExcel_UDFTages" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
