<%@ Page Language="C#" MasterPageFile="~/Master/officeMaster.master" AutoEventWireup="true"
    CodeFile="ExpenditureTypeInfo.aspx.cs" Inherits="AccountType_ExpenditureTypeInfo"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script language="javascript" type="text/javascript">
        function CheckEmpty(){
            var expenditureTypeName=$("#<%=txtExpenditureTypeName.ClientID %>")[0];//支出类型名
            if(expenditureTypeName.value==''){
                alert('支出类型名称不能为空！');
                expenditureTypeName.focus();
                return false;
            }
            return true;
//            //选择是否要提交
//            if(confirm('确定要提交吗？')){
//                return true;
//            }
//            else{
//                return false;
//            }
        }
        function IsCancel(){//选择是否取消
            if(confirm('确定取消吗?')){
                return true;
            }
            else{
                return false;
            }
        }   
    </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 style="font-size: 15px">
         <asp:Button ID="btnExpenditureType" runat="server" Text="支出类型" 
            Style="font-weight: bold;width: 80px; height: 30px;" onclick="btnExpenditureType_Click" />
        <asp:Button ID="btnIncomeType" runat="server" Text="收入类型" 
            Style="width: 80px; height: 30px;" onclick="btnIncomeType_Click" />
        <asp:Button ID="btnProjectType" runat="server" Text="项目" 
            Style="width: 80px; height: 30px;" onclick="btnProjectType_Click" />
        <asp:Button ID="btnSeller" runat="server" Text="商家/付款方" 
            Style="width: 80px; height: 30px;" onclick="btnSeller_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="txtExpenditureTypeName" runat="server"></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>
