多单位版国产化地质资料管理系统
zhai
2025-12-13 fc0cc9fff4b4cbdc7cbb52b4a96c947530fcbba0
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>">
 
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>我的代办</title>
    <!--[if !IE]><!-->
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <!--<![endif]-->
    <!--[if gt IE 8]>
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <![endif]-->
    <link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
    <link href="static/styles/initialize.css" rel="stylesheet" type="text/css">
    <link href="static/styles/common.css" rel="stylesheet" type="text/css">
    <link href="static/styles/tree-style.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="static/styles/material-teal.css" type="text/css">
    <link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
 
    <script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="static/scripts/easyuiExtend.js"></script>
    <script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
 
 
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="static/scripts/customResize.js"></script>
    <!-- 弹窗加载组件 -->
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
    <script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
    <!-- wcp组件 -->
    <script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
 
    <!--[if lt IE 9]>
    <script type="text/javascript" src="static/plugins/json2.js"></script>
    <![endif]-->
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.infoPicker.js"></script>
    <style>
        html, body {
            height: 100%;
            width: 100%;
            overflow: hidden;
        }
 
        .radioSpan {
            position: relative;
            border: 1px solid #95B8E7;
            background-color: #fff;
            vertical-align: middle;
            display: inline-block;
            overflow: hidden;
            white-space: nowrap;
            margin: 0;
            padding: 0;
            -moz-border-radius: 5px 5px 5px 5px;
            -webkit-border-radius: 5px 5px 5px 5px;
            border-radius: 5px 5px 5px 5px;
            display: block;
        }
 
        .layout-split-west {
            border-right: 5px solid #fff;
        }
    </style>
</head>
<body>
<div class="margin-lr">
    <div class="pt-main-top clear">
        <div class="pt-nav  pt-nav-xs">
                <span class="pt-title-icon">
                    <i class="fa fa-address-card-o"></i>
                </span>
            <div class="pt-title">
                <div>
                    <h4>我的待办</h4>
                </div>
            </div>
        </div>
        <div class="pt-search pt-search-xs">
            <p class="pt-retrieval">
                <input id="txtKeySearch" type="text" placeholder="请输入任务名称查询">
                <button id="btnKeySearch">
                    <i class="fa fa-search"></i>
                </button>
            </p>
            <button id="search" class="pt-btn pt-btn-info"><i class="fa fa-search"></i>高级查询</button>
            <div class="pt-btnList">
            </div>
        </div>
    </div>
   <%-- <div class="pt-form-inline" style="clear:both;" id="div_search"></div>--%>
    <div>
        <div class="pt-form-inline" id="div_search" style="display:none;">
 
            <div class="form-group">
                <label class="control-label">流程类型:</label>
                <div class="control-inline">
                    <select name="flowCategory" id="flowCategory" style="width: 200px" class="easyui-combobox" data-options="panelHeight: 'auto'"></select>
                </div>
            </div>
 
            <div class="form-group">
                <label class="control-label">所属模块:</label>
                <div class="control-inline">
                    <select name="flowModule" id="flowModule" style="width: 200px" class="easyui-combobox" data-options="panelHeight: 'auto'"></select>
                </div>
            </div>
 
            <div class="form-group">
                <button id="searchSelect" class="pt-btn pt-btn-info">查询</button>
                <!--   <button id="btnReset" class="pt-btn pt-btn-default">重置</button> -->
            </div>
 
        </div>
    <div>
 
        <div id="div_table">
            <table id="dg_viewData" style="width:100%;height:100%;">
            </table>
        </div>
 
    </div>
