first commit
This commit is contained in:
109
bin/WebRoot/jsp/material/alertinkList.jsp
Normal file
109
bin/WebRoot/jsp/material/alertinkList.jsp
Normal file
@ -0,0 +1,109 @@
|
||||
<%@ 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();
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<script type="text/javascript">
|
||||
function selectFun() {
|
||||
var checkedItems = $('#grid').datagrid('getChecked');
|
||||
var datas="";
|
||||
$.each(checkedItems, function(index, item){
|
||||
datas = '{"id":"'+item.id +'","no":"'+item.no +'",'+
|
||||
'"no":"'+item.no +'"}';
|
||||
});
|
||||
|
||||
var dataset = $.parseJSON(datas);
|
||||
return dataset;
|
||||
}
|
||||
|
||||
var grid;
|
||||
$(function() {
|
||||
var equid = localStorage.getItem("equid");
|
||||
localStorage.removeItem("equid");
|
||||
//console.log("equid",equid);
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/material/inkalert/getInkbatchList.do?equid='+equid+'&querytype=select',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: true,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
selectOnCheck: true,
|
||||
checkOnSelect: true,
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '120', title : '批次号', field : 'no', sortable : true, halign:'center'},
|
||||
{width : '90', title : '油墨名称', field : 'name', sortable : true, halign:'center'},
|
||||
{width : '80', title : '油墨类别', field : 'type', sortable : true, halign:'center'},
|
||||
{width : '60', title : '状态', field : 'status', sortable : true, halign:'center',formatter : function(value, row, index) {
|
||||
switch (value) {
|
||||
case '0':
|
||||
return '未使用';
|
||||
case '1':
|
||||
return '使用中';
|
||||
case '2':
|
||||
return '使用完毕';
|
||||
}
|
||||
}},
|
||||
{width : '130', title : '使用开始时间', field : 'starttime', sortable : true, halign:'center',formatter : function(value, row){
|
||||
return value.substring(0,19);
|
||||
} },
|
||||
{width : '130', title : '使用结束时间', field : 'endtime', sortable : true, halign:'center',formatter : function(value, row){
|
||||
return value.substring(0,19);
|
||||
} },
|
||||
{width : '150', title : '使用机台', field : 'equipmentName', sortable : true, halign:'center'},
|
||||
{width : '60', title : '修改者', field : 'alteruser', sortable : true, halign:'center',formatter : function(value, row) {
|
||||
value ='admin';
|
||||
return value;
|
||||
} },
|
||||
{width : '130', title : '修改时间', field : 'alterdt', sortable : true, halign:'center',formatter : function(value, row){
|
||||
return value.substring(0,19);
|
||||
} },
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="easyui-layout" data-options="fit:true,border:false">
|
||||
<div id="toolbar" style="display: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<form id="searchForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>批次号</td>
|
||||
<td><input name="search_no" 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