<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_MyAuctionProduct, WebApp_deploy" title="竞拍商品" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<script type="text/javascript" src="JS/howave_time.js"></script>
<div class="pageTitle">
<asp:Literal ID="buy_type" Text="我在竞拍" runat="server" />
</div>

<asp:PlaceHolder ID="ListPanel" runat="server">
    <table class="SearchTableStyle">
        <tr>
            <td style="height: 26px">
            <asp:Button ID="Bidding" runat="server" Text="竞拍中的商品" OnClientClick="javascript:{location.href='Shop_MyAuctionProduct.aspx?type=0';return false;}" />&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Bided" runat="server" Text="历史竞拍详情" OnClientClick="javascript:{location.href='Shop_MyAuctionProduct.aspx?type=1';return false;}" />
            </td>
        </tr>
    </table>
<br />

        <asp:GridView ID="GridView1" runat="server" CssClass="tableHead" AutoGenerateColumns="False" AllowPaging="True" 
        DataKeyNames="ProductID" >
         <Columns>
             <asp:TemplateField HeaderText="商品名称">
                 <ItemTemplate>
                    <asp:HyperLink Target="_blank"  ID="ProductNameUrl" runat="server" Text='<%# Bind("ProductName") %>' NavigateUrl='<%#"/ShowProduct.aspx?ProductID="+Eval("ProductID") %>'/>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField DataField="UserName" HeaderText="卖家" />
             <asp:BoundField DataField="AuctionStartPrice" HeaderText="起拍价" HeaderStyle-Width="10%"/>
             <asp:BoundField DataField="ImcrementPrice" HeaderText="加价幅度" HeaderStyle-Width="10%" />
             <asp:BoundField DataField="BeginDate" HeaderText="开始拍卖时间" HeaderStyle-Width="15%" />
             <asp:BoundField DataField="EndDate" HeaderText="结束时间" HeaderStyle-Width="15%"/>
             <asp:BoundField DataField="Cycle" DataFormatString="共{0}期" HeaderText="周期数" HeaderStyle-Width="10%" />
             <asp:TemplateField HeaderText="操作" HeaderStyle-Width="8%">
               <ItemTemplate>
                 <asp:HyperLink ID="AuctionAction" Text="出价记录" runat="server" NavigateUrl='<%# "?action=record&productid="+Eval("productid") %>' />
               </ItemTemplate>
             </asp:TemplateField>
         </Columns>
         <EmptyDataTemplate>                   
<table class="tableHeader" style="width:98%"><tr><th>商品名称</th><th>卖家</th><th>起拍价</th><th>加价幅度</th><th>开始拍卖时间</th>
                    <th>结束时间</th><th>当前期</th><th>操作</th>
                    <tr><td colspan="8">没有符合查询条件的记录！</td></tr>
                    </table>   
        </EmptyDataTemplate>  
     </asp:GridView>


</asp:PlaceHolder>
     
<asp:PlaceHolder ID="RecordPanel" runat="server" Visible="false">

<br />
    <table class="SearchTableStyle">
        <tr>
            <td style="height: 26px">拍卖出价记录</td>
        </tr>
    </table>
<br />

     <asp:GridView ID="GridView2" runat="server" CssClass="tableHead" AutoGenerateColumns="False" AllowPaging="True" 
        DataKeyNames="OrderFormID" >
         <Columns>
             <asp:BoundField DataField="OrderFormID" HeaderText="编号" />
             <asp:BoundField DataField="InputTime" HeaderText="出价时间" />
             <asp:BoundField DataField="MoneyGoods" HeaderText="出价" />
             <asp:BoundField DataField="AuctionEndPrice" HeaderText="心理价" />
             <asp:BoundField DataField="MoneyReceipt" HeaderText="已收订金" />
             <asp:BoundField DataField="Cycle" DataFormatString="第{0}期" HeaderText="拍卖期" />
             <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <asp:Literal ID="litStatus" runat="server" Text='<%# GetStrStatus(Eval("AuctionEndPrice").ToString(),Eval("Cycle").ToString())%>' />
                </ItemTemplate>
             </asp:TemplateField>
         </Columns>
         <EmptyDataTemplate>                   
              <div style="padding:10px;">无出价记录 ！</div>
        </EmptyDataTemplate>  
     </asp:GridView>
     <div style="text-align:center; margin-top:10px;"><input type="button" value=" 返 回 " name="cl" onclick="history.back();" /></div>


</asp:PlaceHolder>
     

</asp:Content>

