zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
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
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<fmt:setBundle basename="config" var="config" />
<fmt:message key="file_preview_url" var="file_preview_url" bundle="${config}" />
<!DOCTYPE html>
<html>
<head>
<title>工艺规程管理</title>
<jsp:include page="../../../initlib/initAll.jsp"></jsp:include>
<script type="text/javascript" src="../../pub/combobox/comboboxUtil.js" charset="utf-8"></script>
<link href="${pageContext.request.contextPath}/css/toptoolbar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
 
        var tempUrl ="${pageContext.request.contextPath}/pms/procManage";
        var uploadGrid = null;
        var proManageGrid=null;
        $(function() {
            $.loadComboboxData($("#matprod"),"MATPROD",true);//加载下拉框数据
 
            proManageGrid = $('#proManageGrid').datagrid({
                rownumbers :true,
                fit : true,
                fitColumns : false,//fitColumns= true就会自动适应宽度(无滚动条)
                //width:$(this).width()-252,  
                border : false,
                pagination : true,
                idField : 'id',
                striped : true,
                remoteSort: false,
                pageSize : 10,
                pageList : [10, 20, 60, 80, 100],
                sortName : 'createDatetime',
                sortOrder : 'desc',
                singleSelect:true,
                checkOnSelect : false,
                selectOnCheck : false,
                nowrap : true,
                showPageList:false,
                columns : [ [ {//固定表头
                    sortable : true,
                    checkbox : true //全选框
                },{
                    field : 'id',
                    title : '主键ID',
                    width :$(this).width() * 0.08,//表示百分之8
                    hidden : true
                }, {
                    field : 'mdMatName',
                    title : '品名',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true
                }, {
                    field : 'procSection',
                    title : '工段',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true
                }, {
                    field : 'procType',
                    title : '适用机型',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true
                }, {
                    field : 'procVersion',
                    title : '版本号',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true,
                    formatter : function(value, row, index) {
                        if(value!=null&&value!=""){
                            value = "V"+value;
                        }else{
                            value = "V1.0";
                        }
                        return value;
                    }
                }, {
                    field : 'addUserName',
                    title : '制作人',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true
                }, {
                    field : 'createDatetime',
                    title : '制作日期',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true
                }, {
                    field : 'reviewUserName',
                    title : '批准人',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true
                }, {
                    field : 'reviewDatetime',
                    title : '批准日期',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true
                }, {
                    field : 'procContent',
                    title : '指导书内容',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true
                }
                , {
                    field : 'procStatus',
                    title : '审核状态',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true,
                    formatter : function(value, row, index) {
                        if(value==0){
                            return '<span style="color:green">未审核<span>';
                        }else if(value==1){
                            return '<span style="color:green">审核通过<span>';
                        }else if(value==2){
                            return '<span style="color:green">下发成功<span>';
                        }else{
                            return '<span style="color:green">未知状态<span>';
                        }
                    }
                }, {
                    field : 'procStop',
                    title : '是否停用',
                    width :$(this).width() * 0.08,//表示百分之8
                    align:'center',
                    sortable : true,
                    formatter : function(value, row, index) {
                        return value==0?'<span style="color:green;background-color:white">启用<span>':'<span style="color:red">禁用<span>';
                    }
                }] ],
                toolbar : '#proManageToolbar',
                onLoadSuccess : function() {
                    $(this).datagrid('tooltip');//提示信息
                },
                onRowContextMenu : function(e, rowIndex, rowData) {
                    e.preventDefault();
                    $(this).datagrid('unselectAll').datagrid('uncheckAll');
                    $(this).datagrid('selectRow', rowIndex);
                    $('#proManageMenu').menu('show', {
                        left : e.pageX-10,
                        top : e.pageY-5
                    });
                },
                onClickRow:function(rowIndex,rowData){
                    queryProManage(rowData.id);
                }
            });
 
            
            uploadGrid = $('#uploadGrid').datagrid({
                fit : true,
                fitColumns : true,//fitColumns= true就会自动适应宽度(无滚动条)
                //width:$(this).width()-252,  
                border : false,
                pagination : false,//是否显示 分页
                idField : 'id',
                striped : true,
                remoteSort: false,
                pageSize : 5,
                pageList : [5,10, 20, 60, 80, 100],
                //sortName : 'createDatetime',
                //sortOrder : 'desc',
                singleSelect:true,
                checkOnSelect : false,
                selectOnCheck : false,
                nowrap : true,
                showPageList:false,
                columns : [ [
                {
                    field : 'id',
                    title : '上传ID',
                    width : 120,
                    hidden : true
                }, {
                    field : 'fileName',
                    title : '上传名称',
                    width : 100,
                    align:'center',
                    sortable : true
                }, {
                    field : 'addUserName',
                    title : '上传人',
                    width : 100,
                    align:'center',
                    sortable : true
                }, {
                    field : 'fileId',
                    title : '下载',
                    width : 100,
                    align:'center',
                    hidden :true,
                    sortable : true
                },{
                    field : 'procVersion',
                    title : '版本号',
                    width : 100,
                    align:'center',
                    sortable : true,
                    formatter : function(value, row, index) {
                        if(value!=null&&value!=""){
                            value = "V"+value;
                        }else{
                            value = "V1.0";
                        }
                        return value;
                    }
                }
                ] ],
                //toolbar : '#typeToolbar',
                onLoadSuccess : function() {
                    $(this).datagrid('tooltip');//提示信息
                },
                onRowContextMenu : function(e, rowIndex, rowData) {
                    e.preventDefault();
                    $(this).datagrid('unselectAll').datagrid('uncheckAll');
                    $('#typeMenu #download').attr('href',"${pageContext.request.contextPath}/pms/mfc/downloadFile.do?fileId="+rowData.fileId+"&fileName="+rowData.fileName);
                    $(this).datagrid('selectRow', rowIndex);
                    $('#typeMenu').menu('show', {
                        left : e.pageX-10,
                        top : e.pageY-5
                    });
                }
            });
            
            
        });
 
       /** 查询所有*/    
        function getList() {
            proManageGrid.datagrid({
                url : tempUrl+"/getList.do",
                queryParams :$("#searchForm").form("getData")
            });
        }
        /**根据主键ID查询*/
       function queryProManage(id){
           uploadGrid.datagrid({
                url :  tempUrl+"/getListById.do?proManageId=" + id
           });
       }
       /**清空*/
       function cleanQuery(){
           $('#searchForm input').val(null);    
           //$("#createDatetime").datebox("setValue", null);    时间用这个
           $("#matprod").combobox("setValue", "");//下拉框赋值
           $("#procStatus").combobox("setValue", "");//下拉框赋值
       }
        /**定向到新增页面*/
        function addProcManage(){
            var addmodalDialog = parent.$.modalDialog({
                title : '添加工艺规程',
                width : 600,
                height : 300,
                href : tempUrl+"/goEditJsp.do",
                buttons : [ {
                    text : '保存',
                    iconCls : 'icon-standard-disk',
                    handler : function() {
                        var f = addmodalDialog.find('#form');
                        if(f.form("validate")){
                            $.post(tempUrl+"/editProcManage.do?type=insert",f.form("getData"),function(json){
                                if (json.success) {
                                    addmodalDialog.dialog('destroy');
                                    $.messager.show('提示', json.msg, 'info');
                                    getList();    
                                }else{
                                    $.messager.show('提示', json.msg, 'error');
                                }
                            },"JSON");
                        }
                    }
                } ]
            });
        }
 
        /**定向到编辑页面*/
        function editProcManage(){
            var rowSelected = proManageGrid.datagrid("getSelected");//返回选中一行
            if(rowSelected==null||rowSelected ==""){
                parent.$.messager.show({
                    title : '提示',
                    msg : '请选择需要修改的记录!'
                });
                return false;
            }else if(rowSelected.procStatus!='0'){
                parent.$.messager.show({
                    title : '提示',
                    msg : '规程审核后不可修改!'
                });
                return false;
            }
            var editmodalDialog = parent.$.modalDialog({
                title : '编辑工艺规程',
                width : 600,
                height : 300,
                href : tempUrl+'/goEditJsp.do?id='+proManageGrid.datagrid('getSelected').id,
                buttons : [ {
                    text : '保存',
                    iconCls : 'icon-standard-disk',
                    handler : function() {
                        var f = editmodalDialog.find("#form");
                        if(f.form("validate")){
                            $.post(tempUrl+"/editProcManage.do?type=edit",f.form("getData"),function(json){
                                if (json.success) {
                                    editmodalDialog.dialog('destroy');
                                    $.messager.show('提示', json.msg, 'info');
                                    getList();    
                                }else{
                                    $.messager.show('提示', json.msg, 'error');
                                }
                            },"JSON");
                        }
                        
                    }
                } ]
            });
        }
        /**定向到删除功能*/
        function deleteProcManage() {
            var delIds=[];
            var rowSelected = proManageGrid.datagrid("getSelected");//返回选中一行
            delIds.push(rowSelected.id); //然后把单个id放到ids的数组中  
            if(delIds.length==0){
                parent.$.messager.show({
                    title : '提示',
                    msg : '请选择需要删除的记录!'
                });
                return false;
            }
            /* else if(rowSelected.procStatus!='0'){
                parent.$.messager.show({
                    title : '提示',
                    msg : '规程审核后不可删除!'
                });
                return false;
            } */
            parent.$.messager.confirm('您是否要删除当前数据?', function(b) {
                if (b) {
                    //var currentUserId = '${sessionInfo.user.id}';//当前登录用户的ID
                    parent.$.messager.progress({
                        title : '提示',
                        text : '数据处理中,请稍后....'
                    });
                    $.post(tempUrl+'/deleteProcManage.do', {
                        ids : delIds.join(',')
                    }, function(json) {
                        parent.$.messager.progress('close');
                        if (json.success) {
                            $.messager.show('提示', json.msg, 'info');
                            getList();
                        }else{
                            $.messager.show('提示', json.msg, 'info');
                        }
                    }, 'JSON');
                }
            });
        }
 
        /**
         * 批量删除
         */
        function beatchDeleteProcManage() {
            var rows = proManageGrid.datagrid('getChecked');
            var ids = [];
 
            if (rows.length > 0) {
                parent.$.messager.confirm('确认', '请确认批量删除当前数据?', function(r) {
                    if (r) {
                        for ( var i = 0; i < rows.length; i++) {
                            ids.push(rows[i].id);
                        }
                        parent.$.messager.progress({
                            title : '提示',
                            text : '数据处理中,请稍后....'
                        });
                        $.post('${pageContext.request.contextPath}/pms/procManage/deleteProcManage.do',
                                {
                                    ids : ids.join(','),
 
                                }, function(json) {
                                    parent.$.messager.progress('close');
                                    if (json.success) {
                                        $.messager.show('提示', json.msg, 'info');
                                        getList();
                                    } else {
                                        $.messager.show('提示', json.msg, 'info');
                                    }
                                },"JSON");
                    }
                });
            } else {
                parent.$.messager.show({
                    title : '提示',
                    msg : '请勾选要需要操作的数据!'
                });
            }
        }
 
 
        /**上传*/
        function uploadProcManage() {
            var rowSelected = proManageGrid.datagrid("getSelected");//返回选中一行
            if(rowSelected==null||rowSelected==""){
                parent.$.messager.show({
                    title : '提示',
                    msg : '请选择需要上传的记录!'
                });
                return false;
            }
             /*else if(rowSelected.procStatus!='0'){
                parent.$.messager.show({
                    title : '提示',
                    msg : '请选择 未审核 记录!'
                });
                return false;
            } */
            var dialog = parent.$.modalDialog({
                title : '文件上传',
                width : 620,
                height : 450,
                href : tempUrl+'/uploadJsp.do',
                buttons : [ {
                    text : '保存',
                    iconCls:'icon-standard-disk',
                    handler : function() {
                        var f = dialog.find("#form");
                        if(f.form("validate")){
                            var isTempUpload =f.form("getData").isUploadFile;//读取隐藏域中的值
                            if(isTempUpload=="true"){//表示临时 上传文件了
                                $.post(tempUrl+"/updateFile.do?procManageId="+rowSelected.id,f.form("getData"),function(json){
                                    if (json.success) {
                                        queryProManage(rowSelected.id);
                                        $.messager.show('提示', json.msg, 'info');
                                        dialog.dialog('destroy');
                                    }else{
                                        $.messager.show('提示', json.msg, 'error');
                                    }
                                },"JSON");
                            }else{
                                alert('请选择至少一个文件进行上传!');
                            }
                        }
                    }
                } ]
            });
        }
 
        /**审核*/
        function reviewProcManage() {    
            var ids=[];
            var rowSelected = proManageGrid.datagrid("getSelected");//返回选中一行
            ids.push(rowSelected.id); //然后把单个id放到ids的数组中  
            if(ids.length==0){
                parent.$.messager.show({
                    title : '提示',
                    msg : '请选择需要审核的记录!'
                });
                return false;
            }else if(rowSelected.procStatus!='0'){
                parent.$.messager.show({
                    title : '提示',
                    msg : '请选择 未审核 记录!'
                });
                return false;
            }
            parent.$.messager.confirm('您是否要审核当前数据?', function(b) {
                if (b) {
                    parent.$.messager.progress({
                        title : '提示',
                        text : '数据处理中,请稍后....'
                    });
                    $.post(tempUrl+'/reviewProcManage.do', {
                        ids :ids.join(','),
                        status:'1'
                    }, function(json) {
                        parent.$.messager.progress('close');
                        if (json.success) {
                            $.messager.show('提示', json.msg, 'info');
                            getList();
                        }else{
                            $.messager.show('提示', json.msg, 'info');
                        }
                    }, 'JSON');
                }
            });
        }
 
        /**下发*/
        function sendProcManage() {    
            var ids=[];
            var rowSelected = proManageGrid.datagrid("getSelected");//返回选中一行
            ids.push(rowSelected.id); //然后把单个id放到ids的数组中  
            if(ids.length==0){
                parent.$.messager.show({
                    title : '提示',
                    msg : '请选择需要下发的记录!'
                });
                return false;
            }else if(rowSelected.procStatus!='1'){
                parent.$.messager.show({
                    title : '提示',
                    msg : '请选择 审核通过 记录!'
                });
                return false;
            }
            parent.$.messager.confirm('您是否要下发当前数据?', function(b) {
                if (b) {
                    parent.$.messager.progress({
                        title : '提示',
                        text : '数据处理中,请稍后....'
                    });
                    $.post(tempUrl+'/sendProcManage.do', {
                        ids :ids.join(','),
                        status:'2'
                    }, function(json) {
                        parent.$.messager.progress('close');
                        if (json.success) {
                            $.messager.show('提示', json.msg, 'info');
                            getList();
                        }else{
                            $.messager.show('提示', json.msg, 'info');
                        }
                    }, 'JSON');
                }
            });
        }
 
        /**定向到删除功能*/
        function deleteProcFile() {
            var proManageRow = proManageGrid.datagrid("getSelected");//返回选中一行
            var delIds=[];
            var rowSelected = uploadGrid.datagrid("getSelected");//返回选中一行
            delIds.push(rowSelected.id); //然后把单个id放到ids的数组中  
            if(delIds.length==0){
                parent.$.messager.show({
                    title : '提示',
                    msg : '请选择需要删除的记录!'
                });
                return false;
            }
            /*else if(proManageRow.procStatus!='0'){
                parent.$.messager.show({
                    title : '提示',
                    msg : '规程审核后不可删除!'
                });
                return false;
            } */
            parent.$.messager.confirm('您是否要删除当前文档?', function(b) {
                if (b) {
                    //var currentUserId = '${sessionInfo.user.id}';//当前登录用户的ID
                    parent.$.messager.progress({
                        title : '提示',
                        text : '数据处理中,请稍后....'
                    });
                    $.post(tempUrl+'/deleteProcFile.do', {
                        ids : delIds.join(',')
                    }, function(json) {
                        parent.$.messager.progress('close');
                        if (json.success) {
                            queryProManage(proManageRow.id);
                            $.messager.show('提示', json.msg, 'info');
                        }else{
                            $.messager.show('提示', json.msg, 'info');
                        }
                    }, 'JSON');
                }
            });
        }
        //下载
        function downloadFile(){
            var row = uploadGrid.datagrid('getSelected');
            var url ="${pageContext.request.contextPath}/pms/mfc/downloadFile.do?fileId="+row.fileId+"&fileName="+row.fileName;
            var iWidth=600; //弹出窗口的宽度;
            var iHeight=200; //弹出窗口的高度;
            var iTop = (window.screen.availHeight-30-iHeight)/2; //获得窗口的垂直位置;
            var iLeft = (window.screen.availWidth-10-iWidth)/2; //获得窗口的水平位置;
            window.open(url,"","toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no,height="+iHeight+", width="+iWidth+", top="+iTop+", left="+iLeft); 
        }
        function fileConvert(){
            var row = uploadGrid.datagrid('getSelected');
            var host = "${file_preview_url}";
            host += "/onlinePreview?url="+row.fileId;
            window.open(host);
 
        }
        //str表示原字符串变量,flg表示要插入的字符串,sn表示要插入的位置
        function insert_flg(str,flg,sn){
            //console.info(str+","+flg+","+sn);
            var newstr=str.substring(0,23)+flg+str.substring(23,str.length);
            return newstr;
        }
