<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master"
    CodeBehind="SignOnViolation.aspx.vb" Inherits="FinIQWebApp.SignOnViolation" Title="Sign On Violation 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="cont" ContentPlaceHolderID="MainContent" runat="server">
    <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>
        function AllowAlphaNumericWithUnderScoreAndDot(e) {
            var keycode;
            if (window.event)
                keycode = window.event.keyCode;
            else if (event)
                keycode = event.keyCode;
            else if (e)
                keycode = e.which;
            else return true;

            if ((keycode > 47 && keycode < 58) || (keycode > 64 && keycode < 91) || (keycode > 96 && keycode < 123) || keycode==46 ||keycode==250 ||keycode==95) {
                return true;
            }
            else {
                return false;
            }
            return true;
        }
    </script>
    <asp:UpdatePanel ID="UpdatePanelCP" 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>

                    <%--<td>
                                                <uc1:FinIQ_EntityCombo ID="FinIQ_EntityCombo1" runat="server" AddALLInEntityList="True" />
                                            </td>--%>
 <%--|| ManasiA : 09-Jun-2021 || Modified style for alignment changes issue when zoom to 200% || --%>


                    <%--'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="223px">
                        </asp:DropDownList>
                    </td>
                    <%--'Added by Prachi karnewar on 13-Oct-2019--%>

                     <td >
                        <asp:Label ID="Label1" runat="server" CssClass="lbl">From</asp:Label>
                    </td>
                    <td >
                        <uc1:DateControl ID="dtpFrom" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                    </td>
                  
                     <td>
                        <asp:Button ID="btnLoad" runat="server" CssClass="btn" Width="80px"
                            Text="Load"></asp:Button>
                    </td>
                    <td   style="width: 70px"> 
					<%--ManasiA || 15-Apr-2021 || Export to excel icon and layout changes--%>

                        <%--<input class="btn" id="btnExcel" type="button" style="width: 100px;"
                            name="Button1" value="Export To Excel" runat="server">--%>
                         <asp:Button ID="btnExcel" runat="server" CssClass="btnExcel" ToolTip="Export To Excel" /> 
                    </td>

                      <td class="lbl">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" onkeypress="return event.charCode >= 48 && event.charCode <= 57"></asp:TextBox>
                    </td>

                    <td class="lbl">
                        <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>

                  

                </tr>

         <%--   </table>
            <table >--%>
                <tr>
                   
                    <td class="lbl" style="width: 60px">Select
                    </td>
                    <td> 
                        <asp:DropDownList ID="ddlGroupName" runat="server" AutoPostBack="true" CssClass="ddl" Width="100px">
                            <asp:ListItem Value="ALL"></asp:ListItem>
                            <asp:ListItem Value="Group"></asp:ListItem>
                            <asp:ListItem Value="User"></asp:ListItem>
                            <asp:ListItem Value="IP Address"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="width: 140px">
                        <asp:TextBox ID="txtname" runat="server" onkeypress="return AllowAlphaNumericWithUnderScoreAndDot();" ondragstart="return false;" ondrop="return false;" onpaste="return false" oncut="return false" oncopy="return false" Width="120px" 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="dtpTo" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                    </td>
                </tr>
            </table>
            <table style="margin-top: 10px">
                <tr>
                    <td>
                        <asp:DataGrid ID="grddata" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                            PageSize="20" CssClass="Grid">
                            <ItemStyle CssClass="grid"></ItemStyle>
                            <SelectedItemStyle CssClass="GridItemSelect" />
                            <ItemStyle CssClass="GridItem" />
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <PagerStyle CssClass="GridPager" />
                            <Columns>
                                <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="LoginName" HeaderText="Login Name">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <%--ManasiA || 19-May-2020 || Change in column sequence || RHB upgrade--%>
                                
                                     <asp:BoundColumn DataField="SystemName" HeaderText="System Name">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>

                                   <asp:BoundColumn DataField="ExternalID" HeaderText="External ID">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="EntityName" HeaderText="Entity Name">
                                    <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="UserGroupName" HeaderText="Group Name">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                   <asp:BoundColumn DataField="LoginStatus" HeaderText="Status">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                 <asp:BoundColumn DataField="ActionDateTime" HeaderText="Action Date/Time">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                                  <asp:BoundColumn DataField="Action" HeaderText="Reason">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                               
                                <asp:BoundColumn DataField="Attempt" HeaderText="Attempt">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                              <asp:BoundColumn DataField="IPAddress" HeaderText="IP address">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                    <ItemStyle Wrap="False" HorizontalAlign="Right" VerticalAlign="Middle"></ItemStyle>
                                </asp:BoundColumn>
                             
                            </Columns>
                            <PagerStyle Mode="NumericPages"></PagerStyle>
                        </asp:DataGrid>
                    </td>
                </tr>
            </table>

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