81 lines
2.4 KiB
Plaintext
81 lines
2.4 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">
|
||
|
|
//获取已选的工位id
|
||
|
|
|
||
|
|
|
||
|
|
function dosave(dialog,grid) {
|
||
|
|
if ($(".form").form('validate')) {
|
||
|
|
$.post(ext.contextPath + "/clean/CleanMonitor/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');
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<input id="wids" name="wids" type="hidden" value="" />
|
||
|
|
<form method="post" class="form">
|
||
|
|
<input name="id" type="hidden" value="mPoint.id"/>
|
||
|
|
<table class="table">
|
||
|
|
<tr>
|
||
|
|
<th>最新监测信息</th>
|
||
|
|
<td></td>
|
||
|
|
</tr>
|
||
|
|
<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="collectionTime" name="collectionTime" class="Wdate"
|
||
|
|
value="${cleanMonitor.collectionTime}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
|
||
|
|
readonly/></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>温度</th>
|
||
|
|
<td><input name="temperature" id="temperature" class="easyui-textbox"
|
||
|
|
data-options="required:true,validType:'isBlank'" value="${mPoint.Parmvalue}" />
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>湿度</th>
|
||
|
|
<td><input name="humidity" class="easyui-textbox"
|
||
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.humidity}" />
|
||
|
|
</td>
|
||
|
|
</tr><tr>
|
||
|
|
<th>尘埃粒子</th>
|
||
|
|
<td><input name="dust" class="easyui-textbox"
|
||
|
|
data-options="required:true,validType:'isBlank'" value="${MonitorEquipment.dust}" />
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
<br/>
|
||
|
|
<div id="p">
|
||
|
|
<table id="grid" data-options="border:false"></table>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|