155 lines
5.0 KiB
Plaintext
155 lines
5.0 KiB
Plaintext
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
||
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title></title>
|
||
|
|
<jsp:include page="../inc.jsp"></jsp:include>
|
||
|
|
<script type="text/javascript">
|
||
|
|
var grid;
|
||
|
|
var alarmFun=function() {
|
||
|
|
var dialog = parent.ext.modalDialog({
|
||
|
|
title : '添加洁净度报警处理记录',
|
||
|
|
iframeId:"iframeId",
|
||
|
|
url : ext.contextPath + '/clean/alarmhandle/add.do?id=${MonitorEquipment.id}',
|
||
|
|
buttons : [ {
|
||
|
|
text : '保存',
|
||
|
|
handler : function() {
|
||
|
|
dialog.find('iframe').get(0).contentWindow.dosave(dialog, grid);
|
||
|
|
}
|
||
|
|
} ]
|
||
|
|
});
|
||
|
|
};
|
||
|
|
function viewtemperature(id) {
|
||
|
|
var dialog = parent.ext.modalDialog({
|
||
|
|
title : '温度历史信息',
|
||
|
|
iframeId:"",
|
||
|
|
url : ext.contextPath + '/clean/MonitorEquipment/showhistorylistForSelect.do?tid=${MonitorEquipment.temperaturePoint}',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
function viewhumidity(id) {
|
||
|
|
var dialog = parent.ext.modalDialog ({
|
||
|
|
title : '湿度历史信息',
|
||
|
|
iframeId:"",
|
||
|
|
|
||
|
|
url : ext.contextPath + '/clean/MonitorEquipment/showhistorylistForSelect.do?tid=${MonitorEquipment.humidityPoint}',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
function viewdust(id) {
|
||
|
|
var dialog = parent.ext.modalDialog ({
|
||
|
|
title : '尘埃粒子历史信息',
|
||
|
|
iframeId:"",
|
||
|
|
url : ext.contextPath + '/clean/MonitorEquipment/showhistorylistForSelect.do?tid=${MonitorEquipment.dustPoint}',
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
$(function() {
|
||
|
|
if('${MonitorEquipment.temperatureColor}'=="3" || '${MonitorEquipment.humidityColor}'=="3" || '${MonitorEquipment.dustColor}'=="3" ){
|
||
|
|
document.getElementById("meid").style.display="inline";
|
||
|
|
}else{
|
||
|
|
document.getElementById("meid").style.display="none";
|
||
|
|
}
|
||
|
|
})
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<input id="wids" name="wids" type="hidden" value="" />
|
||
|
|
<form method="post" class="form">
|
||
|
|
<input name="id" type="hidden" value="${MonitorEquipment.id}"/>
|
||
|
|
<table class="table" >
|
||
|
|
<tr>
|
||
|
|
<th><input type="hidden" name="equipmentState" value="${MonitorEquipment.equipmentState}" />最新监测信息
|
||
|
|
</th>
|
||
|
|
<td></td>
|
||
|
|
<td rowspan="6">
|
||
|
|
<a id="meid" href="javascript:void(0);" class="easyui-linkbutton" style="height:20px" data-options="iconCls:'iconImg ext-icon-table_go'" onclick="alarmFun('${MonitorEquipment.id}');" >报警处理</a>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>设备名称</th>
|
||
|
|
<td>${MonitorEquipment.equipmentName}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>数据采集时间</th>
|
||
|
|
<td>${MonitorEquipment.insdt}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>温度</th>
|
||
|
|
<td id="temperature">${MonitorEquipment.temperature}</td>
|
||
|
|
<script>
|
||
|
|
$(function(){
|
||
|
|
var ta = document.getElementById("temperature");
|
||
|
|
if(${MonitorEquipment.temperatureColor}=="3"){
|
||
|
|
ta.style.color="red";
|
||
|
|
}
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>湿度</th>
|
||
|
|
<td id="humidity">${MonitorEquipment.humidity}</td>
|
||
|
|
<script>
|
||
|
|
$(function(){
|
||
|
|
var ta = document.getElementById("humidity");
|
||
|
|
if(${MonitorEquipment.humidityColor}=="3"){
|
||
|
|
ta.style.color="red";
|
||
|
|
}
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</tr><tr>
|
||
|
|
<th>尘埃粒子</th>
|
||
|
|
<td id="dust">${MonitorEquipment.dust}</td>
|
||
|
|
<script>
|
||
|
|
$(function(){
|
||
|
|
var ta = document.getElementById("dust");
|
||
|
|
if(${MonitorEquipment.dustColor}=="3"){
|
||
|
|
ta.style.color="red";
|
||
|
|
}
|
||
|
|
})
|
||
|
|
</script>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
<div id="p">
|
||
|
|
<table id="grid" data-options="border:false"></table>
|
||
|
|
</div><br />
|
||
|
|
|
||
|
|
<input id="wids" name="wids" type="hidden" value="" />
|
||
|
|
<form method="post" class="form">
|
||
|
|
<input name="id" type="hidden" value=""/>
|
||
|
|
<table class="table">
|
||
|
|
<tr>
|
||
|
|
<th>历史监测信息</th>
|
||
|
|
<td></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>温度</th>
|
||
|
|
<!-- <td><span id="temperature" name="temperature" data-options="required:true,validType:'isBlank'" value="" />
|
||
|
|
</td> -->
|
||
|
|
<td><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-view'" onclick="viewtemperature('${MonitorEquipment.temperaturePoint}');">查看更多..</a></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>湿度</th>
|
||
|
|
<!-- <td><span id="humidity" name="humidity" data-options="required:true,validType:'isBlank'" value="" />
|
||
|
|
</td> -->
|
||
|
|
<td><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-view'" onclick="viewhumidity('${MonitorEquipment.humidityPoint}');">查看更多..</a></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>尘埃粒子</th>
|
||
|
|
<!-- <td><span id="dust" name="dust" data-options="required:true,validType:'isBlank'" value="" />
|
||
|
|
</td> -->
|
||
|
|
<td><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-view'" onclick="viewdust('${MonitorEquipment.dustPoint}');">查看更多..</a></td>
|
||
|
|
</tr>
|
||
|
|
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
<br/>
|
||
|
|
<div id="p">
|
||
|
|
<table id="grid" data-options="border:false"></table>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|