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

<asp:Content ID="Content" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy" runat="server"></asp:ScriptManagerProxy>
    <script src="../FinIQJS/SortFilter_Grid.js"></script>
    <style type="text/css">
        /*.btnSpacing {
            margin-left: 8px;
        }*/

        .marginUp {
            margin-top: 20px;
        }

        .cssEdit {
            line-height: 0px;
        }

        /*Pooja S || 10-Jul-2017*/
        .ActiveN {
            background-color: #F7F7F7;
        }

            /*Pooja S || 10-Jul-2017*/
            .ActiveN a {
                color: #0368b6;
                text-decoration: none;
                font-weight: normal;
                font-size: 11px;
            }

        /*Pooja S || 11-Jul-2017*/
        .invisible {
            display: none;
        }

        /*Added By: Tejas V. Bodas on 28/08/2017 to display usergroupbox at correct position on screen*/
        @media only screen and (min-width: 800px) {

            .groupBoxGrids {
                position: absolute !important;
                 background-color: inherit; /*Changed by Pratik S for theme changes || 29-Sept-2021*/
                /*left: 170%;
                top: 85%;*/
                height: 305px !important;
                width: 404px !important;
                border: 1px solid #dddddd;
                /*display: none;*/
            }
        }

        @media only screen and (min-width: 1368px) {

            .groupBoxGrids {
                position: absolute !important;
                 background-color: inherit; /*Changed by Pratik S for theme changes || 29-Sept-2021*/
                /*left: 144%;
                top: 72%;*/
                height: 305px !important;
                width: 404px !important;
                border: 1px solid #dddddd;
                /*display: none;*/
            }
        }

        @media only screen and (min-width: 1920px) {

            .groupBoxGrids {
                position: absolute !important;
                 background-color: inherit; /*Changed by Pratik S for theme changes || 29-Sept-2021*/
                /*left: 120%;
                top: 60%;*/
                height: 305px !important;
                width: 404px !important;
                border: 1px solid #dddddd;
                /*display: none;*/
            }
        }
        /*End*/

        .Visible {
            display: block;
        }

        .txtUsername {
            width: 208px;
        }

        .btnClose {
            width: 30px;
        }

        .btnGroupbox {
            width: 65px;
        }

        .GridContainerTD {
            width: 379px;
            height: 255px;
            overflow-y: auto !important;
        }

        .tdBtn {
            width: 90px;
        }
        /*Added By: Tejas V. Bodas on 23/08/2017 to add entity label and dropdown*/
        .tdlbl {
            width: 200px;
        }

        .tddrop {
            width: 200px;
        }

        .BlotterCodeDiv {
            float: left;
        }
        /*End*/
        .tdlblRecordCnt {
            width: 100px;
        }

        .aspNetDisabled a {
            color: #000000 !important;
        }

        .ddlWflTypeId, .ddlParentLevel {
            width: 220px !important;
        }

        .ddlSortKey {
            width: 80px !important;
        }

        .ddlLevel {
            width: 100px !important;
        }

        .ddlSortCol {
            width: 180px !important;
        }

        .txtRemark {
            width: 200px !important;
        }
        /*Added By: Tejas V. Bodas on 20/09/2017 to make word wrap*/
        .wrapcol {
            word-wrap: break-word;
            /*overflow-wrap:break-word;*/
        }

        .colWidth {
            width: 40px;
        }

        .lblwidth {
            width: 79px;
        }

        .ddlWidth {
            width: 125px;
        }

        .wordwrap {
            word-break: break-word;
        }

        .width1 {
            min-width:120px;
            max-width:120px;
        }
/*<Start> Added by Saili D/ Akanksha P on 16 July 2020 || For text wrapping*/
        .lbl1 {
            color: #000000 !important;
            word-break:break-word !important;
        }
