238 lines
6.8 KiB
Plaintext
238 lines
6.8 KiB
Plaintext
|
|
<%@page contentType="text/html"%>
|
||
|
|
<%@page pageEncoding="UTF-8"%>
|
||
|
|
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
||
|
|
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
|
||
|
|
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
|
||
|
|
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<meta http-equiv="pragma" content="no-cache">
|
||
|
|
<meta http-equiv="cache-control" content="no-cache">
|
||
|
|
<meta http-equiv="expires" content="0">
|
||
|
|
<link rel="StyleSheet" href="CSS/comm2.css" type="text/css" />
|
||
|
|
<script type="text/javascript" src="JS/comm.js"></script>
|
||
|
|
</head>
|
||
|
|
|
||
|
|
<script type="text/javascript">
|
||
|
|
|
||
|
|
function dosave(){
|
||
|
|
var selid="";
|
||
|
|
var obj=document.getElementsByTagName("input");
|
||
|
|
for(var i=0;i<obj.length;i++){
|
||
|
|
if(obj[i].type == "checkbox" && obj[i].checked && obj[i].name=="cids"){
|
||
|
|
selid+=obj[i].value+",";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
//alert(selid);
|
||
|
|
window.location="scadapicaction.do?method=addequsave&type=0&clientWidth=${clientWidth}&picid=${picid}&selid="+selid;
|
||
|
|
}
|
||
|
|
|
||
|
|
function dofresh(){
|
||
|
|
ListForm.submit();
|
||
|
|
}
|
||
|
|
function doback(){
|
||
|
|
window.location="scadapicaction.do?method=picdesign&clientWidth=${clientWidth}&type=${type}&picid=${picid}&bizid=${bizid}";
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<body>
|
||
|
|
<form id="ListForm" action="scadapicaction.do?method=addequ&clientWidth=${clientWidth}&type=${type}"
|
||
|
|
method="post">
|
||
|
|
<input type="hidden" name="sort" value="${pageinfo.sort}">
|
||
|
|
<input type="hidden" name="dirt" value="${pageinfo.dirt}">
|
||
|
|
<input type="hidden" name="bizid" value="${bizid}">
|
||
|
|
<input type="hidden" name="picid" value="${picid}">
|
||
|
|
<input type="hidden" name="pageNum" value="${pageinfo.pageNum}">
|
||
|
|
|
||
|
|
<table cellpadding="0" CELLSPACING="0"
|
||
|
|
class="toolbartable">
|
||
|
|
<tr class="toolbartableline1">
|
||
|
|
<td width="20"></td>
|
||
|
|
<td width="70">
|
||
|
|
<span class="btnleft" onmouseover="btnleftmouseover();"
|
||
|
|
onclick="dosave();" onmouseout="btnleftmouseout();"
|
||
|
|
onmousedown="btnleftmousedown();"> <img alt=""
|
||
|
|
src="IMG/button/save.gif" style="vertical-align: middle">
|
||
|
|
保存 </span>
|
||
|
|
<span onclick="dosave();" class="btnright"> </span>
|
||
|
|
</td>
|
||
|
|
<td width="150" style="vertical-align: middle" align="center">
|
||
|
|
<input type="text" name="code" class="inputtext" value="${param.code}">
|
||
|
|
</td>
|
||
|
|
<td width="70">
|
||
|
|
<span class="btnleft" onmouseover="btnleftmouseover();"
|
||
|
|
onclick="dofresh();" onmouseout="btnleftmouseout();"
|
||
|
|
onmousedown="btnleftmousedown();"> <img alt=""
|
||
|
|
src="IMG/button/search.gif" style="vertical-align: middle">
|
||
|
|
检索 </span>
|
||
|
|
<span onclick="dofresh();" class="btnright"> </span>
|
||
|
|
</td>
|
||
|
|
<td width="70">
|
||
|
|
<span class="btnleft" onmouseover="btnleftmouseover();"
|
||
|
|
onclick="doback();" onmouseout="btnleftmouseout();"
|
||
|
|
onmousedown="btnleftmousedown();"> <img alt=""
|
||
|
|
src="IMG/button/undo.gif" style="vertical-align: middle">
|
||
|
|
返回 </span>
|
||
|
|
<span onclick="doback();" class="btnright"> </span>
|
||
|
|
</td>
|
||
|
|
<td style="vertical-align: middle">
|
||
|
|
<div id="result">
|
||
|
|
</div>
|
||
|
|
</td>
|
||
|
|
<td width="10px" style="vertical-align: middle" align="center">
|
||
|
|
<select name="geographyAreaField" onchange="dofresh();">
|
||
|
|
<option value="">
|
||
|
|
全部安装地点
|
||
|
|
</option>
|
||
|
|
<c:forEach items="${geographyAreaArray}" var="gaaObj">
|
||
|
|
<c:choose>
|
||
|
|
<c:when test="${gaaObj.id==param.geographyAreaField}">
|
||
|
|
<option value="${gaaObj.id}" selected>
|
||
|
|
<c:out value="${gaaObj.name}"></c:out>
|
||
|
|
</option>
|
||
|
|
</c:when>
|
||
|
|
<c:otherwise>
|
||
|
|
<option value="${gaaObj.id}">
|
||
|
|
<c:out value="${gaaObj.name}"></c:out>
|
||
|
|
</option>
|
||
|
|
</c:otherwise>
|
||
|
|
</c:choose>
|
||
|
|
</c:forEach>
|
||
|
|
</select>
|
||
|
|
</td>
|
||
|
|
<td width="10px" style="vertical-align: middle" align="center">
|
||
|
|
<select name="currentManageFlagsearch" onchange="dofresh();">
|
||
|
|
<option value="-1">
|
||
|
|
全部管理状态
|
||
|
|
</option>
|
||
|
|
<c:forEach items="${currentManageFlagArray}" var="etnObj">
|
||
|
|
<option value="${etnObj.id}"
|
||
|
|
<c:if test="${etnObj.id==param.currentManageFlagsearch}">selected</c:if>>
|
||
|
|
<c:out value="${etnObj.name}"></c:out>
|
||
|
|
</option>
|
||
|
|
</c:forEach>
|
||
|
|
</select>
|
||
|
|
</td>
|
||
|
|
<td width="10px" style="vertical-align: middle" align="center">
|
||
|
|
<select name="equipmentLevelsearch" onchange="dofresh();">
|
||
|
|
<option value="-1">
|
||
|
|
全部设备等级
|
||
|
|
</option>
|
||
|
|
<c:forEach items="${equipmentLevelArray}" var="etnObj">
|
||
|
|
<option value="${etnObj.id}"
|
||
|
|
<c:if test="${etnObj.id==param.equipmentLevelsearch}">selected</c:if>>
|
||
|
|
<c:out value="${etnObj.name}"></c:out>
|
||
|
|
</option>
|
||
|
|
</c:forEach>
|
||
|
|
</select>
|
||
|
|
</td>
|
||
|
|
<td width="10px" style="vertical-align: middle" align="center">
|
||
|
|
<select name="fcsearch" onchange="dofresh();">
|
||
|
|
<option value="-1">
|
||
|
|
全部资产分类
|
||
|
|
</option>
|
||
|
|
<c:forEach items="${fclist}" var="etnObj">
|
||
|
|
<option value="${etnObj.id}"
|
||
|
|
<c:if test="${etnObj.id==param.fcsearch}">selected</c:if>>
|
||
|
|
<c:out value="${etnObj.name}"></c:out>
|
||
|
|
</option>
|
||
|
|
</c:forEach>
|
||
|
|
</select>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
<br>
|
||
|
|
<table cellpadding="0" CELLSPACING="0"
|
||
|
|
class="tablenameline">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
设备卡片
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<table class="listtable" cellspacing="0">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th width="30">
|
||
|
|
<input type="checkbox" name="checkall"
|
||
|
|
onClick="selectAll('cids',this.checked);" />
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
编号
|
||
|
|
</th>
|
||
|
|
<th>
|
||
|
|
名称
|
||
|
|
</th>
|
||
|
|
<th width="15%">
|
||
|
|
所在工段
|
||
|
|
</th>
|
||
|
|
<th width="10%">
|
||
|
|
类型
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<c:set var="rowcount" value="${0}" />
|
||
|
|
<c:forEach var="current" items="${list}">
|
||
|
|
<tr>
|
||
|
|
<td align="center">
|
||
|
|
<input type="checkbox" name="cids"
|
||
|
|
value='<c:out value="${current.id}"/>'
|
||
|
|
onclick="selectsingle('cids','checkall',this.checked)" />
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
${current.equipmentCardID}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
${current.equipmentName}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
${current._areaName}
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
${current._equipmentClassName}
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<c:set var="rowcount" value="${rowcount+1}" />
|
||
|
|
</c:forEach>
|
||
|
|
<c:if test="${rowcount<12}">
|
||
|
|
<c:forEach var="i" begin="${rowcount+1}" end="12">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</c:forEach>
|
||
|
|
</c:if>
|
||
|
|
|
||
|
|
</table>
|
||
|
|
<br>
|
||
|
|
<table style="font-size: 12px" class="foottable" >
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
${pageinfo.pageInfo }
|
||
|
|
</td>
|
||
|
|
<td align="right">
|
||
|
|
<c:out value="${pageinfo.pageNav }" escapeXml="false" />
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</body>
|
||
|
|
</html>
|