first commit
This commit is contained in:
105
bin/WebRoot/jsp/process/staffPoolList.jsp
Normal file
105
bin/WebRoot/jsp/process/staffPoolList.jsp
Normal file
@ -0,0 +1,105 @@
|
||||
<%@ 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 procedureEditFun = function() {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '编辑单元池',
|
||||
width: '70%',
|
||||
height: '70%',
|
||||
url : ext.contextPath + '/process/taskprocedure/editProcedure.do',
|
||||
});
|
||||
};
|
||||
|
||||
var staffDeployFun = function(id) {
|
||||
var dialog = parent.ext.modalDialog({
|
||||
title : '人员配置',
|
||||
width: '40%',
|
||||
height: '55%',
|
||||
url : ext.contextPath + '/process/taskprocedure/staffDeploy.do?id=' + id,
|
||||
});
|
||||
};
|
||||
|
||||
$(function() {
|
||||
grid = $('#grid').datagrid({
|
||||
title : '',
|
||||
url : ext.contextPath + '/process/taskprocedure/getStaffPool.do',
|
||||
striped : true,
|
||||
rownumbers : true,
|
||||
pagination : true,
|
||||
singleSelect: false,
|
||||
ctrlSelect: true,
|
||||
selectOnCheck: false,
|
||||
checkOnSelect: false,
|
||||
idField : 'id',
|
||||
pageSize : 50,
|
||||
pageList : [ 20, 50, 100],
|
||||
columns : [ [
|
||||
{checkbox:true , field : 'ck'},
|
||||
{width : '150', title : '工序名称', field : 'procedurename', sortable : true, halign:'center'},
|
||||
{width : '150', title : '工序编号', field : 'procedurecode', sortable : true, halign:'center'},
|
||||
{title : '操作', field : 'action', width : '120', halign:'center', align:'center', formatter : function(value, row) {
|
||||
var str = '';
|
||||
<%if (sessionManager.havePermission(session,"process/taskprocedure/staffDeploy.do")) {%>
|
||||
str += '<img class="iconImg ext-icon-table_key" title="人员配置" onclick="staffDeployFun(\''+row.id+'\');"/>';
|
||||
<%}%>
|
||||
return str;
|
||||
}
|
||||
}
|
||||
] ],
|
||||
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">
|
||||
<input name="idStr" type="hidden" />
|
||||
<table class="tooltable">
|
||||
<tr>
|
||||
<td>工序名称</td>
|
||||
<td><input name="search_name" class="easyui-textbox" /></td>
|
||||
<td>工序编号</td>
|
||||
<td><input name="search_code" 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>
|
||||
<td><div class="datagrid-btn-separator"></div></td>
|
||||
<%if (sessionManager.havePermission(session,"process/taskprocedure/procedureEdit.do")) {%>
|
||||
<td>
|
||||
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'iconImg ext-icon-table_edit',plain:true"
|
||||
onclick="procedureEditFun();">单元池编辑</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