⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addbargainclientinfo.jsp

📁 上一上传oa系统漏掉web-inf文件夹
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>发送成交客户报表</title>
	<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
body {
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
	color: #333333;
}
a:active {
	text-decoration: none;
	color: #333333;
}
-->
</style>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
<!--
.STYLE1 {
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
}
-->
</style>
	<script src="/oa/js/crm.js" language="JavaScript"></script>

	<script type="text/javascript">
function checkAdd()
{
	var checkMoney = /^[0-9]*[1-9][0-9]*$/;
	var bargainMoney = document.bargainClientInfoForm.bargainMoney.value;					

	if(document.bargainClientInfoForm.clientId.value == "")
	{
		alert("请输入客户编号!!");
		return false;
	}
	if(document.bargainClientInfoForm.clientName.value == "")
	{
		alert("请输入客户名称!!");
		return false;
	}
	if(document.bargainClientInfoForm.pactId.value == "")
	{
		alert("请输入合同编号!!");
		return false;
	}
	if(document.bargainClientInfoForm.bargainMoney.value == "")
	{
		alert("请输入成交金额!!");
		return false;
	}
	if(document.bargainClientInfoForm.bargainMoney.value != "")
	{
         if (!checkMoney.test(bargainMoney))
         {
            document.bargainClientInfoForm.bargainMoney.value = "";
           	alert("你输入的金额不符合要求!");
            document.bargainClientInfoForm.bargainMoney.focus();
             return false;
        	 }
	}
	if(document.bargainClientInfoForm.bargainMan.value == "")
	{
		alert("请输入成交人编号!!");
		return false;
	}
	if(document.bargainClientInfoForm.pactTime.value == "")
	{
		alert("请输入合同期限!!");
		return false;
	}
	return true;
}

function add()
{
	return function(){
			var a = request.responseText;
			if(a==0){
				alert("你输入的客户不存在,请查证后再输入!");
				var text1 = document.bargainClientInfoForm.clientId;
				text1.focus();
				text1.select();
			}
			if(a==1)
			{
				alert("你输入的客户名称与客户编号不匹配! ");
				
			}
			if(a == 2)
			{
				alert("客户验证通过! ");
			}
		}

}	

function chuli()
{
	var clientId = document.bargainClientInfoForm.clientId.value;
	var clientName = document.bargainClientInfoForm.clientName.value;
	var clientInfo = new Array(2);
	clientInfo[0] = clientId;
	clientInfo[1] = clientName;
	if(clientId != "" && clientName != "")
	{
		var url = "/oa/checkBargainClientInfo.do?clientInfo=" + clientInfo;
		
		var obj = new Object();
		obj.doMethod = add();
		var b = new MyAjax(url,obj,'GET',true);
		
		b.doAjax();
	}
}

</script>


<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>

<body>
	<html:form action="/addBargainClientInfo" method="post">
		<table width="722" border="0" cellpadding="0" cellspacing="1"
			bgcolor="#3868F8">
			<tr>
				<td width="720" height="25" bgcolor="#A4B5E3">
					<p class="STYLE1">
						&nbsp;发送成交客户信息
					</p>
				</td>
			</tr>
			<tr>
				<td height="139" valign="top" bgcolor="#FFFFFF"
					style="padding-bottom:5px; padding-top:5px;">
					<table width="700" border="0" align="center" cellpadding="0"
						cellspacing="1" bgcolor="#CCCCCC">
						<tr>
							<td width="80" height="22" bgcolor="#FFFFFF">
								<div align="center">
									客户编号
								</div>
							</td>
							<td width="320" bgcolor="#FFFFFF">
								&nbsp;
								<html:text property="clientId" onblur="return chuli();"></html:text>
							</td>
							<td width="80" bgcolor="#FFFFFF">
								<div align="center">
									客户名称
								</div>
							</td>
							<td width="215" bgcolor="#FFFFFF">
								&nbsp;
								<html:text property="clientName" onblur="return chuli();"></html:text>
							</td>
						</tr>
						<tr>
							<td height="22" bgcolor="#FFFFFF">
								<div align="center">
									<div align="center">
										合同编号
									</div>
								</div>
							</td>
							<td height="22" bgcolor="#FFFFFF">
								&nbsp;
								<html:text property="pactId"></html:text>
							</td>
							<td height="22" bgcolor="#FFFFFF">
								<div align="center">
									成交金额
								</div>
							</td>
							<td height="22" bgcolor="#FFFFFF">
								&nbsp;
								<html:text property="bargainMoney"></html:text>
							</td>
						</tr>
						<tr>
							<td height="22" bgcolor="#FFFFFF">
								<div align="center">
									成&nbsp;交&nbsp;人
								</div>
							</td>
							<td height="22" bgcolor="#FFFFFF">
								&nbsp;
								<html:text property="bargainMan"></html:text>

							</td>
							<td height="22" bgcolor="#FFFFFF">
								<div align="center">
									<div align="center">
										合同期限
									</div>
								</div>
							</td>
							<td height="22" bgcolor="#FFFFFF">
								&nbsp;
								<html:text property="pactTime"></html:text>
							</td>
						</tr>

						<tr>
							<td height="35" colspan="4" bgcolor="#FFFFFF">
								<div align="center">
									<input name="Submit2" type="submit" value="提 交"
										onclick="return checkAdd();" />
									&nbsp;
									<input name="Submit22" type="reset" value="重 填" />
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</html:form>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -