<%@ Control Language="C#"  EnableViewState="false"  %>
<%@ Import Namespace="ShopNum1.WebControl" %>
<%@ Import Namespace="ShopNum1.Common"%>
<div class="warp">
  <div class="ProductCartTitle">批发商品列表</div>
  <div class="ProductCart">
    <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#dddddd" style="text-align:center">
      <tr>
      <th></th>
        <th bgcolor="#ffffff">商品名称</th>
        <th bgcolor="#ffffff">价格阶梯</th>
        <th bgcolor="#ffffff">购买数量</th>
        <th bgcolor="#ffffff">立即购买</th>
      </tr>
      <asp:Repeater ID="RepeaterWholesale1" runat="server">
<ItemTemplate>
      <tr>
      <td>
        <asp:HiddenField ID="HiddenFieldGuid" Value='<%# Eval("Guid")%>'  runat="server" /></td>
        <asp:HiddenField ID="HiddenFieldProductGuid" Value='<%# Eval("ProductGuid")%>'  runat="server" /></td>
        <td bgcolor="#ffffff" align="center" width="140">
       
         <a href='ProductDetail.aspx?guid=<%# Eval("ProductGuid") %>'   target="_blank"> 
          <asp:Image ID="ImageProduct" runat="server" Height="100px" 
                  ImageUrl= '<%# Globals.ImagePath+"s_"+Eval("OriginalImge") %>'
                    Width="100px" />
          </a><br />                             
         <%# Eval("ProductName")%><asp:Label ID="LabelIsPresent" runat="Server" Text="" ForeColor="Red"  /></td>
           <td align="right" bgcolor="#ffffff">
              <asp:Repeater ID="RepeaterPrice" runat="server">
             <ItemTemplate>
                <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#dddddd" style="text-align:center">
                <tr>
                    <td>购买数量:<%# Eval("Amount")%></td>
                    <td>批发价格:<%# Eval("Price")%></td>
                </tr>
                </table>
            </ItemTemplate>
            </asp:Repeater>
        </td>
        <td align="right" bgcolor="#ffffff"><asp:TextBox  ID="TextBoxBuyNumber" runat="server" Text="0"></asp:TextBox>
        </td>
        <td align="right" bgcolor="#ffffff"><asp:Button ID="buttonBuy" runat="server" Text="立即购买"  CommandName="buttonBuy"/></td>
      </tr>
      
</ItemTemplate>
</asp:Repeater>
    </table>
    <br/><%# Eval("Name")%>
  </div>
  <div class="ProductCartDown"></div>
</div>
<asp:HiddenField ID="HiddenFieldMemLoginID" Value="0"  runat="server" />
<asp:HiddenField ID="HiddenFieldWholesale2" Value="Wholesale2.aspx"  runat="server" />




