<%@ page language="C#" autoeventwireup="true" inherits="general_ClientManage_EditClient, 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 id="Head1" runat="server">
    <title>客户信息</title>
 <base target=_self></base>
<script src="../../Javascript/formCheck.js" language=javascript></script>
     <script src="../../Javascript/Provice.js" type="text/javascript" language=javascript></script>
<script>
function CheckForm()
{
   if(!isPostalCode(document.profile.txtZip.value))
   {
	 alert("邮政编码格式不正确！");
	 document.profile.txtZip.focus();
	 return (false);
   }
	
   
   if( profile.SelType.options[profile.SelType.selectedIndex].text == "选择客户行业")
   {
	 alert("请选择客户行业！");
	
	 return (false);
   }
   
   if(!isTelOK(document.Form1.txtPhone.value))
   {
	 a = true;
	 document.Form1.txtPhone.focus();
	 
   }
    if(!isPhone(document.Form1.txtPhone.value))
   {
	 a =true;
	 document.Form1.txtPhone.focus();
   }
   if(a = false)
   {
   alert("电话号码格式不正确！");
    return (false);
   }
    if(!isFaxOK(document.profile.txtFax.value))
   {
	 alert("传真号码格式不正确！");
	 document.profile.txtFax.focus();
	 return (false);
   }
   
    if(!isEMail(document.profile.txtMail.value))
   {
	 alert("E-Mail格式不正确！");
	 document.profile.txtMail.focus();
	 return (false);
   }
   if(document.profile.txtUrl.value != "")
   {
         if(!isUrlOK(document.profile.txtUrl.value))
       {
	     alert("网址格式不正确！");
	     document.profile.txtUrl.focus();
	     return (false);
       }
   }
   if(document.profile.txtContent.value == "")
   {
          alert("客户介绍不能为空！");
	     document.profile.txtContent.focus();
	     return (false);
   }
   return true;
}

		</script>
</head>
<body class="bodycolor" topmargin="5"  >
    <form id="profile" runat="server">
      
 
 <div id="pnlMain">
    
				<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="90%" align="center"  bgcolor="black"
					border="0" >
				
					<TR>
						<TD class="TableData" >客户名称：</TD>
						<TD class="TableData" >
						<div id="div1" runat ="server" visible="false">
                            <asp:Label ID="LblUserName" CssClass="big3" ForeColor=red   runat="server" Text="Label"></asp:Label>
                         </div>   
                         <div id="div2" runat ="server" visible="false">
                            <input name="Tx_UserName" runat=server  type="text"  size="25" id="Tx_UserName" class="BigInput" />
                         </div>   
						</TD>
					</TR>
					<TR>
						<TD class="TableData" >所在地：</TD>
						<TD class="TableData" >
						<select id="s1" class="BigSelect" runat=server ><option>省份</option></select> 
<select id="s2" class="BigSelect" runat=server  ><option>地级市</option></select> 
<select id="s3" class="BigSelect" runat=server  onchange="setValue();"  ><option>市、县级市、县</option></select> 

						</TD>
					</TR>
			        <TR>
						<TD class="TableData" >详细地址：</TD>
						<TD class="TableData" >
								<input name="txtAdr" runat=server  type="text"  size="25" id="txtAdr" class="BigInput" />
							
						</TD>
					</TR>
					<TR>
						<TD class="TableData" >邮政编码：</TD>
						<TD class="TableData" >
									<table style="width: 100%" cellspacing="0" cellpadding="0">
									<tr>
										<td style="width: 158px">
								<input name="txtZip" runat=server  type="text"  size="25" id="txtZip" class="BigInput" /></td>
										<td>(如:430010)</td>
									</tr>
								</table>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" >行业：</TD>
						<TD class="TableData" >
