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

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

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

		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script src="../../Javascript/Provice.js" language=javascript></script>

<script src="../../Javascript/formCheck.js" language=javascript></script>

<script>
function CheckForm()
{

 
       if(document.profile.txtDeptName.value == "")
       {
	     alert("公司名称不能为空！");
	     document.profile.txtDeptName.focus();
	     return (false);
       }

   if(!isTelOK(document.profile.txtPhone.value))
   {
	 alert("电话号码格式不正确！");
	 document.profile.txtPhone.focus();
	 return (false);
   }
    if(!isFaxOK(document.profile.txtFax.value))
   {
	 alert("传真号码格式不正确！");
	 document.profile.txtFax.focus();
	 return (false);
   }
   
   
   if(document.profile.txtUrl.value != "")
   {
         if(!isUrlOK(document.profile.txtUrl.value))
       {
	     alert("网址格式不正确！");
	     document.profile.txtUrl.focus();
	     return (false);
       }
   }
  
	
   
 
  
   
  
   
   return true;
}

		</script>
	
	</HEAD>
<body class="bodycolor" topmargin="5">
    <form id="profile" 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">
								[公司信息]</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" Width="180px"></asp:TextBox>
							
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>公司所在地：</TD>
						<TD class="TableData" noWrap>
							<select id="s1" class="BigSelect" ><option>省份</option></select>
<select id="s2" class="BigSelect" ><option>地级市</option></select>
<select id="s3" class="BigSelect" onChange="setValue();" ><option>市、县级市、县</option></select>

							
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>公司详细地址：</TD>
						<TD class="TableData">
								<asp:TextBox id="TxtAdr" runat="server" Columns="25" CssClass="BigInput" MaxLength="50" Width="250px"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>联系电话：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtPhone" runat="server" CssClass="BigInput"  ></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>传真：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtFax" runat="server"  CssClass="BigInput" ></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>网址：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtUrl" runat="server"  CssClass="BigInput" ></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>
                    &nbsp;
			
				 
				</DIV>
						</TD>
					</TR>
					
				</TABLE>
			
</div>
      <input id="HidProvince" type=hidden  runat="server"  /> <input id="HidCity" type=hidden runat="server" /> <input id="HidArea" type=hidden runat="server"   /><input id="HidCode" type=hidden runat="server"   />
    </form>
</body>
</html>
