<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_SaleOrderView, WebApp_deploy" title="销售统计" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
<div class="pageTitle">销售统计分析</div>
<br />
    <table class="SearchTableStyle">      
        <tr>           
            <td class="tdbg5">商品名称：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtProductName" runat="server" Height="16px" /></td>
            <td class="tdbg5">起始日期：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtBeginDate" runat="server" Height="16px"/></td>
            <td class="tdbg5">结束日期：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtEndDate" runat="server" Height="16px"/></td>
            <td class="tdbg5"><asp:Button ID="QuickSearchBtn" runat="server" Text="查询" OnClick="QuickSearchBtn_Click" /></td>
        </tr>
    </table>
    <br />
    <table class="SearchTableStyle">
    <tr><td>
       你现在查看的是：<asp:DropDownList ID="DropMoment" runat="server" AutoPostBack="True" Width="120px">
                    <asp:ListItem Selected="True">所有</asp:ListItem>
                    <asp:ListItem>本周</asp:ListItem>
                    <asp:ListItem>十天</asp:ListItem>
                    <asp:ListItem>本月</asp:ListItem>
                    <asp:ListItem>本年</asp:ListItem>
                </asp:DropDownList>
    </td></tr>
    </table>
    <br />
    <asp:UpdatePanel ID="UpdatePanel4" runat="server" >
        <ContentTemplate>
<asp:GridView id="GridView1" runat="server" CssClass="tableHead" AllowSorting="True" AllowPaging="True" OnDataBound="GridView1_DataBound" AutoGenerateColumns="False" __designer:wfdid="w7"><Columns>
<asp:BoundField HeaderText="名次"></asp:BoundField>
<asp:HyperLinkField Target="_blank" HeaderText="名称" DataTextField="ProductName" DataNavigateUrlFormatString="../ShowProduct.aspx?ProductID={0}" DataNavigateUrlFields="ProductID"></asp:HyperLinkField>
<asp:BoundField DataField="TotalNum" HeaderText="销量"></asp:BoundField>
<asp:BoundField DataField="Total" HeaderText="金额"></asp:BoundField>
</Columns>
<EmptyDataTemplate>
  <table style="width:98%">
  <tr>
  <th>名次</th>
  <th>名称</th>
  <th>销量</th>
  <th>金额</th>
  </tr>
  <tr><td colspan="4">没有符合查询条件的记录！</td></tr>
  </table>
</EmptyDataTemplate>
</asp:GridView>&nbsp; 
</ContentTemplate>
        <Triggers>
<asp:AsyncPostBackTrigger ControlID="TxtProductName"></asp:AsyncPostBackTrigger>
<asp:AsyncPostBackTrigger ControlID="DropMoment"></asp:AsyncPostBackTrigger>
</Triggers>
    </asp:UpdatePanel>
    <br />
    &nbsp;<br />
    <br />
</asp:Content>