<select runat=server  name="SelType" id="SelType" class="BigSelect" >
	<option value="">选择客户行业</option>
	<option value="计算机互联网">计算机互联网</option>
	<option value="电子/通讯/电器">电子/通讯/电器</option>
	<option value="机械/仪器/仪表">机械/仪器/仪表</option>
	<option value="房地产/建筑/安装/装璜">房地产/建筑/安装/装璜</option>
	<option value="金融/投资/保险/经济">金融/投资/保险/经济</option>
	<option value="生产/制造">生产/制造</option>
	<option value="造纸/印刷/包装">造纸/印刷/包装</option>
	<option value="动力/电力/能源">动力/电力/能源</option>
	<option value="五金矿产/金属制品">五金矿产/金属制品</option>
	<option value="运输/物流/快递">运输/物流/快递</option>
	<option value="广告/策划/设计">广告/策划/设计</option>
	<option value="新闻/媒体/出版">新闻/媒体/出版</option>
	<option value="信息咨询/事务所/人才交流">信息咨询/事务所/人才交流</option>
	<option value="教育/文化/科研/培训">教育/文化/科研/培训</option>
	<option value="政府/公共事业">政府/公共事业</option>
	<option value="医疗/卫生事业">医疗/卫生事业</option>
	<option value="制药/生物工程">制药/生物工程</option>
	<option value="旅游/酒店/餐饮服务">旅游/酒店/餐饮服务</option>
	<option value="纺织服装">纺织服装</option>
	<option value="农林牧渔">农林牧渔</option>
	<option value="娱乐/运动/休闲">娱乐/运动/休闲</option>
	<option value="日用生活服务/商业服务">日用生活服务/商业服务</option>
	<option value="物资供销">物资供销</option>
	<option value="轻工">轻工</option>
	<option value="其它行业">其它行业</option>
</select>
						</TD>
					</TR>
			<TR>
						<TD class="TableData" >电话：</TD>
						<TD class="TableData" >
								<table style="width: 100%" cellspacing="0" cellpadding="0">
									<tr>
										<td style="width: 157px">
								<input name="txtPhone" runat=server  type="text"  size="25" id="txtPhone" class="BigInput" /></td>
										<td>(如:0571-88949230或者手机号码)
						</td>
									</tr>
								</table>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" >传真：</TD>
						<TD class="TableData" >
									<table style="width: 100%" cellspacing="0" cellpadding="0">
									<tr>
										<td style="width: 157px">
								<input name="txtFax" runat=server  type="text" size="25" id="txtFax" class="BigInput" /></td>
										<td>(如:0571-88949231)</td>
									</tr>
								</table>
						</TD>
					</TR>
					<TR>
						<TD class="TableData" >E-Mail：</TD>
						<TD class="TableData" >
								<table style="width: 100%" cellspacing="0" cellpadding="0">
									<tr>
										<td style="width: 153px">
								<input name="txtMail" runat=server  type="text"  size="25" id="txtMail" class="BigInput" /></td>
										<td>(如:legoras@163.com)</td>
									</tr>
								</table>
							
						</TD>
					</TR>
					<TR>
						<TD class="TableData" >网址：</TD>
						<TD class="TableData" >
								<table style="width: 100%" cellspacing="0" cellpadding="0">
									<tr>
										<td style="width: 158px">
								<input name="txtUrl" runat=server  type="text"  size="25" id="txtUrl" class="BigInput" /></td>
										<td>(如:http://www.intcss.com)</td>
									</tr>
								</table>
						</TD>
					</TR>
					<TR>
					<TD class="TableData" >客户介绍：</TD>
						<TD class="TableData"><textarea runat=server class="dropdown" name="txtContent" id="txtContent"  rows="8"  cols="60"></textarea>
						
						</TD>
					</TR>
					<TR>
						<TD class="TableData"  align="center" colSpan="2">
						<asp:Button ID="BtnUpdate"  class="BigButton"  runat="server" OnClientClick="return CheckForm();" Text="修改" OnClick="BtnUpdate_Click" Width="91px" />&nbsp;&nbsp;&nbsp;&nbsp;<input
                                id="btnExit" onclick="javascript:history.go(-1);" class="BigButton" type="button" value="返回" style="width: 91px"   />

                        
</TD>
					</TR>
						<TR>
						<TD class="TableControl"  align="center" colSpan="2">
                            注意:如果录入信息中的传真和网址与库中记录雷同,即便客户名称不相同也被视为同一客户.
						</TD>
					</TR>
				</TABLE>
				<br>
<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 />
     <input name="Hidden1" runat=server  type="hidden" />
      <div id="ShowJs" runat="Server"> </div>
</div>
    </form>
</body>
</html>

