<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_ShopPayInfoView, mallz" title=" 在 线 支 付 信 息 管　理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

       <table class="nick"><tr><td colspan="4" class="tit">查找面板</td></tr>
        <tr>
            <td class="ltd" style="width: 10%;">快速搜索：</td>
            <td class="rtd" style="width: 21%;">
            <asp:DropDownList ID="DropeBankID" runat="server" AppendDataBoundItems="True"  AutoPostBack="True" OnSelectedIndexChanged="OnSearch">
                 <asp:ListItem Text="支付平台" Value=""/>
                 <asp:ListItem Text="在线支付" Value="AliPay"/>
                 <asp:ListItem Text="线下支付" Value="0"/>
                 <asp:ListItem Text="商城帐户" Value="ShopBank"/> 
             </asp:DropDownList>
             <asp:DropDownList ID="DropStatus" runat="server" AutoPostBack="True" OnSelectedIndexChanged="OnSearch">
                 <asp:ListItem Text="支付状态" Value=""/>
                 <asp:ListItem Value="Pay">支付完成</asp:ListItem>
                 <asp:ListItem Value="NotPaySaler">尚未到帐</asp:ListItem>
             </asp:DropDownList>
            </td>
            <td class="ltd" style="width: 10%;">高级搜索：</td>
            <td class="rtd">
               <asp:DropDownList runat="server" ID="UserType" >
                    <asp:ListItem Text="买家" Value="0" />
                    <asp:ListItem Text="卖家" Value="1" />
               </asp:DropDownList>
               <asp:TextBox ID="TxtUserName" runat="server"  Width="100" AutoPostBack="True" OnTextChanged="OnSearch"/>
            时间：
            <asp:TextBox ID="TxtBeginDate" runat="server" Width="80"/>
            至
            <asp:TextBox ID="TxtEndDate" runat="server" Width="80"/>
                <asp:Button ID="Button1" runat="server" Text=" 查 找 " OnClick="OnSearch" />
            </td>
        </tr>
    </table>
    
            <asp:GridView ID="GridView1"  CssClass="adminlist"  AllowSorting="True" runat="server" AllowPaging="True" AutoGenerateColumns="False"
               RowStyle-HorizontalAlign="Center" DataKeyNames="PaymentID" OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="选中" HeaderStyle-Width="4%">
                        <HeaderTemplate>
                          <input id="chkAll" onclick="SelectAllCheckboxes(this,'PaymentIDs');" runat="server" type="checkbox" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <input name="PaymentIDs" title='<%# "ID:"+Eval("PaymentID") %>' value="<%#Eval("PaymentID") %>" id="PaymentIDs" type="checkbox" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:HyperLinkField DataTextField="OrderFormNum" DataNavigateUrlFields="OrderFormNum" DataNavigateUrlFormatString="admin_ShowOrder.aspx?orderID={0}" HeaderText="订单编号" HeaderStyle-Width="15%" />
                    <asp:TemplateField HeaderText="用户名">
                        <ItemTemplate> 
                        <a href='Admin_UserDetail.aspx?userid=<%#Eval("UserID")%>'> <asp:Label ID="Label1" runat="server" Text='<%# Eval("UserName") %>'></asp:Label></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="支付平台" >
                        <ItemTemplate>
                            <asp:Literal runat="server" ID="eBankID" Text='<%# MallZ.Web.Shop.TextFormat.GetBank(Eval("eBankID").ToString()) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="PayTime" HeaderText="交易时间" HeaderStyle-Width="15%" />
                    <asp:BoundField DataField="MoneyPay" HeaderText="交易金额" />
                    <asp:BoundField DataField="MoneyTrue" HeaderText="实际金额" />
                    <asp:TemplateField HeaderText="交易状态" HeaderStyle-Width="10%">
                        <ItemTemplate>
                            <asp:Literal runat="server" ID="Status" Text='<%# MallZ.Web.Shop.TextFormat.GetPay(Eval("Status").ToString()) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Remark" HeaderText="备注" />
                    <asp:TemplateField  HeaderText="操作" >
                       <ItemTemplate>
                          <asp:LinkButton ID="cl" OnCommand="DeleteInfor" CommandArgument='<%# Eval("PaymentID") %>' runat="server" OnClientClick="if(confirm('确定删除吗？'))return true;return false;" Text="删除" />
                       </ItemTemplate>
                    </asp:TemplateField>
                    
                </Columns>
                <EmptyDataTemplate>
                        <tr>
                            <th>ID</th>
                            <th>订单编号</th>
                            <th>用户名</th>
                            <th>支付平台</th>
                            <th>交易时间</th>
                            <th>交易金额</th>
                            <th>实际金额</th>
                            <th>交易状态</th>
                            <th>银行信息</th>
                            <th>备注</th>
                        </tr>
                        <tr><td colspan="11">暂无信息！</td></tr>
                
                </EmptyDataTemplate>
            </asp:GridView>
           <div class="page"> 
           <asp:Label runat="server" ID="PagePanel" />
           </div> 
            
    <div class="div_btm">
    <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" OnClientClick="if(confirm('确定删除吗？'))return true;return false;" Text="批量删除" />
    </div>

</asp:Content>


