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

<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../UserCol/ReportServer.ascx" TagName="ReportServer" TagPrefix="uc1" %>
<!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>
    <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_button">
                <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" OnRowDataBound="GridView1_RowDataBound">
                <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>
                            <div class=" lab_button_sub">
                                <asp:HyperLink ID="hlkPrint" runat="server" NavigateUrl='<%#string.Format("javascript:Print({0});void(0);",Eval("PaymentID")) %>'><div class="inline_block">打印</div>
                                <div class="inline_block orgnum"><%#Eval("PrintCount") %></div></asp:HyperLink>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="管理">
                        <ItemTemplate>
                            <div class="lab_button_sub" id="divShow" runat="server">
                                <asp:HyperLink ID="hlkShow" runat="server" Text="管理" NavigateUrl='<%# string.Format("StuControlPanel.aspx?StudentID={0}&PaymentID={1}&pageIndex=1&GetUrl={2}",Eval("StudentID"),Eval("PaymentID"),swq.Web.PathAndQuery()) %>' />
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div class="divpanel">
            <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
        </div>
        <uc1:ReportServer ID="ReportServer1" runat="server" />
    </form>
</body>
</html>
