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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>

     <script type="text/javascript">
         function isNumberKey(evt) {
             var charCode = (evt.which) ? evt.which : evt.keyCode;
             if (charCode > 31 && (charCode < 48 || charCode > 57))
                 return false;
             return true;
         }

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

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

    <asp:UpdatePanel ID="Updatepanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
                <%--Modified on 21-May-2020 || ManasiA || RHB upgrade || Removed unnecessary attributes and layout changes --%>

            <table>
            
                 <tr>
                    <td>
                        <asp:Label ID="lblError" runat="server" Text="" CssClass="lblError"> </asp:Label>
                        <asp:Label ID="lblInfo" runat="server" CssClass="lblinfo" Text=""></asp:Label>
                    </td>
                </tr>
            </table>

            <table style="margin-top:10px">
                <tr>
                    <td style="width:80px">
                        <asp:Label ID="lblEntity" runat="server" CssClass="lbl" Text="Select Entity"></asp:Label>
                    </td>
                    <td style="width:150px">
                        <asp:DropDownList ID="ddlEntity" runat="server" CssClass="ddl" Width="130px" TabIndex="1" style="margin-left: 0px"></asp:DropDownList>
                    </td>
                    <td style="width:45px">
                        <asp:Label ID="lblSelect" runat="server" CssClass="lbl" Text="Select"></asp:Label>
                    </td>
                    <td >
                        <asp:DropDownList ID="ddlGroupName" runat="server" CssClass="ddl" Width="80px" TabIndex="1" AutoPostBack="true">
                            <asp:ListItem Text="ALL" Value="ALL"></asp:ListItem>
                            <asp:ListItem Text="Group" Value="Group"></asp:ListItem>
                            <asp:ListItem Text="User" Value="User"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="width:150px" >
                        <asp:TextBox ID="txtSearch" CssClass="txt" runat="server" Width="130px" onkeydown="EnterKeyOnSearch(event)"></asp:TextBox>
                    </td>
                       <td >
                      
                    <asp:Button ID="btnLoad" runat="server" CssClass="btn" Text="Load" Width="80px"  />
                    </td>
                   
                     <td >
                        <asp:Button ID="btnReset" runat="server" CssClass="btn" Text="Reset" Width="80px"  />
                    </td>
                   <td style="width:70px" >
				    <%--ManasiA || 15-Apr-2021 || Export to excel icon and layout changes--%>
                        <%--<asp:Button ID="btnExport" runat="server" CssClass="btn" ToolTip="Export To Excel" TabIndex="3" Width="100px" Text="Export to Excel" />--%>
                    <asp:Button ID="btnExport" runat="server" CssClass="btnExcel" ToolTip="Export To Excel" />  
                   </td>
                  
                  <td >
                        <asp:Label ID="lblRowsPerPage" runat="server" CssClass="lbl" Text="Row(s) Per Page"></asp:Label>
                    </td>
                    <td style="width:40px">
                        <asp:TextBox ID="txtRowsPerPage" runat="server" CssClass="txt" MaxLength="3" Width="35" AutoPostBack="true" onkeypress="return isNumberKey(event)"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblTotalCount" runat="server" CssClass="lbl" Text="Total Record(s) :  "></asp:Label>
 <asp:Label ID="lblCount" runat="server" CssClass="lbl" Text="0"></asp:Label>
                    </td>
                 
                    
                </tr>
                </table>
            <table style="margin-top:10px" >    
            <tr >
                  <td>
                        <asp:CheckBoxList ID="chkUserStatusList" runat="server" CssClass="lst" AutoPostBack="true" RepeatDirection="Horizontal">
                           
                        </asp:CheckBoxList>
                    </td>
                     
                </tr>
                </table>
            <table style="margin-top:15px">
                <tr >
                    <td>
                     <asp:GridView ID="gvUserStatus" runat="server" EnableViewState="true"
                            ShowFooter="false" AutoGenerateColumns="false"
                            CellPadding="4"  Font-Bold="false"
                            GridLines="None"  ShowHeaderWhenEmpty="true" CssClass="Grid" AllowPaging="true">    <%--  Removed color properties from grid by Tejaswini K @30-May-2022 BBVAORINT-433 page numbers not visible in All Black Theme--%>
                            <HeaderStyle CssClass="GridHeader" />
                            <PagerStyle CssClass="GridPager" />

                            <FooterStyle CssClass="GridFooter"></FooterStyle>
                            <RowStyle CssClass="GridItem" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="false" ForeColor="#333333" />

                            <EmptyDataTemplate>
                                <asp:Label ID="lblqueuedatagrid" runat="server" Text="No data found."></asp:Label>
                            </EmptyDataTemplate>
                            <Columns>
                                <asp:BoundField DataField="LoginID" HeaderText="Login ID" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle" ItemStyle-Wrap="false"/>
                                <asp:BoundField DataField="LoginName" HeaderText="Login Name" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle" ItemStyle-Wrap="false"/>
                                <asp:BoundField DataField="GroupID" HeaderText="Group ID" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle" ItemStyle-Wrap="false"/>
                                <asp:BoundField DataField="LoginStatus" HeaderText="Login Status" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle" ItemStyle-Wrap="false"/>
                              
                                <%-- || ManasiA || 17-June-2020 || Change header to Authorized as per suggested by Sijo sir--%>
                                <asp:BoundField DataField="Activated" HeaderText="Authorized" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle" ItemStyle-Wrap="false"/>

                                <%--<asp:BoundField DataField="Activated" HeaderText="Activated" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle" ItemStyle-Wrap="false"/>--%>

                              <%--<asp:TemplateField HeaderText="Menu Group" Visible="true" SortExpression="MenuGroup">
                                   <HeaderStyle Width="120px" />
                                   <ItemStyle Wrap="true" Width="120px" HorizontalAlign="center" />
                                   <ItemTemplate>
                                       <asp:Label ID="lblMenuGroup" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.MenuGroup").ToString)%>' />
                                   </ItemTemplate>
                               </asp:TemplateField>

                                <asp:TemplateField HeaderText="Login ID" Visible="true" SortExpression="LoginID">
                                   <HeaderStyle Width="120px" />
                                   <ItemStyle Wrap="true" Width="120px" HorizontalAlign="center" />
                                   <ItemTemplate>
                                       <asp:Label ID="lblLoginID" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.LoginID").ToString)%>' />
                                   </ItemTemplate>
                               </asp:TemplateField>

                                <asp:TemplateField HeaderText="Title / Option" Visible="true" SortExpression="TitleOption">
                                   <HeaderStyle Width="120px" />
                                   <ItemStyle Wrap="true" Width="120px" HorizontalAlign="center" />
                                   <ItemTemplate>
                                       <asp:Label ID="lblTitleOption" CssClass="lbl" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.TitleOption").ToString)%>' />
                                   </ItemTemplate>
                               </asp:TemplateField>--%>

                            </Columns>
                            

                        </asp:GridView>
                        </td>
                </tr>
            </table>
            <asp:TextBox ID="txtAll" runat="server" Visible="False"></asp:TextBox>
            <asp:TextBox ID="txtStatus" runat="server" Visible="False"></asp:TextBox>
        </ContentTemplate>
         <Triggers>
            <asp:PostBackTrigger ControlID="btnExport" />
        </Triggers>
    </asp:UpdatePanel>
    
</asp:Content>