<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_SaleTeamSum, HoWaveVGO" title="Untitled Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <script type="text/javascript" src="../Js/howave_time.js"></script>   
<div class="pageTitle"><asp:Literal ID="TeamBuySumTitle" runat="server" Text="团购订单详细信息" /></div>
 <table class="ShopOrderStyle">
        <caption>团购商品信息</caption>
        <tr>
            <td><b>商品名称：</b><asp:HyperLink ID="ProductName" runat="server" Target="_blank"/></td>
            <td><b>团购价格：</b><asp:HyperLink ID="TeamPrice" runat="server" Target="_blank"/></td> 
            <td><b>当前库存：</b><asp:Literal ID="CurrentStock" runat="server" /></td>
           
        </tr>
        <tr>            
            <td><b>开出轮数：</b><asp:Literal ID="TeamBuyLeavel" runat="server" /></td>            
            <td><b>剩余时间：</b><asp:Literal ID="LeftTime" runat="server" /></td>
            <td><b>开出时间：</b><asp:Literal ID="TeamOrderDate" runat="server" /></td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        DataSourceID="ObjectDataSource1" CssClass="tableHead" OnRowDataBound="GridView1_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="序号">
               <ItemTemplate>
                  <asp:Literal ID="OrderNum" runat="server" />
               </ItemTemplate>              
            </asp:TemplateField>
             <asp:TemplateField HeaderText="订单号">
               <ItemTemplate>
                  <asp:HyperLink ID="OrderFormNum" runat="server"  NavigateUrl='<%# "Shop_BuyOrder.aspx?OrderFormNum="+Eval("OrderFormNum") %>' Text='<%#Eval("OrderFormNum") %>'/>
               </ItemTemplate>
               <HeaderStyle Width="20%" />
            </asp:TemplateField>   
             <asp:TemplateField HeaderText="联系买家">
               <ItemTemplate>
                  <asp:HyperLink ID="BuyerName" runat="server"  NavigateUrl='<%# "../Shop1/Shop_ShopIntro.aspx?UserID="+Eval("UserID") %>' Text='<%#Eval("BuyerName") %>' Target="_blank"/>
               </ItemTemplate>
               <HeaderStyle Width="15%" />
            </asp:TemplateField>           
            <asp:BoundField HeaderText="数量"  DataField="Quantity" HeaderStyle-Width="8%"/>
            <asp:BoundField HeaderText="总价"  DataField="MoneyTotal" HeaderStyle-Width="8%"/>
            <asp:BoundField HeaderText="付款状态"  DataField="PayStatus" HeaderStyle-Width="10%"/>
            <asp:BoundField HeaderText="下订时间"  DataField="InputTime" HeaderStyle-Width="20%"/>
            <asp:TemplateField HeaderText="订单状态">
               <ItemTemplate>                  
                  <asp:Literal ID="OrderStatus" runat="server" Text='<%# Eval("Status") %>' />
               </ItemTemplate>
               <HeaderStyle Width="15%" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetTeamBusOrderListBySalerIDBusType" TypeName="Shop_Order">
        <SelectParameters>
            <asp:SessionParameter Name="SalerID" SessionField="Howave_UserID" Type="Int32" />
            <asp:QueryStringParameter DefaultValue="0" Name="ProductID" QueryStringField="ProductID"
                Type="Int32" />
            <asp:QueryStringParameter DefaultValue="0" Name="BusType" QueryStringField="BusType"
                Type="Int32" />
            <asp:QueryStringParameter DefaultValue="0" Name="TeamBuyLeavel" QueryStringField="TeamBuyLeavel"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
    
</asp:Content>

