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

<%--<%@ Register Src="~/LSSReports/FinIQ_EntityCombo.ascx" TagName="FinIQ_EntityCombo" TagPrefix="uc1" %>--%>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy" runat="server">
    </asp:ScriptManagerProxy>
    <script type="text/javascript">
        //<Added by Suraj Jaigude || 11-Apr-2020 || RHBUPINT-554 || search work on enter/tab out>
        function EnterKeyOnSearch(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

            if (code == 13 || code == 9) {
                document.getElementById('<%=btnLoad.ClientID%>').click();
            }
        }
        //</Added by Suraj Jaigude || 11-Apr-2020 || RHBUPINT-554 || search work on enter/tab out>
    </script>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:HiddenField ID="hdnSortOrder" runat="server" />
            <%--Modified on 08-May-2020 || ManasiA || RHB upgrade || Removed unnecessary attributes and layout changes --%>

            <table>

                <tr>
                    <td>
                        <asp:Label ID="lblerror" CssClass="lblerror" runat="server"></asp:Label>
                        <asp:Label ID="lblinfo" CssClass="lblinfo" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <table>
                <tr>

                    <%--'Added by Prachi karnewar on 13-Oct-2019--%>
                    <td>
                        <asp:Label ID="lblEntity" Text="Select Entity" CssClass="lbl" runat="server"></asp:Label>
                    </td>
                    <td style="width:160px">
                        <asp:DropDownList ID="lstEntityName" runat="server" AutoPostBack="True" TabIndex="1"
                            CssClass="ddl" Width="150px">
                        </asp:DropDownList>
                    </td>
                    <%--'Added by Prachi karnewar on 13-Oct-2019--%>
                    <%-- <td>
                                                <uc1:FinIQ_EntityCombo ID="FinIQ_EntityCombo1" runat="server" AddALLInEntityList="True" />
                                            </td>--%>
                    <td class="lbl" style="width:40px">Select 
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlGroupName" runat="server" CssClass="ddl" AutoPostBack="true" Width="80px">
                            <asp:ListItem Value="ALL"></asp:ListItem>
                            <asp:ListItem Value="User"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="width: 125px">
                        <asp:TextBox ID="txtsearch" runat="server" MaxLength="150" CssClass="txt" Width="100px" onpaste="return false" oncut="return false" oncopy="return false" onkeypress="return DisAllowSpecialChar(); " onkeydown="EnterKeyOnSearch(event)"></asp:TextBox>
                    </td>

                    <td>
                        <asp:Button ID="btnLoad" runat="server" CssClass="btn" Text="Load"
                            Width="100px" />
                    </td>

                    <td style="width:70px">
					 <%--ManasiA || 15-Apr-2021 || Export to excel icon and layout changes--%>
                        <asp:Button ID="btnExcel" runat="server" CssClass="btnExcel" ToolTip="Export To Excel" />
                        <%--<asp:Button ID="btnExcel" runat="server" CssClass="btn" Text="Export To Excel" Width="100px" />--%>
                    </td>
                    <td class="lbl">Record(s) Per Page :
                    </td>
                    <td style="width: 45px">
                        <%--<Manasi || 15-May-2020 || RHBUPINT-1137 || changes maxlength 3 to allow 999 records>--%>
                        <asp:TextBox ID="txtpagecount" runat="server" CssClass="txt" Width="35px" Text="10" MaxLength="3" onpaste="return false" oncut="return false" oncopy="return false" AutoPostBack="true"></asp:TextBox>
                    </td>

                    <td class="lbl">
                        <asp:Label ID="Label2" runat="server" CssClass="lbl">Total Record(s) :</asp:Label>
                        <asp:Label ID="lblTotalRecords" runat="server" CssClass="lbl"></asp:Label>
                    </td>
                </tr>
            </table>
          
            <table style="margin-top:10px">
                <tr>
                    <td>

                        <asp:DataGrid ID="dgApplicationProfileUser" runat="server" EmptyDataText="No data found" AutoGenerateColumns="False"
                            AllowPaging="true" AllowSorting="True" PageSize="20" CssClass="Grid">
                            <SelectedItemStyle CssClass="GridItemSelect" />
                            <ItemStyle CssClass="GridItem"></ItemStyle>
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <%-- <PagerStyle CssClass="GridPager" />--%>


                            <%-- <HeaderStyle ForeColor="Black" CssClass="GridHeader"></HeaderStyle>--%>
                            <Columns>
                                <%--'Added by Roshni O  on 20-Nov-2019--%>
                                <asp:BoundColumn DataField="LoginName" HeaderText="Login ID" SortExpression="LoginName">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" Wrap="true"></HeaderStyle>
                                    <ItemStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" Width=""></ItemStyle>
                                </asp:BoundColumn>

                                <asp:BoundColumn DataField="GroupID" HeaderText="Group ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <%--'Andded by Roshni O  on 20-Nov-2019--%>
                                <asp:BoundColumn DataField="ApplicationName" HeaderText="Application Name" SortExpression="ApplicationName">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="180"></HeaderStyle>
                                    <ItemStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" Width=""></ItemStyle>
                                </asp:BoundColumn>
                            </Columns>
                            <PagerStyle HorizontalAlign="Left" CssClass="GridPager" Mode="NumericPages"></PagerStyle>
                        </asp:DataGrid>
                    </td>
                </tr>
            </table>

        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExcel" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
