<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="SaleState.aspx.cs" Inherits="web.admin.SaleState" %>
<%@ Register TagPrefix="dcwc" Namespace="Dundas.Charting.WebControl" Assembly="DundasWebChart" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>SaleState</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <script language="javascript" type="text/javascript" src="inc/My97DatePicker/WdatePicker.js"></script>
	</HEAD>
	
<BODY bottomMargin="0" bgProperties="fixed" bgColor="#FFFFFF" leftMargin="0" topMargin="0"
		rightMargin="0" marginwidth="0" marginheight="0">
<form id="Form1" method="post" runat="server">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="images/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td width="8%" height="31" class="tl"></td>
		<td width="88%" class="tm"><span class="tt">统计工具 &gt;&gt; <asp:label id="lbTitle" Runat="server">数据统计</asp:label></span></td>
		      <td width="1%" class="tm2"><span class="tt"></span></td>
		<td width="3%" class="tr"></td>
	</tr>
</table>
</div>
  <br>
   <table width="95%" border="0" align="center" cellpadding="2">
    <tr> 
      <td>&nbsp;选择时间： <input class="Wdate" name="orderDateTime_cMainDate" id="orderDateTime_cMainDate" type="text" onClick="WdatePicker()"> 
      </td>
    </tr>
    <tr>
      <td><font color="#FF0000">说明:此时间选择支持下面1 2 两种统计查询,如果你不选择时间,下面是按照当年、当月、当日数据进行查询，如果选择了时间，则查询该时间内以年、月、日为时间单位的数据统计</font></td>
    </tr>
  </table>
  <br>
 
  <table  cellSpacing="0" cellPadding="6" width="95%" align="center" border="0" style="border:1px #E0E0E0 solid;">
    <tr>
					
      <td height="28" colSpan="2" background="images/labelbg.gif" bgcolor="#F4F4F4" > 
        <div align="left">
            1、属于某个商家的 年、月、日下载情况数据 以最终存档的下载为准；<font color="#ff0000">说明：查看属于某个商家年、月、日时间内的所有下载数据</font></div></td>
				<tr>
				<tr>
					
      <td height="40" colSpan="2" bgcolor="#FFFFFF" class="forumRowHighlight">
          一、<asp:RadioButtonList ID="nyrr" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
              <asp:ListItem Value="1">以年为单位</asp:ListItem>
              <asp:ListItem Value="2">以月为单位</asp:ListItem>
              <asp:ListItem Selected="True" Value="3">以日为单位</asp:ListItem>
          </asp:RadioButtonList> 
          &nbsp; 选择店铺:<asp:DropDownList ID="Dplist" runat="server">
          </asp:DropDownList>&nbsp;<asp:Button
              ID="Button1" runat="server" Text="下载数据统计并打印" OnClick="Button1_Click" />&nbsp;<asp:Button ID="Button2"
                  runat="server" Text="输出EXCEL" OnClick="Button2_Click"  />&nbsp; </td>
				</tr>
			</table>
 <br>
  <table  cellSpacing="0" cellPadding="6" width="95%" align="center" border="0" style="border:1px #E0E0E0 solid;">
    <tr>
					
      <td height="28" colSpan="2" background="images/labelbg.gif" bgcolor="#F4F4F4" > 
        <div align="left">
            2、属于所有商家的 年、月、日下载汇总数据 以最终存档的订单为准；<font color="#ff0000">说明：查看属于所有商家年、月、日时间内下载数据汇总,仅显示有下载量的商家</font></div></td>
				<tr>
				<tr>
					
      <td height="40" colSpan="2" bgcolor="#FFFFFF" class="forumRowHighlight">
          一、<asp:RadioButtonList ID="nyrrr" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
              <asp:ListItem Value="1">以年为单位</asp:ListItem>
              <asp:ListItem Value="2">以月为单位</asp:ListItem>
              <asp:ListItem Selected="True" Value="3">以日为单位</asp:ListItem>
          </asp:RadioButtonList>
        &nbsp;<asp:Button
              ID="Button3" runat="server" Text="下载数据统计并打印" OnClick="Button3_Click"  />&nbsp;<asp:Button ID="Button4"
                  runat="server" Text="输出EXCEL" OnClick="Button4_Click"  />&nbsp; </td>
				</tr>
			</table>


  <br>
 
			
  <table cellSpacing="0" cellPadding="6" width="95%" align="center" border="0" style="border:1px #E0E0E0 solid;display:none;">
    <tr>
					
      <th height="32" colSpan="2" background="img/labelbg.gif" bgcolor="#F4F4F4" style="text-align: left" > 3、按条件生成图表（含外卖和预订）</th>
				<tr>
				<tr>
					
      <td height="56" colSpan="2" bgcolor="#FFFFFF" class="forumRowHighlight"> 
        <asp:radiobuttonlist id="rblMode" runat="server" Width="230" RepeatDirection="Horizontal" AutoPostBack="True">
							<asp:ListItem Value="0" Selected="True">食单数</asp:ListItem>
							<asp:ListItem Value="1">销售总额</asp:ListItem>
							<asp:ListItem Value="2">时间段总额</asp:ListItem>
						</asp:radiobuttonlist><br>
						<asp:panel id="pnlSearch" Runat="server">从 
