<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PaymentInfo.aspx.cs" Inherits="SWTraining.Finance.PaymentInfo"
    Title="财务管理-充值记录" %>

<%@ Import Namespace="SWTraining" %>
<!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/Blue/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <script type="text/javascript">
        var IsPrint = false;</script>
    <div class="printWeb">
        <iframe id="PrintWeb" width="0" height="0"></iframe>
    </div>
    <form id="form1" runat="server">
    <div class="tool_Search">
        校区：<asp:DropDownList ID="ddlSchool" DataTextField="SchoolName" DataValueField="SchoolID"
            runat="server">
        </asp:DropDownList>
        &nbsp;充值单号：<asp:TextBox ID="tbxPaymentID" runat="server"></asp:TextBox>
        <label class="lab_buttom">
<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" />
</label>
    </div>
    <div class="both">
    </div>
    <div class="divpanel">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gridview"
            OnRowCommand="GridView1_RowCommand">
            <Columns>
                <asp:BoundField DataField="PaymentID" HeaderText="编号" />
                <asp:BoundField DataField="StudentID" HeaderText="学号" />
                <asp:BoundField DataField="StudentName" HeaderText="姓名" />
                <asp:TemplateField HeaderText="类型">
                    <ItemTemplate>
                        <asp:Label ID="labPaymentType" runat="server" Text='<%#Eval("PaymentTypeName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="PayMoney" DataFormatString="{0:c2}" HeaderText="金额" />
                <asp:BoundField DataField="DateAndTime" HeaderText="日期" />
                <asp:BoundField DataField="Remark" HeaderText="备注" />
                <asp:BoundField DataField="TrueName" HeaderText="录入员" />
                <asp:TemplateField HeaderText="已打">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbnPrint" runat="server" CommandName="Print" CommandArgument='<%#Eval("PaymentID") %>'
                            Text='<%# (int)Eval("PrintCount") > 0 ? "已" : "未" %>' Font-Size="9pt"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="打印">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlkPrint" runat="server" NavigateUrl='<%#string.Format("javascript:Print({0});void(0);",Eval("PaymentID")) %>'
                            ImageUrl='<%# accTheme("print.gif")%>' CssClass="noborder"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="管理">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlkShow" runat="server" Text="管理" NavigateUrl='<%# string.Format("StudentFrame.aspx?StudentID={0}&PaymentID={1}&pageIndex=1&GetUrl={2}",Eval("StudentID"),Eval("PaymentID"),swq.Web.PathAndQuery()) %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="divpanel">
        <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
    </div>
    </form>
</body>
</html>
