<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_Request, WebApp_deploy" 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('../shop_request_product.aspx','_blank','')" value="发布求购" />&nbsp;&nbsp;&nbsp;
    <input type="button" onclick="javascript:window.open('../Browse_offer.aspx?','_blank','')" value="求购大厅" />
    </td></tr>
 </table>
 <br />
     <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" 
        CssClass="tableHead" OnDataBound="GridView1_DataBound"    DataSourceID="ObjectDataSource1">
         <Columns>
             <asp:BoundField DataField="RequestID" HeaderText="编号" />
             <asp:HyperLinkField　 Target="_blank"  DataNavigateUrlFields="RequestID" DataNavigateUrlFormatString="../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>
       <table style="width:98%">
       <tr>
       <th>编号</th>
       <th>商品名称</th>
       <th>求购时间</th>
       <th>结束时间</th>
       <th>求购数量</th>
       <th>编辑</th>
       <th>选择</th>
       </tr>
       <tr><td colspan="7">没有符合查询条件的记录！</td></tr>
       </table>
     </EmptyDataTemplate>     
     </asp:GridView>
 <div align="center" style="text-align:center;">
     <asp:Button ID="Del_Button1" runat="server" Text=" 删 除 " OnClick="Del_Button1_Click" /></div>
      <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetRequestByRequesterID" TypeName="HoWave.Web.Shop_Request" OldValuesParameterFormatString="original_{0}" UpdateMethod="GetRequestByRequesterID">
          <SelectParameters>
          <asp:Parameter Name="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>

