<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="GroupAdministrationReports.aspx.vb" Inherits="FinIQWebApp.GroupAdministrationReports" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

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


     <asp:ScriptManagerProxy ID="ScriptManagerProxy" 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>
            <table border="0" width="100%">
              <%--  <tr>
                    <td nowrap="nowrap" class="background_gray">
                        Group Administration Report
                    </td>
                </tr>--%>


                <tr>
                    <td colspan="5">
                        <asp:Label ID="lblerror" runat="server" CssClass="lblerror"></asp:Label>
                         <asp:Label ID="lblinfo" runat="server" CssClass="lblinfo"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table border="0">
                            <tr>
                                <td>
                                    <table>
								 <%-- 	ManasiA || 07-July-2021 || UBPINT-1104 : Added entity filter functionality  --%>
                                        <tr>
                                             <%--<td>
                                                <uc1:FinIQ_EntityCombo ID="FinIQ_EntityCombo1" runat="server" AddALLInEntityList="False" />
                                            </td>--%>
                                             <td  style="width:50px" >
                        <asp:Label ID="lblEntity" runat="server" CssClass="lbl" Text="Entity"></asp:Label>
                    </td>
                    <td style="width:170px">
                        <asp:DropDownList ID="ddlEntity" runat="server" CssClass="ddl" Width="150px" TabIndex="1"></asp:DropDownList>
                    </td>

                                            <td class="lbl" runat="server" visible="false">
                                                <asp:Label runat="server" Text="Select" CssClass="lbl"></asp:Label>
                                            </td>


                                            <td runat="server" visible="false">
                                                <asp:DropDownList ID="ddlGroupName" runat="server" AutoPostBack="true" Width="96px" Visible="false" CssClass="ddl">
                                                    <asp:ListItem Value="ALL"></asp:ListItem>
                                                    <asp:ListItem Value="Group"></asp:ListItem>
                                                    <asp:ListItem Value="User"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                 <asp:TextBox ID="txtSearchFilter" runat="server" Visible="false" onkeypress="return DisAllowSpecialChar();" ondragstart="return false;" ondrop="return false;" onpaste="return false" oncut="return false" oncopy="return false" CssClass="txt" Width="100px" MaxLength="30" onkeydown="EnterKeyOnSearch(event)"></asp:TextBox>
                                </td>
                                              <td id="Td1" runat="server" visible="false" >
                                                <asp:Label ID="Label3" runat="server" CssClass="lbl">Search User ID </asp:Label>
                                            </td>
                                            <td id="Td2" runat="server" visible="false" style ="padding-left :10px">
                                                <asp:DropDownList ID="ddlView" runat="server" AutoPostBack="true" style="display:none;" Width="96px" CssClass="ddl">
                                                    <%--<asp:ListItem Value="ALL"></asp:ListItem>--%>
                                                    <asp:ListItem Value="Login ID" Text ="User ID"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                             <td id="Td3"  runat="server" visible="false" style ="padding-left :10px">
                                                <asp:TextBox ID="txtSearch" runat="server" CssClass="txt" Width="96px"  MaxLength = "30"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label1" runat="server" CssClass="lbl">From</asp:Label>
                                            </td>
                                            <td style ="padding-left :10px">
                                                <uc1:DateControl ID="txtfromdate" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                                            </td>
                                            <td style ="padding-left :20px">
                                                <asp:Label ID="lblTo" runat="server" CssClass="lbl" Text="To"></asp:Label>
                                            </td>
                                            <td  style ="padding-left :10px">
                                                <uc1:DateControl ID="txttodate" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                                            </td>
                                            
                                            <td style ="padding-left :20px">
                                                <asp:Button ID="btnLoad" runat="server" CssClass="btn" Text="Load" Height="25px"
                                                    Width="70px" />
                                            </td>
                                            
                                            <td>
                                                <asp:Button ID="btnExcel" runat="server" CssClass="btnExcel" Height="25px" />
                                          
                                              <td class="lbl" style ="padding-left :10px">
                                                <asp:Label runat="server" Text="Page Count" CssClass="lbl"></asp:Label>
                                            </td>
                                            <td style ="padding-left :10px">
                                                <asp:TextBox ID="txtpagecount" runat="server" Width="35px" AutoPostBack="true" onkeypress="return event.charCode >= 48 && event.charCode <= 57" Text="10" MaxLength="3" CssClass="lblPaddingRight"></asp:TextBox>
                                                <td style ="padding-left :10px">
                                                    <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>

                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                  <tr>
                    <td>
                        <table width="100%">
                            <tr>
                                <td>
							
                                        <asp:DataGrid ID="grduserdata" runat="server"  AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                            PageSize="20" CssClass="Grid">
                            <SelectedItemStyle CssClass="GridItemSelect" />
                            <ItemStyle CssClass="GridItem" />
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <PagerStyle CssClass="GridPager" />
                                        <Columns>
                                            <asp:BoundColumn DataField="UserGrp" HeaderText="Group">
                                                <HeaderStyle HorizontalAlign="Center"  VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="true" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="Action" HeaderText="Action">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ActionAt" HeaderText="Action At" DataFormatString="{0:dd-MMM-yyyy hh:mm tt}">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn>
                                             <asp:BoundColumn DataField="ActionBy" HeaderText="Action By">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                            </asp:BoundColumn> 
                                        </Columns>
                                        <PagerStyle Mode="NumericPages"></PagerStyle>
                                    </asp:DataGrid>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
               
            </table>
            <asp:TextBox ID="txtAll" runat="server" Visible="False"></asp:TextBox>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExcel" />
        </Triggers>
    </asp:UpdatePanel>


</asp:Content>

