<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="DistributionReport.aspx.cs" Inherits="Hidistro.UI.Web.Admin.DistributionReport" %>
<%@ Register TagPrefix="Hi" Namespace="Hidistro.UI.Common.Controls" Assembly="Hidistro.UI.Common.Controls" %>
<%@ Register TagPrefix="Hi" Namespace="Hidistro.UI.ControlPanel.Utility" Assembly="Hidistro.UI.ControlPanel.Utility" %>
<%@ Register TagPrefix="Hi" Namespace="Hidistro.UI.Common.Validator" Assembly="Hidistro.UI.Common.Validator" %>
<%@ Register TagPrefix="Kindeditor" Namespace="kindeditor.Net" Assembly="kindeditor.Net" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentHolder" runat="server">
<div class="optiongroup mainwidth">
		<ul>
			<li class="menucurrent"><a href="#"><span>分销生意报告</span></a></li>
			<li><a href="PurchaseOrderStatistics.aspx"><span>采购单统计</span></a></li>
            <li><a href="DistributionProductSaleRanking.aspx"><span>商品销售排行</span></a></li>
            <li class="optionend"><a href="DistributorAchievementsRanking.aspx"><span>分销商业绩排行</span></a></li>
		</ul>
</div>
	<!--选项卡-->

	<div class="dataarea mainwidth">
		<!--搜索-->
<div class=" VIPbg m_none colorG">
	     查看网店生意情况，您可以按月或按日分别查看店铺订单交易量、交易额和销售利润（需要设置商品成本价）
	    </div>
      <h3>按月统计</h3>
		<!--结束-->
      <div>
	    <div class="searcharea clearfix br_search">
			<ul class="a_none_left">
		    <li><span>请选择：</span><span class="colorR">年</span>
					<abbr class="formselect">
						<Hi:YearDropDownList ID="dropMonthForYaer" runat="server" />
						</abbr>
				</li>
				
             <li><Hi:SaleStatisticsTypeRadioButtonList ID= "radioMonthForSaleType" runat="server" /></li>           
		     <li><asp:Button ID="btnQueryMonthSaleTotal" runat="server" class="searchbutton" Text="查询" /></li>
             <li><p><asp:LinkButton ID="btnCreateReportOfMonth" runat="server" Text="生成报表"/></p></li>
			</ul>
	  </div>

<div class="functionHandleArea clearfix m_none">
			<!--分页功能-->
			<div class="pageHandleArea">
				<ul>
					<li class="paginalNum Pg_10"><asp:Label ID="lblMonthAllTotal" runat="server"></asp:Label><strong class="colorA"><asp:Literal ID="litMonthAllTotal" runat="server"></asp:Literal></strong></li>
                    <li class="paginalNum"><asp:Label ID="lblMonthMaxTotal" runat="server"></asp:Label><strong class="colorA"><asp:Literal ID="litMonthMaxTotal" runat="server"></asp:Literal></strong></li>
				</ul>
			</div>

</div>
		
		<!--数据列表区域-->
	  <div class="datalist">
	  <UI:Grid ID="grdMonthDistributionTotalStatistics" runat="server" ShowHeader="true" AutoGenerateColumns="false" HeaderStyle-CssClass="table_title" GridLines="None" Width="100%">
                    <Columns>
                        
                        <asp:BoundField HeaderText="月份" DataField="Date" HeaderStyle-CssClass="td_right td_left"/>   
                        <asp:BoundField HeaderText="月销售额" DataField="SaleTotal"  HeaderStyle-CssClass="td_right td_left"/> 
                        <Hi:MoneyColumnForAdmin HeaderText="月销售额" DataField="SaleTotal" HeaderStyle-CssClass="td_right td_left"/>
                        <asp:TemplateField HeaderText="比例示意图"  HeaderStyle-Width="60%"  HeaderStyle-CssClass="td_right td_left">
                            <ItemTemplate>
                                <img width='<%# string.Format("{0}px", Eval("Lenth")) %>' height="15" class="votelenth"/><asp:Literal ID="lblPercentage" runat="server" text='<%# DataBinder.Eval(Container, "DataItem.Percentage", "{0:N2}") %>' ></asp:Literal>%
                            </ItemTemplate>
                        </asp:TemplateField>   
                        
                    </Columns>
                </UI:Grid>
     
	  </div>
     </div>
        <div>
        
        
        
        <h3>按日统计</h3>
          <div class="searcharea clearfix br_search">
            <ul class="a_none_left">
              <li><span>请选择：</span><span class="colorR">年</span></li>
              <li> <abbr class="formselect">
               <Hi:YearDropDownList ID="dropDayForYear" runat="server" />
              </abbr> </li>
              <li> <span class="colorR">月：</span> <abbr class="formselect">
                <Hi:MonthDropDownList ID="dropMoth" runat="server" />
              </abbr> </li>
              <li><span><Hi:SaleStatisticsTypeRadioButtonList ID= "radioDayForSaleType" runat="server" /></span></li>
             
              <li>
                <asp:Button ID="btnQueryDaySaleTotal" runat="server" Text="查询" class="searchbutton" />
              </li>
              <li>
                <p><asp:LinkButton ID="btnCreateReportOfDay" runat="server" Text="生成报表" /></p>
              </li>
            </ul>
          </div>
          <div class="functionHandleArea clearfix m_none">
            <!--分页功能-->
            <div class="pageHandleArea">
              <ul>
                <li class="paginalNum Pg_10"><asp:Label ID="lblDayAllTotal" runat="server"></asp:Label><strong class="colorA"><asp:Literal ID="litDayAllTotal" runat="server"></asp:Literal></strong></li>
                <li class="paginalNum"><asp:Label ID="lblDayMaxTotal" runat="server"></asp:Label><strong class="colorA"><asp:Literal ID="litDayMaxTotal" runat="server"></asp:Literal></strong></li>
              </ul>
            </div>
          </div>
          <!--数据列表区域-->
          <div class="datalist">
          <asp:GridView ID="grdDayDistributionTotalStatistics" runat="server" ShowHeader="true" AutoGenerateColumns="false" HeaderStyle-CssClass="table_title" GridLines="None" Width="100%">
                    <Columns>
                        
                        <asp:BoundField HeaderText="日期" DataField="Date" HeaderStyle-CssClass="td_right td_left" />   
                        <asp:BoundField HeaderText="日销售额" DataField="SaleTotal"  HeaderStyle-CssClass="td_right td_left"/> 
                        <Hi:MoneyColumnForAdmin HeaderText="日销售额" DataField="SaleTotal" HeaderStyle-CssClass="td_right td_left"/>
                        <asp:TemplateField HeaderText="比例示意图"  HeaderStyle-Width="60%" HeaderStyle-CssClass="td_right td_left">
                            <ItemTemplate>
                                <img width='<%# string.Format("{0}px", Eval("Lenth")) %>' height="15" class="votelenth"/><asp:Literal ID="lblPercentage" runat="server" text='<%# DataBinder.Eval(Container, "DataItem.Percentage", "{0:N2}") %>' />%
                            </ItemTemplate>
                        </asp:TemplateField>    
                        
                    </Columns>
                </asp:GridView>
            
          </div>
        </div>
    </div>
	<div class="databottom"></div>
<div class="bottomarea testArea">
  <!--顶部logo区域-->
  
</div>

        
</asp:Content>
