1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
| //窗体加载
| $(function () {
| initPartialWorkflowTable();
| });
|
|
| //初始化表格
| function initPartialWorkflowTable() {
| var code = '';
| var name = '';
| var billType = 0;// 不加这个筛选了
| $('.easyui-datagrid[title="SearchPartialWorkflow"]').datagrid({
| //分页
| fitColumns: true,
| singleSelect: true,
| url: '../../GlobalM/Workflow/GetWorkflow',
| queryParams: { Code: code, Name: name, BillTypeId: billType },
| pagination: true,
| rownumbers: true,
| pagePosition: 'bottom',
| pageSize: 10,
| pageNumber: 1,
| pageList: [2, 10, 15, 20, 30, 50],
| toolbar: '.WorkflowToolBar',
| fitColumns: true,
| //数据格式
| columns: [[
| //{ checkbox: true, field: 'Id', fixed: true, },
| { title: '序号', width: 35, field: 'Id', hidden: true, },
| { title: '编号', width: 130, field: 'Code', },
| { title: '名称', width: 230, field: 'Name', },
|
| { title: '审计地址', width: 120, field: 'AuditUrl', },
| { title: '浏览地址', width: 120, field: 'BrowseUrl', },
| { title: '开始地址', width: 120, field: 'StartUrl', },
| {
| title: '创建时间', width: 200, field: 'CreateTime', formatter: function (value, row, index) {
| return toDateStr(value);
| }
| },
| //{ title: '创建人', width: 100, field: 'CreateUserId', hidden: true, },
| //{ title: '创建人', width: 100, field: 'CreateUserName', },
| {
| title: '变更时间', width: 200, field: 'ChangeTime', formatter: function (value, row, index) {
| return toDateStr(value);
| }
| },
| { title: '变更人', width: 100, field: 'ChangeUserId', hidden: true, },
| { title: '变更人', width: 100, field: 'ChangeUserName', },
| ]],
| });
| }
|
|
| function clickPartialWorkflowSearch(obj) {
| var $codeDoc = $(obj).siblings('.easyui-textbox[title="code"]').first();
| var code = $($codeDoc).textbox('getValue');
| var $nameDoc = $(obj).siblings('.easyui-textbox[title="name"]').first();
| var name = $($nameDoc).textbox('getValue');
| $('.easyui-datagrid[title="SearchPartialWorkflow"]').datagrid('load', {
| Code: code,
| Name: name,
| });
| }
|
| function clickPartialWorkflowSearchClear(obj) {
| var $codeDoc = $(obj).siblings('.easyui-textbox[title="code"]').first();
| $($codeDoc).textbox('setValue', '');
| var $nameDoc = $(obj).siblings('.easyui-textbox[title="name"]').first();
| $($nameDoc).textbox('setValue', '');
| }
|
|