<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
    <script type="text/javascript" src="../../utility/Calendar/WdatePicker.js" ></script>
</head>
<body>
    <form id="form1" runat="server">

        <div>         

            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="litManagerTop" runat="server" Text="<%$ Resources:UserOrderStatistics, IDS_PageTitle %>" ></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="litManagerDisciption" runat="server" Text="<%$ Resources:UserOrderStatistics, IDS_PageDesc %>" ></asp:Literal>
                </div>
            </div>
            <Hishop:UserOrderStatistics ID="userOrderStatistics" runat="server">
                <SkinTemplate>
<fieldset class="AdminSearchform">
    <legend>
        <asp:Literal ID="litSearchTitle" Text="<%$ Resources:SaleStatisticsSearch, IDS_Literal_SearchTitle %>" runat="server"></asp:Literal>
    </legend>                
    <table width="50%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
        <tr>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblUserName" runat="server" Text="<%$Resources:SaleStatisticsSearch,IDS_Label_UserName %>"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD">
                <asp:TextBox ID="txtUserName" runat="server" Width="100"></asp:TextBox>
            </td>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblShipTo" runat="server" Text="<%$ Resources:SaleStatisticsSearch,IDS_Label_ShipTo %>"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD" colspan="2">
                <asp:TextBox ID="txtShopTo" runat="server" Width="100"></asp:TextBox>
            </td>  
             <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblReferral" runat="server" Text="<%$Resources:SaleStatisticsSearch,IDS_Label_Referral %>"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD">
                <asp:TextBox ID="txtReferral" runat="server" Width="100"></asp:TextBox>
            </td>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblParent" runat="server" Text="<%$ Resources:SaleStatisticsSearch,IDS_Label_Parent %>"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD" colspan="2">
                <asp:TextBox ID="txtParent" runat="server" Width="173"></asp:TextBox>
            </td> 
        </tr>
        <tr>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblStartDate" runat="server" Text="<%$Resources:SaleStatisticsSearch,IDS_Label_StartDate %>"></asp:Label></nobr>
            </td>
            <td class="searchTableControlTD">
                <Hishop:Calendar ID="calendarStartDate" runat="server" Width="100"/>
            </td>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblEndDate" runat="server" Text="<%$ Resources:SaleStatisticsSearch,IDS_Label_EndDate %>"></asp:Label></nobr>
            </td>
            <td class="searchTableControlTD" colspan="2">
                <Hishop:Calendar ID="calendarEndDate" runat="server" Width="100"/>
            </td>  
            <td class="searchTableLeftTD" >
                <nobr><asp:Label ID="lblOrderId" runat="server" Text="<%$ Resources:SaleStatisticsSearch,IDS_Label_OrderId %>"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD">
                <asp:TextBox ID="txtOrderId" runat="server" Width="100"></asp:TextBox>
            </td> 
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblPageSize" runat="server" Text="<%$ Resources:SaleStatisticsSearch,IDS_Label_PageSize %>"></asp:Label></nobr>
            </td>
            <td class="searchTableControlTD">
                <nobr><Hishop:PageSizeDropDownList ID="dropPageSize" runat="server" Width="40"></Hishop:PageSizeDropDownList>
                <asp:Button ID="btnSearchButton" runat="server" Text="<%$ Resources:SaleStatisticsSearch,IDS_Button_Search %>" CssClass="inp_L1"/>
                <asp:Button ID="btnCreateReport" runat="server" Text="<%$ Resources:Resources ,IDS_Button_CreateReport %>" CssClass="inp_L1"/></nobr>
            </td> 
        </tr>
    </table>