</div>
</body>
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
<script>
    //定义页面全局变量
    var t_viewData = null;
    var columns = [];
    var frozenColumns = [{field: 'ck', checkbox: true}];//固定列
    var formParams = ""; //表单参数
    var customFormParams = "";
    var wh = $(window).height();
    var height=wh - 90;
    var pageSize = parseInt('50');
    //窗口参数,用于弹窗传递
    var params = {
        callBack : null
    };
 
    //当前导航分类ID
    var classificationTreeIds = "";
    var classificationTreeTexts = "";
 
    //组合查询条件
    var combinationQueryConditions = null;
    columns.push({
        field: 'moduleName',
        title: '所属模块',
        width:100,
        halign: 'center',
        align: 'center',
        sortable:false
    });
    columns.push({
        field: 'flowDefinitionName',
        title: '流程名称',
        width:100,
        halign: 'center',
        align: 'center',
        sortable:false
    });
    columns.push({
        field: 'executionName',
        title: '任务名称',
        width:200,
        halign: 'center',
        align: 'left',
        sortable:false
    });
    columns.push({
        field: 'startUserName',
        title: '发起人',
        width:100,
        halign: 'center',
        align: 'center',
        sortable:false
    });
    columns.push({
        field: 'taskName',
        title: '流程当前步骤',
        width:100,
        halign: 'center',
        align: 'center',
        sortable:false
    });
    columns.push({
        field: 'assigneeUserName',
        title: '执行人员',
        width:100,
        halign: 'center',
        align: 'center',
        sortable:false
    });
    columns.push({
        field: 'createTime',
        title: '开始时间',
        width:150,
        halign: 'center',
        align: 'center',
        sortable:false
    });
 
    $(function () {
        getFlowDefinition();
        getFlowModule()
        //初始化表格
        var isFirstRow = false;
        t_viewData = $('#dg_viewData').datagrid({
            url: 'flow/getWaitList',
            fitColumns: true,
            striped: true,
            idField: "ID",
            rownumbers: true,
            pagination: true,
            pageSize:pageSize,
            pagePosition: 'bottom',
            checkOnSelect: false,
            selectOnCheck: false,
            singleSelect: true,
            emptyMsg: '无数据',
            frozenColumns: [frozenColumns],
            columns: [columns],
            onClickRow:function (rowIndex, rowData) {
                var row = rowData;
                var param1 = row.businessViewUrl;
                if (param1.indexOf("?") > 0) {
                    param1 += "&";
                } else {
                    param1 += "?";
                }
                param1 += "processInstanceId=" + row.processInstanceId + "&taskId=" + row.taskId;
                var param2 = row.executionName;
                var param3 = "1";
                var param4 = "0";
                openTab(param1, param2, param3 ,param4);
            },
            onLoadSuccess:function (data) {
                var row = $('#dg_viewData').datagrid('getRows');//grid加载完成后自动选中第一行
                isFirstRow = true;
            }
        });
 
        //分页
        var p = $('#dg_viewData').datagrid('getPager');
        $(p).pagination({
            pageSize: pageSize, //每页显示的记录条数,默认为10
            pageList: [10,20,50,100,500,1000], //可以设置每页记录条数的列表
            beforePageText: '第', //页数文本框前显示的汉字
            afterPageText: '页    共 {pages} 页',
            displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录'
        });
 
/*        $(window).resize(function () {
            computeHeight();
 
            resizeDataGrid();
 
            if ($("#div_subtabs").length > 0) {
                $("#div_subtabs").tabs("resize");
            }
        })*/
 
        //删除按钮事件
        $("#SysDelete").click(function () {
            //获取dg选中的数据行
            var checkRows = $("#dg_viewData").datagrid("getChecked");
            if (checkRows.length == 0) {
                wcp.message.error("请选择需要删除的数据!");
            } else {
                var ids = new Array();
 
                $.each(checkRows, function (index, value) {
                    //ids.push(value.id);
 
                    ids.push(value.ID);
 
                });
 
                if (ids.length > 0) {
                    deleteBusinessDatas(ids);
                } else {
                    wcp.message.error("获取数据异常,请检查主键字段!");
                }
            }
        });
 
        //绑定关键字检索输入框回车事件
        $("#btnKeySearch").click(function () {
           keywordSearch();
        });
 
        //高级查询按钮事件
        $("#search").click(function(){
            if($("#div_search").is(':visible')){
                $("#div_search").hide();
                computeHeight();
            }else{
                $("#div_search").show();
                computeHeight();
            }
 
        });
        //高级查询,查询按钮事件
        $("#searchSelect").click(function(){
            keywordSearch();
        });
 
        new CustomResize({
            "id" : "div_table",
            "fun" : computeHeight
        });
    });
 
    //关键字搜索方法
    function keywordSearch() {
        var keyValue = $("#txtKeySearch").val();
        var flowDefinitionId = $("#flowCategory").combobox("getValue");
        var moduleId = $("#flowModule").combobox("getValue");
        $('#dg_viewData').datagrid('load', {
            searchKey: keyValue,
            flowDefinitionId : flowDefinitionId,
            moduleId : moduleId
        });
    }
 
    function openTab(url, title, partId, type) {
        top.addPanel(url,title);
        var curTabWin = null;
        var curTab = top.$('#tt').tabs('getSelected');
        if (curTab && curTab.find('iframe').length > 0) {
            curTabWin = curTab.find('iframe')[0].contentWindow;
            //将回调函数传给子页面
            $(curTabWin).load(function(){
                if(curTabWin.params){
                    curTabWin.params.callBackParams = partId;
                    curTabWin.params.callBack = getPartContent;
                    if(type == 1){
                        curTabWin.params.callBack = refreshData;
                    }
                }
            });
        }
    }
 
 
    //首次加载下拉框数据
    function getFlowDefinition() {
        var data = [];
        wcp.ui.setBusy("body", wcp.ajax({
            url : "config/flowDefinition/getFlowDefinition",
        }).done(function(result) {
            for (var i = 0; i < result.length; i++) {
                var flowId = result[i].flowId;
                var flowName = result[i].flowName;
                data.push({
                    "id" : flowId,
                    "text" : flowName
                });
 
 
            }
            //下拉框设置点击事件
            $("#flowCategory").combobox({
                data : data,
                valueField : 'id',
                textField : 'text'
            });
 
        }));
    }
 
    //首次加载下拉框数据
    function getFlowModule() {
        var data = [];
        wcp.ui.setBusy("body", wcp.ajax({
            url : "config/module/getFlowModule",
        }).done(function(result) {
            for (var i = 0; i < result.length; i++) {
                var moduleId = result[i].moduleId;
                var moduleName = result[i].moduleName;
 
                data.push({
                    "id" : moduleId,
                    "text" : moduleName
                });
 
 
            }
            //下拉框设置点击事件
            $("#flowModule").combobox({
                data : data,
                valueField : 'id',
                textField : 'text'
            });
 
        }));
    }
    function computeHeight() {
        var wh = $(window).height();
        var dsh=0;
        if($("#div_search").is(':visible')){
            dsh=$("#div_search").height() + 6;
        }
 
        $("#div_table").height(wh - 70-dsh);
        $("#dg_viewData").datagrid("resize");
    }
</script>
</html>