<%@ Page Title="" Language="C#" MasterPageFile="~/Master/officeMaster.master" AutoEventWireup="true" CodeFile="Account_OnlinePay.aspx.cs" Inherits="Account_Account_OnlinePay" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<%--<table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                网上支付
            </th>
        </tr>
    </table>--%>
     <div>
        <asp:Button ID="btnAllAccount" runat="server" Text="全部" Style="width: 80px; height: 30px;"
            OnClick="btnAllAccount_Click" />
        <asp:Button ID="btnCashAccount" runat="server" Text="现金" Style="
            width: 80px; height: 30px;" OnClick="btnCashAccount_Click" />
        <asp:Button ID="btnCreditCard" runat="server" Text="信用卡" Style="width: 80px; height: 30px;"
            OnClick="btnCreditCard_Click" />
        <asp:Button ID="btnSavingsCard" runat="server" Text="储蓄卡" Style="width: 80px; height: 30px;"
            OnClick="btnSavingsCard_Click" />
        <asp:Button ID="btnOnlinPay" runat="server" Text="网上支付" Style="font-weight: bold;width: 80px; height: 30px;"
            OnClick="btnOnlinPay_Click" />
        <asp:Button ID="btnLoan" runat="server" Text="借贷账户" Style="width: 80px; height: 30px;"
            OnClick="btnLoan_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnAddAccount" runat="server" Text="新增" Style="width: 80px; height: 30px;"
            OnClick="btnAddAccount_Click" />
    </div>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="40%" align="center"
        border="1">
        <tr>
            <th width="35%">
                名称
            </th>
            <th width="35%">
                当前余额
            </th>
            <th width="30%">
                操作
            </th>
        </tr>
        <tr>
            <td colspan="3" align="center">
                网上支付
            </td>
        </tr>
        <asp:Repeater ID="rptOnlinePay" runat="server" 
            onitemcommand="rptOnlinePay_ItemCommand" 
            onitemdatabound="rptOnlinePay_ItemDataBound">
            <ItemTemplate>
                <tr align="center" onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'">
                    <td>
                        <%#Eval("OnlinePayName") %>
                    </td>
                    <td>
                        ￥<%#Eval("OnlinePayRemainder") %></td>
                    <td>
                        <asp:HiddenField ID="hdOnlinePayId" runat="server" Value='<%#Eval("OnlinePayId") %>' />
                        <asp:HiddenField ID="hdOnlinPayState" runat="server" Value='<%#Eval("State") %>' />
                        <asp:LinkButton ID="lbtnEditOnlinePay" runat="server" Text="编辑" CommandName="edit"></asp:LinkButton>
                        <asp:LinkButton ID="lbtnBlockOnlinePay" runat="server" Text="停用" CommandName="block"></asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <tr>
            <td colspan="3" align="center">
                <span>当前<span id="spanPageCurrent" runat="server">1</span>/<span id="spanPageCount" runat="server"></span>页</span>
                <asp:LinkButton ID="lbtnPageFirst" runat="server" Text="首页"  BackColor="Silver" Width="56px"
                    onclick="lbtnPageFirst_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageUp" runat="server" Text="上页"  BackColor="Silver" Width="56px"
                    onclick="lbtnPageUp_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageDown" runat="server" Text="下页" BackColor="Silver" Width="56px"
                    onclick="lbtnPageDown_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageLast" runat="server" Text="末页"  BackColor="Silver" Width="56px"
                    onclick="lbtnPageLast_Click"></asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>