/*<End> Added by Saili D/ Akanksha P on 16 July 2020 || For text wrapping*/
    </style>

    <%--<link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />--%> <%-- Commented by Pratik S || 29-Sept-2021 || Black Theme Changes --%>
    <asp:UpdatePanel ID="updpnl_new" runat="server" UpdateMode="Always" EnableViewState="true">

        <ContentTemplate>

            <%-- <Start> Changes done for message displaying below buttons || 27-May-2020 || Saili Deore --%>
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lblDisplay" Text="" runat="server" Style="width: 88px;" class="lblError labelMargin btnSpacing" />
                    </td>
                </tr>
            </table>
            <%-- <End> Changes done for message displaying below buttons || 27-May-2020 || Saili Deore --%>

            <%--<div id="firstdiv">--%>
            <table>
                <tr>
                     <%--<Start> Added by Saili D/ Akanksha P on 16 July 2020 || For increasing entity label and drop down list size--%>
                    <td class="lblwidth">
                        <asp:Label runat="server" ID="Label1" Text="Entity Name" Width="75px" />
                    </td>
                    <td class="ddlWidth">
                        <asp:DropDownList ID="ddlentity" runat="server" CssClass="ddl" Width="200px" AutoPostBack="true" />
                    </td>
                    <%--<End> Added by Saili D/ Akanksha P on 16 July 2020 || For increasing entity label and drop down list size--%>
                    <td>
                        
                        <asp:Button ID="btnLoad" Text="Load" runat="server" CssClass="btn" Width="90px" AutoPostBack="true" />
                    </td>

                    <td>
                        <asp:Button ID="btnAdd" Text="Add" runat="server" OnClick="btnAdd_Click" CssClass="btn" Width="90px" AutoPostBack="true" />
                    </td>

                    <td>
                        <asp:Button ID="btnSave" Text="Save" runat="server" OnClick="btnSave_Click" CssClass="btn" Width="90px" AutoPostBack="true" />
                    </td>

                     <td>
                        <asp:Button ID="btnRefreshMetadata" Text="Refresh Metadata" runat="server" OnClick="btnRefreshMetadata_Click" CssClass="btn" Width="150px" AutoPostBack="true"  />
                    </td>

                    <td>
                        <asp:Label ID="lbllongname" runat="server" Text="Long Name :" Style="padding-left: 5px;" />
                        <%--Added by Nikhil Mali on 30-01-2020--%>
                    </td>
                    <td>
                        <asp:TextBox ID="txtLongname1" runat="server" Width="140px" onkeyup="getenterload()" onkeypress="allowAlphaSpace(event)" AutoPostBack="False" />
                        <%--Added by Nikhil Mali on 30-01-2020--%>
                    </td>
                    <td>
                        <%--Pooja S || delete not needed as ActiveYN added || 12-jUL-2017--%>
                        <asp:Button ID="btnDelete" Text="Delete" runat="server" CssClass="btn" Width="90px" AutoPostBack="true" Visible="false" />
                    </td>

                    <td class="tdlblRecordCnt">
                        <asp:Label runat="server" ID="lblRecordCnt" Text="Total Record(s) :" CssClass="lbl"></asp:Label>
                    </td>
                    <td style="width: 25px;">
                        <asp:Label runat="server" ID="lblTotRecords" Text="" CssClass="lbl"> </asp:Label>
                    </td>
                </tr>
            </table>
            <table>

                <tr>
                    <td colspan="8">
                        <div class="marginUp">
                            <asp:GridView ID="grdMPGWorkflowMaster" runat="server" AutoGenerateColumns="false" AutoPostBack="true"
                                CssClass="Grid" ShowHeaderWhenEmpty="true" AllowSorting="True" BorderStyle="None"
                                BorderWidth="0px" PageSize="20" AllowPaging="True">
                                <HeaderStyle CssClass="GridHeader" HorizontalAlign="Center" />

                                <%--Added BY: Tejas V. Bodas on 28/08/2017 to add paging--%>
                                <PagerSettings Mode="NumericFirstLast"
                                    FirstPageText="First"
                                    LastPageText="Last"
                                    Position="Bottom" />
                                <PagerStyle CssClass="GridPager" />
                                <FooterStyle CssClass="GridFooter"></FooterStyle>
                                <EditRowStyle CssClass="GridItemSelect" />
                                <RowStyle CssClass="GridItem" />

                                <EmptyDataTemplate>
                                    <asp:Label ID="lblMPGWorkflowMaster" runat="server" Text="No data found."></asp:Label>
                                </EmptyDataTemplate>

                                <Columns>

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

                                    <asp:CommandField ButtonType="Link" ShowEditButton="true" EditText="Edit" UpdateText="" ControlStyle-Width="40px">
                                        <HeaderStyle HorizontalAlign="center" Width="40px" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" CssClass="wrapcol" />
                                    </asp:CommandField>

                                    <asp:TemplateField HeaderText="Active YN" ControlStyle-Width="40">
                                        <HeaderStyle Width="40px" HorizontalAlign="Center" />
                                        <ItemStyle Width="40px" HorizontalAlign="Center" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkActiveYN" runat="server" ItemStyle-Width="25px" AutoPostBack="true" OnCheckedChanged="chkActiveYN_CheckedChanged"></asp:CheckBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>

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

                                    <asp:TemplateField HeaderText="Blotter Code" ControlStyle-Width="70px">
                                        <HeaderStyle Wrap="true" Width="70px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="70px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblBlotterCode" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_Code").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtBlotterCode" runat="server" Enabled="false" AutoPostBack="true" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_Code").ToString)%>'></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <%--<Start> Added by Saili D/ Akanksha P on 16 July 2020 || For text wrapping--%>
                                    <asp:TemplateField HeaderText="Long Name" ControlStyle-Width="180px">
                                        <HeaderStyle Wrap="true" Width="180px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="180px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblLongName" runat="server" CssClass="lbl1" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_long_name").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtLongName" runat="server" CssClass="txt" AutoPostBack="true" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_long_name").ToString)%>'></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <%--<End> Added by Saili D/ Akanksha P on 16 July 2020 || For text wrapping--%>
                                    <asp:TemplateField HeaderText="Workflow Type ID" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblWorkflowTypeID" text-align="left" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.WTM_code").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlWorkflowTypeID" CssClass="ddl ddlWflTypeId" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Parent Level" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblParentLevel" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BPLM_Long_Name").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlParentLevel" CssClass="ddl ddlParentLevel" runat="server" OnSelectedIndexChanged="Changed_Parent_Level" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Remark" ControlStyle-Width="200px">
                                        <HeaderStyle Wrap="true" Width="200px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="200px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblRemark" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_Remark").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtRemark" runat="server" CssClass="txt txtRemark" AutoPostBack="true" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_Remark").ToString)%>'></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Natural Sort Key1" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNaturalSortKey1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key1").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <%--<asp:TextBox ID="txtNSKey1" runat="server" AutoPostBack="true" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key1").ToString)%>'></asp:TextBox>--%>
                                            <asp:DropDownList ID="ddlNSKey1" CssClass="ddl ddlParentLevel" runat="server" OnSelectedIndexChanged="ddlNSKey1_selectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Sort Key Asc Dsc1" ControlStyle-Width="80px">
                                        <HeaderStyle Wrap="true" Width="80px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="80px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortKeyAscDsc1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Sort_Key_AscDsc1").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlSKAscDsc1" CssClass="ddl ddlSortKey" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Natural Sort Key2" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNaturalSortKey2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key2").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <%--<asp:TextBox ID="txtNSKey2" runat="server" AutoPostBack="true" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key2").ToString)%>'></asp:TextBox>--%>
                                            <asp:DropDownList ID="ddlNSKey2" CssClass="ddl  ddlSortCol" runat="server" OnSelectedIndexChanged="ddlNSKey2_selectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Sort Key Asc Dsc2" ControlStyle-Width="80px">
                                        <HeaderStyle Wrap="true" Width="80px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="80px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortKeyAscDsc2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Sort_Key_AscDsc2").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlSKAscDsc2" CssClass="ddl ddlSortKey" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Natural Sort Key3" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNaturalSortKey3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key3").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <%--<asp:TextBox ID="txtNSKey3" runat="server" AutoPostBack="true" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key3").ToString)%>'></asp:TextBox>--%>
                                            <asp:DropDownList ID="ddlNSKey3" CssClass="ddl ddlSortCol" runat="server" OnSelectedIndexChanged="ddlNSKey3_selectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Sort Key Asc Dsc3" ControlStyle-Width="80px">
                                        <HeaderStyle Wrap="true" Width="80px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortKeyAscDsc3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Sort_Key_AscDsc3").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlSKAscDsc3" CssClass="ddl ddlSortKey" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <%--Pooja S || 7-JUL-2017--%>
                                    <asp:TemplateField HeaderText="Natural Sort Key4" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNaturalSortKey4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key4").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlNSKey4" CssClass="ddl ddlSortCol" runat="server" OnSelectedIndexChanged="ddlNSKey4_selectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Sort Key Asc Dsc4" ControlStyle-Width="80px">
                                        <HeaderStyle Wrap="true" Width="80px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="80px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortKeyAscDsc4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Sort_Key_AscDsc4").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlSKAscDsc4" CssClass="ddl ddlSortKey" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Natural Sort Key5" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNaturalSortKey5" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key5").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlNSKey5" CssClass="ddl ddlSortCol" runat="server" OnSelectedIndexChanged="ddlNSKey5_selectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Sort Key Asc Dsc5" ControlStyle-Width="80px">
                                        <HeaderStyle Wrap="true" Width="80px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="80px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortKeyAscDsc5" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Sort_Key_AscDsc5").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlSKAscDsc5" CssClass="ddl ddlSortKey" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Natural Sort Key6" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNaturalSortKey6" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key6").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlNSKey6" CssClass="ddl ddlSortCol" runat="server" OnSelectedIndexChanged="ddlNSKey6_selectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Sort Key Asc Dsc6" ControlStyle-Width="80px">
                                        <HeaderStyle Wrap="true" Width="80px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="80px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortKeyAscDsc6" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Sort_Key_AscDsc6").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlSKAscDsc6" CssClass="ddl ddlSortKey" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Natural Sort Key7" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNaturalSortKey7" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key7").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlNSKey7" CssClass="ddl ddlSortCol" runat="server" OnSelectedIndexChanged="ddlNSKey7_selectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Sort Key Asc Dsc7" ControlStyle-Width="80px">
                                        <HeaderStyle Wrap="true" Width="80px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="80px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortKeyAscDsc7" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Sort_Key_AscDsc7").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlSKAscDsc7" CssClass="ddl ddlSortKey" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Natural Sort Key8" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNaturalSortKey8" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key8").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlNSKey8" CssClass="ddl ddlSortCol" runat="server" OnSelectedIndexChanged="ddlNSKey8_selectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Sort Key Asc Dsc8" ControlStyle-Width="80px">
                                        <HeaderStyle Wrap="true" Width="80px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="80px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortKeyAscDsc8" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Sort_Key_AscDsc8").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlSKAscDsc8" CssClass="ddl ddlSortKey" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Natural Sort Key9" ControlStyle-Width="220px">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNaturalSortKey9" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Natural_Sort_Key9").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlNSKey9" CssClass="ddl ddlSortCol" runat="server" OnSelectedIndexChanged="ddlNSKey9_selectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Sort Key Asc Dsc9" ControlStyle-Width="80px">
                                        <HeaderStyle Wrap="true" Width="80px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="80px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortKeyAscDsc9" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Sort_Key_AscDsc9").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlSKAscDsc9" CssClass="ddl ddlSortKey" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <%--<Start || Added by Arshin S on 1/8/2017 || Asked by Prutha K>--%>
                                    <asp:TemplateField HeaderText="Default Date Filter On" ControlStyle-Width="132px">
                                        <HeaderStyle Wrap="true" Width="150px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="150px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblBCM_DateFilterOn" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_DateFilterOn").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlBCM_DateFilterOn" CssClass="ddl" runat="server"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                    <%--<End || Added by Arshin S on 1/8/2017 || Asked by Prutha K>--%>

                                    <%--Added on 19-08-2020--%>
                                    <asp:TemplateField HeaderText="Default View" ControlStyle-Width="132px">
                                        <HeaderStyle Wrap="true" Width="150px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="150px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblDefaultView" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_View").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlDefaultView" CssClass="ddl" runat="server">
                                                <asp:ListItem Selected="True" Text="" ></asp:ListItem>
                                                <asp:ListItem>Tab</asp:ListItem>
                                                <asp:ListItem>Link</asp:ListItem>
                                            </asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                <%--Added on 19-08-2020--%>

                                    <asp:TemplateField HeaderText="Level Specifier" ControlStyle-Width="60px">
                                        <HeaderStyle Wrap="true" Width="60px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="60px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblLevelSpecifier" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_Level_Specifier").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlLevelSpecifier" CssClass="ddl ddlLevel" runat="server">
                                                <asp:ListItem>Primary</asp:ListItem>
                                                <asp:ListItem>Secondary</asp:ListItem>
                                            </asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <%--End Pooja S || 7-JUL-2017--%>

                                    <%--Pooja S || 11-JUL-2017--%>
                                    <asp:TemplateField HeaderText="User Group Access Permission" ControlStyle-Width="280">
                                        <HeaderStyle Width="280" />
                                        <ItemStyle Wrap="true" Width="280" HorizontalAlign="left" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblUsrGrp" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserPermission").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtUsrGrp" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserPermission").ToString)%>'>
                                            </asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Graph Y/N" ControlStyle-Width="40" Visible="false">
                                        <HeaderStyle Width="40px" HorizontalAlign="Center" />
                                        <ItemStyle Width="40px" HorizontalAlign="Center" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkGraphYN" runat="server" ItemStyle-Width="25px" AutoPostBack="true" OnCheckedChanged="chkGraphYN_CheckedChanged"></asp:CheckBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Graph Type" ControlStyle-Width="220px" Visible="false">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblGraphType" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_GraphType").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlGraphType" CssClass="ddl ddlSortCol" runat="server" Enabled="false">
                                                <asp:ListItem Value="11">StackedColumn</asp:ListItem>
                                                <asp:ListItem Value="10">Column</asp:ListItem>
                                                <%--<asp:ListItem Value="0"></asp:ListItem>--%>
                                            </asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="X-Axis 1" ControlStyle-Width="220px" Visible="false">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblXAxis1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_XAxis1").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlXAxis1" CssClass="ddl ddlSortCol" runat="server" AutoPostBack="true" Enabled="false"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="X-Axis 2" ControlStyle-Width="220px" Visible="false">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblXAxis2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_XAxis2").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlXAxis2" CssClass="ddl ddlSortCol" runat="server" AutoPostBack="true" Enabled="false"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Y-Axis" ControlStyle-Width="220px" Visible="false">
                                        <HeaderStyle Wrap="true" Width="220px" />
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true" Width="220px" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblYAxis" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_YAxis").ToString)%>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:DropDownList ID="ddlYAxis" CssClass="ddl ddlSortCol" runat="server" AutoPostBack="true" Enabled="false"></asp:DropDownList>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Partner MPG mapping" ControlStyle-Width="280">
                                        <HeaderStyle Width="280" />
                                        <ItemStyle Wrap="true" Width="280" HorizontalAlign="left" CssClass="wrapcol" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblMPGmap" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.PartnerMPG").ToString)%>'  >
                                            </asp:Label>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtMPGmap" runat="server" onClick="return displayPartnerMPG()" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.PartnerMPG").ToString)%>' >
                                            </asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                            </asp:GridView>
                        </div>
                    </td>
                </tr>
                <%--</div>--%>
            </table>

            <%--Pooja S || 11-Jul-2017 || User Group Access Permissions--%>
            <asp:Panel ID="grpUsergroup" runat="server" CssClass="groupBoxGrids invisible">
                <%--<fieldset class="MainFieldSet">--%>
                <table>
                    <tr>
                        <td>
                            <table class="InnerTable">
                                <tr>
                                    <td style="display:none">
                                        <input type="text" name="" value="" id="UserSearch" runat="server" class="txtUsername">
                                    </td>
                                    <td>
                                        <asp:Button ID="btnLoadGroup" CssClass="btn btnGroupbox" runat="server" Text="Load" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnSaveGroup" CssClass="btn btnGroupbox" runat="server" Text="Save" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnCloseGroup" runat="server" Text="X" CssClass="btn btnClose" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="GridContainerTD">
                                <asp:GridView ID="gvUser" runat="server" AllowSorting="True"
                                    AutoGenerateColumns="false" BorderStyle="Solid" BorderWidth="1px" CellPadding="3"
                                    CssClass="Grid" Width="361px" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found">
                                    <HeaderStyle CssClass="GridHeader" />
                                    <RowStyle CssClass="GridItem" />
                                    <PagerStyle CssClass="GridPager" />

                                    <Columns>
                                        <asp:TemplateField HeaderStyle-Wrap="true">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkUser" runat="server"></asp:CheckBox>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="User ID" ControlStyle-CssClass="width1 wordwrap" HeaderStyle-CssClass="width1" ItemStyle-CssClass="width1">
                                            <ItemTemplate>
                                                <asp:Label ID="lblUserID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.U_ID").ToString)%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="User Name" ControlStyle-CssClass="width1 wordwrap" HeaderStyle-CssClass="width1" ItemStyle-CssClass="width1">
                                            <ItemTemplate>
                                                <asp:Label ID="lblUserName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Name").ToString)%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                    </tr>
                </table>
                <%--</fieldset>--%>
            </asp:Panel>

            <asp:Button ID="btnIDUserMapping" CssClass="btn invisible" runat="server" Text="" />
            <%--End Pooja S || 11-Jul-2017 || User Group Access Permissions--%>

