171 lines
4.8 KiB
Plaintext
171 lines
4.8 KiB
Plaintext
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<jsp:include page="../inc.jsp"></jsp:include>
|
|
<script type="text/javascript">
|
|
var grid;
|
|
$(function() {
|
|
grid = $('#grid').datagrid({
|
|
title : '',
|
|
url : ext.contextPath + '/activiti/workflow/getAllPDNode.do?processDefinitionId=${dailyplan.processrealid}&order=desc' ,
|
|
striped : true,
|
|
rownumbers : true,
|
|
pagination : true,
|
|
singleSelect: true,
|
|
selectOnCheck: true,
|
|
checkOnSelect: false,
|
|
idField : 'id',
|
|
pageSize : 50,
|
|
pageList : [ 20, 50, 100],
|
|
columns : [ [
|
|
{width : '100', title : '工序名称', field : 'name', halign:'center'},
|
|
{width : '100', title : '工序Id', field : 'id', halign:'center'},
|
|
{width : '100', title : '工艺名称', field : 'pd_name', halign:'center'},
|
|
{width : '60', title : '计划良率', field : 'yield', align:'center'},
|
|
{width : '60', title : '计划数', field : 'status', align:'center'}
|
|
] ],
|
|
toolbar : '#toolbar',
|
|
onLoadSuccess : function(data) {
|
|
$('.iconImg').attr('src', ext.pixel_0);
|
|
|
|
|
|
if(data){
|
|
$.each(data.rows, function(index, item){
|
|
if(item._checked){
|
|
$('#grid').datagrid('checkRow', index);
|
|
}
|
|
});
|
|
}
|
|
if(grid.datagrid('getSelected')==null){
|
|
grid.datagrid('selectRow',0);
|
|
}
|
|
showProcedureDistrictStatus();
|
|
}
|
|
});
|
|
|
|
});
|
|
var showProcedureDistrictStatus= function(){
|
|
//alert()
|
|
|
|
$.post(ext.contextPath + '/plan/dailyplansummary/getTaskDemands.do', {planid:'${dailyplan.id}'} , function(data) {
|
|
//console.info(data)
|
|
//if(data.length>0){
|
|
//alert("222");
|
|
var griddata=$("#grid").datagrid("getData").rows;
|
|
|
|
for(var i=0;i<griddata.length;i++){
|
|
//console.info(griddata);
|
|
var taskcode=griddata[i].id;
|
|
//alert(taskcode)
|
|
$("#grid").datagrid("getRows")[i]['status']="";
|
|
$('#grid').datagrid('refreshRow', i);
|
|
for(var j=0;j<data.length;j++){
|
|
if(taskcode==data[j].taskcode){
|
|
|
|
$("#grid").datagrid("getRows")[i]['status']=data[j].preamount;
|
|
$('#grid').datagrid('refreshRow', i);
|
|
var rowIndex=$('#grid').datagrid('getRowIndex',$('#grid').datagrid('getSelected'));
|
|
$('#grid').datagrid("selectRow",rowIndex)
|
|
}
|
|
}
|
|
|
|
}
|
|
//}
|
|
},'json');
|
|
};
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<form method="post" class="form">
|
|
<input type="hidden" id="id" name="id" value="${dailyplan.id}"/>
|
|
<input type="hidden" id="status" name="status" value="${dailyplan.status}"/>
|
|
<table class="table">
|
|
<tr>
|
|
<th>任务单编号</th>
|
|
<td>${dailyplan.taskorder.tasklistcode}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>产品编码</th>
|
|
<td>${dailyplan.taskorder.productno}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>产品数量</th>
|
|
<td>${dailyplan.taskorder.prodamount}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>销售单号</th>
|
|
<td>${dailyplan.taskorder.salesno}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>开始日期</th>
|
|
<td>${fn:substring(dailyplan.taskorder.pstdate,0,10)}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>结束日期</th>
|
|
<td>${fn:substring(dailyplan.taskorder.pendate,0,10)}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>单据状态</th>
|
|
<td>${dailyplan.taskorder.billstatus}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>单据下达日期</th>
|
|
<td>${fn:substring(dailyplan.taskorder.billruntime,0,10)}</td>
|
|
</tr>
|
|
|
|
</table>
|
|
<br />
|
|
<table class="table">
|
|
<tr>
|
|
<th>计划日期</th>
|
|
<td>${fn:substring(dailyplan.stdt,0,10)}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>产品工艺路线</th>
|
|
<td>${dailyplan.processrealid }</td>
|
|
</tr>
|
|
<%-- <tr>
|
|
<th>产线</th>
|
|
<td>${dailyplan.lineid}</td>
|
|
</tr> --%>
|
|
<tr>
|
|
<th>产品BOM</th>
|
|
<td>${dailyplan.materialBOM.materialname}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>计划下达日期</th>
|
|
<td>${dailyplan.stdt}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>计划完成日期</th>
|
|
<td>${dailyplan.eddt}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>备注</th>
|
|
<td>${dailyplan.remark}</td>
|
|
</tr>
|
|
<!-- <tr> -->
|
|
<!-- <th>计划状态</th> -->
|
|
<!-- <td><select id="status" name="status" class="easyui-combobox" data-options="panelHeight:'auto'"> -->
|
|
<!-- <option value="0" selected>计划编制</option> -->
|
|
<!-- <option value="1">计划下发</option> -->
|
|
<!-- </select> -->
|
|
<!-- </td> -->
|
|
<!-- </tr> -->
|
|
|
|
</table>
|
|
</br>
|
|
<div id="tool" title ="任务量" class="easyui-panel" style="height:100%;width:98%;" data-options="border:true" >
|
|
<table id="grid" data-options="border:false,fit:true" ></table>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|