Files
SIPAIIS_WMS_JSSW/bin/WebRoot/jsp/clean/equipmentAdd.jsp

262 lines
7.5 KiB
Plaintext
Raw Permalink Normal View History

2026-01-16 14:13:44 +08:00
<!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">
function dosave(dialog,grid) {
if ($(".form").form('validate')) {
$.post(ext.contextPath + "/clean/MonitorEquipment/save.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>
<form method="post" class="form">
<table class="table">
<tr>
<th>设备名称</th>
<td><input name="equipmentName" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="" />
</td>
</tr>
<tr>
<th>参数上次修改时间</th>
<td><input id="lastchangetime" name="lastchangetime" class="Wdate"
value="" 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="" />
</td>
</tr>
<tr>
<th>温度测量点ID</th>
<td><input id="temperaturePoint" name="temperaturePoint" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="" />
<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" selected >启用</option>
<option value="0">禁用</option>
</select>
</td>
</tr>
<tr>
<th>湿度测量点ID</th>
<td><input id="humidityPoint" name="humidityPoint" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="" />
<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" selected >启用</option>
<option value="0">禁用</option>
</select>
</td>
</tr>
<tr>
<th>尘埃粒子测量点ID</th>
<td><input id="dustPoint" name="dustPoint" class="easyui-textbox" data-options="required:true,validType:'isBlank'" value="" />
<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" selected >启用</option>
<option value="0">禁用</option>
</select>
</td>
</tr>
<tr>
<th>尘埃粒子报警值&nbsp;&nbsp;&nbsp;大于</th>
<td><input name="dustAlarmgreater" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="" />
</td>
</tr>
<tr>
<th>温度报警值&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;大于</th>
<td><input name="temAlarmgreater" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="" />
</td>
<th >小于</th>
<td><input name="temAlarmless" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="" />
</td>
</tr><tr>
<th>湿度报警值&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;大于</th>
<td><input name="humAlarmgreater" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="" />
</td>
<th>小于</th>
<td><input name="humAlarmless" class="easyui-textbox"
data-options="required:true,validType:'isBlank'" value="" />
</td>
</tr>
<tr>
<th>设备状态</th>
<td>
<select name="equipmentPosition" class="easyui-combobox" data-options="panelHeight:'auto',editable:false">
<option value="1" selected >启用</option>
<option value="0">禁用</option>
</select>
</td>
</tr>
</table>
</form>
<br/>
<div id="p">
<table id="grid" data-options="border:false"></table>
</div>
</body>
</html>