<%--            <START> Added by Akanksha P/Saili D for partner MPG functionality--%>

             <asp:Panel ID="grpPartnerMPG" runat="server" CssClass="groupBoxGrids invisible">
                <table>
                    <tr>
                        <td>
                            <table class="InnerTable">
                                <tr>
                                    <td style="display:none">
                                        <input type="text" name="" value="" id="MPGsearch" runat="server" class="txtUsername">
                                    </td>
                                    <td>
                                        <asp:Button ID="btnLoadMPG" CssClass="btn btnGroupbox" runat="server" Text="Load" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnSaveMPG" CssClass="btn btnGroupbox" runat="server" Text="Save" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnCloseMPG" runat="server" Text="X" CssClass="btn btnClose" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="GridContainerTD">
                                <asp:GridView ID="gvPartnerMPG" runat="server" AllowSorting="True"
                                    AutoGenerateColumns="false" BorderStyle="Solid" BorderWidth="1px" CellPadding="3"
                                    CssClass="Grid" Width="361px" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found">
                                    <HeaderStyle CssClass="GridHeader" />
                                    <RowStyle CssClass="GridItem" />
                                    <PagerStyle CssClass="GridPager" />

                                    <Columns>
                                        <asp:TemplateField HeaderStyle-Wrap="true">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkpartnerMPG" runat="server"></asp:CheckBox>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="MPG code" ControlStyle-CssClass="width1 wordwrap" HeaderStyle-CssClass="width1" ItemStyle-CssClass="width1" Visible="true">
                                            <ItemTemplate>
                                                <asp:Label ID="lblMPGcode" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_ID").ToString)%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="MPG Name" ControlStyle-CssClass="width1 wordwrap" HeaderStyle-CssClass="width1" ItemStyle-CssClass="width1">
                                            <ItemTemplate>
                                                <asp:Label ID="lblMPGName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.BCM_long_name").ToString)%>'   />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                    </tr>
                </table>
                <%--</fieldset>--%>
            </asp:Panel>

            <asp:Button ID="btnPartnerMPGMapping" CssClass="btn invisible" runat="server" Text="" />
            <%--            <END> Added by Akanksha P/Saili D for partner MPG functionality--%>

        </ContentTemplate>
    </asp:UpdatePanel>

    <script type="text/javascript">
        //<START>---Added By Shubham Podhade on 27-Jan-2019 for JS Sorting Searching Filters
        //$(document).ready(function () {
        //debugger;
        //SetSorting_Filter1();
        //});
        //<END>---Added By Shubham Podhade on 27-Jan-2019 for JS Sorting Searching Filters

        //Pooja S || 11-Jul-2017 || User Group Access Permissions
        function displayUserBox() {
            $('#<%=btnIDUserMapping.ClientID%>').click();
            //return false
        }


        function displayPartnerMPG() {
         
            $('#<%=btnPartnerMPGMapping.ClientID%>').click();
             //return false
        }

        function getenterload() {                                // Added By Nikhil Mali on 30-1-2020
            if (event.keyCode == 13)// Enter
            {
                document.getElementById('ctl00_MainContent_btnLoad').click();
            }
        }

        function allowAlphaSpace(e) {                          // Added By Nikhil Mali on 30-1-2020
            var code = ('charCode' in e) ? e.charCode : e.keyCode;
            if (!(code == 32) &&               // space
              !(code == 45) &&                 // '-' symbol
              !(code > 64 && code < 91) &&     // upper alpha (A-Z)
              !(code > 96 && code < 123)) {    // lower alpha (a-z)
                //!(code > 47 && code < 58) && // numeric (0-9)
                e.preventDefault();
            }
        }


        function EnterEvent() {
            var e = window.event || event;
            if (e.keyCode == 13 || e.keyCode == 9) {
                document.getElementById('<%=btnLoadGroup.ClientID%>').click();
            }

        }
        //Added By: Tejas V. Bodas on 28/09/2017 to get location of dynamic element
        function getPosition(ctrl) {
            //alert(ctrl);
            var txtbox = document.getElementById(ctrl);
            var p = GetScreenCordinates(txtbox);
            var left = p.x - 400;
            var top = p.y;
            //alert("X:" + p.x + " Y:" + p.y);
            $('.groupBoxGrids').css('top', top);
            $('.groupBoxGrids').css('left', left);
        }
        //Added By: Tejas V. Bodas on 28/09/2017 to get location of dynamic element
        function GetScreenCordinates(obj) {
            var p = {};
            p.x = obj.offsetLeft;
            p.y = obj.offsetTop;
            while (obj.offsetParent) {
                p.x = p.x + obj.offsetParent.offsetLeft;
                p.y = p.y + obj.offsetParent.offsetTop;
                if (obj == document.getElementsByTagName("body")[0]) {
                    break;
                }
                else {
                    obj = obj.offsetParent;
                }
            }
            return p;
        }

    </script>

</asp:Content>
