📄 edit.jsp
字号:
<%@ page pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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() %>/script/common.js"></script>
<script type="text/javascript">
function move()
{
document.forms[0].action = "/CrmPrj/customer.do?op=Modify";
document.forms[0].submit();
}
function level()
{
var level = document.forms[0].customer.custLevel.value;
alert(level);
}
function changeItem()
{
//document.forms[0].managerName.value = "";
var v = document.forms[0].select.value;
alert(v);
}
</script>
</head>
<body>
<div class="page_title">客户信息管理 > 客户信息</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">帮助</button>
<button class="common_button" onclick="to('customer.do?op=GetLinkManById&id=${cstCustomer.custNo}');">联系人</button>
<button class="common_button" onclick="to('customer.do?op=GetActivityById&id=${cstCustomer.custNo}');">交往记录</button>
<button class="common_button" onclick="to('orders.do?op=GetOrderByCustomerName&id=${cstCustomer.custNo}">历史订单</button>
<button class="common_button" onclick="back();">返回</button>
<button class="common_button" onclick="javascript:move()">保存</button>
</div>
<html:form action="/customer">
<input type="hidden" name="level" />
<input type="hidden" name="manager" />
<table class="query_form_table">
<tr>
<th>客户编号</th>
<td>${cstCustomer.custNo}</td>
<th>名称</th>
<td><html:text property="customer.custName" value="${cstCustomer.custName}"></html:text><span class="red_star">*</span></td>
</tr>
<tr>
<th>地区</th>
<td>
<html:select property="customer.custRegion" value="${cstCustomer.custRegion}" >
<html:option value="">请选择...</html:option>
<html:optionsCollection name="areaList" label="dictItem" value="dictValue"/>
</html:select>
<span class="red_star">*</span></td>
<th>客户经理</th>
<td>
<html:select value="${cstCustomer.custManagerId}" property="customer.custManagerId" name="select" onchange="changeItem()">
<html:option value="1">请选择...</html:option>
<html:optionsCollection name="userList" label="usrName" value="usrId"/>
</html:select><span class="red_star">*</span>
</td>
</tr>
<tr>
<th>客户等级</th>
<td>
<html:select property="customer.custLevel" value="${cstCustomer.custLevel}" onchange="level()">
<html:option value="0">请选择...</html:option>
<html:optionsCollection name="rateList" label="dictItem" value="dictValue"/>
</html:select><span class="red_star">*</span>
</td>
<th> </th>
<td> </td>
</tr>
<tr>
<th>客户满意度</th>
<td>
<html:select name="selCredit" property="customer.custSatisfy" value="${cstCustomer.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 name="selCredit" property="customer.custCredit" value="${cstCustomer.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" id="table1">
<tr>
<th>地址</th>
<td><html:text property="customer.custAddr" value="${cstCustomer.custAddr}"></html:text><span class="red_star">*</span>
</td>
<th>邮政编码</th>
<td><html:text property="customer.custZip" value="${cstCustomer.custZip}"></html:text> <span class="red_star">*</span></td>
</tr>
<tr>
<th>电话</th>
<td>
<html:text property="customer.custTel" value="${cstCustomer.custTel}"></html:text> <span class="red_star">*</span></td>
<th>传真</th>
<td>
<html:text property="customer.custFax" value="${cstCustomer.custAddr}"></html:text> <span class="red_star">*</span>
</td>
</tr>
<tr>
<th>网址</th>
<td>
<html:text property="customer.custWebsite" value="${cstCustomer.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="customer.custLicenceNo" value="${cstCustomer.custLicenceNo}"></html:text> </td>
<th>法人</th>
<td><html:text property="customer.custChieftain" value="${cstCustomer.custChieftain}"></html:text> <span class="red_star">*</span>
</td>
</tr>
<tr>
<th>注册资金(万元)</th>
<td>
<html:text property="customer.custBankroll" value="${cstCustomer.custBankroll}"></html:text> </td>
<th>年营业额</th>
<td>
<html:text property="customer.custTurnover" value="${cstCustomer.custTurnover}"></html:text>
</td>
</tr>
<tr>
<th>开户银行</th>
<td>
<html:text property="customer.custBank" value="${cstCustomer.custBank}"></html:text> <span class="red_star">*</span>
</td>
<th>银行帐号</th>
<td><html:text property="customer.custBankAccount" value="${cstCustomer.custBankAccount}"></html:text> <span class="red_star">*</span></td>
</tr>
<tr>
<th>地税登记号</th>
<td>
<html:text property="customer.custLocalTaxNo" value="${cstCustomer.custLocalTaxNo}"></html:text> </td>
<th>国税登记号</th>
<td><html:text property="customer.custNationalTaxNo" value="${cstCustomer.custNationalTaxNo}"></html:text> </td>
</tr>
</table>
</html:form>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -