80 lines
2.7 KiB
Plaintext
80 lines
2.7 KiB
Plaintext
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||
|
|
<%@ page import="com.sipai.tools.SessionManager"%>
|
||
|
|
<%
|
||
|
|
SessionManager sessionManager = new SessionManager();
|
||
|
|
%>
|
||
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title></title>
|
||
|
|
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||
|
|
<script type="text/javascript">
|
||
|
|
function selectFun(dialog, grid) {
|
||
|
|
var checkedItems = $('#grid').datagrid('getChecked');
|
||
|
|
var datas="";
|
||
|
|
$.each(checkedItems, function(index, item){
|
||
|
|
datas = '{"Name":"'+item.Name +'","equipmentName":"'+item.equipmentName +'",'+
|
||
|
|
'"temperature":"'+item.temperature +'","humidity":"'+item.humidity +'",'+
|
||
|
|
'"dust":"'+item.dust +'"}';
|
||
|
|
});
|
||
|
|
return $.parseJSON(datas);
|
||
|
|
}
|
||
|
|
|
||
|
|
var grid;
|
||
|
|
$(function() {
|
||
|
|
grid = $('#grid').datagrid({
|
||
|
|
title : '',
|
||
|
|
url : ext.contextPath + '/clean/MonitorEquipment/getlist.do',
|
||
|
|
striped : true,
|
||
|
|
rownumbers : true,
|
||
|
|
pagination : true,
|
||
|
|
singleSelect: false,
|
||
|
|
ctrlSelect:true,
|
||
|
|
selectOnCheck: false,
|
||
|
|
checkOnSelect: false,
|
||
|
|
idField : 'id',
|
||
|
|
pageSize : 50,
|
||
|
|
pageList : [ 20, 50, 100],
|
||
|
|
columns : [ [
|
||
|
|
{checkbox:true , field : 'ck'},
|
||
|
|
{height:'200',width : '100', title : '设备名称', field : 'equipmentName', sortable : true, halign:'center'},
|
||
|
|
{width : '120', title : '上次修改时间', field : 'lastchangetime', sortable : true, halign:'center'},
|
||
|
|
{width : '120', title : '温度', field : 'temperature', sortable : true, halign:'center'},
|
||
|
|
{width : '120', title : '湿度', field : 'humidity', sortable : true, halign:'center'},
|
||
|
|
{width : '120', title : '尘埃粒子', field : 'dust', sortable : true, halign:'center'},
|
||
|
|
] ],
|
||
|
|
toolbar : '#toolbar'
|
||
|
|
});
|
||
|
|
});
|
||
|
|
|
||
|
|
</script>
|
||
|
|
</head>
|
||
|
|
<body class="easyui-layout" data-options="fit:true,border:false">
|
||
|
|
<div id="toolbar" style="display: none;">
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<form id="searchForm">
|
||
|
|
<input name="idStr" type="hidden" />
|
||
|
|
<table class="tooltable">
|
||
|
|
<tr>
|
||
|
|
<td>设备名称</td>
|
||
|
|
<td><input id="search_equipmentName" name="search_equipmentName" class="easyui-textbox" /></td>
|
||
|
|
<td>
|
||
|
|
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||
|
|
onclick="grid.datagrid('load',ext.serializeObject($('#searchForm')));">搜索</a>
|
||
|
|
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
|
||
|
|
onclick="$('#searchForm').form('clear');grid.datagrid('load',{});">重置</a>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</form>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<div data-options="region:'center',fit:true,border:false">
|
||
|
|
<table id="grid" data-options="fit:true,border:false"></table>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|