You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

392 lines
19 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CRMClientContactInfo.aspx.cs" Inherits="DSWeb.CRM.CRMClientContactInfo" %>
<!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>
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
<link href="../theme/tab.css" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript" src="../js/date/jsDateFormat.js"></script>
<script language="javascript" type="text/javascript" src="../js/m97date/wdatepicker.js"></script>
<script language="javascript" type="text/javascript" src="../js/date/jsDateFM.js"></script>
<link href="../Css/right.css" rel="stylesheet" type="text/css" />
<!--页面重新加载-->
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<!--蒙板-->
<script type="text/javascript">
function $(id)
{
return document.getElementById(id);
}
function setEnter() {
if ($("tbTEL1").value == "" || $("tbTEL2").value == "" || $("tbTEL").value == "" || $("tbFAX1").value == "" || $("tbFAX2").value == "" || $("tbFAX").value == "" || $("tbMOBILE1").value == "" || $("tbMOBILE").value == "" || $("tbSHOWNAME").value == "") {
alert("联系人的姓名、电话、传真、手机都不允许为空!");
return;
}
msgBox();
document.getElementById("btnEnter").click();
}
//是否为数字,且数值格式是否正确
function IsNumFormat(val) {
var re = /^[-\+]?\d+(\.\d+)?$/;
if (!re.test(val)) {
return false;
}
else {
if (val.toString().indexOf(".") > 0) {
val.toString().replace("-", "");
val.toString().replace("+", "");
if (val.toString().substr(0, 1) == "0" && val.toString().substr(0, 2) != "0.") {
return false;
}
}
else {
var re1 = /^[-\+]+[1-9]+[0-9]*]*$/;
if (!re1.test(val)) {
re1 = /^[1-9]+[0-9]*]*$/;
if (!re1.test(val)) {
return false;
}
}
}
return true;
}
}
//
function getIsNum(x) {
var str = x.value.trim();
if (str == "0") {
return;
}
else if (str == "") {
str = 0;
x.value = 0;
}
else {
var bl = IsNumFormat(str);
if (!bl) {
alert("数值格式错误!");
x.focus();
x.select();
}
}
}
function dialog()
{
this.width=450;
this.height=360;
this.title_height=20;
this.html='';
this.title='';
var self = this;
var bgObj,msgObj,titleObj;
this.close=function()
{
document.body.removeChild(document.getElementById("bgDiv"));
document.getElementById("msgDiv").removeChild(document.getElementById("msgTitle"));
document.body.removeChild(document.getElementById("msgDiv"));
}
this.show=function()
{
var msgw,msgh,bordercolor;
msgw=self.width;
msgh=self.height;
bordercolor="#336699";
titlecolor="#99CCFF";
var sWidth,sHeight;
sWidth=document.body.offsetWidth;
sHeight=screen.height;
bgObj=document.createElement("div");
bgObj.setAttribute('id','bgDiv');
bgObj.style.position="absolute";
bgObj.style.top="0";
bgObj.style.background="#777";
bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
bgObj.style.opacity="0.6";
bgObj.style.left="0";
bgObj.style.width=sWidth + "px";
bgObj.style.height=sHeight + "px";
bgObj.style.zIndex = "10000";
document.body.appendChild(bgObj);
msgObj=document.createElement("div")
msgObj.setAttribute("id","msgDiv");
msgObj.setAttribute("align","center");
msgObj.style.background="white";
msgObj.style.border="1px solid " + bordercolor;
msgObj.style.position = "absolute";
msgObj.style.left = "50%";
msgObj.style.top = "30%";
msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
msgObj.style.marginLeft = "-225px" ;
msgObj.style.marginTop = -75+document.documentElement.scrollTop+"px";
msgObj.style.width = msgw + "px";
msgObj.style.height =msgh + "px";
msgObj.style.textAlign = "center";
msgObj.style.lineHeight ="25px";
msgObj.style.zIndex = "10001";
titleObj=document.createElement("h4");
titleObj.setAttribute("id","msgTitle");
titleObj.setAttribute("align","center");
titleObj.style.margin="0";
titleObj.style.padding="3px";
titleObj.style.background=bordercolor;
titleObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
titleObj.style.opacity="0.75";
titleObj.style.border="1px solid " + bordercolor;
titleObj.style.height=self.title_height+"px";
titleObj.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif";
titleObj.style.color="white";
titleObj.style.cursor="pointer";
titleObj.innerHTML=self.title;
//titleObj.onclick=function(){self.close();}
document.body.appendChild(msgObj);
document.getElementById("msgDiv").appendChild(titleObj);
var txt=document.createElement("div");
txt.style.margin="1em 0"
txt.setAttribute("id","msgTxt");
txt.innerHTML=self.html;
document.getElementById("msgDiv").appendChild(txt);
}
}
function msgBox()
{
var dg=new dialog();
dg.html="程序正在提交,请稍等!";
//dg.html+="<input type=button onclick='new dialog().close();' value='确定'>";
dg.width=200;
dg.height=100;
dg.title="标题";
dg.show();
}
//回车键控制
document.onkeypress=function()
{
if(event.keyCode==13)
{
if(event.srcElement.tagName== 'TEXTAREA')
{
return true;
}
//window.event.keyCode=9;
return false;
}
}
</script>
<!--背景条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
.style1
{
width: 120px;
font-size:12px;
}
</style>
</head>
<body style="background-color: #ECF2FF;">
<form id="form1" runat="server" style="background-color: #ECF2FF;">
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn-img">
<asp:ImageButton ID="ibAdd" runat="server" onclick="btnAdd_Click" ToolTip="添加" ImageUrl="~/images/icons/btnAdd.gif" CssClass="btnimg"/>
</div>
<div class="xbtn-img">
<div class="btnimg"><img id="ibEnter" runat=server src="../images/icons/save.gif" style="width:16px;" title="保存" onclick="setEnter();"/></div>
</div>
<div class="xbtn-img">
<asp:ImageButton ID="ibDel" runat="server" onclick="btnDel_Click" ToolTip="删除" ImageUrl="~/images/icons/remove.gif" OnClientClick="return confirm('确定删除吗?')" CssClass="btnimg"/>
</div>
</div>
<div style="float:left;">
<!-- 选项卡开始 -->
<div class="nTab">
<!-- 内容开始 -->
<div class="TabContent" style="background-color: #ECF2FF;">
<table>
<tr>
<td></td>
<td colspan=2 style="font-weight: bold" class="cssfont">联系人基本信息</td>
<td></td>
<td colspan=2>
<asp:CheckBox ID="cbISSTOP" runat="server" Text="该联系人停止使用" CssClass="cssfont"/>
</td>
<td></td>
</tr>
<tr>
<td colspan=7 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td></td>
<td class="style1"><span class="star">*</span>姓名</td>
<td>
<asp:TextBox ID="tbSHOWNAME" runat="server" CssClass="txtTab" Width=190px></asp:TextBox>
</td>
<td></td>
<td class="style1">职务</td>
<td>
<asp:TextBox ID="tbJOB" runat="server" CssClass="txtTab" MaxLength="50" Width=190px></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">性别</td>
<td>
<asp:RadioButtonList ID="rblSEX" runat="server" Width=100px CssClass="txtTab"
RepeatDirection="Horizontal" BorderStyle="None">
<asp:ListItem Selected="True">男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:RadioButtonList>
</td>
<td></td>
<td class="style1">年龄</td>
<td>
<asp:TextBox ID="tbAGE" runat="server" CssClass="txtTab" MaxLength="3" Width=190px onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">婚姻状况</td>
<td>
<asp:DropDownList ID="ddlMARRY" runat="server" CssClass="txtTab" Width=194px Height=23px>
<asp:ListItem Selected="True">未婚</asp:ListItem>
<asp:ListItem>已婚</asp:ListItem>
<asp:ListItem>离婚</asp:ListItem>
</asp:DropDownList>
</td>
<td></td>
<td class="style1">子女</td>
<td>
<asp:TextBox ID="tbCHILDREN" runat="server" CssClass="txtTab" MaxLength="50" Width=190px></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">家庭地址</td>
<td>
<asp:TextBox ID="tbADDR" runat="server" CssClass="txtTab" MaxLength="100" Width=190px></asp:TextBox>
</td>
<td></td>
<td class="style1">电子邮件地址</td>
<td>
<asp:TextBox ID="tbEMAIL" runat="server" CssClass="txtTab" MaxLength="50" Width=190px></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1"><span class="star">*</span>联系电话</td>
<td>
<asp:TextBox ID="tbTEL1" runat="server" CssClass="txtTab7" MaxLength="7" Text="86" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" Width="50px"></asp:TextBox>-
<asp:TextBox ID="tbTEL2" runat="server" CssClass="txtTab7" MaxLength="4" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" Width="30px"></asp:TextBox>-
<asp:TextBox ID="tbTEL" runat="server" CssClass="txtTab7" MaxLength="39" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" Width=86px></asp:TextBox>
</td>
<td></td>
<td class="style1"><span class="star">*</span>传真</td>
<td>
<asp:TextBox ID="tbFAX1" runat="server" CssClass="txtTab7" MaxLength="7" Text="86" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" Width="50px"></asp:TextBox>-
<asp:TextBox ID="tbFAX2" runat="server" CssClass="txtTab7" MaxLength="4" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" Width="30px"></asp:TextBox>-
<asp:TextBox ID="tbFAX" runat="server" CssClass="txtTab7" MaxLength="39" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" Width=85px></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1"><span class="star">*</span>手机</td>
<td>
<asp:TextBox ID="tbMOBILE1" runat="server" CssClass="txtTab7" MaxLength="7" Text="86" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" Width="50px"></asp:TextBox>-
<asp:TextBox ID="tbMOBILE" runat="server" CssClass="txtTab7" MaxLength="50" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" Width="128px"></asp:TextBox>
</td>
<td></td>
<td class="style1">兴趣爱好</td>
<td>
<asp:TextBox ID="tbHOBBIES" runat="server" MaxLength="200" Width="190px" CssClass="txtTab"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1"><asp:CheckBox ID="cbBIRTHDAY" runat="server" Text="生日提醒" BorderStyle="None" /></td>
<td>
<asp:TextBox ID="tbBIRTHDAY" runat="server" onclick="WdatePicker()" MaxLength="10" Width="190px" CssClass="txtTab"></asp:TextBox>
</td>
<td></td>
<td class="style1">生日提醒天数</td>
<td>
<asp:TextBox ID="tbBIRTHDAYDAY" runat="server" CssClass="txtTab" MaxLength="3" Width=190px onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1"><asp:CheckBox ID="cbANNIVERSARY1" runat="server" Text="纪念日1提醒" BorderStyle="None"/></td>
<td>
<asp:TextBox ID="tbANNIVERSARY1" runat="server" onclick="WdatePicker()" MaxLength="10" Width="190px" CssClass="txtTab"></asp:TextBox>
</td>
<td></td>
<td class="style1"><asp:CheckBox ID="cbANNIVERSARY2" runat="server" Text="纪念日2提醒" BorderStyle="None" /></td>
<td>
<asp:TextBox ID="tbANNIVERSARY2" runat="server" onclick="WdatePicker()" MaxLength="10" Width="190px" CssClass="txtTab"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">纪念日1提醒天数</td>
<td>
<asp:TextBox ID="tbANNIVERSARYDAY1" runat="server" CssClass="txtTab" MaxLength="3" Width=190px onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
</td>
<td></td>
<td class="style1">纪念日2提醒天数</td>
<td>
<asp:TextBox ID="tbANNIVERSARYDAY2" runat="server" CssClass="txtTab" MaxLength="3" Width=190px onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">纪念日1提醒备注</td>
<td>
<asp:TextBox ID="tbAREMARK1" runat="server" MaxLength="200" Width="190px" CssClass="txtTab"></asp:TextBox>
</td>
<td></td>
<td class="style1">纪念日2提醒备注</td>
<td>
<asp:TextBox ID="tbAREMARK2" runat="server" MaxLength="200" Width="190px" CssClass="txtTab"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">备注</td>
<td colspan=4>
<asp:TextBox ID="tbREMARK" runat="server" CssClass="txtTab" MaxLength="200" Height=100px Width=580px TextMode="MultiLine"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
</table>
</div>
</div>
<!-- 选项卡结束 -->
</div>
<div style="background-color: #ECF2FF;">
<asp:ImageButton ID="btnEnter" runat="server" onclick="btnEnter_Click" ToolTip="保存" ImageUrl="~/images/icons/save.gif" CssClass="btnimg" style="display:none;" />
<input type="hidden" id="hdGid" runat="server"/>
<input type="hidden" id="hdUserID" runat="server"/>
<input type="hidden" id="hdEnabled" runat="server"/>
</div>
</form>
</body>
</html>