<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master"
    CodeBehind="CustomerSegmentListReport.aspx.vb" Inherits="FinIQWebApp.CustomerSegmentListReport"
    Title="Customer Segment List Report" %>

<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl"
    TagPrefix="uc1" %>
<%--<%@ Register Src="FinIQ_EntityCombo.ascx" TagName="FinIQ_EntityCombo" TagPrefix="uc2" %>--%>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:HiddenField ID="hdnSortOrder" runat="server" />
            <asp:ScriptManagerProxy ID="ScriptManagerProxy" runat="server">
            </asp:ScriptManagerProxy>
            <table  border="0" width="100%">
              
                <table  width="100%">
                    <tr>
                        <td>
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="lbl">
                                        <asp:Label ID="lblerror"  runat="server" CssClass="lblerror"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table  cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tr>
                                    <td>
                                        <table>
                                            <tr>
                                               <%-- <td>
                                                    <uc2:FinIQ_EntityCombo ID="FinIQ_EntityCombo1" runat="server" AddALLInEntityList="true" />
                                                </td>--%>
                                                <td class="lbl">
                                                    <asp:Label ID="lblSelect" runat="server" Text="  Select  "></asp:Label>
                                                </td>
                                                <td style="padding-left :10px">
                                                    <asp:DropDownList CssClass="ddl" ID="ddlGroupName" runat="server" AutoPostBack="true">
                                                        <asp:ListItem Value="ALL"></asp:ListItem>
                                                        <asp:ListItem Value="Login Id"></asp:ListItem>
                                                       <%-- <asp:ListItem Value="Segmnent Group"></asp:ListItem>--%>
                                                      <%--  <asp:ListItem Value="User"></asp:ListItem>--%>
                                                    </asp:DropDownList>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtsearch" runat="server" Width="100px" ondragstart="return false;" ondrop="return false;" onpaste="return false" oncut="return false" oncopy="return false" onkeypress="return DisAllowSpecialChar();"></asp:TextBox>
                                                </td>
                                               <%-- <td>
                                                    <asp:Label ID="Label1" runat="server" CssClass="lbl">Login Report From :</asp:Label>
                                                
                                                    <uc1:DateControl ID="txtfromdate" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblTo" runat="server" CssClass="lbl" Text="To" Style="margin-left: 10px"></asp:Label>
                                                </td>
                                                <td>
                                                    <uc1:DateControl ID="txttodate" runat="server" CalenderCss="btn1" TextBoxCss="txt" />
                                                </td>--%>
                                                <td style ="padding-left :15px">
                                                    <asp:Button ID="btnLoad" runat="server" CssClass="btn" Text="Load" 
                                                        Width="70px" />
                                                </td>
                                                <td align="left">
                                                    <asp:Button ID="btnExcel" runat="server" CssClass="btn" text="Export To Excel"  Width ="100px"/>
                                                </td>
                                                <td class="lbl" style ="padding-left :15px" >
                                                  <asp:Label ID="Label1" CssClass="lbl" runat="server" text="Record(s) Per Page :" ></asp:Label>
                                                   
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtpagecount" CssClass ="txt" runat="server" Width="30px" Text="10" ondragstart="return false;" ondrop="return false;" onpaste="return false" oncut="return false" oncopy="return false" MaxLength="2"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="Label3" runat="server" CssClass="lbl">Total Record(s) :</asp:Label>
                                                    <asp:Label ID="lbltotalcount" runat="server" CssClass="lbl"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table  width="100%">
                                <tr valign="top">
                                    <td>
                                        <asp:DataGrid ID="dgCustomerSegmentReport" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                            PageSize="20" CssClass="Grid"  AllowSorting ="true" >
                                             <SelectedItemStyle CssClass="GridItemSelect" />
                                        <FooterStyle CssClass="GridFooter" />
                                        <ItemStyle CssClass="GridItem"></ItemStyle>
                                        <PagerStyle CssClass="GridPager" />
                                        <HeaderStyle CssClass="GridHeader" />
                                            <Columns>
                                                <asp:BoundColumn DataField="LSGA_LoginID" HeaderText="Login ID" SortExpression ="LSGA_LoginID">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="50px"></HeaderStyle>
                                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="Individual_Segment" HeaderText="Individual Segment Name" SortExpression ="Individual_Segment">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="120px"></HeaderStyle>
                                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="Customer_Segment_Group" HeaderText="Customer Segment Group" SortExpression ="Customer_Segment_Group">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="120px"></HeaderStyle>
                                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                </asp:BoundColumn>
                                                 <asp:BoundColumn DataField="Staff_Indicator_Value" HeaderText="Staff Indicator" SortExpression ="Staff_Indicator_Value">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="70px"></HeaderStyle>
                                                    <ItemStyle HorizontalAlign="center" VerticalAlign="Middle" Wrap="false"></ItemStyle>
                                                </asp:BoundColumn>

                                                <asp:BoundColumn DataField="verified_by" HeaderText="Verified By" SortExpression ="verified_by">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="115px"></HeaderStyle>
                                                    <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                                                </asp:BoundColumn>
                                              <%--  <asp:BoundColumn DataField="Created_At" HeaderText="Created At" SortExpression="CreatedAt">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="150px"></HeaderStyle>
                                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                </asp:BoundColumn>--%>
                                                <asp:TemplateColumn HeaderText="Verified At" SortExpression="verified_At">
                                                <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("verified_At")%>'></asp:Label>
                                                </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:BoundColumn DataField="verified_YN" HeaderText="Verified Y/N" SortExpression="verified_YN">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="70px"> </HeaderStyle>
                                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                </asp:BoundColumn>
                                                 <%-- <asp:BoundColumn DataField="Verified_At" HeaderText="Verified At" SortExpression ="LoginGroupDesc">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="115px"></HeaderStyle>
                                                    <ItemStyle Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                </asp:BoundColumn>--%>
                                                 <asp:TemplateColumn HeaderText="Status" SortExpression="Status">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" width="100px"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="center" VerticalAlign="Middle" Width="100px"></ItemStyle>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblVerificationStatus" CssClass="lbl" runat="server" ></asp:Label>
                                                </ItemTemplate>
                                                </asp:TemplateColumn>
                                                 <asp:TemplateColumn HeaderText="Audit Action By" SortExpression="Audit_Action_By">
                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" width="150px"></HeaderStyle>
                                                <ItemStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle" Width="150px"></ItemStyle>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblAudit_Action_By" CssClass="lbl" runat="server" Text='<%# Eval("Audit_Action_By")%>'></asp:Label>
                                                </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:BoundColumn DataField="Audit_Action_At" HeaderText="Audit Action At" SortExpression="Audit_Action_At">
                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="150px"></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>
                        </td>
                    </tr>
                </table>
                </td> </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExcel" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
