<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Password_Reset_Audit_Report.aspx.vb"
    MasterPageFile="~/FiniqAppMasterPage.Master" Inherits="FinIQWebApp.Password_Reset_Audit_Report" Title="Password Reset Audit Report" %>

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

<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" 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>
            <%--Modified on 08-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>

            <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">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 style="width:110px">
                        <asp:TextBox ID="txtsearch" runat="server" Width="100px" onkeydown="EnterKeyOnSearch(event)"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblfrom" runat="server" CssClass="lbl" Text="From"></asp:Label>
                    </td>
                    <td>
                        <uc1:DateControl ID="txtfromdate" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                    </td>
                    <td  style="padding-left:10px">
                        <asp:Label ID="lblTo" runat="server" CssClass="lbl" Text="To"></asp:Label>
                    </td>
                    <td>
                        <uc1:DateControl ID="txttodate" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                    </td>
                   
                    <td class="lbl" style="padding-left:10px">Page Count
                    </td>

                    <td>
                         <%--<Manasi || 18-May-2020 || RHBUPINT-1137 || changes maxlength 3 to allow 999 records>--%>
                        <asp:TextBox ID="txtpagecount" runat="server" Width="35px" Text="10" MaxLength="3" AutoPostBack="true"></asp:TextBox>
                    </td>
                    <td class="lbl" style="padding-left:10px">
                        <asp:Label ID="Label2" runat="server">Total Records :</asp:Label>
                        <asp:Label ID="lblTotalRecords" runat="server"></asp:Label></td>

                </tr>
            </table>
            <table style="margin-top:10px">
                <tr>
 <td>
                        <asp:Button ID="btnLoad" runat="server" CssClass="btn" Height="25px" Text="Load"
                            Width="100px" />
                    </td>
                    <td>
                        <%--<asp:Button ID="btnExcel" runat="server" Text="Export to Excel" CssClass="btn" Height="80px" />--%>
                         <asp:Button ID="btnExcel" runat="server" CssClass="btnExcel" ToolTip="Export To Excel" /> 
                    </td>
                </tr>
            </table>

            <table style="margin-top:10px">
                <tr>
                    <td>
                        <asp:DataGrid ID="grdResetPass" runat="server" CssClass="Grid" AutoGenerateColumns="false"
                            AllowPaging="true" PageSize="20">
                            <ItemStyle CssClass="GridItem " />
                            <HeaderStyle ForeColor="Black" CssClass="GridHeader " />
                            <FooterStyle CssClass="GridFooter " />
                            <SelectedItemStyle CssClass="GridItemSelect " />
                            <Columns>
                                <asp:BoundColumn DataField="LoginGroup" HeaderText="Login Group">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="LoginID" HeaderText="Login ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="AuditActionAt" HeaderText="Audit Action At">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="AuditActionBy" HeaderText="Audit Action By">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Wrap="false" HorizontalAlign="left" VerticalAlign="Middle" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="AuditSequenceNo" HeaderText="Audit Sequence No ">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="OldAuditID" HeaderText="Old Audit ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="NewAuditID" HeaderText=" New Audit ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundColumn>
                            </Columns>
                            <PagerStyle Mode="NumericPages" CssClass="GridPager " />
                        </asp:DataGrid>
                    </td>
                </tr>
            </table>

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