<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopSaleView, WebApp_deploy" title="销售明细" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="adminheading">
   <tr>
      <th valign="middle" class="menus" align="left">销售管理</th>
      <td align="right">
      <div style="width:400px">
            <a href="Admin_ShopSaleView.aspx" >销售明细</a>&nbsp;|&nbsp;
            <a href="Admin_ShopSaleOrderView.aspx">销售统计</a>&nbsp;|&nbsp;
            <a href="Admin_ShopBankrollItemView.aspx">资金明细</a>&nbsp;<br />                
      </div>
      </td>
      <td class="rtdw"></td>          
   </tr>                     
</table>

    <table class="nick">
        <tr>
            <td colspan="4" class="tit"><b>销售明细列表</b></td>
        </tr>
        <tr>
            <td class="ltd">卖家名称</td>
            <td class="rtd" style="width:35%;">
                <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" OnTextChanged="TextBox1_TextChanged"/></td>
            <td class="ltd">卖家列表</td>
            <td class="rtd" style="width:35%;">
                <asp:DropDownList ID="DropDownList1" runat="server" DataTextField="username" DataValueField="userid" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">所有</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td class="ltd">时间段</td>
            <td class="rtd" style="width:35%;">
                <asp:DropDownList ID="DropMoment" runat="server">
                    <asp:ListItem>所有</asp:ListItem>
                    <asp:ListItem Value="7">本周</asp:ListItem>
                    <asp:ListItem Value="10">十天</asp:ListItem>
                    <asp:ListItem Value="30">本月</asp:ListItem>
                    <asp:ListItem Value="365">本年</asp:ListItem>
                </asp:DropDownList></td>
            <td class="ltd">客户</td>
            <td class="rtd" style="width:35%;">
                <asp:TextBox ID="TxtUserName" runat="server"/></td>
        </tr>
        <tr>
            <td class="ltd">起始日期</td>
            <td class="rtd" style="width:35%;">
                <asp:TextBox ID="TxtBeginDate" runat="server"  EnableViewState="true"/></td>
            <td class="ltd">结束日期</td>
            <td class="rtd" style="width:35%;">
            <asp:TextBox ID="TxtEndDate" runat="server" EnableViewState="true" /></td>
        </tr>
         <tr>
            <td class="ltd" colspan="4"  align="center"><asp:Button ID="Button1" runat="server" Text="提 交" OnClick="Button1_Click" /></td>
         </tr>
    </table>
    <br />
    
    
    <asp:GridView ID="GridView1" CssClass="adminlist" AllowSorting="True" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="6">
        <Columns>
            <asp:HyperLinkField HeaderText="订单号" DataTextField="OrderFormNum" DataNavigateUrlFields="OrderFormNum" DataNavigateUrlFormatString="Admin_ShowOrder.aspx?OrderID={0}" />
            <asp:BoundField DataField="inputtime" HeaderText="下单时间" SortExpression="inputtime">             
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:HyperLinkField HeaderText="买家" DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="Admin_UserDetail.aspx?UserID={0}" DataTextField="buyerName" />
            <asp:HyperLinkField DataNavigateUrlFields="salerID" DataNavigateUrlFormatString="shop/{0}"
                DataTextField="salerName" HeaderText="卖家" />
            <asp:BoundField DataField="MoneyGoodS" HeaderText="商品总价">
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:BoundField DataField="MoneyTotal" HeaderText="订单总额">
                <HeaderStyle Width="10%" />
            </asp:BoundField>
        </Columns>
        <EmptyDataTemplate>
                <tr>
                    <th>订单号</th>
                    <th>下单时间</th>
                    <th>买家</th>
                    <th>卖家</th>
                    <th>商品总价</th>
                    <th>订单总额</th>
                </tr>
                <tr><td colspan="11">暂无信息</td></tr>        
        </EmptyDataTemplate>
    </asp:GridView>
         
</asp:Content>

