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

<%--<%@ Register Assembly="ContextMenu" Namespace="Msdn" TagPrefix="cc1" %>--%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="cont" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>

    <script type="text/javascript">
        // ManasiA || 24-Nov-2020 || AM-109 || search action on enter key/tab out || Start ||
        function EnterKeyOnSearch(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

            if (code == 13 || code == 9) {
                document.getElementById('<%=btnLoad.ClientID%>').click();
            }
        }
        // ManasiA || 24-Nov-2020 || AM-109 || search action on enter key/tab out || End ||
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : evt.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
    </script>

    <%-- //<Start || Added by Arshin S|| To display login box in bulk login import || asked by Varun || as per SCB requirement || HKELI-154 || on 12-Jan-2017>--%>
    <script src="../FinIQJS/conformationBox.js" language="javascript" type="text/javascript"></script>
    <%--                //<End || Added by Arshin S|| To display login box in bulk login import || asked by Varun || as per SCB requirement || HKELI-154 || on 12-Jan-2017>--%>
    <%--//Added By Arshad K on 6th Dec 2016--%>
    <style type="text/css">
        .Header {
            font: normal 13px/26px verdana !important;
        }

        .FilterPad {
            margin: 0px 10px;
        }

        .custom-menu {
            z-index: 10000000;
            position: absolute;
            border: solid 2px black;
            background-color: white;
            padding: 5px 0;
            display: none;
        }

            .custom-menu ol {
                padding: 0;
                margin: 0;
                list-style-type: none;
                min-width: 180px;
                width: auto;
                /*max-width: 200px;*/
                font-family: Verdana;
                font-size: 11px;
                cursor: pointer;
            }

                .custom-menu ol li {
                    margin: 2px;
                    display: block;
                    list-style: none;
                    padding-left: 5px;
                    padding-right: 5px;
                    padding-top: 6px;
                    padding-bottom: 6px;
                    cursor: pointer;
                }

                    .custom-menu ol li:hover {
                        left: 200px;
                        /*background-color: #c0f5f8;
     color:white;*/
                        color: #FFFFFF;
                        background-color: #6699CC;
                    }

                    .custom-menu ol li:active {
                        color: White;
                        background-color: #000;
                    }


                .custom-menu ol .list-devider {
                    padding: 0px;
                    margin: 0px;
                }

                    .custom-menu ol .list-devider hr {
                        margin: 2px 0px;
                    }

                .custom-menu ol li a {
                    color: Black;
                    text-decoration: none;
                    display: block;
                    padding: 0px 5px;
                }

                    .custom-menu ol li a:active {
                        color: White;
                    }





        .styled-select select {
            background: transparent;
            width: 268px;
            padding: 5px;
            font-size: 16px;
            line-height: 1;
            border: 0;
            border-radius: 0;
            height: 34px;
            -webkit-appearance: none;
        }



        nav ol :hover .sub-level {
            display: block;
        }


        nav ol ul {
            position: absolute;
            left: 100%;
            padding-top: inherit;
        }


        ul.sub-level {
            display: none;
            list-style: none;
            cursor: pointer;
            background-color: white;
            color: black;
            box-shadow: 1px 2px 25px grey;
            padding: 0px;
            min-width: 180px;
        }

        /* ManasiA || 27-Aug-2021 || MASCLI-1290 : Bulk user creation alert popup css changes   */
        .ui-dialog .ui-dialog-content {
            height: 200px !important;
            width: 445px !important;
        }

        .ui-dialog {
            width: 450px !important;
        }
        /* ManasiA || 27-Aug-2021 || MASCLI-1290 : Bulk user creation alert popup css changes  */
    </style>
    <%--//Added By Arshad K on 6th Dec 2016--%>


    <%-- <changed by prajakta for freezing Grid Header jira-90>--%>
    <%--<script language="javascript" >
    $(document).ready(function () {
        var gridHeader = $('#<%=Grid_Group.ClientID%>').clone(true); // Here Clone Copy of Gridview with style
        $(gridHeader).find("tr:gt(0)").remove(); // Here remove all rows except first row (header row)
        $('#<%=Grid_Group.ClientID%> tr th').each(function (i) {
            // Here Set Width of each th from gridview to new table(clone table) th
            $("th:nth-child(" + (i + 1) + ")", gridHeader).css('width', ($(this).width()).toString() + "px");
        });
        $("#GHead").append(gridHeader);
        $('#GHead').css('position', 'absolute');
        $('#GHead').css('top', $('#<%=Grid_Group.ClientID%>').offset().top);
    });
