109 lines
3.4 KiB
Plaintext
109 lines
3.4 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">
|
|
$(function() {
|
|
grid = $('#grid').datagrid({
|
|
title : '',
|
|
url : ext.contextPath + '/plan/dailyplansummarymaterial/getDailyPlanSummaryMaterials.do?planid=${dailyPlanSummary.id}',
|
|
striped : true,
|
|
rownumbers : true,
|
|
pagination : true,
|
|
singleSelect: false,
|
|
ctrlSelect: true,
|
|
selectOnCheck: false,
|
|
checkOnSelect: false,
|
|
idField : 'id',
|
|
pageSize : 50,
|
|
pageList : [ 20, 50, 100],
|
|
idField : 'id',
|
|
columns : [ [
|
|
{width : '100', title : '工位编号', field: 'workstation', sortable : true, align:'center' , formatter : function(value, row){
|
|
if(value!=null){
|
|
return value.serial;
|
|
}else{
|
|
return "";
|
|
}
|
|
}},
|
|
{width : '150', title : '工位名称', field: 'workstationname', sortable : true, align:'center' , formatter : function(value, row){
|
|
if(row.workstation!=null){
|
|
return row.workstation.name;
|
|
}else{
|
|
return "";
|
|
}
|
|
}},
|
|
{width : '150', title : '物料编码', field : 'materialinfo', sortable : true, halign:'center' , formatter : function(value, row){
|
|
if(value!=null){
|
|
return value.materialcode;
|
|
}else{
|
|
return "";
|
|
}
|
|
}},
|
|
{width : '260', title : '物料名称', field : 'materialname', sortable : true, halign:'center' , formatter : function(value, row){
|
|
if(row.materialinfo!=null){
|
|
return row.materialinfo.materialname;
|
|
}else{
|
|
return "";
|
|
}
|
|
}},
|
|
{width : '90', title : '总计划量', field : 'amount', halign:'center' , formatter : function(value, row){
|
|
if(value!=null){
|
|
if(value>0){
|
|
if(row.materialinfo.unit!=null){
|
|
return value+" "+row.materialinfo.unit;
|
|
}else{
|
|
return value;
|
|
}
|
|
|
|
}
|
|
return "";
|
|
|
|
}else{
|
|
return "";
|
|
}
|
|
}}
|
|
] ],
|
|
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 name="search_workstationserial" class="easyui-textbox" /></td>
|
|
<td>物料编码</td>
|
|
<td><input name="search_materialcode" class="easyui-textbox" /></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>
|