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


<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl"
    TagPrefix="uc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <link href="../App_Themes/ELNLog.css" rel="stylesheet" type="text/css" />
    <%--Rutuja 20Aud2014 jira FA-476 Added JS for not accepting  Special char--%>
    <script src="../FinIQJS/FinIQCommon.js" type="text/javascript"></script>
    <%--Rutuja 20Aud2014 jira FA-476 Added JS for not accepting  Special char--%>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" 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:UpdateProgress ID="pnlProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanelCP" DisplayAfter="0">
        <ProgressTemplate>
            <div>
                <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp;
                </span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>--%>
    <asp:UpdatePanel ID="UpdatePanelCP" runat="server" class="PanelPad">
        <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 style="margin-top:10px">
                <tr>

                    <td style="width:50px">
                        <asp:Label ID="lblEntity" Text="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 style="width:40px">
                        <asp:Label ID="Label1" runat="server" CssClass="lbl">Select </asp:Label>
                    </td>
                    <td  style="width:140px">
                        <asp:DropDownList ID="ddlView" runat="server" AutoPostBack="true" Width="140px" CssClass="ddl">
                            <asp:ListItem Value="ALL"></asp:ListItem>
                            <asp:ListItem Value="Application ID"></asp:ListItem>
                            <asp:ListItem Value="Application Name"></asp:ListItem>
                            <%-- <asp:ListItem Value="Group ID" Text ="Group ID"></asp:ListItem>--%>
                            <%--<asp:ListItem Value="Login ID" Text ="User ID"></asp:ListItem>--%>
                            <asp:ListItem Value="Tab Name"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSearch" runat="server" CssClass="txt" Width="120px" MaxLength="30" onkeydown="EnterKeyOnSearch(event)"></asp:TextBox>
                    </td>
                 
                    <td>
                        <asp:Label ID="lblFrom_Date" runat="server" Visible="false" CssClass="lbl">From Date </asp:Label>
                    </td>
                    <td>
                        <uc1:DateControl ID="From_Date" runat="server" Visible="false" CalenderCss="btn1" TextBoxCss="txt" />
                    </td>
                    <td>
                        <asp:Label ID="lblTo_Date" runat="server" Visible="false" CssClass="lbl">To Date</asp:Label>
                    </td>
                    <td>
                        <uc1:DateControl ID="To_Date" runat="server" Visible="false" CalenderCss="btn1" TextBoxCss="txt" />

                    </td>
                      <td>
                        <asp:Button ID="btnLoad" runat="server" CssClass="btn" Text="Load" Width="80px" />
                    </td>
                    <td style="width:70px">
					 <%--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="lbl">Page Count
                    </td>
                    <td style="width:40px">
                        <asp:TextBox ID="txtpagecount" runat="server" Width="35px"  onkeypress="return event.charCode >= 48 && event.charCode <= 57" oncopy="return false"
						  onpaste="return false"  oncut="return false"
                          AutoPostBack="true" MaxLength="3" value="10"></asp:TextBox>
                        <td>
                            <asp:Label ID="Label2" runat="server" CssClass="lbl">Total Records :</asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lbltotalcount" runat="server" CssClass="lbl"></asp:Label>
                        </td>
                    </td>
                </tr>
            </table>
          
            <table style="margin-top:15px">
                <tr>
                    <td>
                        <asp:DataGrid ID="grddata" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                            PageSize="10" CssClass="Grid" AllowSorting="true">

                            <ItemStyle CssClass="GridItem" />
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <PagerStyle CssClass="GridPager" />
                            <Columns>
                                <asp:BoundColumn DataField="AuditID" HeaderText="Audit ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <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="Action" HeaderText="Operation Type">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <%--<ManasiA as per discussion with Sijo G || 15-Dec-2021> <Start>  --%>
                                 <asp:BoundColumn DataField="LogicalAction" HeaderText="Action" Visible="true">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                 <%--<ManasiA as per discussion with Sijo G || 15-Dec-2021> <End>  --%>
                                <asp:BoundColumn DataField="Status" HeaderText="Status" Visible="true">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Old_New_Flag" HeaderText="Old/New Flag">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <%--  Dilkhush added column ,told by Rajesh M.7May--%>
							  <%--<ManasiA as per discussion with Sijo G || 15-Dec-2021> <Start>  --%>
                                  <asp:BoundColumn DataField="ActionAt" HeaderText="Updated At" DataFormatString="{0:dd-MMM-yyyy hh:mm tt}" Visible="true">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                             <asp:BoundColumn DataField="ActionBy" HeaderText="Updated By" Visible ="true" >
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
											  <%--<ManasiA as per discussion with Sijo G || 15-Dec-2021> <End>  --%>
                                <%--/Dilkhush added column ,told by Rajesh M.7May--%>
                            </Columns>
                            <PagerStyle Mode="NumericPages"></PagerStyle>
                        </asp:DataGrid>
                    </td>
                </tr>
            </table>
            </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExcel" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