</fieldset> 
<!--会员订单列表-->
<div class="grdGroupFormList"> 

            <div class="grdGroupList">
                <Hishop:CustomGridView ID="grdUserOrderStatistics" runat="server" AutoGenerateColumns="false" ShowHeader="true" AllowSorting="true" CssClass="GridViewStyle" GridLines="None" RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle" >                                                        
                        <Columns>  
                            <asp:BoundField HeaderText="<%$ Resources:SaleStatisticsSearch,IDS_Label_OrderId %>" DataField="OrderId" />    
                            <asp:TemplateField HeaderText="<%$ Resources:ManageOrder, IDS_Header_OrderDate %>" >
                                <itemtemplate>
                                    <Hishop:FormatedTimeLabel ID="lblStartTimes" Time='<%#Eval("OrderDate") %>' runat="server" ></Hishop:FormatedTimeLabel>
                                </itemtemplate>
                            </asp:TemplateField>   
                            <asp:TemplateField HeaderText="<%$ Resources:UserOrderStatistics,IDS_grdOrderTotals %>">
                                <itemtemplate>
                                    <Hishop:FormatedMoneyLabelForAdmin Money='<%#Eval("Total") %>' runat="server" ></Hishop:FormatedMoneyLabelForAdmin>
                                </itemtemplate>
                            </asp:TemplateField>                                         
                            <asp:BoundField HeaderText="<%$ Resources:UserOrderStatistics,IDS_grdUserName %>" DataField="UserName" />   
                            <asp:TemplateField HeaderText="<%$ Resources:SaleStatisticsSearch,IDS_Label_ShipTo %>" >
                                <itemtemplate>
                                    <asp:Label ID="lblgrdShipTo" Time='<%#Eval("ShipTo") %>' runat="server" />
                                </itemtemplate>
                            </asp:TemplateField> 
                            <asp:TemplateField HeaderText="<%$Resources:SaleStatisticsSearch,IDS_Label_Referral %>">
                                <itemtemplate>
                                    <asp:Label ID="lblgrdReferral" Text='<%#Eval("Referral") %>' runat="server" />
                                    (<Hishop:FormatedMoneyLabelForAdmin Money='<%#Eval("RdferralDeduct") %>' runat="server" ></Hishop:FormatedMoneyLabelForAdmin>)
                                </itemtemplate>
                            </asp:TemplateField>   
                            <asp:TemplateField HeaderText="<%$ Resources:SaleStatisticsSearch,IDS_Label_Parent %>">
                                <itemtemplate>
                                    <asp:Label ID="lblgrdParent" Text='<%#Eval("Parent") %>' runat="server" />
                                    (<Hishop:FormatedMoneyLabelForAdmin Money='<%#Eval("ParentDeduct") %>' runat="server" ></Hishop:FormatedMoneyLabelForAdmin>)
                                </itemtemplate>
                            </asp:TemplateField>     
                            <asp:TemplateField HeaderText="<%$ Resources:ProductSaleStatistics,IDS_grdProductProfitsTotals %>">
                                <itemtemplate>
                                    <Hishop:FormatedMoneyLabelForAdmin Money='<%#Eval("Profits") %>' runat="server" ></Hishop:FormatedMoneyLabelForAdmin>
                                </itemtemplate>
                            </asp:TemplateField>                                                                                                                                                                                                                                                                                                  
                        </Columns>
                </Hishop:CustomGridView>
            </div>
            <div class="grdGroupTabhead">
               <UI:Pager runat="server" ListToPaging="grdUserOrderStatistics" ID="pager" />
            </div>
            <!--汇总统计-->
            <div class="grdHeaderStyle">
                <ul>
                    <li class="addProductTmpt">
                    <asp:Literal ID="litDaySaleAllAndMax" Text="当前页与当前查询条件统计" runat="server"></asp:Literal>
                    </li>
                </ul>
            </div>
            <div class="PageTitleArea" style="margin-top:10px; ">
                <asp:Label ID="lblPageCount"  runat="server"></asp:Label>
            </div>
            <div class="PageTitleArea" style="margin-top:10px; ">
                <asp:Label ID="lblSearchCount"  runat="server"></asp:Label>
            </div>

 </div>
                </SkinTemplate>
            </Hishop:UserOrderStatistics> 
        </div>
        <br />
        <div style="text-align:center">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
