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

📄 edit.jsp

📁 通过这个系统完成对客户基本信息、联系人信息、交往信息、客户服务信息的充分共享和规范化管理;希望通过对销售机会、客户开发过程的追踪和记录
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ include file="../../include.inc"%>



<html>
	<head>
		<title>jb-aptech毕业设计项目</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<link href="<%=request.getContextPath()%>/css/style.css"
			rel="stylesheet" type="text/css">
		<script src="<%=request.getContextPath()%>/js/customer.js"></script>
		<script type="text/javascript">

	function check(){
		var custName = document.getElementById("custName").value;
		var custRegion = document.getElementById("custRegion").value;
		var custManager = document.getElementById("custManager").value;
		var custLevel = document.getElementById("custLevel").value;
		var custSatisfy = document.getElementById("custSatisfy").value;
		var custCredit = document.getElementById("custCredit").value;
		var custAddress = document.getElementById("custAddress").value;
		var custZip = document.getElementById("custZip").value;
		var custTel = document.getElementById("custTel").value;
		var custFax = document.getElementById("custFax").value;
		var custWebsite = document.getElementById("custWebsite").value;
		var custLicenceNo = document.getElementById("custLicenceNo").value;
		var custChieftain = document.getElementById("custChieftain").value;
		var custBankroll = document.getElementById("custBankroll").value;
		var custTurnover = document.getElementById("custTurnover").value;
		var custBank = document.getElementById("custBank").value;
		var custBankAccount = document.getElementById("custBankAccount").value;
		var custLocalTaxNo = document.getElementById("custLocalTaxNo").value;
		var custNationalTaxNo = document.getElementById("custNationalTaxNo").value;	
		
	  var pattern = /[\S]{1,}/;
		 
		 if(!pattern.test(custName)){
		    alert("名称格式错误");
			return false;
		}	
			
			return true;
	
		
	
	}

