<%@ 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>
</head>
<body>
    <form id="form1" runat="server">

        <div>         
            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:SaleTotalStatistics,IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:SaleTotalStatistics,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            <Hishop:SaleTotalStatistics ID="productSaleStatistics" runat="server">
                <SkinTemplate>
                <UI:TabStrip runat="server" ID="Tabs" Width="100%">
            <Tabs>
            <UI:TabStripTab ID="TabStripTab1" runat="server" Title="月统计">
<!--查询条件-->
<fieldset class="AdminSearchform">
    <legend>
        <asp:Literal ID="litMonthSearchTitle" Text="<%$ Resources:SaleTotalStatistics, IDS_Literal_SearchTitle %>" runat="server"></asp:Literal>
    </legend>                
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
        <tr>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblMonthForYear" runat="server" Text="<%$Resources:SaleTotalStatistics,IDS_Label_Year %>"></asp:Label></nobr>
            </td>
            <td class="searchTableControlTD">
                <Hishop:YearDropDownList ID="dropMonthForYaer" runat="server" />
            </td>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblSaleType" runat="server" Text="<%$Resources:SaleTotalStatistics,IDS_Label_Type %>"></asp:Label></nobr>
            </td>
            <td class="searchTableControlTD" style="width:190px">
                <Hishop:SaleStatisticsTypeRadioButtonList ID= "radioMonthForSaleType" runat="server" />
            </td>
            <td>
                <asp:Button ID="btnQueryMonthSaleTotal" runat="server" Text="<%$ Resources:SaleTotalStatistics,IDS_Button_QuerySaleTotal %>" CssClass="inp_L1"/>
                <asp:Button ID="btnCreateReportOfMonth" runat="server" Text="<%$ Resources:Resources ,IDS_Button_CreateReport %>" CssClass="inp_L1"/>
            </td>  
        </tr>
    </table>
</fieldset>
<!--月交易合计-->
<div class="grdHeaderStyle" >
    <ul>
        <li class="addProductTmpt">
        <asp:Literal ID="litMonthSaleAllAndMax" Text='<%$Resources:SaleTotalStatistics,IDS_Literal_SaleAllAndMax %>' runat="server"></asp:Literal>
        </li>
    </ul>
</div>
<table style="width: 100%;" cellspacing="0" cellpadding="0" class="formTableList" id="addItemsTable">
    <tr>
        <td class="leftTD"><legend><asp:Label ID="lblMonthAllTotal" runat="server"></asp:Label></legend></td>
        <td class="rightTD"><asp:Literal ID="litMonthAllTotal" runat="server"></asp:Literal></td>
        <td class="leftTD"><legend><asp:Label ID="lblMonthMaxTotal" runat="server"></asp:Label></legend></td>
        <td class="rightTD"><asp:Literal ID="litMonthMaxTotal" runat="server"></asp:Literal></td>
    </tr>
    <tr style="height:20px">
        <td colspan="4"></td>
    </tr>
</table>
<!--月交易统计列表-->
<div class="grdGroupList">
    <asp:GridView ID="grdMonthSaleTotalStatistics" runat="server" AutoGenerateColumns="false" ShowHeader="true" CssClass="GridViewStyle" GridLines="None" RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle" >                                                        
        <Columns>                                       
            <asp:BoundField HeaderText="<%$ Resources:SaleTotalStatistics,IDS_grdDate %>" DataField="Date" />   
            <asp:BoundField HeaderText="<%$ Resources:SaleTotalStatistics,IDS_grdSaleTotal %>"  DataField="SaleTotal"  /> 
            <Hishop:MoneyColumnForAdmin HeaderText="<%$ Resources:SaleTotalStatistics, IDS_grdSaleTotal %>" DataField="SaleTotal" />
            <asp:TemplateField HeaderText="<%$ Resources:SaleTotalStatistics,IDS_grdPercentage %>"  HeaderStyle-Width="60%">
                <ItemTemplate>
                    <img width='<%# string.Format("{0}px", Eval("Lenth")) %>' height="15" class="votelenth"/><asp:Label ID="lblPercentage" runat="server" text='<%# DataBinder.Eval(Container, "DataItem.Percentage", "{0:N2}") %>' ></asp:Label>%
                </ItemTemplate>
            </asp:TemplateField>                                                                                                                                                                                                                                                                                                  
        </Columns>
    </asp:GridView>
</div>
</UI:TabStripTab>
<UI:TabStripTab ID="TabStripTab2" runat="server" Title="日统计">
<!--日统计-->
<!--查询条件-->
<fieldset class="AdminSearchform">
    <legend>
        <asp:Literal ID="litSearchTitle" Text="<%$ Resources:SaleTotalStatistics, IDS_Literal_SearchTitle %>" runat="server"></asp:Literal>
    </legend>                
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
        <tr>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblYears" runat="server" Text="<%$Resources:SaleTotalStatistics,IDS_Label_Year %>"></asp:Label></nobr>
            </td>
            <td class="searchTableControlTD">
                <Hishop:YearDropDownList ID="dropDayForYear" runat="server" />
            </td>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblMoth" runat="server" Text="<%$Resources:SaleTotalStatistics,IDS_Label_Month %>"></asp:Label></nobr>
            </td>
            <td class="searchTableControlTD">
                <Hishop:MonthDropDownList ID="dropMoth" runat="server" />
            </td>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblDaySaleType" runat="server" Text="<%$Resources:SaleTotalStatistics,IDS_Label_Type %>"></asp:Label></nobr>
            </td>
            <td class="searchTableControlTD" style="width:190px">
                <Hishop:SaleStatisticsTypeRadioButtonList ID= "radioDayForSaleType" runat="server" />
            </td>
            <td>
                <asp:Button ID="btnQueryDaySaleTotal" runat="server" Text="<%$ Resources:SaleTotalStatistics,IDS_Button_QuerySaleTotal %>" CssClass="inp_L1"/>
                <asp:Button ID="btnCreateReportOfDay" runat="server" Text="<%$ Resources:Resources ,IDS_Button_CreateReport %>" CssClass="inp_L1"/>
            </td>  
        </tr>
    </table>
</fieldset>
<!--日交易合计-->
<div class="grdHeaderStyle">
    <ul>
        <li class="addProductTmpt">
        <asp:Literal ID="litDaySaleAllAndMax" Text='<%$Resources:SaleTotalStatistics,IDS_Literal_SaleAllAndMax %>' runat="server"></asp:Literal>
        </li>
    </ul>
</div>
<table style="width: 100%;" cellspacing="0" cellpadding="0" class="formTableList" id="Table1">
    <tr>
        <td class="leftTD"><legend><asp:Label ID="lblDayAllTotal" runat="server"></asp:Label></legend></td>
        <td class="rightTD"><asp:Literal ID="litDayAllTotal" runat="server"></asp:Literal></td>
        <td class="leftTD"><legend><asp:Label ID="lblDayMaxTotal" runat="server"></asp:Label></legend></td>
        <td class="rightTD"><asp:Literal ID="litDayMaxTotal" runat="server"></asp:Literal></td>
    </tr>
    <tr style="height:20px">
        <td colspan="4"></td>
    </tr>
</table>
<!--日交易列表-->
<div class="grdGroupList">
    <asp:GridView ID="grdDaySaleTotalStatistics" runat="server" AutoGenerateColumns="false" ShowHeader="true" CssClass="GridViewStyle" GridLines="None" RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle" >                                                        
        <Columns>                                       
            <asp:BoundField HeaderText="<%$ Resources:SaleTotalStatistics,IDS_grdDay %>" DataField="Date" />   
            <asp:BoundField HeaderText="<%$ Resources:SaleTotalStatistics,IDS_grdSaleTotal %>" DataField="SaleTotal"  /> 
            <Hishop:MoneyColumnForAdmin HeaderText="<%$ Resources:SaleTotalStatistics, IDS_grdSaleTotal %>" DataField="SaleTotal" />
            <asp:TemplateField HeaderText="<%$ Resources:SaleTotalStatistics,IDS_grdPercentage %>"  HeaderStyle-Width="60%">
                <ItemTemplate>
                    <img width='<%# string.Format("{0}px", Eval("Lenth")) %>' height="15" class="votelenth"/><asp:Label ID="lblPercentage" runat="server" text='<%# DataBinder.Eval(Container, "DataItem.Percentage", "{0:N2}") %>' ></asp:Label>%
                </ItemTemplate>
            </asp:TemplateField>                                                                                                                                                                                                                                                                                                  
        </Columns>
    </asp:GridView>
</div>
  </UI:TabStripTab>
</Tabs>
        </UI:TabStrip>
                </SkinTemplate>
            </Hishop:SaleTotalStatistics>
        </div>
        <br />
        <div class="botCopyInfo">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
