94 lines
2.9 KiB
Plaintext
94 lines
2.9 KiB
Plaintext
<%@ 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>
|
|
<script type="text/javascript">
|
|
var grid;
|
|
$(function() {
|
|
grid = $('#grid').datagrid({
|
|
title : '',
|
|
url : ext.contextPath + '/process/taskprocedure/getChiefJson.do?flag=select',
|
|
striped : true,
|
|
rownumbers : true,
|
|
pagination : true,
|
|
singleSelect: true,
|
|
selectOnCheck: true,
|
|
checkOnSelect: true,
|
|
nowrap:false,
|
|
idField : 'id',
|
|
pageSize : 50,
|
|
pageList : [ 20, 50, 100],
|
|
columns : [ [
|
|
{checkbox:true , field : 'ck'},
|
|
{width : '150', title : '用户名称', field : 'username', sortable : true, halign:'center'},
|
|
{width : '250', title : '班组名称', field : 'groupname', sortable : true, halign:'center'}
|
|
] ],
|
|
toolbar : '#toolbar',
|
|
onLoadSuccess : function(data) {
|
|
$('.iconImg').attr('src', ext.pixel_0);
|
|
}
|
|
});
|
|
});
|
|
function selectOK() {
|
|
var jsonstr = "";
|
|
var row = $('#grid').datagrid('getSelected');
|
|
if (row){
|
|
//以json格式返回数据
|
|
jsonstr = '{"userid":"'+row.userid
|
|
+'","username":"'+row.username
|
|
+'"}';
|
|
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_user" class="easyui-textbox" data-options="prompt:'请输入关键字'" style="width: 150px;" value=""/></td>
|
|
<td>
|
|
<td>班组名称</td>
|
|
<td><input name="search_group" 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>
|
|
|