<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopTradeOrder, HoWaveVGO" title="商城交易管理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
<script src="Js/Function.js" type="text/javascript"></script>  
<table class="adminheading">
   <tr>
      <th valign="middle" class="menus" align="left">订单管理</th>
      <td align="right">
      <div style="width:400px">
            <a href="Admin_ShopTradeOrder.aspx" >交易记录管理</a>&nbsp;|&nbsp;
            <a href="Admin_ShopSendOrderView.aspx?add=1">发退货管理</a>&nbsp;|&nbsp;
            <a href="Admin_ShopInvoiceView.aspx">开发票记录管理</a>&nbsp;|&nbsp;
            <a  href="Admin_ShopPayInfoView.aspx">在线支付管理</a>&nbsp;<br />                
      </div>
      </td> 
      <td class="rtdw"></td>          
   </tr>                     
</table>

   <table class="nick"><tr><td colspan="4" class="tit">交易记录列表</td></tr><tr><td class="ltd">
      快速查找</td><td class="rtd" style="width: 35%; height: 14px">
      <asp:DropDownList ID="QuickSearch" runat="server" CssClass="text_area" OnSelectedIndexChanged="QuickSearch_SelectedIndexChanged"  AutoPostBack="true">
         <asp:ListItem Text="请选择" Value="-1" />
         <asp:ListItem Text="所有交易纪录" Value="all" />
         <asp:ListItem Text="所有一口价交易记录" Value="standprice" />
         <asp:ListItem Text="所有拍卖记录" Value="auction" />
         <asp:ListItem Text="所有团购记录" Value="team_buy" />
         <asp:ListItem Text="最近十天内的交易记录" Value="ten_day_order" />
         <asp:ListItem Text="所有交易结束的记录" Value="success" />
         <asp:ListItem Text="所有拍卖领先的记录" Value="first" />
         <asp:ListItem Text="所有拍卖出局的记录" Value="last" />
         <asp:ListItem Text="所有团购预钉的记录" Value="team_beforehand" />
      </asp:DropDownList></td><td class="ltd">
      高级查找</td><td class="rtd" style="width: 35%; height: 14px">
      <asp:DropDownList ID="DetailSearchType" runat="server" CssClass="text_area">
         <asp:ListItem Text="请选择" Value="-1" />
         <asp:ListItem Text="订单编号" Value="trade_num" />
         <asp:ListItem Text="交易状态" Value="trade_status" />
         <asp:ListItem Text="商品名称" Value="product_name" />         
      </asp:DropDownList>
      <asp:TextBox ID="SearchName" runat="server" CssClass="text_area"/>
       <asp:Button ID="SearchButton" runat="server" Text="查询" OnClick="SearchButton_Click" />
    </td></tr></table><br />
    
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>  
        <asp:GridView ID="GridView1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"   runat="server" CssClass="adminlist" AutoGenerateColumns="False" HeaderStyle-HorizontalAlign="Center" OnRowDataBound="GridView1_RowDataBound" OnDataBound="GridView1_DataBound"  DataKeyNames="OrderFormID">
          <Columns>
            <asp:TemplateField HeaderText="选中">
              <HeaderTemplate>
                  <input id="Checkbox1" onclick="SelectAllCheckboxes(this);" runat="server" type="checkbox" />
              </HeaderTemplate>
              <ItemTemplate>
                <asp:CheckBox ID="Select_Order" runat="server" />
              </ItemTemplate>
              
              <ItemStyle Width="5%" />
            </asp:TemplateField>
              <asp:TemplateField HeaderText="订单编号"> 
                  <ItemStyle Width="10%" />
                  <ItemTemplate>
                     <asp:Label ID="LabOrderFormNum" runat="server" Text='<%# Bind("OrderFormNum") %>'></asp:Label>
                  </ItemTemplate>
              </asp:TemplateField>
            <asp:BoundField DataField="ProductName" HeaderText="商品名称">
                <ItemStyle Width="13%" />
            </asp:BoundField>
            <asp:BoundField DataField="BuyerName" HeaderText="买家名称">
                <ItemStyle Width="8%" />
            </asp:BoundField>
            <asp:BoundField DataField="SalerName" HeaderText="卖家名称">
                <ItemStyle Width="8%" />
            </asp:BoundField>
            <asp:BoundField DataField="TradeType" HeaderText="商品类别">
                <ItemStyle HorizontalAlign="Center" Width="8%" />
            </asp:BoundField>
            <asp:BoundField DataField="InputTime" HeaderText="交易时间">
                <ItemStyle Width="8%" />
            </asp:BoundField>
            <asp:BoundField DataField="MoneyGoods" HeaderText="交易金额">
                <ItemStyle Width="8%" />
            </asp:BoundField>
            <asp:BoundField DataField="OnlinePayType" HeaderText="支付平台">
                <ItemStyle Width="8%" />
            </asp:BoundField>
            <asp:BoundField DataField="Status" HeaderText="交易状态">
                <ItemStyle Width="8%" />
            </asp:BoundField> 
             <%--<asp:TemplateField HeaderText="操作"> 
                 <ItemTemplate>
                      <asp:Label ID="CtrlOrder" runat="server" Visible="false" />
                      <asp:RadioButtonList ID="OnlinePayTypeSelect" runat="server" Visible="false" />
                 </ItemTemplate>
                 <ItemStyle Width="8%" />
            </asp:TemplateField>--%>
           <%-- <asp:CommandField HeaderText="支付诚意金" SelectText="支付" ShowSelectButton="True"/>--%>
            
        </Columns>
<EmptyDataTemplate>
<tr>
  <th>选中</th><th>订单编号</th><th>商品名称</th><th>买家名称</th><th scope="col">卖家名称</th><th scope="col">商品类别</th><th scope="col">交易时间</th><th>交易金额</th><th>支付平台</th><th>交易状态</th>
</tr>
<tr>
  <td colspan="10">暂无交易！</td>
</tr>
</EmptyDataTemplate>
            <HeaderStyle HorizontalAlign="Center" />
       </asp:GridView>
        <div style="padding:10px;" align="center">
     <asp:Literal ID="ItemCount" runat="server" />
     <asp:Literal ID="CurrentPage" runat="server" />
        <asp:HiddenField ID="H_CurrentPage" runat="server" Value="0"/>
        <asp:LinkButton ID="First" runat="server" CommandArgument="first" OnClick="PagerButton_Click">首 页</asp:LinkButton>
        <asp:LinkButton ID="Prev" runat="server" CommandArgument="prev" OnClick="PagerButton_Click">上一页</asp:LinkButton>
        <asp:LinkButton ID="Next" runat="server" CommandArgument="next" OnClick="PagerButton_Click">下一页</asp:LinkButton>
        <asp:LinkButton ID="Last" runat="server" CommandArgument="last" OnClick="PagerButton_Click">尾 页</asp:LinkButton>

              到第<asp:TextBox ID="GoToPage" Width="20px" runat="server" />页<asp:Button ID="GoPageBtn" Text="确定" runat="server" OnClick="GoToPageBtn_Click" />
     
 </div>
 
   </ContentTemplate>
       <Triggers>
           <asp:AsyncPostBackTrigger ControlID="QuickSearch" EventName="SelectedIndexChanged" />
           <asp:AsyncPostBackTrigger ControlID="SearchButton" EventName="Click" />
       </Triggers>
   </asp:UpdatePanel> 
   <div style="width:100%; font-size:12px; text-align:center;">
      <div style="float:left"><input id="chkAll" onclick="SelectAllCheckboxes(this);" runat="server" type="checkbox" />选中本页所有交易记录</div>
      <div style="float:inherit"> 
      <asp:Button Text="删除选中的交易记录" OnClientClick="if(confirm('确定删除吗？'))return true;return false;" runat="server"  ID="DeleteButton" OnClick="DeleteButton_Click"/> </div>
   </div>
   <div style="padding:5px; color:red;">
       <asp:Label ID="Delete_Tips" runat="server" />
    </div>


  

</asp:Content>
