📄 edit.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ 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://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<html:html locale="true">
<html:base/> <!-- 这行不能删除。否则图片显示不出来 -->
<head>
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<script src="../../script/common.js"></script>
</head>
<body class="main">
<script type="text/javascript">
function linkman(val)
{
with(document.cstForm)
{
document.cstForm.flag.value=val;
document.cstForm.submit();
}
}
function save(val)
{
with(document.cstForm)
{
document.cstForm.flag.value=val;
document.cstForm.submit();
}
}
function back(val)
{
with(document.cstForm)
{
document.cstForm.flag.value=val;
document.cstForm.submit();
}
}
</script>
<html:form action="/cst" method="post">
<html:hidden property="flag" value="doEdit"/>
<div class="page_title"><br>户信息管理 > 客户信息</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">帮助</button>
<button class="common_button" onclick="linkman('linkman');">联系人</button>
<button class="common_button" onclick="to('activities.html');">交往记录</button>
<button class="common_button" onclick="to('orders.html');">历史订单</button>
<button class="common_button" onclick="back('list');">返回</button>
<button class="common_button" onclick="save('doEdit');">保存</button>
</div>
<table class="query_form_table">
<tr>
<th>客户编号</th>
<html:hidden property="entity.custNo" value="${ce.custNo}"/>
<td>${ce.custNo}</td>
<th>名称</th>
<td><html:text property="entity.custName" value="${ce.custName}"/><span class="red_star">*</span></td>
</tr>
<tr>
<th>地区</th>
<td>
<html:select property="entity.custRegion">
<html:optionsCollection name="diqu" label="dictItem" value="dictValue"/>
</html:select>
<span class="red_star">*</span></td>
<th>客户经理</th>
<td>
<html:select property="entity.custManagerId">
<html:optionsCollection name="user" label="usrName" value="usrId"/>
</html:select>
<span class="red_star">*</span>
</td>
</tr>
<tr>
<th>客户等级</th>
<td>
<html:select property="entity.custLevelLabel" >
<html:optionsCollection name="grade" label="dictItem" value="dictItem"/>
</html:select>
<span class="red_star">*</span>
</td>
<th> </th>
<td> </td>
</tr>
<tr>
<th>客户满意度</th>
<td>
<select name="entity.custSatisfy">
<option value="">未指定</option>
<option value="5">☆☆☆☆☆</option>
<option value="4">☆☆☆☆</option>
<option value="3" selected="selected">☆☆☆</option>
<option value="2">☆☆</option>
<option value="1">☆</option></select><span class="red_star">*</span>
</td>
<th>客户信用度</th>
<td>
<select name="entity.custCredit">
<option value="">未指定</option>
<option value="5">☆☆☆☆☆</option>
<option value="4">☆☆☆☆</option>
<option value="3" selected="selected">☆☆☆</option>
<option value="2">☆☆</option>
<option value="1">☆</option></select><span class="red_star">*</span>
</td>
</tr>
</table>
<br />
<table class="query_form_table" id="table1">
<tr>
<th>地址</th>
<td><html:text property="entity.custAddr" value="${ce.custAddr}" /><span class="red_star">*</span>
</td>
<th>邮政编码</th>
<td><html:text property="entity.custZip" value="${ce.custZip}" size="20" /><span class="red_star">*</span></td>
</tr>
<tr>
<th>电话</th>
<td>
<html:text property="entity.custTel" value="${ce.custTel}" size="20" /><span class="red_star">*</span></td>
<th>传真</th>
<td>
<html:text property="entity.custFax" value="${ce.custFax}" size="20" /><span class="red_star">*</span>
</td>
</tr>
<tr>
<th>网址</th>
<td>
<html:text property="entity.custWebsite" value="${ce.custWebsite}" 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><html:text property="entity.custLicenceNo" value="${ce.custLicenceNo}" size="20" /></td>
<th>法人</th>
<td><html:text property="entity.custChieftain" value="${ce.custChieftain}" size="20" /><span class="red_star">*</span>
</td>
</tr>
<tr>
<th>注册资金(万元)</th>
<td>
<html:text property="entity.custBankroll" value="${ce.custBankroll}" size="20" /> </td>
<th>年营业额</th>
<td>
<html:text property="entity.custTurnover" value="${ce.custTurnover}" size="20" />
</td>
</tr>
<tr>
<th>开户银行</th>
<td>
<html:text property="entity.custBank" value="${ce.custBank}" size="20" /><span class="red_star">*</span>
</td>
<th>银行帐号</th>
<td><html:text property="entity.custBankAccount" value="${ce.custBankAccount}" size="20" /><span class="red_star">*</span></td>
</tr>
<tr>
<th>地税登记号</th>
<td>
<html:text property="entity.custLocalTaxNo" value="${ce.custLocalTaxNo}" size="20" /></td>
<th>国税登记号</th>
<td>
<html:text property="entity.custNationalTaxNo" value="${ce.custNationalTaxNo}" size="20" /></td>
</tr>
</table>
<script>
function setLabel(oSrc,tTargetLabelName)
{
var oLabelCtl = document.forms[0].elements[tTargetLabelName];
oLabelCtl.value = oSrc.options[oSrc.selectedIndex].text;
}
</script>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -