<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_Request, HoWaveVGO" title="求购商品" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <div class="pageTitle">求购商品管理</div>
 <br />
 <table class="SearchTableStyle">   
 <tr><td style="height: 26px">
    <asp:Button ID="RequestIngProducList" runat="server" Text="求购中的商品"  CommandName="request_begin" OnCommand="ShowRequestType"/>&nbsp;&nbsp;&nbsp;
    <asp:Button ID="RequestOverProducList" runat="server" Text="已结束的求购信息" CommandName="request_end" OnCommand="ShowRequestType" Width="120px"/>&nbsp;&nbsp;&nbsp;
    <input type="button" onclick="javascript:window.open('../Auction/ShopClassChoose.aspx?RequestProduct=true','_blank','')" value="发布求购" />&nbsp;&nbsp;&nbsp;
    <input type="button" onclick="javascript:window.open('../Browse/Browse_offer.aspx?','_blank','')" value="求购大厅" />
    </td></tr>
 </table>
 <br />
     <asp:GridView ID="GridView1" runat="server" AllowPaging="True" DataSourceID="ObjectDataSource1" AutoGenerateColumns="False" 
        CssClass="tableHead" OnDataBound="GridView1_DataBound">
         <Columns>
             <asp:BoundField DataField="RequestID" HeaderText="编号" />
             <asp:HyperLinkField　 Target="_blank"  DataNavigateUrlFields="RequestID" DataNavigateUrlFormatString="../Auction/request_item_detail.ASPX?RequestID={0}"
                 DataTextField="RequestTitle" HeaderText="商品名称" />
             <asp:BoundField DataField="CreateDate" HeaderText="求购时间" />
             <asp:BoundField DataField="EndDate" HeaderText="结束时间" />
             <asp:BoundField DataField="RequestNumber" HeaderText="求购数量" />
             <asp:TemplateField HeaderText="编辑">
              <ItemTemplate>
                  <asp:HyperLink ID="ProductEdit" Target="_blank" runat="server" Text="编辑"/>
              </ItemTemplate>
             </asp:TemplateField>
             <asp:TemplateField HeaderText="选择">
               <ItemTemplate>
                 <asp:CheckBox id="SelectProduct" runat="server"/>
               </ItemTemplate> 
             </asp:TemplateField>
         </Columns>
      <EmptyDataTemplate>
       <div style="padding:10px;">没有符合查询条件的记录！</div>
     </EmptyDataTemplate>     
     </asp:GridView>
     

 <div align="center">
     <asp:Button ID="Del_Button1" runat="server" Text="删除" OnClick="Del_Button1_Click" /></div>
      <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetRequestByRequesterID" TypeName="Shop_Request" OldValuesParameterFormatString="original_{0}" UpdateMethod="GetRequestByRequesterID">
          <SelectParameters>
              <asp:SessionParameter Name="UserID" SessionField="Howave_UserID" Type="Int32" DefaultValue="0" />
              <asp:Parameter DefaultValue="all" Name="Type" Type="String" />
          </SelectParameters>
          <UpdateParameters>
              <asp:Parameter Name="UserID" Type="Int32" />
              <asp:Parameter Name="Type" Type="String" />
          </UpdateParameters>
      </asp:ObjectDataSource>
</asp:Content>