</script>--%>
    <%--</changed by prajakta for freezing Grid Header jira-90>--%>

    <script type="text/javascript">
        window.history.forward(1);
        function ChangeStatus() {
            if (document.getElementById('ctl00_MainContent_ddlSearch').value == 'All') {
                document.getElementById('ctl00_MainContent_txtSearch').value = "";
                document.getElementById('ctl00_MainContent_txtSearch').disabled = true;
            }
            else {
                document.getElementById('ctl00_MainContent_txtSearch').disabled = false;
            }
        }
        ////<Added by SushantLal | 29th-Nov-2019 | MBBSGUP-1148 | do not allow special characters | told by Tushi >
        function AllowOnlyAlphabet() {
            ////debugger;
            var key = window.event.keyCode;
            if ((key > 64 && key < 91) || (key > 96 && key < 123) || (key == 95) || (key == 32) || (key > 47 && key < 58)) {
                return true;
            }
            else {
                return false;
            }
        }
        ////</Added by SushantLal | 29th-Nov-2019 | MBBSGUP-1148 | do not allow special characters | told by Tushi  >
    </script>
    <script type="text/javascript">
        var flag = true;
        //set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar
        var display_url = 0

        var ie5 = document.all && document.getElementById
        var ns6 = document.getElementById && !document.all
        if (ie5 || ns6)
            var menuobj = document.getElementById("ie5menu")

        function showmenuie5(e) {

            //Find out how close the mouse is to the corner of the window
            var rightedge = ie5 ? document.body.clientWidth - event.clientX : window.innerWidth - e.clientX
            var bottomedge = ie5 ? document.body.clientHeight - event.clientY : window.innerHeight - e.clientY

            //if the horizontal distance isn't enough to accomodate the width of the context menu
            if (rightedge < menuobj.offsetWidth)
                //move the horizontal position of the menu to the left by it's width
                menuobj.style.left = ie5 ? document.body.scrollLeft + event.clientX - menuobj.offsetWidth : window.pageXOffset + e.clientX - menuobj.offsetWidth
            else
                //position the horizontal position of the menu where the mouse was clicked
                menuobj.style.left = ie5 ? document.body.scrollLeft + event.clientX : window.pageXOffset + e.clientX

            //same concept with the vertical position
            if (bottomedge < menuobj.offsetHeight)
                menuobj.style.top = ie5 ? document.body.scrollTop + event.clientY - menuobj.offsetHeight : window.pageYOffset + e.clientY - menuobj.offsetHeight
            else
                menuobj.style.top = ie5 ? document.body.scrollTop + event.clientY : window.pageYOffset + e.clientY


            menuobj.style.visibility = "visible"

            return false
        }

        function hidemenuie5(e) {
            menuobj.style.visibility = "hidden"
        }

        function highlightie5(e) {
            var firingobj = ie5 ? event.srcElement : e.target
            if (firingobj.className == "menuitems" || ns6 && firingobj.parentNode.className == "menuitems") {
                if (ns6 && firingobj.parentNode.className == "menuitems") firingobj = firingobj.parentNode //up one node
                firingobj.style.backgroundColor = "highlight"
                firingobj.style.color = "white"
                if (display_url == 1)
                    window.status = event.srcElement.url
            }
        }

        function lowlightie5(e) {
            var firingobj = ie5 ? event.srcElement : e.target
            if (firingobj.className == "menuitems" || ns6 && firingobj.parentNode.className == "menuitems") {
                if (ns6 && firingobj.parentNode.className == "menuitems") firingobj = firingobj.parentNode //up one node
                firingobj.style.backgroundColor = ""
                firingobj.style.color = "black"
                window.status = ''
            }
        }

        function jumptoie5(e) {
            var firingobj = ie5 ? event.srcElement : e.target
            if (firingobj.className == "menuitems" || ns6 && firingobj.parentNode.className == "menuitems") {
                if (ns6 && firingobj.parentNode.className == "menuitems") firingobj = firingobj.parentNode
                if (firingobj.getAttribute("target"))
                    window.open(firingobj.getAttribute("url"), firingobj.getAttribute("target"))
                else
                    window.location = firingobj.getAttribute("url")
            }
        }

        function setmenu() {
            document.onclick = hidemenuie5
        }

        function checkloginlenght(str) {
            //alert(document.getElementById(str).value.length);
            if (document.getElementById(str).value.length > 16) {

                lblError.innerHTML = "Login Name Maximum 16 characters only";
                return false;
            }
        }

        //Added By Arshad K on 6th Dec 2016

        function OpenContextMenu(contxOL) {
            //alert("1");
            var e = window.event;
            e.preventDefault();
            var olParent = $("#" + contxOL).parents('div').attr('id');
            $("#" + olParent).css({ top: e.pageY + "px", left: e.pageX + "px" }).show(100);
        }

        $(document).mouseup(function (e) {
            var container = $(".custom-menu");
            if (container.has(e.target).length == 0) {
                container.hide();
            }

            //var container2 = $("custom-menu2");
            //if (container2.has(e.target).length == 0) {
            //    container2.hide();
            //}

            //var container3 = $("custom-menu3");
            //if (container3.has(e.target).length == 0) {
            //    container3.hide();
            //}
        });


        function javaFun(selectedMenu, contextMenu, btn) {
                    //class="custom-menu"
                    // var contextVal = document.getElementById("<%= contextMenuVal.ClientID%>");                    
                    //var btnTest = document.getElementById("<%= btnHidden.ClientID %>");
            // contextVal.value = selectedMenu;
            // btnTest.click();
            var contextVal = document.getElementById(contextMenu);
            var btnTest = document.getElementById(btn);
            contextVal.value = selectedMenu;
            btnTest.click();

        }

        /*Added By Omkar M || MASCLI - 1946 || 01-Nov-2021*/
        function TxRowsPerPage_TextChanged(e) {


            if (e.keyCode == 13) {
                document.getElementById('<%=btnSetPageSize.ClientID%>').click();
            }
        }
        function hideBulkimportTD() {
            document.getElementById('bulkImportSeperator').style.display = 'none';
            return true;
        }
                //  function javaFun2(selectedMenu) {
                //    var contextVal2 = document.getElementById("<%= contextMenuVal2.ClientID%>");
                //   var btnTest2 = document.getElementById("<%= btnHidden2.ClientID%>");
                //    contextVal2.value = selectedMenu;
                //  btnTest2.click();
                // }

                //   function javaFun3(selectedMenu) {
                //      var contextVal3 = document.getElementById("<%= contextMenuVal3.ClientID%>");
                //     var btnTest3 = document.getElementById("<%= btnHidden3.ClientID%>");
                //    contextVal3.value = selectedMenu;
                //     btnTest3.click();
                //  } 

                //Added By Arshad K on 6th Dec 2016
    </script>
    <asp:UpdatePanel ID="UpdatePanelCP" runat="server">
        <ContentTemplate>

            <table cellspacing="1" cellpadding="1" border="0" class="FilterPad" id="MainTable">
                <tr>
                    <td>
                        <table cellspacing="1" cellpadding="1" border="0" class="">
                            <%-- <tr>
                                <td nowrap="nowrap" class="background_gray">Administrator
                                </td>
                            </tr>--%>
                            <tr>
                                <td>
                                    <table>
                                        <%--<Added by Suraj J || 12-Oct-2020 || RHBUPINT-956 || Time taken to load and action should be shown on screen  --%>
                                        <tr>
                                            <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanelCP"
                                                DisplayAfter="0">
                                                <ProgressTemplate>
                                                    <div style="position: absolute; left: 430px; top: 60px;">
                                                        <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...
                                                        </span>
                                                    </div>
                                                </ProgressTemplate>
                                            </asp:UpdateProgress>
                                        </tr>
                                        <%--<Added by Suraj J || 12-Oct-2020 || RHBUPINT-956 || Time taken to load and action should be shown on screen  --%>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblError" runat="server" CssClass="lblerror"></asp:Label>
                                                <asp:Label ID="lblInfo" runat="server" CssClass="lblInfo"></asp:Label>
                                                <asp:Label ID="lblsuccess" runat="server" CssClass="lblsuccess"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table class="" id="Table1">
                                                    <tr>
                                                        <td>
                                                            <table>
                                                                <tr>
                                                                    <td class="lbl" style="width: 90px;">Search By
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlSearch" runat="server" CssClass="ddl" AutoPostBack="true" Width="100px" OnSelectedIndexChanged="ddlSearch_SelectedIndexChanged">
                                                                            <asp:ListItem Value="All">All</asp:ListItem>
                                                                            <asp:ListItem Value="Group Id">Group ID</asp:ListItem>
                                                                            <asp:ListItem Value="Group Name">Group Name</asp:ListItem>
                                                                            <asp:ListItem Value="User Id">User ID</asp:ListItem>
                                                                            <asp:ListItem Value="User Name">User Name</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtSearch" runat="server" CssClass="txtbox" Width="200px" onkeydown="EnterKeyOnSearch(event)" Enabled="false"></asp:TextBox>&nbsp;
                                                                    </td>
                                                                    <td>
                                                                        <asp:Button ID="btnload" runat="server" CssClass="btn" Text="Search" Width="80px"></asp:Button>
                                                                    </td>
                                                                </tr>
                                                                <tr id="trFilter" runat="server">
                                                                    <td class="lbl" style="width: 90px;">Select Group
                                                                    </td>
                                                                    <td colspan="2">
                                                                        <asp:DropDownList ID="ddlFilter" runat="server" CssClass="ddl" Width="303px">
                                                                        </asp:DropDownList>&nbsp;
                                                                    </td>
                                                                    <td>
                                                                        <asp:Button ID="cmdAdd" runat="server" Text="Add Group" CssClass="btn" Width="80px" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table class="" id="Table2">
                                                    <tr>
                                                        <td class="Header">Group Class
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%--  <changed by prajakta for freezing Grid Header jira-90>--%>
                                                            <%-- <div id="GHead"></div>--%>
                                                            <%-- </changed by prajakta for freezing Grid Header jira-90>--%>
                                                            <%-- <commented by prajakta on 30 sep 2014 jira-90 >--%>
                                                            <%-- <div id="DIV1" style="overflow: auto; width: 1250px; height: 190px" runat="server">--%>
                                                            <div id="DIV1" style="overflow: auto; max-height: 360px" runat="server">
                                                                <%-- </commented by prajakta on 30 sep 2014  jira-90  >--%>
                                                                <%--<START> Changed By Suraj J || 07-Jan-2022 || HLB Upgrade and 1FinIQ merging>--%>
                                                                <asp:DataGrid ID="Grid_Group" CssClass="Grid" runat="server" ShowFooter="True" AutoGenerateColumns="False"
                                                                    AllowPaging="True" DataKeyField="EntityID">
                                                                    <SelectedItemStyle CssClass="GridItemSelect" />
                                                                    <ItemStyle CssClass="GridItem" />
                                                                    <HeaderStyle CssClass="GridHeader" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                    <FooterStyle CssClass="GridFooter" />
                                                                    <PagerStyle CssClass="GridPager" />
                                                                    <Columns>
                                                                        <%--Enum GroupGrid Index - 0 --%>
                                                                        <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel"
                                                                            EditText="Edit">
                                                                            <ItemStyle Wrap="False" Width="80px"></ItemStyle>

                                                                        </asp:EditCommandColumn>
                                                                        <%--Enum GroupGrid Index - 1 --%>
                                                                        <asp:TemplateColumn SortExpression="OptionID" HeaderText="Group ID">

                                                                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="Linkbutton4" runat="server" CssClass="transper" CausesValidation="false"
                                                                                    CommandName="Select" CommandArgument='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.GroupID").ToString)%>'
                                                                                    Text='<%# Eval("GroupID") %>'> <%-- using 'Microsoft.Security.Application.Encoder.HtmlEncode' this "'" apostrophe sign converted in to '#39;' format thts why only Eval used by Sumit.A  --%>
                                                                                </asp:LinkButton>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_GroupId" runat="server" Visible="False" MaxLength="16" onkeypress="return AllowOnlyAlphabet();"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 2 --%>
                                                                        <asp:TemplateColumn HeaderText="Entity Name" HeaderStyle-HorizontalAlign="Center">

                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.EntityName").ToString)%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterStyle Wrap="False"></FooterStyle>
                                                                            <FooterTemplate>
                                                                                <asp:DropDownList ID="txt_EntityName" Visible="False" runat="server" CssClass="ddl">
                                                                                </asp:DropDownList>
                                                                            </FooterTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 3 --%>
                                                                        <asp:TemplateColumn HeaderText="Status" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Status").ToString)%>'
                                                                                    ID="Label4">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_Status" runat="server" Visible="False" MaxLength="50"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <asp:TemplateColumn HeaderText="Role" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Role").toString) %>'
                                                                                    ID="lblRole">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_Role" runat="server" Visible="False"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 4 --%>
                                                                        <asp:TemplateColumn HeaderText="Group Name" HeaderStyle-HorizontalAlign="Center">

                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Names").ToString)%>'
                                                                                    ID="Label6">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterStyle Wrap="False"></FooterStyle>
                                                                            <FooterTemplate>
                                                                                <%--<17-Mar-2021 || Added max leangth attribute>--%>
                                                                                <asp:TextBox ID="txt_GroupName" runat="server" Visible="False" MaxLength="32"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <%--<17-Mar-2021 || Modified maxleangth attribute value>--%>
                                                                                <asp:TextBox ID="edit_GroupName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Names").ToString)%>'
                                                                                    MaxLength="32">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>

                                                                        <%--Enum GroupGrid Index - 5 --%>
                                                                        <asp:TemplateColumn HeaderText="Organisation" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.GroupName").ToString)%>'
                                                                                    ID="Label7">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_Organisation" MaxLength="32" runat="server" Visible="False"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.GroupName").ToString)%>'
                                                                                    ID="Textbox2" MaxLength="32">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 6 --%>
                                                                        <asp:TemplateColumn HeaderText="Address" HeaderStyle-HorizontalAlign="Center" Visible="true">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Address").toString) %>'
                                                                                    ID="Label8">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_Address" MaxLength="64" runat="server" Visible="False"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox runat="server" MaxLength="64" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Address").toString) %>'
                                                                                    ID="Textbox3">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 7 --%>
                                                                        <asp:TemplateColumn HeaderText="Mobile" HeaderStyle-HorizontalAlign="Center" Visible="true">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Mobile").toString) %>'
                                                                                    ID="Label9">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_Mobile" MaxLength="10" runat="server" Visible="False" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox runat="server" onkeypress="return isNumberKey(event)" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Mobile").toString) %>'
                                                                                    ID="Textbox4">
                                                                                    <%--ManasiA || 29-July-2021 || Removed maxlength to allow more than 10 numbers--%> 
                                                                                    <%--MaxLength="10"--%>
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 8 --%>
                                                                        <asp:TemplateColumn HeaderText="Phone" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Phone").toString) %>'
                                                                                    ID="Label10">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_Phone" runat="server" Visible="False" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox runat="server" onkeypress="return isNumberKey(event)" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Phone").toString) %>'
                                                                                    ID="Textbox5">
                                                                                       <%--ManasiA || 29-July-2021 || Removed maxlength to allow more than 10 numbers--%> 
                                                                                     <%--MaxLength="10"--%>
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 9 --%>
                                                                        <asp:TemplateColumn HeaderText="Fax" HeaderStyle-HorizontalAlign="Center" Visible="true">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Fax").toString) %>'
                                                                                    ID="Label11">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_Fax" runat="server" Visible="False"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Fax").toString) %>'
                                                                                    ID="Textbox6">  
                                                                                       <%--ManasiA || 29-July-2021 || Removed maxlength to allow more than 10 numbers--%> 
                                                                                    <%--MaxLength="10"--%>
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 10 --%>
                                                                        <asp:TemplateColumn HeaderText="Email Id" HeaderStyle-HorizontalAlign="Center" Visible="true">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Email").toString) %>'
                                                                                    ID="Label12">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_Email" runat="server" Visible="False"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Email").toString) %>'
                                                                                    ID="txt_Emailid" MaxLengt="25">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 11 --%>
                                                                        <asp:TemplateColumn HeaderText="Group Admin" Visible="false" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.GroupAdmin").ToString)%>'
                                                                                    ID="Label13">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:DropDownList ID="txt_GrpAdm" runat="server" Visible="False" CssClass="ddl"></asp:DropDownList>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:DropDownList runat="server" ID="ddlGrpAdm" AutoPostBack="false" CssClass="ddl"></asp:DropDownList>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 12 --%>
                                                                        <asp:TemplateColumn HeaderText="Group Authoriser" Visible="false" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.GroupAut").ToString)%>'
                                                                                    ID="Label14">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:DropDownList ID="txt_GrpAuth" runat="server" Visible="False" CssClass="ddl"></asp:DropDownList>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:DropDownList runat="server" ID="ddlGrpAut" AutoPostBack="false" CssClass="ddl"></asp:DropDownList>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 13 --%>
                                                                        <asp:TemplateColumn HeaderText="Mobile Access" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Center"></ItemStyle>
                                                                            <FooterStyle Wrap="False" HorizontalAlign="Center"></FooterStyle>
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox runat="server" CommandName="AllowMobile" CausesValidation="false" Enabled="false"
                                                                                    Checked='<%# DataBinder.Eval(Container, "DataItem.AllowMobileDeviceAccessYN").ToString().Equals("Y")%>'
                                                                                    ID="AllowMobileDeviceAccessYN"></asp:CheckBox>
                                                                                <%--Checked='<%# DataBinder.Eval(Container, "DataItem.AllowMobileDeviceAccessYN")  %>'--%>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:CheckBox ID="AllowMobileDeviceAccessYN1" runat="server" Visible="False" MaxLength="32"></asp:CheckBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:CheckBox runat="server" CommandName="AllowMobile" CausesValidation="false"
                                                                                    Checked='<%# DataBinder.Eval(Container, "DataItem.AllowMobileDeviceAccessYN").ToString().Equals("Y")%>'
                                                                                    ID="AllowMobileAccess1"></asp:CheckBox>
                                                                                <%--Checked='<%# DataBinder.Eval(Container, "DataItem.AllowMobileDeviceAccessYN")%>'--%>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum GroupGrid Index - 14 --%>
                                                                        <asp:TemplateColumn HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton runat="server" Text="Delete" CommandName="Delete" CausesValidation="false"
                                                                                    ID="Linkbutton5"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                    </Columns>
                                                                    <PagerStyle CssClass="DataGrid1Pager" Mode="NumericPages"></PagerStyle>
                                                                </asp:DataGrid>
                                                                <%--<END> Changed By Suraj J || 07-Jan-2022 || HLB Upgrade and 1FinIQ merging>--%>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table id="tblUser" runat="server">
                                        <tr>
                                            <td>
                                                <table class="" id="Table3">
                                                    <tr>
                                                        <td class="Header" style="height: 14px" id="lblUser" runat="server">User IDs Of [<asp:Label ID="lbl_userid" runat="server"></asp:Label>]
                                                          <%--Added By Omkar M || MASCLI - 1946 || 01-Nov-2021--%>
                                                            <%-- Added  Tooltip,Updated Title  By Omkar M || MASCLI - 1946 || 01-Nov-2021--%>
                                                            <asp:Label ID="lblRecordsPerpage" runat="server" CssClass="lbl CashHoldingsRecordsPerPage" title="Enter record(s) per page in textbox. Press enter/tab." Style="margin-left: 10px"></asp:Label>
                                                            <asp:TextBox ID="TxRowsPerPage" runat="server" AutoPostBack="true" MaxLength="3" Text="10"
                                                                Style="text-align: right; vertical-align: middle; height: 24px" onkeypress="return AllowOnlyNumeric()"
                                                                onkeydown="return TxRowsPerPage_TextChanged(event)" Width="32" ToolTip="Record(s) Per Page"></asp:TextBox>
                                                            <asp:Button ID="btnSetPageSize" runat="server" Style="display: none"></asp:Button>

                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%--<iframe id="iframepnlProdDetails" runat="server" style="position: absolute; top: 200px;
                                                                left: 814px; width: 300px; height: 300px; background-color: Transparent;" visible="false">
                                                            </iframe>--%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="float: left;">
                                                            <div id="DIV2" style="overflow-y: auto;" runat="server">
                                                                <%--<START> Changed By Suraj J || 07-Jan-2022 || HLB Upgrade and 1FinIQ merging>--%>
                                                                <asp:DataGrid ID="Grid_User" runat="server" CssClass="Grid" ShowFooter="True" AutoGenerateColumns="False"
                                                                    PageSize="50" AllowPaging="True" AllowSorting="True">
                                                                    <SelectedItemStyle CssClass="GridItemSelect" />
                                                                    <ItemStyle CssClass="GridItem" />
                                                                    <HeaderStyle CssClass="GridHeader" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                    <FooterStyle CssClass="GridFooter" />
                                                                    <PagerStyle CssClass="GridPager" />
                                                                    <Columns>
                                                                        <%--Enum UserGrid Index - 0 --%>
                                                                        <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel"
                                                                            EditText="Edit">
                                                                            <ItemStyle Wrap="False" Width="80px"></ItemStyle>
                                                                        </asp:EditCommandColumn>
                                                                        <%--Enum UserGrid Index - 1 --%>
                                                                        <asp:TemplateColumn HeaderText="UserID" SortExpression="UserID">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("UserId")%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_Userid" Visible="False" runat="server" MaxLength="50" onkeypress="return AllowOnlyAlphabet();"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:Label ID="userid" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserId").ToString)%>'
                                                                                    runat="server">
                                                                                </asp:Label>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 2 --%>
                                                                        <asp:BoundColumn DataField="VisiblePassword" ReadOnly="True" HeaderText="Password"></asp:BoundColumn>
                                                                        <%--Enum UserGrid Index - 3 --%>
                                                                        <asp:TemplateColumn HeaderText="Login Name">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserHostName").ToString)%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_LoginName" Visible="False" runat="server" MaxLength="100" Width="300"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox ID="TextBox1" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserHostName").ToString)%>'
                                                                                    runat="server" MaxLength="100" Width="300">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 4 --%>
                                                                        <asp:TemplateColumn HeaderText="External ID">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblExternal_id" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.ExternalUserID").ToString)%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_ExternalID" Visible="False" runat="server" MaxLength="100"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox ID="txtExternalid" MaxLength="100" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.ExternalUserID").ToString)%>'
                                                                                    runat="server">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 5 --%>
                                                                        <asp:TemplateColumn HeaderText="Primary Email">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblPrimaryEmailId" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.PrimaryEmailAddress").ToString)%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_PrimaryEmailId" Visible="False" runat="server" MaxLength="50"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox ID="txtPrimaryEmailId" MaxLength="50" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.PrimaryEmailAddress").ToString)%>'
                                                                                    runat="server">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 6 --%>
                                                                        <asp:TemplateColumn HeaderText="Primary Phone No." Visible="false">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblPrimaryPhoneNumber" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.PrimaryPhoneNumber").ToString)%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_PrimaryPhoneNumber" Visible="False" runat="server" MaxLength="16" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox ID="txtPrimaryPhoneNumber" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.PrimaryPhoneNumber").ToString)%>'
                                                                                    runat="server" onkeypress="return isNumberKey(event)">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 7 --%>
                                                                        <asp:TemplateColumn HeaderText="Secondary Email" Visible="false">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblSecondaryEmailId" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.SecondaryEmailAddress").ToString)%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_SecondaryEmailId" MaxLength="50" Visible="False" runat="server"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox ID="txtSecondaryEmailId" MaxLength="50" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.SecondaryEmailAddress").ToString)%>'
                                                                                    runat="server">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 8 --%>
                                                                        <asp:TemplateColumn HeaderText="Secondary Phone No." Visible="false">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblSecondaryPhoneNumber" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.SecondaryPhoneNumber").ToString)%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_SecondaryPhoneNumber" Visible="False" runat="server" MaxLength="16" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox ID="txtSecondaryPhoneNumber" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.SecondaryPhoneNumber").ToString)%>'
                                                                                    runat="server" onkeypress="return isNumberKey(event)">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 9 --%>
                                                                        <asp:TemplateColumn HeaderText="Login AD Domain" Visible="false">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblUserDomainName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserDomainName").ToString)%>'>
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txt_UserDomainName" Visible="False" runat="server" MaxLength="16"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox ID="txtUserDomainName" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UserDomainName").ToString)%>'
                                                                                    runat="server">
                                                                                </asp:TextBox>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 10 --%>
                                                                        <asp:TemplateColumn HeaderText="Create RM">
                                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true"></HeaderStyle>
                                                                            <ItemStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label15" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(If(DataBinder.Eval(Container, "DataItem.AutoCreateRM") Is DBNull.Value, "", DataBinder.Eval(Container, "DataItem.AutoCreateRM"))).ToString%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:CheckBox ID="Chk_AutoCreateRM" Visible="false" runat="server" Checked="false"></asp:CheckBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:CheckBox ID="ChkAutoCreateRM" runat="server" />
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>

                                                                        <%--Enum UserGrid Index - 11 --%>
                                                                        <asp:TemplateColumn HeaderText="Department">
                                                                            <HeaderStyle HorizontalAlign="Center" Wrap="true"></HeaderStyle>
                                                                            <ItemStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblDepartmentName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(If(DataBinder.Eval(Container, "DataItem.DepartmentName") Is DBNull.Value, "", DataBinder.Eval(Container, "DataItem.DepartmentName"))).ToString%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:DropDownList ID="ddlDepartmentName" Visible="false" runat="server"></asp:DropDownList>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:DropDownList ID="ddl_DepartmentName" CssClass="ddl" runat="server">
                                                                                </asp:DropDownList>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--<ManasiA(21-May-2021) || Jira : BBVACLI-31 || Asked By : Sijo G || For User wise MFA feature>--%>

                                                                        <%--Enum UserGrid Index - 12 --%>
                                                                        <asp:TemplateColumn HeaderText="MFA Required" Visible="false">
                                                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                            <FooterStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox ID="chkMFA" runat="server" Enabled="false" Checked='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.MFARequired"))%>'></asp:CheckBox>
                                                                            </ItemTemplate>
                                                                            <EditItemTemplate>
                                                                                <asp:CheckBox ID="chkEditMFA" runat="server" Checked='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.MFARequired"))%>'></asp:CheckBox>
                                                                            </EditItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:CheckBox ID="chkFooterMFA" runat="server" Visible="false"></asp:CheckBox>
                                                                            </FooterTemplate>
                                                                        </asp:TemplateColumn>


                                                                        <%--<ManasiA(21-May-2021) || Jira : BBVACLI-31 || Asked By : Sijo G || For User wise MFA feature>--%>

                                                                       <%--Enum UserGrid Index - 13 --%>
                                                                       <%-- Synced this change on 27-Apr-2022 for BBVA SOLAR. [BEGIN: Sijo.P.George (24-Feb-2022): (JIRA: FPTDCINT - 836) Added Region column in the user grid to capture free text value less than 256 characters in length] --%>
                                                                        <asp:TemplateColumn HeaderText="Region">
                                                                            <ItemStyle Wrap="false" HorizontalAlign="Left" />
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblRegion" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Region").ToString)%>' />
                                                                            </ItemTemplate>
                                                                            <FooterTemplate>
                                                                                <asp:TextBox ID="txtRegion" Visible="false" runat="server" MaxLength="256"></asp:TextBox>
                                                                            </FooterTemplate>
                                                                            <EditItemTemplate>
                                                                                <%-- BEGIN: Sijo.P.George (21-Mar-2022): (JIRA: FPTDCINT - 836) Added maxlength = 256 to restrict input lenght in edit mode --%>
                                                                                <asp:TextBox ID="txtRegionEdt" runat="server" MaxLength="256" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Region").ToString)%>'></asp:TextBox>
                                                                                <%-- END: Sijo.P.George (21-Mar-2022): (JIRA: FPTDCINT - 836) Added maxlength = 256 to restrict input lenght in edit mode --%>
                                                                            </EditItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%-- Synced this change on 27-Apr-2022 for BBVA SOLAR. [END: Sijo.P.George (24-Feb-2022): (JIRA: FPTDCINT - 836) Added Region column in the user grid to capture free text value less than 256 characters in length] --%>

                                                                       <%--Enum UserGrid Index - 14 --%>
                                                                        <asp:TemplateColumn Visible="false">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="btnLinkAdInfo" runat="server" Text="Active Directory Info" CommandName="SelectAd"
                                                                                    CausesValidation="false"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 15 --%>
                                                                        <asp:TemplateColumn>
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="LinkButton1" runat="server" Text="Delete" CommandName="Delete"
                                                                                    CausesValidation="false"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--Enum UserGrid Index - 16 --%>
                                                                        <asp:TemplateColumn HeaderText="Table Flag" Visible="false" HeaderStyle-HorizontalAlign="Center">
                                                                            <ItemStyle Wrap="False" HorizontalAlign="Left"></ItemStyle>
                                                                            <ItemTemplate>
                                                                                <asp:Label runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.TableFlag").ToString)%>'
                                                                                    ID="UserTableFlag">
                                                                                </asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateColumn>
                                                                        <%--    <asp:TemplateColumn>
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="lnkSelectProduct" runat="server" Text="Select Product" CommandName="SelectProduct"
                                                                                    CausesValidation="false"></asp:LinkButton>
                                                                            </ItemTemplate>

                                                                        </asp:TemplateColumn>--%>
                                                                    </Columns>
                                                                    <PagerStyle CssClass="DataGrid1Pager" Mode="NumericPages"></PagerStyle>
                                                                </asp:DataGrid>
                                                                <%--<END> Changed By Suraj J || 07-Jan-2022 || HLB Upgrade and 1FinIQ merging>--%>
                                                            </div>
                                                        </td>
                                                        <td rowspan="1" style="background-color: grey;" id="bulkImportSeperator" class="auto-style1"></td>

                                                        <%--Alignment updated By Omkar M || MASCLI - 1946 || 01-Nov-2021--%>
                                                        <td style="margin-right: 300px; vertical-align: top;">
                                                            <asp:UpdatePanel ID="upnlBulkInstr" runat="server">
                                                                <ContentTemplate>
                                                                    <table runat="server" id="bulkImportSection">
                                                                        <tbody>
                                                                            <tr>
                                                                                <td class="background_gray" style="padding: 3px !important">Important Instructions for bulk user creation using template file
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>

                                                                                    <asp:Label ID="lblBulkImportInstructions" runat="server" CssClass="Filter1"></asp:Label>

                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="white-space: nowrap;">
                                                                                    <asp:Button ID="btnLoadTemplate" runat="server" CssClass="btn"
                                                                                        Text="Download Template" Enabled="true" Style="width: 120px !important"></asp:Button>
                                                                                    <asp:FileUpload ID="fileuploadExcel" runat="server" CssClass="btn" Style="height: 30px !important; padding-left: 5px; background-color: #e6e6e6; width: 300px !important" /><%--style Added by haroon--%> 
                                                            &nbsp;
                                                            <asp:Button ID="btnBulkImport" runat="server" CssClass="btn" Text="Bulk Import"
                                                                Enabled="true"></asp:Button>&nbsp;
                                                            &nbsp;
                                                            <asp:Button ID="btnLoadTemplateOrig" runat="server" CssClass="btn" Text="LoadTemplateOrig" Enabled="true"
                                                                Style="display: none;" />
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </ContentTemplate>

                                                            </asp:UpdatePanel>
                                                        </td>
                                                    </tr>
                                                </table>

                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div style="text-align: center !important; margin-top: 20px;">
                                        <asp:Button ID="btnSave" runat="server" CssClass="btn" Text="Save" Enabled="False" Width="80px"></asp:Button>&nbsp;
                                                            <asp:Button ID="btnCancel" runat="server" CssClass="btn" Text="Cancel" Enabled="true" Width="80px"></asp:Button>
                                        <input id="hdnEntityID" type="hidden" size="2" runat="server" />
                                    </div>
                                </td>
                            </tr>
                        </table>

                        <%-- <asp:LinkButton ID ="btnLinkAdInfo" Text="Active Directory Information" runat="server" />--%>
                        <asp:Button ID="modelPopup" runat="server" Style="display: none" />
                        <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="modelPopup" PopupControlID="updatePanelPopup" RepositionMode="RepositionOnWindowResizeAndScroll" CancelControlID="btnCancel1">
                        </asp:ModalPopupExtender>

                        <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>--%>
                        <asp:Panel ID="updatePanelPopup" runat="server" BackColor="White" Style="display: none">
                            <div>
                                <table class="Filter" style="width: 100%;">
                                    <%-- <tr>
                                                <td> 
                                                     External User Profile
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnCancelinput" runat="server" Width="20px" Height="20px" Text="X" Style="float: right; margin-top: 0px; padding-left: 5px;" />
                                                </td>
                                            </tr>--%>
                                    <tr class="Filter">
                                        <td colspan="2">

                                            <asp:DataGrid ID="dtgAdInfo" runat="server" AllowSorting="True" AutoGenerateColumns="False" CellPadding="3" CssClass="Grid" Width="300px">
                                                <SelectedItemStyle CssClass="GridItemSelect" />
                                                <ItemStyle CssClass="GridItem" />
                                                <HeaderStyle CssClass="GridHeader" />
                                                <FooterStyle CssClass="GridFooter" />
                                                <PagerStyle CssClass="GridPager" HorizontalAlign="Left" />
                                                <Columns>
                                                    <asp:TemplateColumn ItemStyle-Width="50%" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle">
                                                        <HeaderTemplate>
                                                            <header>
                                                                External User Profile  
                                                                <asp:Button ID="btnCancelinput" OnClick="btnCancelinput_Click" runat="server" Width="20px" Height="20px" Text="X" Style="float: right; margin-top: 0px; padding-left: 5px;" />
                                                            </header>

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

                                                    <asp:TemplateColumn ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle">
                                                        <ItemTemplate>
                                                            <itemstyle horizontalalign="Center" verticalalign="Middle" wrap="False" />
                                                            <asp:Label runat="server" ID="lblValue1" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Value").ToString)%>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateColumn>

                                                </Columns>
                                            </asp:DataGrid>
                                        </td>
                                    </tr>
                                    <tr style="display: none">
                                        <td style="display: none">
                                            <asp:Button ID="btnCancel1" runat="server" CssClass="btn" Text="Cancel" />

                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>



                        <%--  </ContentTemplate>   
                                          
                               </asp:UpdatePanel>  --%>
                        <%--Added By Arshad K on 6th Dec 2016              --%>
                        <%--<cc1:ContextMenu ID="ContextMenu1" runat="server" Width="128px" ForeColor="Black"
                            AutoHide="False" Font-Size="8pt" Font-Names="verdana">
                            <cc1:ContextMenuItem Text="Super Administrator" Tooltip="Click to create  Super Administrator Group"
                                CommandName="SUPADM"></cc1:ContextMenuItem>
                            <cc1:ContextMenuItem Text="Super Authoriser" Tooltip="Click to create  Super Authoriser Group"
                                CommandName="SUPAUT"></cc1:ContextMenuItem>
                            <cc1:ContextMenuItem Text="System Administrator" Tooltip="Click to create  System Administrator Group"
                                CommandName="SYSADM"></cc1:ContextMe    nuItem>
                            <cc1:ContextMenuItem Text="System Authoriser" Tooltip="Click to create  System Authoriser Group"
                                CommandName="SYSAUT"></cc1:ContextMenuItem>
                            <cc1:ContextMenuItem Text="Entity Administrator" Tooltip="Click to create  Entity Administrator Group"
                                CommandName="ENTADM"></cc1:ContextMenuItem>
                            <cc1:ContextMenuItem Text="Entity Authoriser" Tooltip="Click to create  Entity Authoriser Group"
                                CommandName="ENTAUT"></cc1:ContextMenuItem>
                        </cc1:ContextMenu>--%>

                        <div id="custom-menu" class="custom-menu" style="border-style: none; box-shadow: 1px 2px 20px grey;">
                            <nav>
                                <ol id="OL1" runat="server">
                                </ol>
                            </nav>
                        </div>

                        <%--<cc1:ContextMenu ID="ContextMenu2" runat="server" Width="144px" ForeColor="Black"
                            AutoHide="False" Font-Size="8pt" Font-Names="verdana">
                            <cc1:ContextMenuItem Text="Application User Group" Tooltip="Click to create Application User Group"
                                CommandName="Application"></cc1:ContextMenuItem>
                            <cc1:ContextMenuItem Text="Group Administrator" Tooltip="Click to create Group Administrator"
                                CommandName="GRPADM"></cc1:ContextMenuItem>
                            <cc1:ContextMenuItem Text="Group Authoriser" Tooltip="Click to create Group Authoriser"
                                CommandName="GRPAUT"></cc1:ContextMenuItem>
                        </cc1:ContextMenu>--%>

                        <div id="custom-menu2" class="custom-menu" style="border-style: none; box-shadow: 1px 2px 20px grey;">
                            <nav>
                                <ol id="OL2" runat="server">
                                </ol>
                            </nav>
                        </div>


                        <%-- <cc1:ContextMenu ID="Contextmenu3" runat="server" Width="128px" ForeColor="Black"
                            AutoHide="False" Font-Size="8pt" Font-Names="verdana">
                            <cc1:ContextMenuItem Text="New User" Tooltip="Click to create New User"></cc1:ContextMenuItem>
                        </cc1:ContextMenu>--%>

                        <div id="custom-menu3" class="custom-menu" style="border-style: none; box-shadow: 1px 2px 20px grey;">
                            <nav>
                                <ol id="OL3" runat="server">
                                </ol>
                            </nav>
                        </div>


                        <%--//Added By Arshad K on 6th Dec 2016--%>
                    </td>
                </tr>
            </table>
            <%--//Added By Arshad K on 6th Dec 2016--%>
            <asp:Button runat="server" ID="btnHidden" Style="display: none;" />
            <asp:HiddenField ID="contextMenuVal" runat="server"></asp:HiddenField>

            <asp:Button runat="server" ID="btnHidden2" Style="display: none;" />
            <asp:HiddenField ID="contextMenuVal2" runat="server"></asp:HiddenField>

            <asp:Button runat="server" ID="btnHidden3" Style="display: none;" />
            <asp:HiddenField ID="contextMenuVal3" runat="server"></asp:HiddenField>

            <%--//Added By Arshad K on 6th Dec 2016--%>
            <asp:HiddenField ID="hdnGroupRole" runat="server" />
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="ddlSearch" />
            <asp:PostBackTrigger ControlID="btnLoadTemplate" />
            <asp:PostBackTrigger ControlID="btnLoadTemplateOrig" />
            <asp:PostBackTrigger ControlID="btnBulkImport" />

        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
