<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master"
    CodeBehind="ActiveLoginReports.aspx.vb" Inherits="FinIQWebApp.ActiveLoginReport" Title="Active Login 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="Content2" 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>
	
     	<%--/*Start Added by Varun Patyal on 09-July-2021 for UBPINT-534*/--%>
    <style>
      
        .btn_padding {
            padding-left: 10px !important;
            padding-top: 5px !important;
        }
        

        .lbl_padding {
            padding-left: 10px !important;
            padding-top: 5px !important;
        }

        </style>
 <%--   /*End Added by shubham k on 24-Mar-2021 for UBPINT-534*/--%>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy" runat="server">
    </asp:ScriptManagerProxy>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:HiddenField ID="hdnSortOrder" runat="server" /> 
            <%--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>
<%--|| ManasiA : 09-Jun-2021 || Modified style for alignment changes issue when zoom to 200% || --%>
            <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 colspan="2">
                        <asp:DropDownList ID="lstEntityName" runat="server" AutoPostBack="True" TabIndex="1"
                            CssClass="ddl" Width="163px">
                        </asp:DropDownList>
                    </td>
                    <%--'Added by Prachi karnewar on 13-Oct-2019--%>
                    <%--<td>
            <uc1:FinIQ_EntityCombo ID="FinIQ_EntityCombo1" runat="server" AddALLInEntityList="True" />
        </td>--%>
                   
                    <td>
                        <asp:Label ID="lblfrom" 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" Width="80px" />
                    </td>

                    <td  Class="btn_padding">	<%--/*Start Added by Varun Patyal on 09-July-2021 for UBPINT-534*/--%>
					 <%--ManasiA || 15-Apr-2021 || Export to excel icon and layout changes--%>
                       <%-- <asp:Button ID="btnExcel" runat="server" CssClass="btn" Width="100px" Text="Export To Excel" />--%>
                         <asp:Button ID="btnExcel" runat="server" CssClass="btnExcel" ToolTip="Export To Excel" /> 
                    </td>

                    <td class="lbl">
                        <asp:Label CssClass="lbl" runat="server" Text="Record(s) Per Page :"></asp:Label>
                    </td>
                    <td>
                          <%--<Manasi || 15-May-2020 || RHBUPINT-1137 || changes maxlength 3 to allow 999 records>--%>
                        <asp:TextBox ID="txtpagecount" runat="server" Width="35px" Text="10" AutoPostBack="true" onkeypress="return event.charCode >= 48 && event.charCode <= 57" CssClass="txt" MaxLength="3"></asp:TextBox>
                    </td>
                    <td class="lbl">
                        <asp:Label ID="Label3" CssClass="lbl" runat="server">Total Record(s) :</asp:Label>
                        <asp:Label ID="lbltotalcount" CssClass="lbl" runat="server"></asp:Label></td>
                </tr>
          <%--  </table>

            <table>--%>
                <tr>
                     <td style="width:60px">
                        <asp:Label ID="Label1" CssClass="lbl" runat="server">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="txtsearch" runat="server" onkeypress="return DisAllowSpecialChar();" ondragstart="return false;" ondrop="return false;" onpaste="return false" oncut="return false" oncopy="return false" AutoPostBack="false" CssClass="txt" Width="100px" MaxLength="150" onkeydown="EnterKeyOnSearch(event)"></asp:TextBox>
                    </td>
                     <td>
                        <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:10px">
                <tr>
                    <td>
                        <asp:DataGrid ID="dgActiveLoginReport" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            AllowSorting="true" PageSize="10" CssClass="Grid">
                            <SelectedItemStyle CssClass="GridItemSelect" />
                            <FooterStyle CssClass="GridFooter" />
                            <ItemStyle CssClass="GridItem"></ItemStyle>
                            <PagerStyle CssClass="GridPager" />
                            <HeaderStyle CssClass="GridHeader" />
                            <Columns>
                                <asp:BoundColumn DataField="Status" HeaderText="Status" SortExpression="Status">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="LoginID" HeaderText="Login ID" SortExpression="LoginID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="LoginName" HeaderText="Login Name" SortExpression="LoginName">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="LoginGroup" HeaderText="Group ID" SortExpression="LoginGroup">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="ExternalId" HeaderText="External ID" SortExpression="ExternalId">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="Created At" SortExpression="CreatedAt">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" Width="150px"></ItemStyle>
                                    <ItemTemplate>
                                        <asp:Label ID="lblCreatedAt" CssClass="lbl" runat="server" Text='<%# Eval("CreatedAt")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:BoundColumn DataField="PrimaryPhoneNo" HeaderText="Primary Phone No" SortExpression="PrimaryPhoneNo">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="110px"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="PrimaryEmail" HeaderText="Primary Email" SortExpression="PrimaryEmail">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="110px"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="SecondaryPhoneNo" HeaderText="Secondary Phone No" SortExpression="SecondaryPhoneNo">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="SecondaryEmail" HeaderText="Secondary Email" SortExpression="SecondaryEmail">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="110px"></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>

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