<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_SaleProductItemView, HoWaveVGO" title="商 品 销 售 明 细 列 表" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="pageTitle"> 您现在的位置：<a href="shop_SaleView.aspx"><span style="color: #0000ff; text-decoration: underline">销售明细</span></a>
                &gt;&gt; 指定商品的销售记录</div>         
               
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" class="adminform"  DataSourceID="ObjectDataSource1"
        EmptyDataText="对不起没有找到符合你查询条件的数据" OnDataBound="GridView1_DataBound1" CssClass="tableHead">
        <Columns>
            <asp:BoundField DataField="inputtime" HeaderText="下单时间" SortExpression="inputtime">
                <ItemStyle Width="5%" />
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="编号">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("OrderFormNum") %>'/>
                </EditItemTemplate>
                <HeaderStyle Width="5%" />
                <ItemTemplate>
                    <a href='Admin_ShopOrder.aspx?OrderFormNum=<%#Eval("OrderFormNum") %>'>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("OrderFormNum") %>'/></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="客户">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("UserName") %>'/>
                </EditItemTemplate>              
                <HeaderStyle Width="5%" />
                <ItemTemplate>
                    <a href='../../Shop/Shop1/Shop_ShopIntro.aspx?UserID=<%# Eval("UserID") %>' target="_blank">
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("UserName") %>'/></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="商品名称">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ProductName") %>'/>
                </EditItemTemplate>
                <HeaderStyle Width="10%"  />
                <ItemTemplate>
                    <a href='../../Shop/Auction/Auction.aspx?ProductID=<%#Eval("ProductID") %>' target="_blank"><asp:Label ID="Label1" runat="server" Text='<%# Bind("ProductName") %>'/></a>                        
                </ItemTemplate>
            </asp:TemplateField>
            <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>
    </asp:GridView>
          
    <br />
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetSaleProductItem"
        TypeName="Shop_Order">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="ProductID" QueryStringField="ProductID"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

