<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StuPayment.aspx.cs" Inherits="MTCUN.Mobile.Student.StuPayment"
    Title="我的钱包" %>

<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../../UserCol/Remark.ascx" TagName="Remark" TagPrefix="uc2" %>
<%@ Register Src="../User_Col/col_StuControlPanel.ascx" TagName="col_StuControlPanel" TagPrefix="uc1" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc3" %>
<%@ Register Src="../User_Col/col_StuHeader.ascx" TagName="col_StuHeader" TagPrefix="uc4" %>
<!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">
    <title></title>
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />

    <script type="text/javascript">
        function OpenSearch() {
            if (setContent.style.display == 'none') {
                setContent.style.display = 'block';
                setControl.innerHTML = '▲充值';
                __mt__setSearchCookie(1);
            }
            else {
                setContent.style.display = 'none';
                setControl.innerHTML = '▼充值';
                __mt__setSearchCookie(0);
            }
        }

        function defaultSearchState() {
            var num = __mt__getSearchCookie();
            if (num == 1) {
                setContent.style.display = 'block';
                setControl.innerHTML = '▲充值';
            }
            else {
                setContent.style.display = 'none';
                setControl.innerHTML = '▼充值';
            }
        }
    </script>
</head>
<body onload="defaultSearchState();">
    <form id="form1" runat="server">
        <uc4:col_StuHeader ID="col_StuHeader1" runat="server" />
        <div id="web_page_contents">
            <div class="search biao_zhun_suo_jin">
                <div class="setandsearch">
                    <ul class="searchtool">

                        <li>
                            <div id="setControl" onclick="OpenSearch()">
                                ▼充值
                            </div>
                        </li>
                    </ul>

                    <div id="setContent" style="display: none">
                        <div class="divpanel">
                            <table class="table" cellspacing="0">
                                <tr>
                                    <th>我要充值(微信/支付宝)
                                    </th>
                                </tr>
                                <tr>
                                    <td><span class="inline_block">通道：</span><span class="inline_block"><asp:DropDownList ID="ddlType" runat="server">
                                        <asp:ListItem Value="1">微信</asp:ListItem>
                                        <asp:ListItem Value="0">支付宝</asp:ListItem>
                                    </asp:DropDownList></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td><span class="inline_block">金额：</span><span class="inline_block"><asp:TextBox ID="tbxPay" runat="server">0</asp:TextBox></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td><span class="inline_block">原因：</span><span class="inline_block"><asp:TextBox ID="tbxBody" runat="server"></asp:TextBox></span>
                                        <span class="inline_block">（20字以内）</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <label class="lab_button">
                                            <asp:Button ID="btnPost" runat="server" Text="确定" OnClick="btnPost_Click" />
                                        </label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <%--<a href="StuPaymentLog.aspx">支付宝支付记录</a>。--%>
                                    </td>
                                </tr>
                            </table>
                        </div>

                    </div>
                </div>

                <div class="striking" runat="server" id="divSellInfo" visible="false" style="margin-top: 5px">
                    <table class="table" cellspacing="0">
                        <tr>
                            <th>订单提示
                            </th>
                        </tr>
                        <tr>
                            <td>本次需支付：<asp:Label ID="labPayed" runat="server" ForeColor="#000099"></asp:Label>
                                元&nbsp;&nbsp; <span runat="server" id="spanMissing" visible="false">帐户缺少：<asp:Label
                                    ID="labMissing" runat="server" ForeColor="Red"></asp:Label>
                                    元</span>
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="kuai_show">
                    <asp:FormView ID="fvStudent" runat="server" Width="100%">
                        <ItemTemplate>

                            <h1 style="text-align: center">账户信息
                            </h1>

                            <table class="inline_block" cellspacing="0">
                                <tr>
                                    <td>学号：
                                    </td>
                                    <td>
                                        <%#Eval("StudentID")%>
                                    </td>

                                </tr>
                                <tr>
                                    <td>姓名：
                                    </td>
                                    <td>
                                        <%#Eval("StudentName")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>可用余额：
                                    </td>
                                    <td>
                                        <span style="color: Red">
                                            <%#Eval("AvailableMoney", "{0:c2}")%></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>消费总额：
                                    </td>
                                    <td>
                                        <%#Eval("ConsumedMoney","{0:c2}")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>借款金额：
                                    </td>
                                    <td>
                                        <%#Eval("CreditMoney", "{0:c2}")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>积分：
                                    </td>
                                    <td>
                                        <%#Eval("Points")%>分
                                    </td>
                                </tr>
                            </table>

                            <%--<div class="inline_block">--%>
                            <asp:Image ID="imgPhoto" runat="server" Width="120" Visible="false" />
                            <%--</div>--%>
                        </ItemTemplate>
                    </asp:FormView>
                </div>

                <div class="divpanel">
                    <asp:Repeater ID="repBlock" runat="server" OnItemCommand="repBlock_ItemCommand"
                        OnItemDataBound="repBlock_ItemDataBound">
                        <ItemTemplate>

                            <asp:Panel ID="plItem" runat="server" CssClass="kuai">

                                <h1 class="auto_length_title">单号：<%#Eval("PaymentID")%></h1>

                                <table class="table" cellspacing="0" border="0" style="table-layout: fixed; word-break: break-all; word-wrap: break-word">
                                    <tr>
                                        <td style="width: auto">类型：</td>
                                        <td style="width: auto"><%#Eval("PaymentTypeName") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">金额：</td>
                                        <td style="width: auto"><%#Eval("PayMoney", "{0:c2}") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">收款方式：</td>
                                        <td style="width: auto"><%#Eval("PayMethod")%></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">日期：</td>
                                        <td style="width: auto"><%#Eval("DateAndTime")%></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">备注：</td>
                                        <td style="width: auto"><%#Eval("Remark")%></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">借款到期：</td>
                                        <td style="width: auto"><%#Eval("CreditExpiration")%></td>
                                    </tr>
                                    <tr>
                                        <td>办理点：</td>
                                        <td><%#Eval("PostSchoolName") %></td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>

                <div class="pager_button">
                    <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
                </div>

                <div class="backpanel">
                    <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                        <input id="Button1" causesvalidation="false" type="button" runat="server" onclick="back(this)"
                            value="返回" />
                    </label>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
