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

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script language="javascript" type="text/javascript">
        function CheckEmpty() {
            var savingsCardName = $("#<%=txtSavingsCardName.ClientID %>")[0]; //储蓄卡名称
            var savingsCardNumber = $("#<%=txtSavingsCardNumber.ClientID %>")[0]; //储蓄卡号
            var savingsCardRemainder = $("#<%=txtSavingsCardRemainder.ClientID %>")[0]; //储蓄卡余额
            if(savingsCardName.value==''){
                alert('名称不能为空！');
                savingsCardName.focus();
                return false;
            }
            if(savingsCardNumber.value==''){
                alert('卡号不能为空！');
                savingsCardNumber.focus();
                return false;
            }
            if(savingsCardRemainder.value==''){
                alert('余额不能为空！');
                savingsCardRemainder.focus();
                return false;
            }
            return true;
        }
    </script>
</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="font-weight: bold;width: 80px; height: 30px;"
            OnClick="btnSavingsCard_Click" />
        <asp:Button ID="btnOnlinPay" runat="server" Text="网上支付" Style="width: 80px; height: 30px;"
            OnClick="btnOnlinPay_Click" />
        <asp:Button ID="btnLoan" runat="server" Text="借贷账户" Style="width: 80px; height: 30px;"
            OnClick="btnLoan_Click" />
    </div>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="50%" align="center">
        <tr>
            <td width="45%" class="alignright">发卡行：</td>
            <td><asp:DropDownList ID="ddlBank" runat="server"></asp:DropDownList></td>
        </tr>
        <tr>
            <td class="alignright">储蓄卡名称：</td>
            <td><asp:TextBox ID="txtSavingsCardName" runat="server" Width="150px"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="alignright">卡号：</td>
            <td><asp:TextBox ID="txtSavingsCardNumber" runat="server" Width="150px"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="alignright">余额：</td>
            <td><asp:TextBox ID="txtSavingsCardRemainder" runat="server" Width="150px"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="alignright">备注：</td>
            <td colspan="3"><asp:TextBox ID="txtRemarks" runat="server" TextMode="MultiLine" Height="50px" Width="300px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Button ID="btnSubmit" runat="server" Text="提 交" Width="72" BackColor="#CCCCCC"  
                    OnClientClick="return CheckEmpty();" onclick="btnSubmit_Click"/>&nbsp;&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="返 回" Width="72" BackColor="#CCCCCC"  onclick="btnCancel_Click"/>
            </td>
        </tr>
    </table>
</asp:Content>
