<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_ManageProduct, HoWaveVGO" title="商品管理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="title"><span>商品管理</span></div>
 <div id="product_search">
     等待上架的商品 全部卖完的商品 没卖出的商品</div>
 <div id="product_history">
     <asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
          RowStyle-HorizontalAlign="Center" CssClass="tableHead" AllowPaging="True" DataKeyNames="ProductID">
         <Columns>
             <asp:TemplateField HeaderText="选中">                 
                 <ItemTemplate>
                   <asp:CheckBox ID="product_select" runat="server" />
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField DataField="ProductID" HeaderText="ID" />
             <asp:BoundField DataField="ProductType" HeaderText="类型" />
             <asp:BoundField DataField="MoneyGoods" HeaderText="价格" />
             <asp:BoundField DataField="EnableSell" HeaderText="销售中" />
             <asp:BoundField DataField="Hits" HeaderText="人气值" />
             <asp:BoundField DataField="Stocks" HeaderText="库存量" />
             <asp:BoundField DataField="ProductName" HeaderText="商品名称" />
         </Columns>
         <EmptyDataTemplate>
            <div class="empty_style"><asp:Label ID="Label2" Text="好商品这么多，现在就去购吧！" runat="server" /></div>
         </EmptyDataTemplate>
         <RowStyle HorizontalAlign="Center" />
     </asp:GridView>
 </div>
 <div style=" text-align:center;">
     <asp:Button ID="Button1" runat="server" Text="上架" OnCommand="Button_Command" CommandName="OnSale" />
     <asp:Button ID="Button2" runat="server" Text="下架" OnCommand="Button_Command" CommandName="StopSale"/>
     <asp:Button ID="Button4" runat="server" Text="设为推荐" OnCommand="Button_Command" CommandName="IsElite"/>
     <asp:Button ID="Button3" runat="server" Text="取消推荐" OnCommand="Button_Command" CommandName="CancleElite"/>
     <asp:Button ID="Button5" runat="server" Text="删除" OnCommand="Button_Command" CommandName="Delete"/></div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetOrderByUserIDByTradeType" TypeName="Shop_Order">
        <SelectParameters>
            <asp:SessionParameter Name="UserID" SessionField="UserID" Type="Int32" />
            <asp:QueryStringParameter DefaultValue="一口价" Name="TradeType" QueryStringField="type"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

