<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_PayMents, WebApp_deploy" title="交易明细" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
 <div class="pageTitle">付款记录</div>
<table class="SearchTableStyle">
<tr><td>卖家名称：</td>
            <td ><asp:TextBox ID="TxtUserName" runat="server" Height="16px" /></td>
            <td >订单编号：</td>
            <td >
                <asp:TextBox ID="TxtOrderFormNum" runat="server" />
            </td>
        </tr>
        <tr>
            <td >起始日期：</td>           
            <td ><asp:TextBox ID="TxtBeginDate" runat="server" Height="16px" /></td>
            <td >结束日期：</td>
            <td ><asp:TextBox ID="TxtEndDate" runat="server" Height="16px" /></td>
        </tr><tr><td colspan="4" align="center">
            <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:TemplateField HeaderText="订单号">                
                    <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="15%" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="收款帐号">
                    <ItemTemplate>
                        <asp:Literal ID="eBankID" runat="server" Text='<%# HoWave.Web.Shop.TextFormat.GetBank(Eval("eBankID").ToString()) %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField  HeaderText="状态">
                    <ItemTemplate>
                        <asp:Literal ID="Status" runat="server" Text='<%# HoWave.Web.Shop.TextFormat.GetPay(Eval("Status").ToString()) %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="MoneyTrue" HeaderText="交易金额">
                    <HeaderStyle Width="10%" />
                </asp:BoundField>              
                <asp:BoundField DataField="eBankInfo" HeaderText="摘要">
                    <HeaderStyle Width="10%" />
                </asp:BoundField>
                <asp:BoundField DataField="Remark" HeaderText="备注">
                    <ItemStyle Width="20%" />
                    <HeaderStyle Width="15%" />
                </asp:BoundField>
            </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>

