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

📄 customer_edit.jsp

📁 crm系统 有源码 及相关文档sql2005 数据库 客户反馈模块
💻 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="/WEB-INF/jb-common.tld" prefix="jb"%>
<script src="validate.js" type="text/javascript"></script>
<script src="icommon.js" type="text/javascript"></script>
<html:errors />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>编辑客户</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script type="text/javascript">
		function doDel(id){
			if ( window.confirm("确定删除?") ){
				window.location.href = "?o=doDel&id=" + id;
			}
		}
	</script>
</head>

<body class="main">
<html:form action="customer" method="post">
	<html:hidden property="o" value="doAdd" />
	<span class="page_title">编辑客户</span>
	<div class="button_bar">
	<button class="common_button" onclick="javascript:help();">帮助</button>
	<button class="common_button"
		onclick="window.location.href='linkman.do?o=toList&id=${customerForm.item.custNo }';">联系人</button>
	<button class="common_button"
		onclick="window.location.href='activity.do?o=toList&id=${customerForm.item.custNo }';">交往记录</button>
	<button class="common_button"
		onclick="window.location.href='order.do?o=toList&id=${customerForm.item.custNo }';">历史订单</button>
	<button class="common_button" onclick="javascript:history.go(-1);">返回</button>
	<button class="common_button" onclick="javascript:doSubmit('doEdit');">保存</button>
	</div>
	<table class="query_form_table" border="0" cellPadding="3"
		cellSpacing="0">
		<tr>
			<th>客户编号</th>
			<td><html:text property="item.custNo" readonly="true" /></td>
			<th>客户名称</th>
			<td><html:text property="item.custName" /><span class="red_star">*</span></td>
		</tr>
		<tr>
			<th>地区</th>
			<td>
				<html:select property="item.custRegion">
					<html:option value="">未指定</html:option>
					<html:optionsCollection name="DICTS_OPTIONS_地区" label="dictItem" value="dictValue" />
				</html:select><span class="red_star">*</span>
			</td>
			<th>客户经理</th>
			<td>
				<html:select property="item.custManagerId" onchange="setLabel(this,'item.custManagerName');">
					<html:option value="">未指定</html:option>
					<html:optionsCollection name="USERS_OPTIONS" label="usrName" value="usrId" />
				</html:select>					
				<html:hidden property="item.custManagerName" /><span class="red_star">*</span>
			</td>
		</tr>
		<tr>
			<th>客户等级</th>
			<td>
				<html:select property="item.custLevel" onchange="setLabel(this,'item.custLevelLabel');">
					<html:option value="">未指定</html:option>
					<html:optionsCollection name="DICTS_OPTIONS_客户等级" label="dictItem"
						value="dictValue" />
				</html:select><span class="red_star">*</span>
				<html:hidden property="item.custLevelLabel" /></td>
			<th>客户状态</th>
			<td><bean:define id="status" name="customerForm" property="item.custStatus" type="java.lang.String" /><%
					switch(Integer.parseInt(status.trim())){
						case 1:out.print("正常");break;
						case 2:out.print("流失");break;
						case 3:out.print("删除");break;
						default:break;
					}
				%><html:hidden property="item.custStatus" /> &nbsp;
			</td>
		</tr>
		<tr>
			<th>满意度</th>
			<td>
				<html:select property="item.custSatisfy">
					<html:option value="">未指定</html:option>
					<html:option value="5">☆☆☆☆☆</html:option>
					<html:option value="4">☆☆☆☆</html:option>
					<html:option value="3">☆☆☆</html:option>
					<html:option value="2">☆☆</html:option>
					<html:option value="1">☆</html:option>
				</html:select><span class="red_star">*</span>
			</td>
			<th>信用度</th>
			<td>
				<html:select property="item.custCredit">
					<html:option value="">未指定</html:option>
					<html:option value="5">☆☆☆☆☆</html:option>
					<html:option value="4">☆☆☆☆</html:option>
					<html:option value="3">☆☆☆</html:option>
					<html:option value="2">☆☆</html:option>
					<html:option value="1">☆</html:option>
				</html:select><span class="red_star">*</span></td>
		</tr>
		</table>
		<br />
		<table class="query_form_table" border="0" cellPadding="3"
		cellSpacing="0">
		<tr>			
			<th>地址</th>
			<td><html:text property="item.custAddr" /><span class="red_star">*</span></td>
			<th>邮政编码</th>
			<td><html:text property="item.custZip" /><span class="red_star">*</span></td>
		</tr>
		<tr>			
			<th>电话</th>
			<td><html:text property="item.custTel" /><span class="red_star">*</span></td>
			<th>传真</th>
			<td><html:text property="item.custFax" /><span class="red_star">*</span></td>
		</tr>
		<tr>		
			<th>网址</th>
			<td><html:text property="item.custWebsite" /><span class="red_star">*</span></td>
			<th>&nbsp;</th>
			<td>&nbsp;</td>
		</tr>
		</table>
		<br />
		<table class="query_form_table" border="0" cellPadding="3"
		cellSpacing="0">
		<tr>
			<th>营业执照注册号</th>
			<td><html:text property="item.custLicenceNo" /></td>
			<th>法人</th>
			<td><html:text property="item.custChieftain" /><span class="red_star">*</span></td>
		</tr>
		<tr>
			<th>注册资金(万元)</th>
			<td><html:text property="item.custBankroll" /></td>
			<th>年营业额</th>
			<td><html:text property="item.custTurnover" /></td>
		</tr>
		<tr>
			<th>开户银行</th>
			<td><html:text property="item.custBank" /><span class="red_star">*</span></td>
			<th>银行账号</th>
			<td><html:text property="item.custBankAccount" /><span class="red_star">*</span></td>
		</tr>
		<tr>
			<th>地税登记号</th>
			<td><html:text property="item.custLocalTaxNo" /></td>
			<th>国税登记号</th>
			<td><html:text property="item.custNationalTaxNo" /></td>
		</tr>
	</table>

	<script type="text/javascript">
		function setLabel(oSrc,tTargetLabelName)
		{			
			var oLabelCtl = document.forms[0].elements[tTargetLabelName];
			oLabelCtl.value = oSrc.options[oSrc.selectedIndex].text;
		}
		build_validate("item.custNo","客户编号,KHYYMMDDNNN不能为空","Limit","1","17");
		build_validate("item.custName","客户名称不能为空","Limit","1","100");
		build_validate("item.custRegion","地区不能为空","Limit","1","50");
		build_validate("item.custManagerId","客户经理不能为空","Limit","1","8");
		//build_validate("item.custManagerName","客户经理姓名不能为空","Limit","1","50");
		build_validate("item.custLevel","客户等级不能为空","Limit","1","40");
		//build_validate("item.custLevelLabel","等级名称不能为空","Limit","1","50");
		build_validate("item.custSatisfy","满意度不能为空","Limit","1","4");
		build_validate("item.custCredit","信用度不能为空","Limit","1","4");
		build_validate("item.custAddr","地址不能为空","Limit","1","300");
		build_validate("item.custZip","邮政编码不能为空","Limit","1","10");
		build_validate("item.custTel","电话不能为空","Limit","1","50");
		build_validate("item.custFax","传真不能为空","Limit","1","50");
		build_validate("item.custWebsite","网址不能为空","Limit","1","50");
		//build_validate("item.custLicenceNo","营业执照注册号不能为空","Limit","1","50");
		build_validate("item.custChieftain","法人不能为空","Limit","1","50");
		//build_validate("item.custBankroll","注册资金不能为空","Limit","1","8");
		//build_validate("item.custTurnover","营业额不能为空","Limit","1","8");
		build_validate("item.custBank","开户银行不能为空","Limit","1","200");
		build_validate("item.custBankAccount","银行账号不能为空","Limit","1","50");
		//build_validate("item.custLocalTaxNo","地税登记号不能为空","Limit","1","50");
		//build_validate("item.custNationalTaxNo","国税登记号不能为空","Limit","1","50");
		//build_validate("item.custStatus","客户状态:1--正常;2--流失;3--删除。不能为空","Limit","1","1");
		</script>
</html:form>
</body>
</html:html>

⌨️ 快捷键说明

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