📄 edit.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="html/css/style.css" rel="stylesheet" type="text/css">
<script src="html/script/common.js"></script>
<script type="text/javascript">
function op(){
var num1=document.forms[0].elements['client.clientName'].value;
var num2=document.forms[0].elements['client.clientArea'].value;
var num3=document.forms[0].elements['client.clientAddress'].value;
var num4=document.forms[0].elements['client.clientZip'].value;
var num5=document.forms[0].elements['client.clientPhon'].value;
var num6=document.forms[0].elements['client.clientFax'].value;
var num7=document.forms[0].elements['client.clientNetworkAddress'].value;
var num8=document.forms[0].elements['client.clientCorporation'].value;
var num9=document.forms[0].elements['client.clientOpenBank'].value;
var num10=document.forms[0].elements['client.clientBankNumber'].value;
var num11=document.forms[0].elements['client.clientBankNumber'].value;
if((num1==null || num1=="") || num2=="0" || (num3==null || num3=="")
|| (num8==null || num8=="") || (num9==null || num9=="") || (num10==null || num10=="")
|| (num4==null || num4=="") || (num5==null || num6=="") || (num6==null || num6=="")
|| (num7==null || num7=="") || num11=="0"){
alert('请把带*号的填写完整!');
return false;
}else{
alert("保存成功!");
}
}
</script>
</head>
<body>
<form
action="client.do?operate=doEdit&id=${client.clientState.clientStateId}"
method="post" onsubmit="return op();">
<div class="page_title">
客户信息管理 > 客户信息
</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">
帮助
</button>
<button class="common_button"
onclick="to('linkman.do?operate=toList&id=${client.clientId }');">
联系人
</button>
<button class="common_button"
onclick="to('cin.do?operate=toList&id=${client.clientId }');">
交往记录
</button>
<button class="common_button"
onclick="to('order.do?operate=toList&cid=${client.clientId }');">
历史订单
</button>
<button class="common_button" onclick="back();">
返回
</button>
<input type="submit" class="common_button" value="保存" />
</div>
<input type="hidden" name="client.clientId"
value="${client.clientId}">
<input type="hidden" name="client.clientNum"
value="${client.clientNum}">
<table class="query_form_table">
<tr>
<th>
客户编号
</th>
<td>
${client.clientNum}
</td>
<th>
名称
</th>
<td>
<input name="client.clientName" value="${client.clientName }" />
<span class="red_star">*</span>
</td>
</tr>
<tr>
<th>
地区
</th>
<td>
<select name="client.clientArea">
<option value="0">
请选择...
</option>
<c:forEach var="list" items="${areas}">
<c:if test="${list==client.clientArea}">
<option value="${list}" selected="selected">
${list}
</option>
</c:if>
<c:if test="${list!=client.clientArea}">
<option value="${list}">
${list}
</option>
</c:if>
</c:forEach>
</select>
<span class="red_star">*</span>
</td>
<th>
客户经理
</th>
<td>
<select name="client.clientEmployeeName">
<option value="0">
请选择...
</option>
<c:forEach var="list" items="${empList}">
<c:if test="${list.employeeName==client.clientEmployeeName}">
<option value="${list.employeeName}" selected="selected">
${client.clientEmployeeName}
</option>
</c:if>
<c:if test="${list.employeeName!=client.clientEmployeeName}">
<option value="${list.employeeName}">
${list.employeeName}
</option>
</c:if>
</c:forEach>
</select>
<span class="red_star">*</span>
</td>
</tr>
<tr>
<th>
客户等级
</th>
<td>
<select name="client.clientGrade">
<option>
请选择...
</option>
<c:forEach var="grade" items="${grades}">
<c:if test="${grade==client.clientGrade}">
<option value="${grade}" selected>
${grade}
</option>
</c:if>
<c:if test="${grade!=client.clientGrade}">
<option value="${grade}">
${grade}
</option>
</c:if>
</c:forEach>
</select>
<span class="red_star">*</span>
</td>
<th>
</th>
<td>
</td>
</tr>
<tr>
<th>
客户满意度
</th>
<td>
<select name="client.clientSatisfaction">
<c:forEach items="${sfList}" var="sf">
<c:if test="${sf==client.clientSatisfaction}">
<option value="${sf}" selected="selected">
<c:forEach begin="1" end="${sf}">
☆
</c:forEach>
</option>
</c:if>
<c:if test="${sf!=client.clientSatisfaction}">
<option value="${sf}">
<c:forEach begin="1" end="${sf}">
☆
</c:forEach>
</option>
</c:if>
</c:forEach>
</select>
<span class="red_star">*</span>
</td>
<th>
客户信用度
</th>
<td>
<select name="client.clientCredit">
<c:forEach items="${creditList}" var="c">
<c:if test="${c==client.clientCredit}">
<option value="${c}" selected="selected">
<c:forEach begin="1" end="${c}">
☆
</c:forEach>
</option>
</c:if>
<c:if test="${c!=client.clientCredit}">
<option value="${c}">
<c:forEach begin="1" end="${c}">
☆
</c:forEach>
</option>
</c:if>
</c:forEach>
</select>
<span class="red_star">*</span>
</td>
</tr>
</table>
<br />
<table class="query_form_table" id="table1">
<tr>
<th>
地址
</th>
<td>
<input name="client.clientAddress" value="${client.clientAddress}" />
<span class="red_star">*</span>
</td>
<th>
邮政编码
</th>
<td>
<input name="client.clientZip" value="${client.clientZip}"
size="20" />
<span class="red_star">*</span>
</td>
</tr>
<tr>
<th>
电话
</th>
<td>
<input name="client.clientPhon" value="${client.clientPhon}"
size="20" />
<span class="red_star">*</span>
</td>
<th>
传真
</th>
<td>
<input name="client.clientFax" value="${client.clientFax}"
size="20" />
<span class="red_star">*</span>
</td>
</tr>
<tr>
<th>
网址
</th>
<td>
<input name="client.clientNetworkAddress"
value="${client.clientNetworkAddress}" size="20" />
<span class="red_star">*</span>
</td>
<th>
</th>
<td>
</td>
</tr>
</table>
<br />
<table class="query_form_table" id="table2">
<tr>
<th>
营业执照注册号
</th>
<td>
<input name="client.clientLoginNumber"
value="${client.clientLoginNumber}" size="20" />
</td>
<th>
法人
</th>
<td>
<input name="client.clientCorporation"
value="${client.clientCorporation}" size="20" />
<span class="red_star">*</span>
</td>
</tr>
<tr>
<th>
注册资金(万元)
</th>
<td>
<input name="client.clientLoginBankroll"
value="${client.clientLoginBankroll}" size="20" />
</td>
<th>
年营业额
</th>
<td>
<input name="client.clientYearBankroll"
value="${client.clientYearBankroll}" size="20" />
</td>
</tr>
<tr>
<th>
开户银行
</th>
<td>
<input name="client.clientOpenBank"
value="${client.clientOpenBank}" size="20" />
<span class="red_star">*</span>
</td>
<th>
银行帐号
</th>
<td>
<input value="${client.clientBankNumber}"
name="client.clientBankNumber" size="20" />
<span class="red_star">*</span>
</td>
</tr>
<tr>
<th>
地税登记号
</th>
<td>
<input value="${client.clientPlaceEnrolNumber}"
name="client.clientPlaceEnrolNumber" size="20" />
</td>
<th>
国税登记号
</th>
<td>
<input value="${client.clientCountryEnrolNumber}"
name="client.clientCountryEnrolNumber" size="20" />
</td>
</tr>
</table>
</form>
<p>
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -