97 lines
3.5 KiB
Plaintext
97 lines
3.5 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">
|
||
|
|
var grid;
|
||
|
|
|
||
|
|
function getNowFormatDate() {
|
||
|
|
var date = new Date();
|
||
|
|
var seperator1 = "-";
|
||
|
|
//var seperator2 = ":";
|
||
|
|
var month = date.getMonth() + 1;
|
||
|
|
var strDate = date.getDate();
|
||
|
|
if (month >= 1 && month <= 9) {
|
||
|
|
month = "0" + month;
|
||
|
|
}
|
||
|
|
if (strDate >= 0 && strDate <= 9) {
|
||
|
|
strDate = "0" + strDate;
|
||
|
|
}
|
||
|
|
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||
|
|
/*+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||
|
|
+ seperator2 + date.getSeconds();*/
|
||
|
|
return currentdate;
|
||
|
|
}
|
||
|
|
$(function() {
|
||
|
|
document.getElementById('search_fdate').value=getNowFormatDate();//设置默认时间
|
||
|
|
document.getElementById('search_tdate').value=getNowFormatDate();//设置默认时间
|
||
|
|
|
||
|
|
grid = $('#grid').datagrid({
|
||
|
|
title : '',
|
||
|
|
url : ext.contextPath + '/quality/testingrecord/getTimeAmountList.do?procedureid=${procedureid}',
|
||
|
|
striped : true,
|
||
|
|
rownumbers : true,
|
||
|
|
pagination : true,
|
||
|
|
singleSelect: false,
|
||
|
|
ctrlSelect:true,
|
||
|
|
selectOnCheck: false,
|
||
|
|
checkOnSelect: false,
|
||
|
|
showFooter:true,
|
||
|
|
idField : 'id',
|
||
|
|
pageSize : 50,
|
||
|
|
pageList : [ 20, 50, 100],
|
||
|
|
columns : [ [
|
||
|
|
{width : '150', title : '日期', field : 'time', halign:'center',align:'center',formatter:function(value){
|
||
|
|
return value.substring(0,10);
|
||
|
|
}},
|
||
|
|
{width : '115', title : '接收数量', field : 'receivedquantity', sortable : true, halign:'center',align:'center'},
|
||
|
|
{width : '115', title : '返回数量', field : 'returnquantity', sortable : true, halign:'center',align:'center'},
|
||
|
|
{width : '115', title : '报废数量', field : 'scrapquantity', sortable : true,halign:'center',align:'center'} ] ],
|
||
|
|
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 class="tooltable">
|
||
|
|
<tr>
|
||
|
|
<td>日期从</td>
|
||
|
|
<td><input id="search_fdate" name="search_fdate" class="Wdate" value=""
|
||
|
|
onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></td>
|
||
|
|
<td>到</td>
|
||
|
|
<td><input id="search_tdate" name="search_tdate" class="Wdate" value=""
|
||
|
|
onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></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>
|