<%@ page language="C#" validaterequest="false" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_buyTeam, mallz" title="团购中的商品" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" src="Js/mallz_time.js"></script>
 <asp:ScriptManager ID="ScriptManager1" runat="Server" EnablePartialRendering="True" /> 
 <div class="pageTitle">我的团购</div> 
 <br />
     <table class="SearchTableStyle">
        <tr class="tdbg">
            <td class="tdbg5">查找：</td>
            <td class="tdbg6">
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem Text="当前团购中" Value="0" />
                    <asp:ListItem Text="历史团购情况" Value="1" />
                </asp:DropDownList>
            </td>
            <td class="tdbg5">卖家名称：</td>
            <td class="tdbg6"><asp:TextBox ID="TxtSalerName" runat="server"/></td>
            <td class="tdbg5">商品名称：</td>
            <td class="tdbg6"><asp:TextBox ID="TxtProductName" runat="server"/></td>
        </tr>
        <tr class="tdbg">
            <td class="tdbg6" align="center" colspan="6"><asp:Button ID="QuickSearch" Text=" 查 询 " runat="server" OnClick="QuickSearch_OnClick" /></td>
        </tr>
    </table>  
        <br />

    <asp:GridView id="GridView1" runat="server" ForeColor="Black"  DataKeyNames="ProductID" AllowPaging="True"   AutoGenerateColumns="False" CssClass="tableHead">
    <Columns>
        <asp:TemplateField HeaderText="ID" HeaderStyle-Width="4%">
            <ItemTemplate>
                <input id="ids" name="ids" type="checkbox" value="<%#Eval("ProductID") %>" title="<%# "ID：" + Eval("ProductID") %>" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="商品名称">
            <ItemTemplate>
               <asp:HyperLink ID="ProductName" Target="_blank" runat="server" Text='<%# Eval("ProductName") %>' NavigateUrl='<%#"../ShowProduct.aspx?ProductID="+Eval("ProductID") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="CurrentPrice" DataFormatString="￥{0}" HeaderText="当前价" ItemStyle-Width="10%" />
        <asp:BoundField DataField="CreateTime" HeaderText="开始时间" HeaderStyle-Width="15%" />
        <asp:BoundField DataField="EndDate" HeaderText="结束时间" HeaderStyle-Width="15%" />
        <asp:BoundField DataField="Cycle" HeaderText="当前期" HeaderStyle-Width="7%" />
        <asp:TemplateField HeaderText="操作">
        <HeaderStyle Width="5%"/>
        <ItemTemplate>
           <asp:HyperLink ID="TeamSalerName" runat="server" Text='详细' NavigateUrl='<%# "Shop_BuyManageOrder.aspx?all=1&ProductName=" + Eval("ProductName")%>' />                     
        </ItemTemplate>
        </asp:TemplateField>     
        </Columns>
        <PagerStyle CssClass="productPageStyle" />
        <EmptyDataTemplate>                   
              <table class="tableHeader" style="width:98%"><tr><th>商品名称</th><th>当前价</th><th>开始时间</th><th>结束时间</th>
                    <th>状态</th><th>操作</th>
                    <tr><td colspan="6">没有符合查询条件的记录！</td></tr>
                    </table>  
        </EmptyDataTemplate>
    </asp:GridView> 

   
            
</asp:Content>

