first commit
This commit is contained in:
143
bin/WebRoot/jsp/sfc/AoidataList.jsp
Normal file
143
bin/WebRoot/jsp/sfc/AoidataList.jsp
Normal file
@ -0,0 +1,143 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.Date" %>
|
||||
<%@page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="com.sipai.tools.SessionManager"%>
|
||||
<%
|
||||
SessionManager sessionManager = new SessionManager();
|
||||
%>
|
||||
<%String contextPath = request.getContextPath();%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
|
||||
<script type="text/javascript" src="<%=contextPath%>/JS/datagrid-dnd.js"></script>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
|
||||
$(function() {
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/sfc/aoidata/getlist.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
selectOnCheck: true,
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '120', title : '数据插入时间', field : 'insdt', sortable : true, halign:'center',formatter:function(value){
|
||||
return value.substring(0,19);
|
||||
}
|
||||
},
|
||||
{width : '100', title : '设备编号', field : 'equipmentno', sortable : true, halign:'center'},
|
||||
{width : '120', title : '日期起始', field : 'productiondatestart', sortable : true, halign:'center',formatter:function(value){
|
||||
return value.substring(0,19);
|
||||
}
|
||||
},
|
||||
{width : '120', title : '日期截止', field : 'productiondateend', sortable : true, halign:'center',formatter:function(value){
|
||||
return value.substring(0,19);
|
||||
}
|
||||
},
|
||||
{width : '80', title : '备注', field : 'operator', sortable : false, halign:'center'},
|
||||
{width : '60', title : '序号', field: 'no', sortable : true, halign:'center'},
|
||||
{width : '60', title : '投入', field: 'input', sortable : true, halign:'center'},
|
||||
{width : '60', title : '产出', field: 'output', sortable : true, halign:'center'},
|
||||
{width : '60', title : '生产良率', field: 'pdgoodrate', sortable : true, halign:'center'},
|
||||
{width : '60', title : '二次良率', field: 'twotimerate', sortable : true, halign:'center'},
|
||||
{width : '60', title : '不良率', field: 'ngrate', sortable : true, halign:'center'},
|
||||
{width : '60', title : '异常频次', field: 'abnormalfrq', sortable : true, halign:'center'}
|
||||
|
||||
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
//$(this).datagrid('enableDnd');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function formattime(val) {
|
||||
var year = parseInt(val.year) + 1900;
|
||||
var month = (parseInt(val.month) + 1);
|
||||
month = month > 9 ? month : ('0' + month);
|
||||
var date = parseInt(val.date);
|
||||
date = date > 9 ? date : ('0' + date);
|
||||
var hours = parseInt(val.hours);
|
||||
hours = hours > 9 ? hours : ('0' + hours);
|
||||
var minutes = parseInt(val.minutes);
|
||||
minutes = minutes > 9 ? minutes : ('0' + minutes);
|
||||
var seconds = parseInt(val.seconds);
|
||||
seconds = seconds > 9 ? seconds : ('0' + seconds);
|
||||
var time = year + '-' + month + '-' + date + ' ' + hours + ':'
|
||||
+ minutes + ':' + seconds;
|
||||
return time;
|
||||
}
|
||||
function allow(){
|
||||
grid.datagrid('enableDnd');
|
||||
//grid.datagrid('reload');
|
||||
}
|
||||
function notallow(){
|
||||
grid.datagrid('reload');
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<!-- <td> -->
|
||||
<!-- <%if (sessionManager.havePermission(session,"equipment/addGeographyArea.do")) {%> -->
|
||||
<!-- <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" -->
|
||||
<!-- onclick="addFun();">添加</a> -->
|
||||
<!-- <%}%> -->
|
||||
<!-- </td> -->
|
||||
<!-- <td> -->
|
||||
<!-- <%if (sessionManager.havePermission(session,"equipment/deleteGeographyArea.do")) {%> -->
|
||||
<!-- <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" -->
|
||||
<!-- onclick="deletesFun();">删除</a> -->
|
||||
<!-- <%}%> -->
|
||||
<!-- </td> -->
|
||||
<!-- <td><div class="datagrid-btn-separator"></div></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_add',plain:true" onclick="">导入</a></td>
|
||||
<td><a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_go',plain:true" onclick="">导出</a></td> -->
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>名称</td>
|
||||
<td><input name="search_equipmentno" class="easyui-textbox" style="width: 180px;" /></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>
|
||||
Reference in New Issue
Block a user