<%@ page language="C#" autoeventwireup="true" inherits="general_SystemManage_Dept_New, CrmCommand" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    	<script>
function CheckForm()
{

   
   if(document.Form1.txtDeptName.value == "")
   {
	 alert("部门名称不能为空！");
	 document.Form1.txtDeptName.focus();
	 return (false);
   }   
   return true;
}
		</script>
</head>
<body class="bodycolor" topmargin="5">
    <form id="Form1" runat="server">
  <TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big"><IMG height="18" src="../images/notify_new.gif" width="18" align="absMiddle"><SPAN class="big3">
								新建部门</SPAN>
						</TD>
					</TR>
				</TABLE>
				<TABLE class="small" cellSpacing="1" cellPadding="3" width="450" align="center" bgColor="#000000" border="0">
					
					<TR>
						<TD class="TableData" noWrap>部门名称：</TD>
						<TD class="TableData" noWrap>
							<asp:TextBox id="txtDeptName" runat="server" Columns="25" CssClass="BigInput" MaxLength="50"></asp:TextBox>
							
					</TR>
					
					<TR>
						<TD class="TableData" noWrap>上级部门：</TD>
						<TD class="TableData">
							<asp:DropDownList id="ddlParentDept" runat="server" CssClass="BigSelect"></asp:DropDownList></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>职能描述：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtDeptFunc" runat="server" Columns="28" CssClass="BigInput" Rows="3" TextMode="MultiLine"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableControl" noWrap align="center" colSpan="2">
                            <asp:Button ID="BtnAdd" class="BigButton" OnClientClick="return CheckForm()" runat="server" Text="新建" OnClick="BtnAdd_Click" />
&nbsp;&nbsp;
							<INPUT class="BigButton" title="返回" onclick="history.back();" type="button" value="返回">
						</TD>
					</TR>
				</TABLE>
    </form>
</body>
</html>
