263 lines
8.7 KiB
Plaintext
263 lines
8.7 KiB
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<%@page import="com.sipai.entity.clean.MonitorEquipment"%>
|
|
<%@ 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"%>
|
|
<%-- <%request.setAttribute("Flag_Enable", MonitorEquipment.Flag_Enable);%>
|
|
<%request.setAttribute("Flag_Disable", MonitorEquipment.Flag_Disable); %> --%>
|
|
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<jsp:include page="../inc.jsp"></jsp:include>
|
|
<script type="text/javascript">
|
|
function dosave(dialog,grid) {
|
|
if ($(".form").form('validate')) {
|
|
$.post(ext.contextPath + "/clean/MonitorEquipment/update.do", $(".form").serialize(), function(data) {
|
|
if (data.res == 1) {
|
|
top.$.messager.alert('提示', "保存成功", 'info', function() {
|
|
grid.datagrid('reload');
|
|
dialog.dialog('destroy');
|
|
});
|
|
}else if(data.res == 0){
|
|
top.$.messager.alert('提示', "保存失败", 'info');
|
|
}else{
|
|
top.$.messager.alert('提示', data.res, 'info');
|
|
}
|
|
},'json');
|
|
}
|
|
}
|
|
function selectPoint(temperaturePoint,id){
|
|
var dialog = parent.ext.modalDialog({
|
|
title : '选择监测点位',
|
|
width: 700,
|
|
height:420,
|
|
closeOnEscape:true,
|
|
url : ext.contextPath + '/clean/MonitorEquipment/showlistForSelect.do',
|
|
toolbar:'',
|
|
buttons : [{
|
|
text : '确定',
|
|
iconCls:'icon-ok',
|
|
handler : function() {
|
|
var res=dialog.find('iframe').get(0).contentWindow.selectFun();
|
|
if(res!=null){
|
|
dialog.dialog('destroy');
|
|
$("#"+temperaturePoint).textbox("setValue",res.id);
|
|
$("#"+id).val(res.id);
|
|
}
|
|
|
|
}
|
|
},
|
|
{
|
|
text : '取消',
|
|
iconCls:'icon-cancel',
|
|
handler : function() {
|
|
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
|
dialog.dialog('destroy');
|
|
|
|
}
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
function selectPointid(humidityPoint,id){
|
|
var dialog = parent.ext.modalDialog({
|
|
title : '选择监测点位',
|
|
width: 700,
|
|
height:420,
|
|
closeOnEscape:true,
|
|
url : ext.contextPath + '/clean/MonitorEquipment/showlistForSelect.do',
|
|
toolbar:'',
|
|
buttons : [{
|
|
text : '确定',
|
|
iconCls:'icon-ok',
|
|
handler : function() {
|
|
var res=dialog.find('iframe').get(0).contentWindow.selectFun();
|
|
if(res!=null){
|
|
dialog.dialog('destroy');
|
|
$("#"+humidityPoint).textbox("setValue",res.id);
|
|
$("#"+id).val(res.id);
|
|
}
|
|
|
|
}
|
|
},
|
|
{
|
|
text : '取消',
|
|
iconCls:'icon-cancel',
|
|
handler : function() {
|
|
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
|
dialog.dialog('destroy');
|
|
|
|
}
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
function selectPointdust(dustPoint,id){
|
|
var dialog = parent.ext.modalDialog({
|
|
title : '选择监测点位',
|
|
width: 700,
|
|
height:420,
|
|
closeOnEscape:true,
|
|
url : ext.contextPath + '/clean/MonitorEquipment/showlistForSelect.do',
|
|
toolbar:'',
|
|
buttons : [{
|
|
text : '确定',
|
|
iconCls:'icon-ok',
|
|
handler : function() {
|
|
var res=dialog.find('iframe').get(0).contentWindow.selectFun();
|
|
if(res!=null){
|
|
dialog.dialog('destroy');
|
|
$("#"+dustPoint).textbox("setValue",res.id);
|
|
$("#"+id).val(res.id);
|
|
}
|
|
|
|
}
|
|
},
|
|
{
|
|
text : '取消',
|
|
iconCls:'icon-cancel',
|
|
handler : function() {
|
|
// dialog.find('iframe').get(0).contentWindow.selectCancel();
|
|
dialog.dialog('destroy');
|
|
|
|
}
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
|
|
</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>设备名称</th>
|
|
<td><input name="equipmentName" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.equipmentName}" />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>参数上次修改时间</th>
|
|
<td><input id="lastchangetime" name="lastchangetime" class="Wdate"
|
|
value="${MonitorEquipment.lastchangetime}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
|
readonly/></td>
|
|
</tr>
|
|
<tr>
|
|
<th>修改者</th>
|
|
<td><input name="mender" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.mender}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>温度测量点ID</th>
|
|
<td><input id="temperaturePoint" name="temperaturePoint" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.temperaturePoint}" />
|
|
<input id="id" name="id" type="hidden" value="" />
|
|
</td>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$("#temperaturePoint").textbox('textbox').bind("click", function () {
|
|
selectPoint("temperaturePoint","id");
|
|
})
|
|
})
|
|
</script>
|
|
<th>状态</th>
|
|
<td>
|
|
<select name="temperaturePort" class="easyui-combobox" data-options="panelHeight:'auto',editable:false">
|
|
<option value="1" <c:if test="${MonitorEquipment.temperaturePort=='1'}">selected</c:if>>启用</option>
|
|
<option value="0" <c:if test="${MonitorEquipment.temperaturePort=='0'}">selected</c:if>>禁用</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>湿度测量点ID</th>
|
|
<td><input id="humidityPoint" name="humidityPoint" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.humidityPoint}" />
|
|
<input id="id" name="id" type="hidden" value="" />
|
|
</td>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$("#humidityPoint").textbox('textbox').bind("click", function () {
|
|
selectPointid("humidityPoint","id");
|
|
})
|
|
})
|
|
</script>
|
|
<th>状态</th>
|
|
<td>
|
|
<select name="humidityPort" class="easyui-combobox" data-options="panelHeight:'auto',editable:false">
|
|
<option value="1" <c:if test="${MonitorEquipment.humidityPort=='1'}">selected</c:if>>启用</option>
|
|
<option value="0" <c:if test="${MonitorEquipment.humidityPort=='0'}">selected</c:if>>禁用</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>尘埃粒子测量点ID</th>
|
|
<td><input id="dustPoint" name="dustPoint" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.dustPoint}" />
|
|
<input id="id" name="id" type="hidden" value="" />
|
|
</td>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$("#dustPoint").textbox('textbox').bind("click", function () {
|
|
selectPointdust("dustPoint","id");
|
|
})
|
|
})
|
|
</script>
|
|
<th>状态</th>
|
|
<td>
|
|
<select name="dustPort" class="easyui-combobox" data-options="panelHeight:'auto',editable:false">
|
|
<option value="1" <c:if test="${MonitorEquipment.dustPort=='1'}">selected</c:if>>启用</option>
|
|
<option value="0" <c:if test="${MonitorEquipment.dustPort=='0'}">selected</c:if>>禁用</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>尘埃粒子报警值 大于</th>
|
|
<td><input name="dustAlarmgreater" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.dustAlarmgreater}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>温度报警值 大于</th>
|
|
<td><input name="temAlarmgreater" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.temAlarmgreater}" />
|
|
</td>
|
|
<th>小于</th>
|
|
<td><input name="temAlarmless" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.temAlarmless}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>湿度报警值 大于</th>
|
|
<td><input name="humAlarmgreater" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.humAlarmgreater}" />
|
|
</td>
|
|
<th>小于</th>
|
|
<td><input name="humAlarmless" class="easyui-textbox"
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.humAlarmless}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>设备状态</th>
|
|
<td>
|
|
<select name="equipmentPosition" class="easyui-combobox" data-options="panelHeight:'auto',editable:false">
|
|
<option value="1" <c:if test="${MonitorEquipment.equipmentPosition=='1'}">selected</c:if>>启用</option>
|
|
<option value="0" <c:if test="${MonitorEquipment.equipmentPosition=='0'}">selected</c:if>>禁用</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</form>
|
|
<div id="p">
|
|
<table id="grid" data-options="border:false"></table>
|
|
</div>
|
|
</body>
|
|
</html>
|