</script>
	</head>
	<body>
		<html:form action="/customer/list.do?op=modify"
			onsubmit="return check();">

			<div class="page_title">
				&nbsp;&nbsp;&nbsp; 客户信息管理 &gt; 客户信息
			</div>
			<div class="button_bar">
				<button class="common_button" onclick="help('');">
					帮助
				</button>
				<button class="common_button"
					onclick="to('<%=request.getContextPath()%>/customer/linkman.do?custNo=${requestScope.custList[0].custNo}&op=show')">
					联系人
				</button>
				<button class="common_button"
					onclick="to('<%=request.getContextPath()%>/customer/activities.do?custNo=${requestScope.custList[0].custNo }&op=show')">
					交往记录
				</button>
				<button class="common_button"
					onclick="to('<%=request.getContextPath()%>/customer/orders.do?custNo=${requestScope.custList[0].custNo }&op=show')">
					历史订单
				</button>

				<button class="common_button" onclick="back()">
					返回
				</button>
				<html:submit value="保存" styleClass="common_button"></html:submit>
			</div>

			<table class="query_form_table">
				<tr>
					<th>
						客户编号
					</th>
					<td>
						<html:text property="cust.custNo"
							value="${requestScope.custList[0].custNo}" readonly="true"></html:text>

					</td>
					<th>
						名称
					</th>
					<td>
						<html:text property="cust.custName"
							value="${requestScope.custList[0].custName }" styleId="custName"></html:text>

						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<th>
						地区
					</th>
					<td>
						<select name="cust.custRegion" styleId="custRegion">
							<c:if test="${not empty requestScope.region}">
								<c:forEach items="${requestScope.region}" var="all">

									<c:choose>
										<c:when test="${all eq requestScope.custList[0].custRegion}">
											<option value="${all }" selected="selected">
												${all }
											</option>
										</c:when>
										<c:otherwise>
											<option value="${all }">
												${all }
											</option>
										</c:otherwise>
									</c:choose>
								</c:forEach>
							</c:if>
						</select>
						<span class="red_star">*</span>
					</td>
					<th>
						客户经理
					</th>
					<td>
						<select name="cust.custManagerName" styleId="custManager">
							<c:if test="${not empty requestScope.custManager}">
								<c:forEach items="${requestScope.custManager}" var="all">

									<c:choose>
										<c:when
											test="${all eq requestScope.custList[0].custManagerName}">
											<option value="${all }" selected="selected">
												${all }
											</option>
										</c:when>
										<c:otherwise>
											<option value="${all }">
												${all }
											</option>
										</c:otherwise>
									</c:choose>
								</c:forEach>
							</c:if>
						</select>


						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<th>
						客户等级
					</th>
					<td>
						<select name="cust.custLevelLabel" styleId="custLevel">
							<c:if test="${not empty requestScope.custLevelLabel}">
								<c:forEach items="${requestScope.custLevelLabel}" var="all">
									<c:choose>
										<c:when
											test="${all eq requestScope.custList[0].custLevelLabel}">
											<option value="${all }" selected="selected">
												${all }
											</option>
										</c:when>
										<c:otherwise>
											<option value="${all }">
												${all }
											</option>
										</c:otherwise>
									</c:choose>
								</c:forEach>
							</c:if>
						</select>
						<span class="red_star">*</span>
					</td>
					<th>
					</th>
					<td>
					</td>
				</tr>
				<tr>
					<th>
						客户满意度
					</th>
					<td>
						<select name="cust.custSatisfy" styleId="custSatisfy">
							<option value="0">
								未指定
							</option>


							<c:forEach begin="1" end="5" var="satisfy">

								<c:choose>

									<c:when
										test="${satisfy eq requestScope.custList[0].custSatisfy}">

										<option value="${satisfy}" selected="selected">
											<c:forEach begin="1" end="${satisfy}">
											</c:forEach>
										</option>
									</c:when>

									<c:otherwise>
										<option value="${satisfy}">
											<c:forEach begin="1" end="${satisfy}">
											</c:forEach>
										</option>
									</c:otherwise>
								</c:choose>
							</c:forEach>

						</select>
						<span class="red_star">*</span>
					</td>
					<th>
						客户信用度
					</th>
					<td>
						<select name="cust.custCredit" styleId="custCredit">
							<option value="0">
								未指定
							</option>

							<c:forEach begin="1" end="5" var="credit">

								<c:choose>

									<c:when test="${credit eq requestScope.custList[0].custCredit}">

										<option value="${credit}" selected="selected">
											<c:forEach begin="1" end="${credit}">
												</c:forEach>
										</option>
									</c:when>

									<c:otherwise>
										<option value="${credit}">
											<c:forEach begin="1" end="${credit}">
												</c:forEach>
										</option>
									</c:otherwise>
								</c:choose>
							</c:forEach>



						</select>
						<span class="red_star">*</span>
					</td>
				</tr>
			</table>
			<br />
			<table class="query_form_table" id="table1">
				<tr>
					<th>
						地址
					</th>
					<td>
						<html:text property="cust.custAddr"
							value="${requestScope.custList[0].custAddr }" styleId="custAddress"></html:text>

						<span class="red_star">*</span>
					</td>
					<th>
						邮政编码
					</th>
					<td>
						<html:text property="cust.custZip"
							value="${requestScope.custList[0].custZip }" styleId="custZip"></html:text>

						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<th>
						电话
					</th>
					<td>
						<html:text property="cust.custTel"
							value="${requestScope.custList[0].custTel }" styleId="custTel"></html:text>

						<span class="red_star">*</span>
					</td>
					<th>
						传真
					</th>
					<td>
						<html:text property="cust.custFax"
							value="${requestScope.custList[0].custFax }" styleId="custFax"></html:text>

						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<th>
						网址
					</th>
					<td>
						<html:text property="cust.custWebsite"
							value="${requestScope.custList[0].custWebsite }" styleId="custWebsite"></html:text>

						<span class="red_star">*</span>
					</td>
					<th>
					</th>
					<td>

					</td>
				</tr>
			</table>
			<br />
			<table class="query_form_table" id="table2">
				<tr>
					<th>
						营业执照注册号
					</th>
					<td>
						<html:text property="cust.custLicenceNo"
							value="${requestScope.custList[0].custLicenceNo }" styleId="custLicenceNo"></html:text>

					</td>
					<th>
						法人
					</th>
					<td>
						<html:text property="cust.custChieftain"
							value="${requestScope.custList[0].custChieftain }" styleId="custChieftain"></html:text>

						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<th>
						注册资金(万元)
					</th>
					<td>
						<html:text property="cust.custBankroll"
							value="${requestScope.custList[0].custBankroll }" styleId="custBankroll"></html:text>

					</td>
					<th>
						年营业额
					</th>
					<td>

						<html:text property="cust.custTurnover"
							value="${requestScope.custList[0].custTurnover }" styleId="custTurnover"></html:text>
					</td>
				</tr>
				<tr>
					<th>
						开户银行
					</th>
					<td>
						<html:text property="cust.custBank"
							value="${requestScope.custList[0].custBank }" styleId="custBank"></html:text>

						<span class="red_star">*</span>
					</td>
					<th>
						银行帐号
					</th>
					<td>
						<html:text property="cust.custBankAccount"
							value="${requestScope.custList[0].custBankAccount }" styleId="custBankAccount"></html:text>

						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<th>
						地税登记号
					</th>
					<td>
						<html:text property="cust.custLocalTaxNo"
							value="${requestScope.custList[0].custLocalTaxNo }" styleId="custLocalTaxNo"></html:text>

					</td>
					<th>
						国税登记号
					</th>
					<td>
						<html:text property="cust.custNationalTaxNo"
							value="${requestScope.custList[0].custNationalTaxNo }" styleId="custNationalTaxNo"></html:text>

					</td>
				</tr>
			</table>
		</html:form>
	</body>
</html>

⌨️ 快捷键说明

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