first commit
This commit is contained in:
114
bin/WebRoot/jsp/quality/processQualityManagementList.jsp
Normal file
114
bin/WebRoot/jsp/quality/processQualityManagementList.jsp
Normal file
@ -0,0 +1,114 @@
|
||||
<%@ 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;
|
||||
var viewHFun = function(pdname,procedureid) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : pdname,
|
||||
width: 550,
|
||||
height:600,
|
||||
url : ext.contextPath + '/quality/testingrecord/showTimeAmountList.do?procedureid=' + procedureid
|
||||
});
|
||||
};
|
||||
|
||||
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_date').value=getNowFormatDate();//设置默认时间
|
||||
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/testingrecord/getAmountList.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect:true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '150', title : '工序', field : 'procedurename', halign:'center',align:'center'},
|
||||
{width : '100', title : '接收数量', field : 'receivedquantity', sortable : true, halign:'center',align:'center'},
|
||||
{width : '100', title : '返回数量', field : 'returnquantity', sortable : true, halign:'center',align:'center'},
|
||||
{width : '100', title : '报废数量', field : 'scrapquantity', sortable : true,halign:'center',align:'center'},
|
||||
{width : '100', title : '说明', field : 'instruction', halign:'center',align:'center'},
|
||||
{title : '操作', field : 'action', width : '120', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
str += '<img class="iconImg ext-icon-table_multiple" title="往期状态查询" onclick="viewHFun(\''+row.procedurename+'\',\''+row.procedureid+'\');"/>';
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
$('#search_proced').combobox({
|
||||
url : ext.contextPath + '/process/taskprocedure/getprocedlist.do?random=' + Math.random(),
|
||||
valueField:'procedurecode',
|
||||
textField:'procedurename',
|
||||
method:'get'
|
||||
});
|
||||
});
|
||||
|
||||
</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_date" name="search_date" class="Wdate" value=""
|
||||
onfocus="WdatePicker({startDate:'%y',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-{%d}'})" readonly/></td>
|
||||
<td>工序</td>
|
||||
<td><input id="search_proced" name="search_proced" class="easyui-combobox" /></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