searchcontractmemoirelist.jsp
来自「一个关于tlms的一个小程序 看看能否帮助到别人」· JSP 代码 · 共 311 行
JSP
311 行
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<script type="text/javascript" language="javascript">
function doSearch() {
var f = document.forms[0];
if (validateSearchContractMemoire(f)) {
f.action = "<c:url value="/admin/contractMemoire/searchContractMemoire.do"/>";
f.submit();
}
}
function initEditContractMemoire(id) {
var f = document.forms[0];
f.elements["contractMemoireBean.id"].value = id;
f.action = "<c:url value="/admin/contractMemoire/initUpdateContractMemoire.do"/>";
f.submit();
}
function initAddContractMemoire() {
var form = document.forms[0];
form.action = "<c:url value='/admin/contractMemoire/initAddContractMemoire.do'/>";
form.submit();
}
function doSearchContractMemoireProcedure(){
if (selectOneRow("row")) {
var form = document.forms[0];
form.action = "<c:url value='/admin/contractMemoireProcedure/initSearchContractMemoireProcedureList.do'/>";
form.submit();
} else {
return false;
}
}
function doSearchProcedure() {
if (selectOneRow("row")) {
var form = document.forms[0];
form.action = "<c:url value='/admin/contractMemoire/initSearchContractMemoire.do'/>";
form.submit();
} else {
return false;
}
}
function selectOneRow(tableId) {
var contentTable = eval("document.all." + tableId);
var count = 0;
for (i = 1; i < contentTable.rows.length; i++) {
var onerow = contentTable.rows[i].cells[0].childNodes[0];
if (onerow.checked) {
count = count + 1;
alert(contentTable.rows[i].cells[0].childNodes[0].value);
//f.elements["procedureBean.id"].value = contentTable.rows[i].cells[0].childNodes[0].value;
}
}
if (count == 0) {
alert("please choose one!");
return false;
}
if (count > 1) {
alert("you can only choose one!");
return false;
}
return true;
}
</script>
<html:form action="/contractMemoire/searchContractMemoire.do">
<html:hidden property="contractMemoireBean.id"/>
<html:hidden property="searchBean.procedureID" value="${procedureID}"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="28" colspan="2">
<img src="<c:url value="/images/dot.gif"/>" width="11" height="11" alt="">
<bean:message key="label.admin.systemSetting"/>>
<bean:message key="label.admin.contractMemoire.manager"/>
</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.common.searchCondition"/>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>
<table width="100%" height="43" border="0" cellpadding="0"
cellspacing="0" style="font-size:12px; width:96% ">
<tr align="center">
<td width="11%" nowrap><bean:message key="label.admin.contractMemoire.contractID"/></td>
<td width="27%" nowrap><html:text property="searchBean.contractID"
value="${searchBean.contractID}"/></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.contractMemoire.operatorID"/></td>
<td nowrap>
<html:select property="searchBean.operatorID" value="${searchBean.operatorID}">
<html:option value=""><bean:message key="label.common.pleaseSelect"/></html:option>
<c:forEach items="${operatorList}" var="oList">
<html:option value="${oList.id}"><c:out value="${oList.operatorName}"/></html:option>
</c:forEach>
</html:select>
</td>
<td nowrap><bean:message key="label.admin.contractMemoire.clientInfoID"/></td>
<td nowrap>
<html:select property="searchBean.clientInfoID" value="${searchBean.clientInfoID}">
<html:option value=""><bean:message key="label.common.pleaseSelect"/></html:option>
<c:forEach items="${clientInfoList}" var="cInfo">
<html:option value="${cInfo.id}"><c:out value="${cInfo.name}"/></html:option>
</c:forEach>
</html:select>
</td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.operator.depName"/></td>
<td nowrap>
<html:select property="searchBean.deptID" value="${searchBean.deptID}">
<html:option value=""><bean:message key="label.common.pleaseSelect"/></html:option>
<c:forEach items="${departmentList}" var="dept">
<html:option value="${dept.id}"><c:out value="${dept.name}"/></html:option>
</c:forEach>
</html:select>
</td>
<td nowrap><bean:message key="label.admin.contractMemoire.bussinessTypeID"/></td>
<td nowrap>
<html:select property="searchBean.bussinessTypeID" value="${searchBean.bussinessTypeID}">
<html:option value=""><bean:message key="label.common.pleaseSelect"/></html:option>
<c:forEach items="${bussinessTypeList}" var="busType">
<html:option value="${busType.id}"><c:out value="${busType.busInstroction}"/></html:option>
</c:forEach>
</html:select>
</td>
</tr>
<tr>
<tr>
<td width="11%" nowrap><bean:message key="label.admin.contractMemoire.underWriteDate"/></td>
<td width="27%" nowrap>
<html:text property="underWriteDate" value="${underWriteDate}"/>
<!--img src="<c:url value="/images/calendar.gif"/>" border="0" id="choose_underWriteDate" class="mouse"
alt=""/>
<script type="text/javascript">registerCalendar('underWriteDate', 'choose_underWriteDate');</script-->
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr align="center">
<td nowrap><bean:message key="label.admin.contractMemoire.procedureID"/></td>
<td>
<html:text property="procedureName" value="${procedureName}"/>
</td>
<td>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<span class="mouse" onclick="doSearchProcedure();">
<bean:message key="button.search"/><bean:message key="button.procedure"/>
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" nowrap>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<span class="mouse" onclick="doSearch();">
<bean:message key="button.search"/>
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td height="31" class="section">
<img src="<c:url value="/images/menu_dot.jpg"/>" width="6" height="19" alt="">
</td>
<td height="31" class="section">
<bean:message key="label.admin.operator.List"/>
</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 class="mouse" onclick="return initAddContractMemoire()">
<bean:message key="button.add"/>
</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 class="mouse"
onclick="deleteRecord('idArr', '<c:url value='/admin/contractMemoire/removeContractMemoire.do'/>');">
<bean:message key="button.delete"/>
</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 class="mouse" onclick="return doSearchContractMemoireProcedure()">
<bean:message key="button.procedure"/>
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
<td>
<c:set var="sn_display_tag">
<input type="checkbox" name="idArrHeader" onclick="selectGlobal(this.checked,'row')"/>
</c:set>
<display:table name="${pagination}" cellspacing="0" cellpadding="0" id="row" sort="external"
export="flase" requestURI="" class="subMainTable" style="width:98%"
decorator="com.szmx.component.displaytag.TableDecoratorExtends">
<display:column title="${sn_display_tag}" class="subMainTd" headerClass="subMainTh">
<html:multibox property="idArr" onclick="selectRow(this.checked,'row')">
<c:out value="${row[0]}"/>
</html:multibox>
</display:column>
<display:column titleKey="label.admin.contractMemoire.contractID" class="subMainTd"
headerClass="subMainTh">
<a href="#" onclick="initEditContractMemoire('<c:out value="${row[0]}"/>');">
<c:out value="${row[1]}"/></a>
</display:column>
<display:column titleKey="label.admin.contractMemoire.clientInfoID" class="subMainTd"
headerClass="subMainTh">
<c:out value="${row[2]}"/>
</display:column>
<display:column titleKey="label.admin.contractMemoire.operatorID" class="subMainTd_text_left"
headerClass="subMainTh">
<c:out value="${row[3]}"/>
</display:column>
<display:column titleKey="label.admin.contractMemoire.bussinessTypeID" class="subMainTd"
sortable="false" headerClass="subMainTh">
<c:out value="${row[4]}"/>
</display:column>
<display:column titleKey="label.admin.contractMemoire.deptID" class="subMainTd" headerClass="subMainTh">
<c:out value="${row[5]}"/>
</display:column>
<display:column titleKey="label.admin.contractMemoire.underWriteDate" class="subMainTd"
headerClass="subMainTh">
<fmt:formatDate pattern="dd/MM/yyyy HH:mm:ss" value="${row[6]}"/>
</display:column>
</display:table>
</td>
</tr>
</table>
</html:form>
<html:javascript formName="/contractMemoire/searchContractMemoire" method="validateSearchContractMemoire"/>
<script type="text/javascript" language="javascript">
displayTableRows("row");
</script>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?