<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_SalerAuction, WebApp_deploy" title="Untitled Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="pageTitle"><asp:Literal ID="AuctionTitle" runat="server" Text="拍卖管理" /></div>
<br />

<asp:PlaceHolder ID="ListPanel"  runat="server" >

<table class="SearchTableStyle">
        <tr>
            <td style="height: 26px">
            <asp:Button ID="Bided" runat="server" Text="所有拍卖" OnClientClick="javascript:{location.href='?type=2';return false;}" />&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Bidding" runat="server" Text="历史竞拍情况" OnClientClick="javascript:{location.href='?type=1';return false;}" />&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" Text="拍卖进行中" OnClientClick="javascript:{location.href='?type=0';return false;}" />
            </td>
        </tr>
</table>

    <asp:GridView ID="GridView1" runat="server" CssClass="tableHead" AutoGenerateColumns="False" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound" >
         <Columns>
             <asp:TemplateField HeaderText="商品名称">
                 <ItemTemplate>
                    <asp:HyperLink ID="ProductNameUrl" runat="server" Text='<%# Eval("ProductName") %>' NavigateUrl='<%#"/ShowProduct.aspx?ProductID="+Eval("ProductID") %>' Target="_blank"/>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField DataField="AuctionStartPrice" HeaderText="起拍价">
                 <ItemStyle Width="8%" />
             </asp:BoundField>
             <asp:TemplateField HeaderText="加价幅度">
                 <ItemTemplate>
                     <asp:Literal ID="ImcrementPrice" Text='<%# Eval("ImcrementPrice")%>' runat="server" />
                 </ItemTemplate>
                  <ItemStyle Width="10%" />
             </asp:TemplateField>
             <asp:BoundField DataField="CurrentPrice" HeaderText="当前价">
                 <ItemStyle Width="8%" />
             </asp:BoundField>
             <asp:TemplateField HeaderText="结束时间">                
                 <ItemTemplate>
                     <asp:Literal ID="LitEndDate" Text='<%# Eval("EndDate") %>' runat="server"/>
                 </ItemTemplate>
                  <ItemStyle Width="15%" />
             </asp:TemplateField>
             <asp:BoundField DataField="Cycle" DataFormatString="第{0}期" HeaderText="当前周期" HeaderStyle-Width="8%" />
              <asp:TemplateField HeaderText="操作">
                 <ItemTemplate>
                    <asp:HyperLink ID="ShopSalerOrderListDetail" runat="server" Text="出价记录" NavigateUrl='<%# "?action=record&ProductID="+Eval("ProductID") %>' />
                 </ItemTemplate>
                  <ItemStyle Width="9%" />
             </asp:TemplateField>
         </Columns>
         <EmptyDataTemplate>
            <table class="TableHead" 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 style="height:10px;"></div>
     <div style="margin:auto; width:95%;">注：<br/>&nbsp;&nbsp;所有拍卖指发布的所有拍卖商品<br />&nbsp;&nbsp;历史竞拍情况指所有有人参与竟拍的拍卖商品及出价记录<br />&nbsp;&nbsp;拍卖进行中指当前进行中且有人参与的拍卖商品及出价情况</div>
</asp:PlaceHolder>
     

<asp:PlaceHolder ID="RecordPanel"  runat="server" >

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

        <asp:GridView ID="GridView2" runat="server" CssClass="tableHead" AutoGenerateColumns="False" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound" >
         <Columns>
             <asp:BoundField DataField="OrderFormID" HeaderText="编号" />
             <asp:HyperLinkField DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="/Shop/index.aspx?uid={0}" DataTextField="BuyerName" 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='<%# GetStatus(Convert.ToInt32(Eval("MoneyReceipt")),Eval("Status").ToString()) %>' />
                </ItemTemplate>
             </asp:TemplateField>
              <asp:TemplateField HeaderText="操作">
                 <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" Text="详细" NavigateUrl='<%# "Shop_BuyOrder.aspx?OrderFormNum="+Eval("OrderFormNum") %>' />
                 </ItemTemplate>
                  <ItemStyle Width="8%" />
             </asp:TemplateField>
         </Columns>
         <EmptyDataTemplate>
            <div class="empty_style">无出价记录!</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>

