255 lines
7.6 KiB
Plaintext
255 lines
7.6 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"%>
|
|||
|
|
<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=encodeURI(encodeURI("scadapicaction.do?method=addmpsave&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=addmp&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="56" style="vertical-align: middle" align="center"--%>
|
|||
|
|
<%-- onmouseover="this.className='over';"--%>
|
|||
|
|
<%-- onmouseout="this.className='';" onclick="dosave();">--%>
|
|||
|
|
<%-- <img alt="" src="IMG/button/save.gif"--%>
|
|||
|
|
<%-- style="vertical-align: middle">--%>
|
|||
|
|
<%-- 保存--%>
|
|||
|
|
<%-- </td>--%>
|
|||
|
|
<td width="120" style="vertical-align: middle" align="center">
|
|||
|
|
<select name="colname">
|
|||
|
|
<option value="scadacode" <c:if test="${colname=='scadacode' }">selected</c:if>>SCADA代码</option>
|
|||
|
|
<option value="name" <c:if test="${colname=='name' }">selected</c:if>>名称</option>
|
|||
|
|
</select>
|
|||
|
|
</td>
|
|||
|
|
<td width="150" style="vertical-align: middle" align="center">
|
|||
|
|
<input type="text" name="searchvalue" class="inputtext" value="${searchvalue}">
|
|||
|
|
</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="56" style="vertical-align: middle" align="center"--%>
|
|||
|
|
<%-- onmouseover="this.className='over';"--%>
|
|||
|
|
<%-- onmouseout="this.className='';" onclick="dofresh();">--%>
|
|||
|
|
<%-- <img alt="" src="IMG/button/search.gif"--%>
|
|||
|
|
<%-- style="vertical-align: middle">--%>
|
|||
|
|
<%-- 检索--%>
|
|||
|
|
<%-- </td> --%>
|
|||
|
|
<td style="vertical-align: middle">
|
|||
|
|
<div id="result">
|
|||
|
|
</div>
|
|||
|
|
</td>
|
|||
|
|
<%-- <td width="56" style="vertical-align: middle" align="center"--%>
|
|||
|
|
<%-- onmouseover="this.className='over';"--%>
|
|||
|
|
<%-- onmouseout="this.className='';" onclick="history.back();">--%>
|
|||
|
|
<%-- <img alt="" src="IMG/button/undo.gif"--%>
|
|||
|
|
<%-- style="vertical-align: middle">--%>
|
|||
|
|
<%-- 返回--%>
|
|||
|
|
<%-- </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 width="100">
|
|||
|
|
<select name="areascope" id="areascope" onchange="ListForm.submit();">
|
|||
|
|
<option value="" <c:if test="${param.areascope=='' }">selected</c:if>>
|
|||
|
|
全部区域
|
|||
|
|
</option>
|
|||
|
|
<c:forEach items="${arealist}" var="obj">
|
|||
|
|
<option value="${obj.area}"
|
|||
|
|
<c:if test="${param.areascope == obj.area }">selected</c:if>>
|
|||
|
|
${obj.area}
|
|||
|
|
</option>
|
|||
|
|
</c:forEach>
|
|||
|
|
</select>
|
|||
|
|
</td>
|
|||
|
|
<td width="100">
|
|||
|
|
<select name="sourcescope" id="sourcescope" onchange="ListForm.submit();">
|
|||
|
|
<option value="" <c:if test="${param.sourcescope=='' }">selected</c:if>>
|
|||
|
|
全部数据来源
|
|||
|
|
</option>
|
|||
|
|
<option value="SCADA"
|
|||
|
|
<c:if test="${param.sourcescope=='SCADA' }">selected</c:if>>
|
|||
|
|
自控系统
|
|||
|
|
</option>
|
|||
|
|
<option value="MENUAL"
|
|||
|
|
<c:if test="${param.sourcescope=='MENUAL' }">selected</c:if>>
|
|||
|
|
手工输入
|
|||
|
|
</option>
|
|||
|
|
</select>
|
|||
|
|
</td>
|
|||
|
|
<td width="60">
|
|||
|
|
<select name="typescope" id="typescope" onchange="ListForm.submit();">
|
|||
|
|
<option value="" <c:if test="${typescope=='' }">selected</c:if>>
|
|||
|
|
全部信号输入
|
|||
|
|
</option>
|
|||
|
|
<option value="AI"
|
|||
|
|
<c:if test="${typescope=='AI' }">selected</c:if>>
|
|||
|
|
模拟量输入(AI)
|
|||
|
|
</option>
|
|||
|
|
<option value="DI"
|
|||
|
|
<c:if test="${typescope=='DI' }">selected</c:if>>
|
|||
|
|
数字量输入(DI)
|
|||
|
|
</option>
|
|||
|
|
</select>
|
|||
|
|
</td>
|
|||
|
|
<td>
|
|||
|
|
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
</table>
|
|||
|
|
</form>
|
|||
|
|
<br>
|
|||
|
|
<table 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 width="25%" onclick="sort('name');">
|
|||
|
|
名称
|
|||
|
|
</th>
|
|||
|
|
<th width="15%" onclick="sort('scadacode');">
|
|||
|
|
变量名
|
|||
|
|
</th>
|
|||
|
|
<th width="10%" onclick="sort('type');">
|
|||
|
|
类型
|
|||
|
|
</th>
|
|||
|
|
<th width="10%" onclick="sort('unit');">
|
|||
|
|
单位
|
|||
|
|
</th>
|
|||
|
|
<th>
|
|||
|
|
所属设备
|
|||
|
|
</th>
|
|||
|
|
</tr>
|
|||
|
|
</thead>
|
|||
|
|
<c:set var="rowcount" value="${0}" />
|
|||
|
|
<c:forEach var="current" items="${mplist}">
|
|||
|
|
<tr>
|
|||
|
|
<td align="center">
|
|||
|
|
<input type="checkbox" name="cids"
|
|||
|
|
value='<c:out value="${current.id}"/>'
|
|||
|
|
onclick="selectsingle('cids','checkall',this.checked)" />
|
|||
|
|
</td>
|
|||
|
|
<td>
|
|||
|
|
${current.name}
|
|||
|
|
</td>
|
|||
|
|
<td>
|
|||
|
|
${current.scadacode}
|
|||
|
|
</td>
|
|||
|
|
<td>
|
|||
|
|
${current.type}
|
|||
|
|
</td>
|
|||
|
|
<td>
|
|||
|
|
${current.unit}
|
|||
|
|
</td>
|
|||
|
|
<td>
|
|||
|
|
${current.equid}
|
|||
|
|
</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>
|
|||
|
|
<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>
|