first commit
This commit is contained in:
137
bin/WebRoot/jsp/plan/taskorderForSelect.jsp
Normal file
137
bin/WebRoot/jsp/plan/taskorderForSelect.jsp
Normal file
@ -0,0 +1,137 @@
|
||||
<%@ 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"%>
|
||||
<%request.setAttribute("TO_Flag_ERPConfirm",com.sipai.entity.plan.Taskorder.TO_Flag_ERPConfirm);%>
|
||||
<%request.setAttribute("TO_Flag_Issued",com.sipai.entity.plan.Taskorder.TO_Flag_Issued);%>
|
||||
<%request.setAttribute("TO_Flag_Working",com.sipai.entity.plan.Taskorder.TO_Flag_Working);%>
|
||||
<%request.setAttribute("TO_Flag_Closed",com.sipai.entity.plan.Taskorder.TO_Flag_Closed);%>
|
||||
<%request.setAttribute("TO_Flag_Cancel",com.sipai.entity.plan.Taskorder.TO_Flag_Cancel);%>
|
||||
<%request.setAttribute("TO_Flag_NoPlan",com.sipai.entity.plan.Taskorder.TO_Flag_NoPlan);%>
|
||||
<%request.setAttribute("TO_Flag_ERPIssued",com.sipai.entity.plan.Taskorder.TO_Flag_ERPIssued);%>
|
||||
<%
|
||||
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() {
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/plan/taskorder/getTaskOrderForSelect.do?flag=select',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: true,
|
||||
selectOnCheck: true,
|
||||
checkOnSelect: true,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
rowStyler: function(index,row){
|
||||
var rowstyler='';
|
||||
if(row.status=='1'){
|
||||
rowstyler+= ' background-color:#C0C0C0;color:#fff;';
|
||||
}
|
||||
return rowstyler;
|
||||
},
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '150', title : '任务单编号', field : 'tasklistcode', sortable : true, halign:'center'},
|
||||
{width : '150', title : '产品编码', field : 'productno', sortable : true, halign:'center'},
|
||||
{width : '150', title : '产品数量', field : 'prodamount', sortable : true, halign:'center'},
|
||||
{width : '150', title : '销售单号', field : 'salesno', sortable : true, align:'center', halign:'center'},
|
||||
{width : '80', title : '开始日期', field : 'pstdate', sortable : true, align:'center', halign:'center'},
|
||||
{width : '80', title : '结束日期', field : 'pendate', sortable : true, align:'center', halign:'center'},
|
||||
{width : '80', title : '单据状态', field : 'billstatus', sortable : true, align:'center', halign:'center',formatter:function(value,row){
|
||||
switch (value) {
|
||||
case '${TO_Flag_ERPConfirm}':
|
||||
return '确认';
|
||||
case '${TO_Flag_Issued}':
|
||||
return '下发';
|
||||
case '${TO_Flag_Working}':
|
||||
return '开工';
|
||||
case '${TO_Flag_Finish}':
|
||||
return '完成';
|
||||
case '${TO_Flag_Closed}':
|
||||
return '结案';
|
||||
case '${TO_Flag_Cancel}':
|
||||
return '作废';
|
||||
case '${TO_Flag_NoPlan}':
|
||||
return '未排计划';
|
||||
case '${TO_Flag_ERPIssued}':
|
||||
return 'ERP下达';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}},
|
||||
{width : '80', title : '单据下达时间', field : 'billruntime', sortable : true, align:'center', halign:'center'}
|
||||
] ],
|
||||
toolbar : '#toolbar',
|
||||
onLoadSuccess : function(data) {
|
||||
$('.iconImg').attr('src', ext.pixel_0);
|
||||
}
|
||||
});
|
||||
});
|
||||
function selectOK() {
|
||||
var tasklistcode = 0;
|
||||
var jsonstr = "";
|
||||
var row = $('#grid').datagrid('getSelected');
|
||||
if (row){
|
||||
//以json格式返回数据
|
||||
jsonstr = '{"id":"'+row.id
|
||||
+'","tasklistcode":"'+row.tasklistcode
|
||||
+'","productno":"'+row.productno
|
||||
+'","prodamount":"'+row.prodamount
|
||||
+'","salesno":"'+row.salesno
|
||||
+'","pstdate":"'+row.pstdate
|
||||
+'","pendate":"'+row.pendate
|
||||
+'","billstatus":"'+row.billstatus
|
||||
+'","billruntime":"'+row.billruntime
|
||||
+'"}';
|
||||
var dataset = $.parseJSON(jsonstr);
|
||||
return dataset;
|
||||
}else{
|
||||
return 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>
|
||||
<tr >
|
||||
<td>销售订单</td>
|
||||
<td><input name="search_salesno" class="easyui-textbox" data-options="prompt:'请输入关键字'" style="width: 150px;" value=""/></td>
|
||||
<td>
|
||||
<td>产品编码</td>
|
||||
<td><input name="search_name" class="easyui-textbox" data-options="prompt:'请输入关键字'" style="width: 150px;" value=""/></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>
|
||||
<td><div class="datagrid-btn-separator"></div></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