<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_SaleProductItemView, HoWaveVGO" title="商 品 销 售 明 细 列 表" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="1" class="adminform">
        <tr>
            <td colspan="4" style="border-collapse: collapse; background-color: aliceblue; height: 20px;">  您现在的位置：<a href="Admin_ShopSaleView.aspx"><span style="color: #0000ff; text-decoration: underline">销售明细</span></a>
                &gt;&gt; 指定商品的销售记录</td>
        </tr>
    </table>
    <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" class="adminform"  DataSourceID="ObjectDataSource1"
        EmptyDataText="对不起没有找到符合你查询条件的数据" OnDataBound="GridView1_DataBound1" ShowFooter="True"
        Width="100%">
        <Columns>
            <asp:BoundField DataField="inputtime" HeaderText="下单时间" SortExpression="inputtime">
                <ItemStyle Width="5%" />
                <HeaderStyle Width="10%" Wrap="False" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="编号">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("OrderFormNum") %>'></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle Width="5%" Wrap="False" />
                <ItemTemplate>
                 　
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("OrderFormNum") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="客户">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("UserName") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemStyle Width="10%" />
                <HeaderStyle Width="5%" Wrap="False" />
                <ItemTemplate>
                    <a href='Admin_UserDetail.aspx?UserID=<%# Eval("UserID") %>' target="_blank">
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("UserName") %>'></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="商品名称">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ProductName") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemStyle Width="10%" />
                <HeaderStyle Width="10%" Wrap="False" />
                <ItemTemplate>
                    <a href='../Shop/Auction/Auction.aspx?ProductID=<%#Eval("ProductID") %>' target="_blank"><asp:Label ID="Label1" runat="server" Text='<%# Bind("ProductName") %>'></asp:Label>
                    </a>
                        
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Punit" HeaderText="单位">
                <ItemStyle Width="7%" />
                <HeaderStyle Width="7%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="Quantity" HeaderText="数量">
                <ItemStyle Width="7%" />
                <HeaderStyle Width="7%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="Price" HeaderText="实价">
                <ItemStyle Width="7%" />
                <HeaderStyle Width="7%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="TruePrice" HeaderText="指定价">
                <ItemStyle Width="5%" />
                <HeaderStyle Width="10%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="MoneyGoodS" HeaderText="商品总价">
                <HeaderStyle Width="10%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="MoneyTotal" HeaderText="订单总额">
                <HeaderStyle Width="10%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="PresentExp" HeaderText="积分">
                <ItemStyle Width="5%" />
                <HeaderStyle Width="10%" Wrap="False" />
            </asp:BoundField>
        </Columns>
    </asp:GridView>
    <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>

