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



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD runat=server >
		<title>部门/成员单位管理</title>
	

		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		
		<script>
function CheckForm()
{

   if(document.Form1.txtDeptName.value == "")
   {
	 alert("部门名称不能为空！");
	 document.Form1.txtDeptName.focus();
	 return (false);
   }   
   return true;
}


   function OpenWin(url)
   {
     
   
       var R=window.showModalDialog(url,"水平","dialogWidth=460px;dialogHeight=290px");
       var keys = R.split('|');
        if(keys[0] == "ok")
              {
            
                 parent.dept_list.location.reload();
                 location.href = 'Dept_Edit.aspx?id='+keys[1];
              }
     
   }
		</script>
	</HEAD>
<body class="bodycolor" topmargin="5">
    <form id="form1" runat="server">
    <div id="pnlMain">
	
				<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
					<tr>
						<td class="Big">
						<img src="../images/notify_new.gif" height="18" WIDTH="18" align=absmiddle><span class="big3">
								编辑部门－[<asp:Label id="lblDeptName" runat="server"></asp:Label>]</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>
							
						</TD>
					</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" runat="server"  OnClientClick="return CheckForm();" Text="保存修改" OnClick="BtnAdd_Click" /></TD>
					</TR>
				</TABLE>
				<BR>
				<TABLE height="3" cellSpacing="0" cellPadding="0" width="95%" border="0">
					<TR>
						<TD width="100%" background="/images/dian1.gif"></TD>
					</TR>
				</TABLE>
				<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>
									<BR><BR>
				<DIV align="center">
				<input type="button" value="新建下级部门" class="BigButton" onClick="location.href='Dept_New.aspx?id=<%=ViewState["id"]%>'" title="新建下级部门" ><br><br>
                  
				 <asp:Button ID="BtnDel" runat="server" OnClientClick="return confirm('确定删除该部门吗？');" CssClass="BigButton" Text="删除当前部门" OnClick="BtnDel_Click"/><asp:Label
                     ID="LblBr" runat="server" Text=""></asp:Label>
                    <asp:Button ID="btnSetRole" runat="server" Text="设置部门角色" class="BigButton"  />
			
				 
				</DIV>
						</TD>
					</TR>
					
				</TABLE>
			
</div>
       
    </form>
</body>
</html>
