first commit
This commit is contained in:
150
bin/WebRoot/jsp/quality/yieldStatistic_TaskOrder.jsp
Normal file
150
bin/WebRoot/jsp/quality/yieldStatistic_TaskOrder.jsp
Normal file
@ -0,0 +1,150 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" 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>
|
||||
<style type="text/css">
|
||||
.subtotal { font-weight: bold; }/*合计单元格样式*/
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var grid;
|
||||
var viewFun = function(id) {
|
||||
grid.datagrid('clearChecked');
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '查看检验单信息',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_CI/viewCISub.do?id=' + id,
|
||||
buttons : [ {
|
||||
text : '关闭',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
var showDetailFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '详情',
|
||||
width:950,
|
||||
url : ext.contextPath + '/quality/statistics_Yield/showTaskOrderYieldDetail.do?taskorderid=' + id,
|
||||
buttons : [ {
|
||||
text : '保存',
|
||||
handler : function() {
|
||||
dialog.dialog('destroy');;
|
||||
}
|
||||
} ]
|
||||
});
|
||||
};
|
||||
function onchangedate(){
|
||||
var date=$("#nowdate").val();
|
||||
loadtaskorders(date);
|
||||
}
|
||||
function loadtaskorders(date){
|
||||
$("#taskorderno").combobox({
|
||||
url : ext.contextPath + '/plan/taskorder/getTaskOrderList4Combo.do?dt='+date,
|
||||
valueField : 'id',
|
||||
textField : 'tasklistcode',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onSelect: function () {
|
||||
/* var workorderno = $("#workorderno").combobox('getValue');
|
||||
$("#procedureno").combobox({
|
||||
url : ext.contextPath + '/work/workorder/getProcedurelist4Select.do?workorderno='+workorderno,
|
||||
valueField : 'id',
|
||||
textField : 'name',
|
||||
method:'get',
|
||||
panelHeight:'auto',
|
||||
onLoadSuccess: function(record){
|
||||
if($("#procedureno").combobox('getData').length>0){
|
||||
$("#procedureno").combobox('select','${sessionScope.procedure}');
|
||||
}
|
||||
},
|
||||
onSelect: function () {
|
||||
}
|
||||
}); */
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadgridItems(){
|
||||
var taskorderno = $("#taskorderno").combobox('getValue');
|
||||
var dt=$("#nowdate").val();
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/quality/statistics_Yield/getTaskOrderYield.do?taskorderno='+taskorderno+'&dt='+dt,
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
ctrlSelect:true,
|
||||
singleSelect: false,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{width : '280', title : '任务单编号', field: 'tasklistcode', halign:'center' , align:'center'},
|
||||
{width : '180', title : '产品编号', field: 'productno', halign:'center' , align:'center'},
|
||||
{width : '80', title : '产品数量', field: 'prodamount', halign:'center' , align:'center'},
|
||||
{width : '80', title : '直通率', field: 'rolledYield', halign:'center' , align:'center'},
|
||||
{width : '100', title : '综合良率', field : 'comprehensiveYield', halign:'center' , align:'center'},
|
||||
{width : '80', title : '报废率', field: 'scrapYield', halign:'center' , align:'center'},
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
},
|
||||
onDblClickRow: function (rowIndex, rowData) {
|
||||
var id= rowData.id;
|
||||
showDetailFun(id);
|
||||
}
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
|
||||
loadtaskorders('${dt}');
|
||||
loadgridItems();
|
||||
});
|
||||
|
||||
</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 id="nowdate" name="nowdate" class="Wdate" value="${dt }" style="width: 180px;"
|
||||
onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',onpicked:onchangedate})"
|
||||
></td>
|
||||
<td>任务单编号</td>
|
||||
<td><input id="taskorderno" name="taskorderno" class="easyui-combobox" style="width: 280px;" value=""/></td>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-search',plain:true"
|
||||
onclick="loadgridItems('','');">搜索</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',border:false">
|
||||
<table id="grid" data-options="fit:true,border:false"></table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user