<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="ApplicationAccessViewReports.aspx.vb" Inherits="FinIQWebApp.ApplicationAccessViewReports" %>
<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl"
    TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <script src="../FinIQJS/FinIQCommon.js" type="text/javascript"></script>
     <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:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>
    <asp:UpdatePanel ID="UpdatePanelCP" runat="server">
        <%-- <Changes by Suraj Jaigude || 30-Jul-2021 || Layout chnages and remove un-required and commented codes> --%>
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lblerror" runat="server" CssClass="lblerror"></asp:Label>
                        <asp:Label ID="lblinfo" runat="server" CssClass="lblinfo"></asp:Label>
                    </td>
                </tr>
            </table>

            <table style="margin-top: 10px">
                <tr>
                    <td class="lblBlotterPaddingRight">
                        <asp:Label ID="lblEntity" Text="Entity" CssClass="lbl" runat="server" Width="40px" />
                    </td>
                    <td class="ctlBlotterPaddingRight">
                        <asp:DropDownList ID="lstEntityName" runat="server" AutoPostBack="True" TabIndex="1" CssClass="ddl" Width="150px" />
                    </td>
                    <td class="lblBlotterPaddingRight">
                        <asp:Label ID="lblSelet" runat="server" CssClass="lbl" Text="Select" Width="50px" />
                    </td>
                    <td class="lblBlotterPaddingRight">
                        <asp:DropDownList ID="ddlView" runat="server" AutoPostBack="true">
                            <asp:ListItem Value="ALL"></asp:ListItem>
                            <asp:ListItem Value="Application ID"></asp:ListItem>
                            <asp:ListItem Value="Application Name"></asp:ListItem>
                            <asp:ListItem Value="Tab Name"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td class="ctlBlotterPaddingRight">
                        <asp:TextBox ID="txtSearch" runat="server" CssClass="txt" Width="150px" MaxLength="30" onkeydown="EnterKeyOnSearch(event)"></asp:TextBox>
                    </td>

                    <td class="lblBlotterPaddingRight">
                        <asp:Label ID="lblFrom_Date" runat="server" CssClass="lbl" Text="From" />
                    </td>
                    <td class="ctlBlotterPaddingRight">
                        <uc2:DateControl ID="From_Date" runat="server" CalenderCss="btn1" TextBoxCss="txt" DoPostBack="true" />
                    </td>
                    <td class="lblBlotterPaddingRight">
                        <asp:Label ID="lblTo_Date" runat="server" CssClass="lbl" Text="To" />
                    </td>
                    <td class="ctlBlotterPaddingRight">
                        <uc2:DateControl ID="To_Date" runat="server" CalenderCss="btn1" TextBoxCss="txt" DoPostBack="true" />
                    </td>
                    <td class="lblBlotterPaddingRight">
                        <asp:Button ID="btnLoad" runat="server" CssClass="btn" Text="Load" Width="80px"></asp:Button>

                    </td>
                    <td class="ctlBlotterPaddingRight">
                        <%--ManasiA || 15-Apr-2021 || Export to excel icon and layout changes--%>
                        <%--<asp:Button ID="btnExcel" runat="server" CssClass="btn" Text="Export to Excel" width="100px" />--%>
                        <asp:Button ID="btnExcel" runat="server" CssClass="btnExcel" ToolTip="Export To Excel" />
                    </td>
                    <td class="lblBlotterPaddingRight">
                        <asp:Label ID="lblPageCount" runat="server" CssClass="lbl" Text="Page Count" />
                    </td>
                    <td class="ctlBlotterPaddingRight">
                        <asp:TextBox ID="txtpagecount" runat="server" Width="35px" AutoPostBack="true" Text="10" MaxLength="3"/>
                    </td>
                    <td class="ctlBlotterPaddingRight">
                        <asp:Label ID="lblTotalRecords" runat="server" CssClass="lbl" Text="Total Records :" />
                    </td>
                    <td>
                        <asp:Label ID="lbltotalcount" runat="server" CssClass="lbl" Text=""/>
                    </td>
                </tr>
            </table>

            <table style="margin-top: 15px">
                <tr>
                    <td>
                        <asp:DataGrid ID="grddata" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                            CssClass="Grid">
                            <SelectedItemStyle CssClass="GridItemSelect" />
                            <FooterStyle CssClass="GridFooter" />
                            <ItemStyle CssClass="GridItem"></ItemStyle>
                            <PagerStyle CssClass="GridPager" />
                            <HeaderStyle CssClass="GridHeader" />
                            <Columns>
                                <asp:BoundColumn DataField="GroupID" HeaderText="Group ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="LoginID" HeaderText="Login ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="TabName" HeaderText="Tab Name">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="ApplicationName" HeaderText="Application Name">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="ApplicationID" HeaderText="Application ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="ApplicationPath" HeaderText="Application Path">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Createdate" HeaderText="Application Access At">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Createdby" HeaderText="Application Access By">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                            </Columns>
                            <PagerStyle Mode="NumericPages"></PagerStyle>
                        </asp:DataGrid>
                    </td>
                </tr>
            </table>

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