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

<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl"
    TagPrefix="uc1" %>
<%--<%@ Register Src="~/LSSReports/FinIQ_EntityCombo.ascx" TagName="FinIQ_EntityCombo"
    TagPrefix="uc1" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <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="ScriptManagerProxy" runat="server">
    </asp:ScriptManagerProxy>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <%--Modified on 28-May-2020 || ManasiA || RHB upgrade || Removed unnecessary attributes and layout changes --%>

            <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>
			<%--|| ManasiA : 09-Jun-2021 || Modified style for alignment changes issue when zoom to 200% || --%>
            <table style="margin-top: 10px">
                 <tr>
                                 <td>
                        <asp:Label ID="lblEntity" Text="Entity" CssClass="lbl" runat="server"></asp:Label>
                    </td>
                  <td colspan="2">
                        <asp:DropDownList ID="lstEntityName" runat="server" AutoPostBack="True" TabIndex="1"
                            CssClass="ddl" Width="163px">
                        </asp:DropDownList>
                    </td>
                              
                                <td>
                                    <asp:Label ID="Label1" runat="server" CssClass="lbl">From</asp:Label>
                                </td>
                                <td>
                                    <uc1:DateControl ID="txtfromdate" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                                </td>
                              
                              
                               
                                <td>
                                    <asp:Button ID="btnLoad" runat="server" CssClass="btn" Text="Load" Height="25px"
                                        Width="80px" />
                                </td>
                             
                                <td style="width:70px">
								
								 <%--ManasiA || 15-Apr-2021 || Export to excel icon and layout changes--%>
                                    <%--<asp:Button ID="btnExcel" runat="server" Text="Export To Excel" CssClass="btn" Width="100px" />--%>
                                     <asp:Button ID="btnExcel" runat="server" CssClass="btnExcel" ToolTip="Export To Excel" /> 
                                </td>
                                <td class="lbl">Page Count
                                </td>
                                <td>
                                    <asp:TextBox ID="txtpagecount" runat="server" Width="35px" AutoPostBack="true" Text="10" MaxLength="3"></asp:TextBox>
                                </td>
                          
                                <td>
                                    <asp:Label ID="Label2" runat="server" CssClass="lbl">Total Records :</asp:Label>
                                    <asp:Label ID="lblTotalRecords" runat="server" CssClass="lbl"></asp:Label>
                                </td>
                             
                            </tr>
                       <%-- </table>
                  
        <table >--%>
            <tr>
                  <td style="width:40px">
                                    <asp:Label ID="lblSelect" runat="server" CssClass="lbl" Text="Select"></asp:Label>

                                </td>
                                <td> 
                        <asp:DropDownList ID="ddlGroupName" runat="server" AutoPostBack="true" CssClass="ddl" Width="60px">
                            <asp:ListItem Value="ALL"></asp:ListItem>
                            <asp:ListItem Value="Group"></asp:ListItem>
                            <asp:ListItem Value="User"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="width:120px">
                        <asp:TextBox ID="txtname" runat="server" onkeypress="return DisAllowSpecialChar();" ondragstart="return false;" ondrop="return false;" onpaste="return false" oncut="return false" oncopy="return false" Width="100px" onkeydown="EnterKeyOnSearch(event)"></asp:TextBox>
                    </td>
                      <td class="lbl">
                        <asp:Label ID="lblTo" runat="server" CssClass="lbl" Text="To"></asp:Label>

                    </td>
                    <td style="width:140px">
                        <uc1:DateControl ID="txttodate" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                    </td>
            </tr>
        </table>
            <table style="margin-top: 15px">
                <tr>
                    <td>
                        <asp:DataGrid ID="dgAuditUpdateReport" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            CssClass="Grid">
                            <ItemStyle CssClass="GridItem "></ItemStyle>
                            <HeaderStyle ForeColor="Black" CssClass="GridHeader"></HeaderStyle>
                            <Columns>
                                <asp:BoundColumn DataField="ID" HeaderText="ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="User" HeaderText="Login ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                              
                                <asp:BoundColumn DataField="CreatedAt" HeaderText="Created At">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                  <asp:BoundColumn DataField="ObjectName" HeaderText="Object Name">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="KeyValue" HeaderText="Key Value">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                <asp:BoundColumn DataField="SessionTime" HeaderText="Session Time">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                <asp:BoundColumn DataField="SessionIP" HeaderText="Session IP">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="SessionOS" HeaderText="Session OS">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="DatabaseType" HeaderText="Database Type">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="AppMode" HeaderText="App Mode">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="AppPath" HeaderText="App Path">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></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>

            <asp:TextBox ID="txtAll" runat="server" Visible="False"></asp:TextBox>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExcel" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
