editoperatincontractletter.jsp
来自「一个关于tlms的一个小程序 看看能否帮助到别人」· JSP 代码 · 共 712 行 · 第 1/2 页
JSP
712 行
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp"%>
<script type="text/javascript" language="javascript">
function addOperatinContractLetter() {
var form = document.forms[0];
if (validateAddedOperatinContractLetterBean(form)) {
form.action = '<c:url value="/contractManage/operatinContractLetter/addOperatinContractLetter.do"/>';
form.submit();
}
}
function updateOperatinContractLetter() {
var form = document.forms[0];
if (validateUpdateOperatinContractLetterBean(form)) {
form.action = '<c:url value="/contractManage/operatinContractLetter/updateOperatinContractLetter.do"/>';
form.submit();
}
}
function searchOperatinContractLetter() {
var f = document.forms[0];
f.action = "<c:url value="/contractManage/operatinContractLetter/searchOperatinContractLetter.do"/>";
f.submit();
}
function searchContractAccessories(){
var f = document.forms[0];
f.action = "<c:url value="/contractManage/contractAccessories/searchContractAccessories.do"/>";
f.submit();
}
function selectcontractBackupID(ctrlobj)
{
var f = document.forms[0];
var showx = event.screenX - event.offsetX;
var showy = event.screenY - event.offsetY;
var para = ctrlobj.value;
returnValue = window.showModalDialog("/tlms/contractManage/operatinContractLetter/showContractMemoire.do",
para, "dialogWidth:600px;dialogHeight:200px;dialogCenter:" +
showx + "px;dialogTop:" + showy +
"px;status:no;help:no; scroll:yes;resizable:no;");
if (returnValue != null) {
f.elements["contractMemoireBean.id"].value = returnValue;
f.action = "<c:url value="/contractManage/operatinContractLetter/initAddOperatinContractLetter.do"/>";
f.submit();
}
}
function selectClientInfoID(ctrlobj)
{
var f = document.forms[0];
var showx = event.screenX - event.offsetX;
var showy = event.screenY - event.offsetY;
var para = ctrlobj.value;
returnValue = window.showModalDialog("/tlms/contractManage/operatinContractLetter/showClientInfo.do",
para, "dialogWidth:600px;dialogHeight:200px;dialogCenter:" +
showx + "px;dialogTop:" + showy +
"px;status:no;help:no; scroll:yes;resizable:no;");
if (returnValue != null) {
f.elements["clientInfoBean.id"].value = returnValue;
f.action = "<c:url value="/contractManage/operatinContractLetter/initAddOperatinContractLetter.do"/>";
f.submit();
}
}
function selectDepartmentID(ctrlobj)
{
var f = document.forms[0];
var showx = event.screenX - event.offsetX;
var showy = event.screenY - event.offsetY;
var para = ctrlobj.value;
returnValue = window.showModalDialog("/tlms/contractManage/operatinContractLetter/showDepartment.do",
para, "dialogWidth:600px;dialogHeight:200px;dialogCenter:" +
showx + "px;dialogTop:" + showy +
"px;status:no;help:no; scroll:yes;resizable:no;");
if (returnValue != null) {
f.elements["departmentBean.id"].value = returnValue;
f.action = "<c:url value="/contractManage/operatinContractLetter/initAddOperatinContractLetter.do"/>";
f.submit();
}
}
function selectOperatorID(ctrlobj)
{
var f = document.forms[0];
var showx = event.screenX - event.offsetX;
var showy = event.screenY - event.offsetY;
var para = ctrlobj.value;
returnValue = window.showModalDialog("/tlms/contractManage/operatinContractLetter/showOperator.do",
para, "dialogWidth:600px;dialogHeight:200px;dialogCenter:" +
showx + "px;dialogTop:" + showy +
"px;status:no;help:no; scroll:yes;resizable:no;");
if (returnValue != null) {
f.elements["operatorBean.id"].value = returnValue;
f.action = "<c:url value="/contractManage/operatinContractLetter/initAddOperatinContractLetter.do"/>";
f.submit();
}
}
</script>
<html:form action="/operatinContractLetter/addOperatinContractLetter.do">
<html:hidden property="operatinContractLetterBean.id"
value="${operatinContractLetterBean.id}" />
<html:hidden property="contractMemoireBean.id"
value="${contractMemoireBean.id}" />
<html:hidden property="clientInfoBean.id" />
<html:hidden property="departmentBean.id" value="${departmentBean.id}" />
<html:hidden property="operatorBean.id" value="${operatorBean.id}" />
<div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
id="table1">
<tr>
<td height="28" colspan="2">
<img src="<c:url value='/images/dot.gif'/>" width="11" height="11"
alt="">
<bean:message key="label.contractManage.systemSetting" />
>
<bean:message
key="label.contractManage.operatinContractLetter.title" />
</td>
</tr>
<tr>
<td width="2%" height="31" class="section">
<img src="<c:url value='/images/menu_dot.jpg'/>" width="6"
height="19" alt="">
</td>
<td width="98%" class="section">
<bean:message
key="label.contractManage.operatinContractLetter.basicInfo" />
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td height="39">
</td>
<td>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<span onclick="searchContractAccessories();" class="mouse">
<bean:message
key="label.contractManage.operatinContractLetter.accessories" />
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<span onclick="initAdd();" class="mouse"> <bean:message
key="label.contractManage.operatinContractLetter.remark" />
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<hr size="1">
</td>
</tr>
<tr>
<td></td>
<td>
<table width="100%" height="43" border="0" cellpadding="0"
cellspacing="0" style="font-size:12px; width:96%" id="table2">
<tr>
<td nowrap>
<bean:message
key="label.contractManage.operatinContractLetter.code" />
</td>
<td nowrap>
<html:text property="operatinContractLetterBean.code"
value="${operatinContractLetterBean.code}" readonly="true" />
</td>
<td nowrap>
<bean:message
key="label.contractManage.operatinContractLetter.contractType" />
</td>
<td nowrap>
<html:select property="operatinContractLetterBean.contractType"
value="${operatinContractLetterBean.contractType}"
onchange="selectContractType();">
<html:option value="">
<bean:message key="label.common.pleaseSelect" />
</html:option>
<c:forEach items="${contractTypeList}" var="contractType">
<html:option value="${contractType[0]}">
<c:out value="${contractType[1]}" />
</html:option>
</c:forEach>
</html:select>
</td>
<td nowrap>
<bean:message
key="label.contractManage.operatinContractLetter.contractBackupID" />
</td>
<td nowrap>
<c:choose>
<c:when
test="${empty operatinContractLetterBean.contractBackupID}">
<html:text
property="operatinContractLetterBean.contractBackupID"
value="${operatinContractLetterBean.contractBackupID}"
readonly="true" />
</c:when>
<c:otherwise>
<input id="operatinContractLetterBean.contractBackupID"
type="text"
value="<contractBackup:display contractBackupID="${operatinContractLetterBean.contractBackupID}"/>"
readonly="true" />
</c:otherwise>
</c:choose>
</td>
<td nowrap>
<table border="0" cellspacing="0" cellpadding="0" align="left"
id="tableButton">
<span>
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<span
onclick="selectcontractBackupID('operatinContractLetterBean.contractBackupID');"
class="mouse"> <bean:message
key="label.contractManage.operatinContractLetter.select" />
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</span>
</table>
</td>
</tr>
<tr>
<td nowrap>
<bean:message
key="label.contractManage.operatinContractLetter.clientID" />
</td>
<td nowrap>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td>
<c:choose>
<c:when test="${empty operatinContractLetterBean.clientID}">
<html:text size="13"
property="operatinContractLetterBean.clientID"
value="${operatinContractLetterBean.clientID}"
readonly="true" />
</c:when>
<c:otherwise>
<input size="13" id="operatinContractLetterBean.clientID"
type="text"
value="<client:display clientID="${operatinContractLetterBean.clientID}"/>"
readonly="true" />
</c:otherwise>
</c:choose>
</td>
<td>
<table border="0" cellspacing="0" cellpadding="0"
align="left" id="clientButton">
<span>
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<span
onclick="selectClientInfoID('operatinContractLetterBean.clientID');"
class="mouse"> <bean:message
key="label.contractManage.operatinContractLetter.more" />
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</span>
</table>
</td>
</tr>
</table>
</td>
<td nowrap>
<bean:message
key="label.contractManage.operatinContractLetter.businessID" />
</td>
<td nowrap>
<html:select property="operatinContractLetterBean.businessID"
value="${operatinContractLetterBean.businessID}">
<html:option value="">
<bean:message key="label.common.pleaseSelect" />
</html:option>
<c:forEach items="${businessList}" var="business">
<html:option value="${business[0]}">
<c:out value="${business[2]}" />
</html:option>
</c:forEach>
</html:select>
</td>
<td nowrap>
<bean:message
key="label.contractManage.operatinContractLetter.operatorID" />
</td>
<td nowrap>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td>
<c:choose>
<c:when
test="${empty operatinContractLetterBean.operatorID}">
<html:text size="13"
property="operatinContractLetterBean.operatorID"
value="${operatinContractLetterBean.operatorID}"
readonly="true" />
</c:when>
<c:otherwise>
<input size="13" id="operatinContractLetterBean.operatorID"
type="text"
value="<operator:display operatorID="${operatinContractLetterBean.operatorID}"/> "
readonly="true" />
</c:otherwise>
</c:choose>
</td>
<td>
<table border="0" cellspacing="0" cellpadding="0"
align="left" id="operatorButton">
<span>
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<span
onclick="selectOperatorID('operatinContractLetterBean.operatorID');"
class="mouse"> <bean:message
key="label.contractManage.operatinContractLetter.more" />
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?