<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_PayItemManage, mallz" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <div class="pageTitle">付款记录</div>
<table class="SearchTableStyle">
<tr class="tdbg"><td class="tdbg5">买家名称：</td>
            <td class="tdbg6"><asp:TextBox ID="TxtUserName" runat="server" Height="16px" /></td>
            <td class="tdbg5">订单编号：</td>
            <td class="tdbg6">
                <asp:TextBox ID="TxtOrderFormNum" runat="server" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbg5">起始日期：</td>           
            <td class="tdbg6"><asp:TextBox ID="TxtBeginDate" runat="server" Height="16px" /></td>
            <td class="tdbg5">结束日期：</td>
            <td class="tdbg6"><asp:TextBox ID="TxtEndDate" runat="server" Height="16px" /></td>
        </tr><tr class="tdbg"><td colspan="4" align="center" class="tdbg6">
            <asp:Button ID="QuickSearchBtn" OnClick="SearchClick" Text=" 查 询 " runat="server" />
            </td>
        </tr></table><br />
<table class="SearchTableStyle">
<tr><td>
你查看的是：
<asp:DropDownList ID="DropMoneyType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="SearchClick">
                    <asp:ListItem Value="" Selected="True">所有支付记录</asp:ListItem>
                    <asp:ListItem Value="0">线下汇款支付记录</asp:ListItem>
                    <asp:ListItem Value="1">在线支付交易记录</asp:ListItem>
                    <asp:ListItem Value="2">商城帐户支付记录</asp:ListItem>
</asp:DropDownList>
</td></tr>
</table>
<br/>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" CssClass="tableHead" >
            <Columns>
                <asp:BoundField DataField="PaymentNum" HeaderText="支付号" HeaderStyle-Width="15%" />
                <asp:TemplateField HeaderText="订单号" HeaderStyle-Width="15%" >                
                    <ItemTemplate>
                       <a href="Shop_BuyOrder.aspx?OrderFormNum=<%#Eval("OrderFormNum") %>" ><asp:Literal ID="TextBox1" runat="server" Text='<%# Bind("OrderFormNum") %>'/></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="PayTime" HeaderText="交易时间" HeaderStyle-Width="13%" />
                <asp:TemplateField HeaderText="支付平台" HeaderStyle-Width="10%" >
                    <ItemTemplate>
                        <asp:Literal ID="eBankID" runat="server" Text='<%# MallZ.Web.Shop.TextFormat.GetBank(Eval("eBankID").ToString()) %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField  HeaderText="状态" HeaderStyle-Width="8%" >
                    <ItemTemplate>
                        <asp:Literal ID="Status" runat="server" Text='<%# MallZ.Web.Shop.TextFormat.GetPay(Eval("Status").ToString()) %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="MoneyTrue" HeaderText="交易金额" HeaderStyle-Width="8%" /> 
                <asp:BoundField DataField="Remark" HeaderText="备注" />
                <asp:TemplateField HeaderText="操作" HeaderStyle-Width="10%">
                    <ItemTemplate>
                        <asp:HyperLink ID="but" runat="server" Text="修复" onclick="return confirm('将该笔支付总额更新订单已收款总额，当在线支付平台出现异常时执行，确定执行吗？')" NavigateUrl='<%# GetButLink(Eval("eBankID").ToString(),Eval("Status").ToString(),Eval("PaymentNum").ToString()) %>' />
                    </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>
                    <tr><td colspan="7">没有符合查询条件的记录！</td></tr>
                    </table>
        </EmptyDataTemplate>
        </asp:GridView>
    <br />
</asp:Content>