<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master"
    CodeBehind="ApplicationProfileGroup.aspx.vb" Inherits="FinIQWebApp.ApplicationProfileGroup"
    Title="Application Profile Group" %>
<%@ Register Src="~/FinIQ_User_Controls/MultiSelectDropDown_CHR/UC_MultiSelectDropDown_CHR.ascx" TagPrefix="ucAccountsmart" TagName="UC_MultiSelectDropDown_CHR" %>
<%--<%@ 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" />
            <%--Changed by Suraj J || 28-Jul-2021 || Remove unused controls and Added multiselect Dropdown --%>
            <table>

                <tr>
                    <td>
                        <asp:Label ID="lblsuccess" runat="server" CssClass="lblsuccess"></asp:Label>
                        <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>
                    <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>
                    <td class="lbl">
                        <asp:Label ID="lblGroup" runat="server" CssClass="lbl" Text="Group" Visible="false"/>
                    </td>
                    <td style="width: 485px">
                        <ucAccountsmart:UC_MultiSelectDropDown_CHR runat="server" ID="UC_MultiSelectDropDown_Group" SetWidth="455" SetWidthDiv="474px" SetWidthTable="474" />
                    </td>
                    <td>
                        <asp:Button ID="btnLoad" runat="server" CssClass="btn" Text="Load" Width="80px" />
                    </td>
                    <td>
					 <%--ManasiA || 15-Apr-2021 || Export to excel icon and layout changes--%>
                        <%--<asp:Button ID="btnExcel" runat="server" CssClass="btn" Width="100px" Text="Export To Excel" />--%>
                        <asp:Button ID="btnExcel" runat="server" CssClass="btnExcel" ToolTip="Export To Excel" />
                    </td>

                    <td class="lbl" style="padding-left: 15px">
                        <asp:Label ID="Label2" CssClass="lbl" runat="server" Text="Record(s) Per Page :"></asp:Label>
                    </td>
                    <td>
                        <%--<Manasi || 15-May-2020 || RHBUPINT-1137 || changes maxlength 3 to allow 999 records>--%>
                        <asp:TextBox ID="txtpagecount" CssClass="txt" runat="server" Width="35px" oncopy="return false"
                            onpaste="return false" AutoPostBack="true"
                            oncut="return false" MaxLength="3" Text="10"></asp:TextBox>
                    </td>
                    <td class="lbl" style="padding-left: 10px">
                        <asp:Label ID="Label3" CssClass="lbl" runat="server">Total Record(s) :</asp:Label>
                        <asp:Label ID="lblTotalRecords" CssClass="lbl" runat="server"></asp:Label>
                    </td>

                </tr>
            </table>

            <table style="margin-top: 10px">
                <tr>
                    
                    <td>
                        <asp:DataGrid ID="dgApplicationProfileGroup" runat="server" AutoGenerateColumns="False" AllowPaging="true"
                            AllowSorting="true" PageSize="10" CssClass="Grid">
                            <SelectedItemStyle CssClass="GridItemSelect" />
                            <FooterStyle CssClass="GridFooter" />
                            <ItemStyle CssClass="GridItem"></ItemStyle>
                            <PagerStyle CssClass="GridPager" />
                            <HeaderStyle CssClass="GridHeader" />
                            <Columns>
                                <asp:BoundColumn DataField="GroupName" HeaderText="Group ID" SortExpression="GroupName">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="true"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="ApplicationID" HeaderText="Application ID" SortExpression="ApplicationID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="170px" Wrap="true"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="ApplicationName" HeaderText="Application Name" SortExpression="ApplicationName">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="190px" Wrap="true"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></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>
