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

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

    <script language="javascript" type="text/javascript">
        function CheckEmpty(){
            var projectTypeName=$("#<%=txtProjectTypeName.ClientID %>")[0];//项目名
            if(projectTypeName.value==''){
                alert('项目名称不能为空！');
                projectTypeName.focus();
                return false;
            }
            return true;
//            //选择是否要提交
//            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="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="font-weight: bold;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="txtProjectTypeName" 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>
