<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopSaleView, HoWaveVGO" title="销售明细" enableEventValidation="false" %>
<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"/></td>
            <td class="ltd">卖家列表</td>
            <td class="rtd" style="width:35%;">
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource2"
                    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="DropDownList11" runat="server" AutoPostBack="True">
                    <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>
            <td class="ltd">商品名称</td>
            <td class="rtd" style="width:35%;">
                <asp:TextBox ID="TxtProductName" runat="server" AutoPostBack="True" /></td>
        </tr>
        <tr>
            <td class="ltd">客户</td>
            <td class="rtd" style="width:35%;">
                <asp:TextBox ID="TxtUserName" runat="server"  AutoPostBack="True"/></td>
            <td class="ltd"></td>
            <td class="rtd" style="width:35%;">
            </td>
        </tr>
        <tr>
            <td class="ltd">起始日期</td>
            <td class="rtd" style="width:35%;"><asp:TextBox ID="TxtBeginDate" runat="server" AutoPostBack="True" /></td>
            <td class="ltd">结束日期</td>
            <td class="rtd" style="width:35%;"><asp:TextBox ID="TxtEndDate" runat="server" AutoPostBack="True" /></td>
        </tr>
    </table>
    <br />
           
    <asp:GridView ID="GridView1" CssClass="adminlist" AllowSorting="True" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        DataSourceID="ObjectDataSource1" OnDataBound="GridView1_DataBound"
        ShowFooter="True" OnRowDataBound="GridView1_RowDataBound">
        <Columns>
            <asp:HyperLinkField HeaderText="订单号"   DataTextField="OrderFormNum" />            
            <asp:BoundField DataField="inputtime" HeaderText="下单时间" SortExpression="inputtime">             
                <HeaderStyle Width="10%"  />
            </asp:BoundField>
            <asp:HyperLinkField HeaderText="买家"  DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="Admin_UserDetail.aspx?UserID={0}" DataTextField="UserName" />
            <asp:HyperLinkField HeaderText="商品名称" DataNavigateUrlFields="ProductID" DataNavigateUrlFormatString="Admin_ShopSaleProductItemView.aspx?ProductID={0}" DataTextField="ProductName"  />
            <asp:BoundField DataField="Punit" HeaderText="单位">               
                <HeaderStyle Width="7%"  />
            </asp:BoundField>
            <asp:BoundField DataField="Quantity" HeaderText="数量">
                <HeaderStyle Width="7%"  />                
            </asp:BoundField>
            <asp:BoundField DataField="Price" HeaderText="实价">
                <HeaderStyle Width="7%"  />             
            </asp:BoundField>
            <asp:BoundField DataField="TruePrice" HeaderText="指定价">
                <HeaderStyle Width="10%"  />               
            </asp:BoundField>
            <asp:BoundField DataField="MoneyGoodS" HeaderText="商品总价">
                <HeaderStyle Width="10%"  />
            </asp:BoundField>
            <asp:BoundField DataField="MoneyTotal" HeaderText="订单总额">
                <HeaderStyle Width="10%"  />
            </asp:BoundField>
            <asp:BoundField DataField="PresentExp" HeaderText="积分">
                <HeaderStyle Width="10%"  />                
            </asp:BoundField>
        </Columns>
        <EmptyDataTemplate>
                <tr>
                    <th>订单号</th>
                    <th>下单时间</th>
                    <th>买家</th>
                    <th>商品名称</th>
                    <th>单位</th>
                    <th>数量</th>
                    <th>实价</th>
                    <th>指定价</th>
                    <th>商品总价</th>
                    <th>订单总额</th>
                    <th>积分</th>
                </tr>
                <tr><td colspan="11">暂无信息</td></tr>        
        </EmptyDataTemplate>
    </asp:GridView>
 
            
            
 <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetUserLikeUserName"
    TypeName="UserBLL">
    <SelectParameters>
        <asp:ControlParameter ControlID="TextBox1" Name="UserName" PropertyName="Text" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource> 
 
 <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"  SelectMethod="GetSaleItem" TypeName="Shop_Order">
    <SelectParameters>
        <asp:ControlParameter ControlID="DropDownList1" DefaultValue="-1" Name="SalerID"
            PropertyName="SelectedValue" Type="Int32" />
        <asp:ControlParameter ControlID="TxtProductName" Name="ProductName" PropertyName="Text"
            Type="String" />
        <asp:ControlParameter ControlID="DropDownList1" DefaultValue="所有" Name="Monents"
            PropertyName="SelectedValue" Type="String" />
        <asp:ControlParameter ControlID="TxtBeginDate" DefaultValue="2006-01-01" Name="BeginDate"
            PropertyName="Text" Type="String" />
        <asp:ControlParameter ControlID="TxtEndDate" DefaultValue="2500-01-01" Name="EndDate"
            PropertyName="Text" Type="String" />
        <asp:ControlParameter ControlID="TxtUserName" Name="UserName" PropertyName="Text"
            Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
            
                      
</asp:Content>

