<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StuPaymentLog.aspx.cs" Inherits="SWTraining.Student.StuPaymentLog"
    Title="学员账户查看" %>

<%@ Import Namespace="SWTraining" %>
<%@ Register Src="../UserCol/Remark.ascx" TagName="Remark" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Orange/css.css" rel="stylesheet"
        type="text/css" />

    <script type="text/javascript">
        function StudentBox() {
            window.showModelessDialog('../Tools/StudentBox.aspx', window, 'dialogWidth=750px;dialogHeight=500px');
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gridview"
        DataKeyNames="PaymentLogID" OnRowDataBound="GridView1_RowDataBound">
        <Columns>
            <asp:BoundField DataField="PaymentLogID" HeaderText="编号" ReadOnly="true" />
            <asp:TemplateField HeaderText="金额">
                <ItemTemplate>
                    <asp:Label ID="labPay" runat="server" Text='<%# Bind("Pay", "{0:c}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="日期">
                <ItemTemplate>
                    <asp:Label ID="labDateAndTime" runat="server" Text='<%# Bind("DateAndTime") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="支付宝帐号">
                <ItemTemplate>
                    <asp:Label ID="labAlipayAccount" runat="server" Text='<%# Bind("AlipayAccount") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <asp:Label ID="labPayState" runat="server" Text='<%# (int)Eval("PayState") == 1 ? "已付" : "未付" %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="divpanel">
        <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
    </div>
    <div class="backpanel">
        <input id="Button1" causesvalidation="false" type="button" runat="server" onclick="back()"
            value="返回" />
    </div>
    <div class="divpanel">
    </div>
    </form>
</body>
</html>
