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

<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl"
    TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:ScriptManagerProxy ID="ScriptManagerProxy" runat="server">
    </asp:ScriptManagerProxy>

         <script type="text/javascript">


        //<Added by ManasiA || 09-Apr-2021 || UBPINT-775 || search work on enter/tab out>

             function isNumberKey(evt) {
                 var charCode = (evt.which) ? evt.which : evt.keyCode;
                 if (charCode > 31 && (charCode < 48 || charCode > 57))
                     return false;
                 return true;
             }
             function EnterKeyEvent(evt) {
                 var code = (evt.which) ? evt.which : evt.keyCode;

                 if (code == 13 || code == 9) {
                     document.getElementById('<%=btnSetPageSize.ClientID%>').click();
            }
             }

        function EnterKeyOnSearch(evt) {
            var code = (evt.which) ? evt.which : evt.keyCode;

            if (code == 13 || code == 9) {
                document.getElementById('<%=btnLoad.ClientID%>').click();
            }
        }
        //</Added by ManasiA || 09-Apr-2021 || UBPINT-775 || search work on enter/tab out>
         </script>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:HiddenField ID="hdnSortOrder" runat="server" />
            <%--<link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />--%> <%--commented by Tejaswini k for BBVAORINT-432 || 26th-May-2022--%>
            <table width="100%" >
                <%--<tr>
                    <td nowrap class="background_gray">User Audit Report
                    </td>
                </tr>--%>
                <tr>
                    <td>
                        <asp:Label ID="lblerror" runat="server" CssClass="lblerror"></asp:Label>
                        <asp:Label ID="lblInfo" runat="server" CssClass="lblinfo"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="padding-top:20px">
					<%--	ManasiA || 02-July-2021 || UBPINT-1104 : Added entity filter functionality --%>
                         <table class="" >

                                  <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td  style="width:50px" >
                        <asp:Label ID="lblEntity" runat="server" CssClass="lbl" Text="Entity"></asp:Label>
                    </td>
                    <td style="width:170px" colspan="2">
                        <asp:DropDownList ID="ddlEntity" runat="server" CssClass="ddl" Width="165px" TabIndex="1"></asp:DropDownList>
                    </td>
                                  
                              <%--  <td>
                                    <uc1:FinIQ_EntityCombo ID="FinIQ_EntityCombo1" runat="server" AddALLInEntityList="True" />
                                </td>--%>
                               
                                <td  style="padding-left:20px">
                                    <asp:Label ID="lblFrom_Date" runat="server" CssClass="lbl">From Date</asp:Label>
                                </td>
                               
                                <td>

                                  

                                    <uc2:DateControl ID="From_Date" runat="server" CalenderCss="btn1" TextBoxCss="txt"  DoPostBack="false"/>

                                </td>
                                <td  style="padding-left:20px">
                                    <asp:Button ID="btnLoad" runat="server" CssClass="btn" Text="Load" Height="25px" Width="80px"
                                        />
                                </td>
                                
                                <td class="lbl"  style="padding-left:20px">
                                    Record(s) Per Page:
                                </td>                              
                                <td>
                                    <asp:TextBox ID="txtpagecount" runat="server" Width="35px" Text="10" MaxLength="3" oncut="return false" onkeypress="return isNumberKey(event)" onkeydown="EnterKeyEvent(event)" AutoPostBack ="true"></asp:TextBox>
                                  <asp:Button ID="btnSetPageSize" runat="server" Style="display: none" CssClass="rowPerPageMargin"></asp:Button>
                                    </td>
                               
                              
                           </tr>
                            <tr>
                               
                                 <td class="lbl">
                                    Select 
                                </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>
                                 <asp:TextBox ID="txtSearch" runat="server" onkeypress="return DisAllowSpecialChar();" ondragstart="return false;" ondrop="return false;" onpaste="return false" oncut="return false" oncopy="return false" CssClass="txt" Width="100px" MaxLength="30" onkeydown="EnterKeyOnSearch(event)"></asp:TextBox>
                                </td>
                               
                                <td style="padding-left:20px">
                                    <asp:Label ID="lblTo_Date" runat="server" CssClass="lbl">To Date</asp:Label>
                                </td>
                             
                                <td>
                                   <uc2:DateControl ID="To_Date" runat="server" CalenderCss="btn1" TextBoxCss="txt" DoPostBack="false" />

                                </td>
                              
                                <td  style="padding-left:20px">
								 <%--ManasiA || 15-Apr-2021 || Export to excel icon and layout changes--%>
                                    <%--<asp:Button ID="btnExcel" runat="server" CssClass="btn" text="Export To Excel" Height="25px" Width="100px" />--%>
                              <asp:Button ID="btnExcel" runat="server" CssClass="btnExcel" ToolTip="Export To Excel" /> 
                                    </td>
                                  <td class="lbl"  style="padding-left:20px">
                                <asp:Label ID="Label2" runat="server" CssClass="lbl">Total Record(s) :</asp:Label>
                                    <asp:Label ID="lbltotalcount" runat="server" CssClass="lbl"></asp:Label>
                                    </td>
                             
                            </tr>
                                        
                                    </table>
                                </td>
                            </tr>

                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="padding-top:20px">
                        <table >
                            <tr>
                                <td>
                                    <asp:DataGrid ID="grduserdata" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                                        AllowSorting="true" PageSize="10" CssClass="Grid CssGridBorder" ShowHeaderWhenEmpty="true">
                                        <ItemStyle CssClass="grid"></ItemStyle>
                                        <SelectedItemStyle CssClass="GridItemSelect" />
                                        <ItemStyle CssClass="GridItem" />
                                        <HeaderStyle CssClass="GridHeader" />
                                        <FooterStyle CssClass="GridFooter" />
                                        <PagerStyle CssClass="GridPager" />
                                        <Columns>
                                            <asp:BoundColumn DataField="L_Id" HeaderText="User ID" SortExpression="L_Id">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="120px"></HeaderStyle>
                                                <ItemStyle Wrap="true" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="UserGrp" HeaderText="Group" SortExpression="UserGrp">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="120px"></HeaderStyle>
                                                <ItemStyle Wrap="true" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="Action" HeaderText="Action" SortExpression="Action">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="120px"></HeaderStyle>
                                                <ItemStyle Wrap="true" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ActionAt" HeaderText="Action At" DataFormatString="{0:dd-MMM-yyyy hh:mm tt}" SortExpression="ActionAt">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="150px"></HeaderStyle>
                                                <ItemStyle Wrap="true" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ActionBy" HeaderText="Action By" SortExpression="ActionBy">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="120px"></HeaderStyle>
                                                <ItemStyle Wrap="true" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                        </Columns>
                                        <PagerStyle Mode="NumericPages"></PagerStyle>
                                    </asp:DataGrid>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExcel" />
        </Triggers>
    </asp:UpdatePanel>

</asp:Content>

