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



<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/canlendar.js" type="text/javascript"></script>
    <script src="../../Javascript/Trim.js" type="text/javascript"></script>
    <script>
function CheckForm()
{


   if(TrimStr(document.Form1.TxtName.value) == "")
   {
          alert("联系人名称不能为空！");
	     document.Form1.TxtName.focus();
	     return (false);
   }
   if(document.Form1.TxtPhone.value != "")
   {
        if(!isPhone(document.Form1.TxtPhone.value))
       {
	     alert("手机号码格式不正确！");
	     document.Form1.TxtPhone.focus();
	     return (false);
       }
   }
   if(document.Form1.TxtComTel.value != "")
   { 
          if(!isTelOK(document.Form1.TxtComTel.value))
       {
	     alert("办公电话格式不正确！");
	     document.Form1.TxtComTel.focus();
	     return (false);
       }
   }
//    if(document.Form1.TxtFax.value != "")
//   { 
//        if(!isFaxOK(document.Form1.TxtFax.value))
//       {
//	     alert("传真号码格式不正确！");
//	     document.Form1.TxtFax.focus();
//	     return (false);
//       }
//   }
   if(document.Form1.TxtEmail.value != "")
   {
        if(!isEMail(document.Form1.TxtEmail.value))
       {
	     alert("E-Mail格式不正确！");
	     document.Form1.TxtEmail.focus();
	     return (false);
       }
   }
//     if(document.Form1.TxtBir.value == "")
//       {
//	     alert("生日不能为空！");
//	     document.Form1.TxtBir.focus();
//	     return (false);
//       }
// 
   return true;
   }
  
   </script>
   
</head>
<body class="bodycolor" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" >
    <form id="Form1" runat="server">
    <div>
      <TABLE class="small" cellSpacing="1" cellPadding="3" align="center" border="0"  style="width: 600px" bgcolor="black">
    	<tr>
    	<TD  class="TableData" colspan="4"><IMG height="18" src="../images/notify_new.gif" width="18" align="absMiddle"><SPAN class="big3">
								联系人信息：</SPAN>
						</TD>    	</tr>
    	<tr>
    	<td class="TableData"  align="right" >姓名:</td><td class="TableData" >
            <asp:TextBox ID="TxtName" CssClass="BigInput" runat="server"></asp:TextBox></td><td class="TableData" align="right">性别:</td><td class="TableData" >
                <asp:DropDownList ID="DrpSex" runat="server">
                    <asp:ListItem>男</asp:ListItem>
                    <asp:ListItem>女</asp:ListItem>
                </asp:DropDownList></td>
    	</tr>
    	<tr>
    	<td class="TableData"  align="right">手机号码:</td><td class="TableData" ><asp:TextBox CssClass="BigInput" ID="TxtPhone" runat="server"></asp:TextBox></td><td class="TableData" align="right">家庭电话:</td><td class="TableData" ><asp:TextBox CssClass="BigInput" ID="TxtTel" runat="server"></asp:TextBox></td>
    	</tr>
    	<tr>
    	<td class="TableData"  align="right">部门:</td><td class="TableData" ><asp:TextBox CssClass="BigInput" ID="TxtDept" runat="server"></asp:TextBox></td><td class="TableData" align="right">职务:</td><td class="TableData" ><asp:TextBox CssClass="BigInput" ID="TxtDuty" runat="server"></asp:TextBox></td>
    	</tr>
    	
    	<tr>
    	<td class="TableData" align="right" >办公电话:</td><td class="TableData" ><asp:TextBox CssClass="BigInput"   ID="TxtComTel" runat="server"></asp:TextBox></td><td class="TableData" align="right">E-mail:</td><td class="TableData" ><asp:TextBox CssClass="BigInput"   ID="TxtEmail" runat="server"/></td>
    	</tr>
    	<tr>
    	<td class="TableData"  align="right">QQ:</td><td class="TableData" ><asp:TextBox CssClass="BigInput"   ID="TxtQQ" runat="server"/></td><td class="TableData" align="right">家庭住址:</td><td class="TableData" ><asp:TextBox CssClass="BigInput"   ID="TxtAdr" runat="server"/></td>
    	</tr>
    	<tr>
    	<td class="TableData" align="right" >备注说明:</td><td colspan=3 class="TableData" >
            <asp:TextBox ID="TxtContent"  runat="server" Height="112px" TextMode="MultiLine" Width="350px" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox></td>
    	</tr>
   　　	<TR>
						<TD class="TableData"  align="center" colSpan="4">
                            <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:self.close();" class="BigButton" type="button" value="关闭" style="width: 91px"   />
						</TD>
					</TR>
    	</TABLE>
   
    </div>
    </form>
</body>
</html>

