<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_PayOnLine, WebApp_deploy" title="Untitled Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="nick"><tr><td colspan="5" class="tit">快速查找</td></tr>
        <tr>
            <td class="ltd">系统流水号：</td>
            <td class="rtd" style="width:20%;">
                <asp:TextBox ID="TxtPayNum" runat="server" /></td>
            <td class="ltd" style="width:20%;">会员帐号：</td>
            <td class="rtd" style="width:20%;">
                <asp:TextBox ID="TxtUserName" runat="server" /></td>
            <td class="rtd">
                <asp:Button ID="Button1" runat="server" Text="查 询" OnClick="OnSelect" /></td>
        </tr>
    </table>
    
    <asp:GridView ID="GridView1" CssClass="adminlist" runat="server" Width="100%" AutoGenerateColumns="False" DataKeyNames="OnlinePayID">
        <Columns>
            <asp:BoundField DataField="OnlinePayID" HeaderText="ID" >
                <HeaderStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="PayNum" HeaderText="系统流水号" />
            <asp:BoundField DataField="UserName" HeaderText="会员帐号" />
            <asp:BoundField DataField="eBankName" HeaderText="通道名称" />
            <asp:BoundField DataField="PayTime" HeaderText="操作时间" />
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <asp:Literal ID="PayStatus" runat="server" Text='<%# (Eval("PayStatus").ToString()=="1")?"完成":"未到帐" %>' />
                </ItemTemplate>
                <HeaderStyle Width="100px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:HyperLink ID="ed" runat="server" NavigateUrl='<%# "?action=repair&ID=" + Eval("OnlinePayID") %>' onclick="javascript:{return confirm('确定修复吗？');}" Text="修复" />
                </ItemTemplate>
                <HeaderStyle Width="100px" />
            </asp:TemplateField>
        </Columns>
       <EmptyDataTemplate>
       无数据！
       </EmptyDataTemplate>
       <RowStyle HorizontalAlign="Center" />
    </asp:GridView>
    
    <div style="margin-top:10px;">
        <asp:Literal ID="PagePanel" runat="server" />
    </div>
    
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="Getall" TypeName="HoWave.Web.PayOnline"></asp:ObjectDataSource>
</asp:Content>

