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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        function CheckEmpty() {
            var cashAccountName = $("#<%=txtCashAccountName.ClientID %>")[0]; //现金账户名称
            var cashRemainde=$("#<%=txtCashRemainder.ClientID %>")[0];//现金账户余额
            if (cashAccountName.value == '') {
                alert('名称不能为空！');
                cashAccountName.focus();
                return false;
            }
            if(cashRemainde.value=='') {
                alert('余额不能为空！');
                cashRemainde.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="font-weight: bold;
            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="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="100%" align="center">
        <tr>
            <td width="48%" class="alignright">
               现金账户名称：
            </td>
            <td>
                <asp:TextBox ID="txtCashAccountName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="alignright">
                余额：
            </td>
            <td>
                <asp:TextBox ID="txtCashRemainder" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="alignright">
                备注：
            </td>
            <td>
                <asp:TextBox ID="txtCashRemarks" runat="server" TextMode="MultiLine" Width="40%"
                    Height="50px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <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>