<asp:dropdownlist id="ddlStartTimeYear" runat="server"></asp:dropdownlist>
<asp:dropdownlist id="ddlStartTimeMonth" runat="server"></asp:dropdownlist>到 
<asp:dropdownlist id="ddlEndTimeYear" runat="server"></asp:dropdownlist>
<asp:dropdownlist id="ddlEndTimeMonth" runat="server"></asp:dropdownlist>
<asp:RadioButton id="rb1" runat="server" GroupName="time" Text="以年为单位"></asp:RadioButton>
<asp:RadioButton id="rb2" runat="server" GroupName="time" Text="以月为单位" Checked="True"></asp:RadioButton><asp:button id="btnCreat" runat="server" Text="生成图表"></asp:button></asp:panel>
						</td>
				</tr>
			</table>
			<p></p>
			
  <table width="90%" border="0" align="center" cellPadding="0" cellSpacing="0" bgcolor="#FFFFFF" class="tableBorder" style="display:none;">
    <tr>
					
      <th height="25" colSpan="2" bgcolor="#FFFFFF" class="tableHeaderText" style="width: 639px"> 统计图表</th>
				<tr>
				<tr>
					
      <td height="23" colSpan="2" align="center" bgcolor="#FFFFFF" class="forumRowHighlight" style="width: 639px"> 
        <DCWC:CHART id="Chart1" runat="server" Width="500px"  ImageType="Png" Palette="Pastel"
							Color="DarkCyan" BackHatchStyle="WideDownwardDiagonal" BackColor="AliceBlue" TitleFont="SimSun, 18px, style=Bold"
							Height="300px"> <Series> <dcwc:Series BackGradientEndColor="0, 192, 192" BackGradientType="VerticalCenter" ShowInLegend="False"
									Name="OrderAnalysis" Color="DarkCyan" ShadowOffset="2"></dcwc:Series> 
        <dcwc:Series BackGradientEndColor="LightSalmon" BackGradientType="VerticalCenter" ShowInLegend="False"
									Name="SellAnalysis" Color="Crimson" ShadowOffset="2"></dcwc:Series> 
        <dcwc:Series BackGradientEndColor="LightSalmon" BackGradientType="VerticalCenter" ShowInLegend="False"
									Name="TimeAnalysis" Color="Crimson" ShadowOffset="1"></dcwc:Series> 
        </Series> 
        <Legend BorderWidth="0" BackGradientEndColor="DarkCyan" LegendStyle="Table" BackGradientType="LeftRight"
								InsideChartArea="Default">
							</Legend>
							<BorderSkin FrameBackGradientType="LeftRight" FrameBackColor="Turquoise" FrameBackGradientEndColor="DarkTurquoise"
								SkinStyle="None"></BorderSkin>
							<ChartAreas>
								<dcwc:ChartArea BorderColor="Transparent" BackGradientEndColor="LightBlue" ShadowOffset="2" Name="Default"
									BackColor="LightBlue" ShadowColor="DarkGray" BorderWidth="0"></dcwc:ChartArea>
							</ChartAreas>
						</DCWC:CHART></td>
				</tr>
			</table>
			<p></p>
		</form>
	</BODY>
</HTML>