</script>
</head>
<body class="easyui-layout" data-options="fit : true,border : false">
    
    <div id="proManageToolbar" style="display: none;">
        <form id="searchForm" style="margin:4px 0px 0px 0px">
            <div class="topTool">
                 <fieldset >
                     <div >
                        <span class="label">品名:</span>
                        <select id="matprod" name="procId" class="easyui-combobox" data-options="panelHeight:'auto',width:120,editable:false"></select>
                    </div>
                    <div >
                        <span class="label">工段:</span>
                        <input type="text" name="procSection" class="easyui-validatebox "  data-options="width:120,prompt: '工段模糊查询'"/>
                    </div>
                    <div >
                        <span class="label">机型:</span>
                        <input type="text" name="procType" class="easyui-validatebox "  data-options="width:120,prompt: '机型模糊查询'"/>
                    </div>
                    <div >
                        <span class="label">制作人:</span>
                        <input type="text" name="addUserName" class="easyui-validatebox "  data-options="width:120,prompt: '制作人模糊查询'"/>
                    </div>
                    <div >
                        <span class="label">批准人:</span>
                        <input type="text" name="reviewUserName" class="easyui-validatebox "  data-options="width:120,prompt: '批准人模糊查询'"/>
                    </div>
                    <div >
                        <span class="label">审核状态:</span>
                        <select  id="procStatus" name="procStatus" class="easyui-combobox fselect" 
                            data-options="panelHeight:'auto',width:120,editable:false,required:true">
                                <option value="">全部</option>
                                <option value="0">未审核</option>
                                <option value="1">审核通过</option>
                                <option value="2">下发成功</option>
                        </select>
                    </div>
                 </fieldset>
             </div>
        </form>
        <div class="easyui-toolbar">
            <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/getList.do']}">
                <a onclick="getList();" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-standard-zoom',plain:true">查询</a>
            </c:if>
             <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/cleanQuery.do']}">
                <a onclick="cleanQuery();" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-standard-arrow-refresh',plain:true">重置</a>
            </c:if>
             <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/addProcManage.do']}">
                <a onclick="addProcManage();" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-standard-brick-add',plain:true">新增</a>
            </c:if>
 
            <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/deleteProcManage.do']}">
                <a onclick="beatchDeleteProcManage();" href="javascript:void(0);" class="easyui-linkbutton"  data-options="iconCls:'icon-standard-cancel',plain:true">批量删除</a>
            </c:if>
        </div>
    </div>
    <div data-options="region:'west',border:true,split:false,title:'【可单击表格数据】'" style="width:630px;">
        <table id="proManageGrid"></table>        
    </div>
    <div data-options="region:'center',border:true" title="【文档】">
        <table id="uploadGrid"></table>    
    </div>  
    <!-- 右键功能 -->
    <div id="proManageMenu" class="easyui-menu" style="width: 80px; display: none;">
         <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/editProcManage.do']}">
            <div onclick="editProcManage()" data-options="iconCls:'icon-standard-brick-edit'">修改工艺</div>
        </c:if>
        <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/uploadProcManage.do']}">
            <div onclick="uploadProcManage();" data-options="iconCls:'icon-hamburg-up'">上传文档</div>
        </c:if>
        <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/deleteProcManage.do']}">
            <div onclick="deleteProcManage();" data-options="iconCls:'icon-standard-brick-delete'">删除工艺</div>
        </c:if>
         <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/reviewProcManage.do']}">
            <div onclick="reviewProcManage();" data-options="iconCls:'icon-standard-brick-edit'">审核工艺</div>
        </c:if>
         <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/sendProcManage.do']}">
            <div onclick="sendProcManage();" data-options="iconCls:'icon-standard-brick-go'">下发工艺</div>
        </c:if>
    </div>
    <!-- 删除文档功能 -->
    <div id="typeMenu" class="easyui-menu" style="width: 80px; display: none;">
        <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/deleteProcFile.do']}">
            <div onclick="deleteProcFile();" data-options="iconCls:'icon-standard-cross'">删除文档</div>
        </c:if>
        <c:if test="${not empty sessionInfo.resourcesMap['/pms/procManage/downloadFile.do']}">
            <div  data-options="iconCls:'icon-standard-arrow-down'"><a style="text-decoration: none;outline: none;color: black" id="download" href="">下载文档</a></div>
        </c:if>
        <div onclick="fileConvert()" data-options="iconCls:'icon-standard-plugin-add'">预览</div>
    </div>
    
</body>
</html>