RequestView.jsp
42.2 KB
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
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
<%
String theme = Util.null2String(session.getAttribute("theme"));
if("ecology9".equals(theme)){
response.sendRedirect("/spa/workflow/index.jsp#/main/workflow/listDoing");
}else{
%>
<%@ page import="weaver.conn.*" %>
<%@ page import="java.util.*" %>
<%@ page import="weaver.general.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="org.json.JSONArray"%>
<%@page import="org.json.JSONObject"%>
<%@page import="weaver.workflow.workflow.WorkflowVersion,weaver.workflow.request.todo.RequestUtil"%>
<!DOCTYPE html>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="weaver.systeminfo.menuconfig.LeftMenuInfoHandler" %>
<%@ page import="weaver.systeminfo.menuconfig.LeftMenuInfo" %>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="ResourceComInfo" class="weaver.hrm.resource.ResourceComInfo" scope="page"/>
<jsp:useBean id="WorkTypeComInfo" class="weaver.workflow.workflow.WorkTypeComInfo" scope="page"/>
<jsp:useBean id="WorkflowComInfo" class="weaver.workflow.workflow.WorkflowComInfo" scope="page"/>
<jsp:useBean id="CustomerInfoComInfo" class="weaver.crm.Maint.CustomerInfoComInfo" scope="page" />
<jsp:useBean id="WrokflowOverTimeTimer" class="weaver.system.WrokflowOverTimeTimer" scope="page" />
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="sysInfo" class="weaver.system.SystemComInfo" scope="page"/>
<jsp:useBean id="AllManagers" class="weaver.hrm.resource.AllManagers" scope="page"/>
<jsp:useBean id="HrmListValidate" class="weaver.hrm.resource.HrmListValidate" scope="page" />
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
</head>
<script language="javascript">
try{
window.opener.btnWfCenterReload.onclick();
}catch(e){}
try{
parent.window.taskCallBack(2);
}catch(e){}
</script>
<%
boolean isopenos = RequestUtil.isOpenOtherSystemToDo();//是否开启统一待办
boolean isUseOldWfMode=sysInfo.isUseOldWfMode();
String offical = Util.null2String(request.getParameter("offical"));
int officalType = Util.getIntValue(request.getParameter("officalType"),-1);
String loadtree = Util.null2String(request.getParameter("loadtree"));
//System.out.println("loadtree:"+loadtree);
boolean isfromtab = Util.null2String(request.getParameter("isfromtab")).equals("true")?true:false;
int requestid = Util.getIntValue((String)session.getAttribute("requestidForAllBill"),0);
String topage_ForAllBill = Util.null2String((String)session.getAttribute("topage_ForAllBill"));
if(!"".equals(topage_ForAllBill)){
if(topage_ForAllBill.indexOf("/proj/process/ViewTask.jsp") == 0 || topage_ForAllBill.indexOf("/proj/plan/ViewTask.jsp") == 0){
response.sendRedirect(topage_ForAllBill+"&requestid="+requestid);
session.setAttribute("topage_ForAllBill","");
return;
}else if(topage_ForAllBill.indexOf("RequestOperation.jsp") > 0){
int tempInt = topage_ForAllBill.lastIndexOf("3D");
String tempString = topage_ForAllBill.substring(tempInt+2);
response.sendRedirect("/proj/process/ViewTask.jsp?taskrecordid="+tempString+"&requestid="+requestid);
session.setAttribute("topage_ForAllBill","");
return;
}
}
String resourceid= Util.null2String(request.getParameter("resourceid"));
AllManagers.getAll(resourceid);
if("".equals(resourceid)){
resourceid = ""+user.getUID();
}
boolean isSelf = false;
boolean isManager = false;
RecordSet.executeProc("HrmResource_SelectByID",resourceid);
RecordSet.next();
String departmentid = Util.toScreen(RecordSet.getString("departmentid"),user.getLanguage()) ; /*所属部门*/
if (resourceid.equals(""+user.getUID()) ){
isSelf = true;
}
while(AllManagers.next()){
String tempmanagerid = AllManagers.getManagerID();
if (tempmanagerid.equals(""+user.getUID())) {
isManager = true;
}
}
if(!(((isSelf || isManager || HrmUserVarify.checkUserRight("HrmResource:Workflow",user,departmentid))))){
//response.sendRedirect("/notice/noright.jsp") ;
}
String logintype = ""+user.getLogintype();
int usertype = 0;
if(logintype.equals("2")) usertype= 1;
/* edited by wdl 2006-06-14 left menu advanced menu */
int fromAdvancedMenu = Util.getIntValue(request.getParameter("fromadvancedmenu"),0);
String selectedContent = Util.null2String(request.getParameter("selectedContent"));
String menuType = Util.null2String(request.getParameter("menuType"));
int infoId = Util.getIntValue(request.getParameter("infoId"),0);
if(selectedContent!=null && selectedContent.startsWith("key_")){
String menuid = selectedContent.substring(4);
RecordSet.executeSql("select * from menuResourceNode where contentindex = '"+menuid+"'");
selectedContent = "";
while(RecordSet.next()){
String keyVal = RecordSet.getString(2);
selectedContent += keyVal +"|";
}
if(selectedContent.indexOf("|")!=-1)
selectedContent = selectedContent.substring(0,selectedContent.length()-1);
}
if(fromAdvancedMenu == 1){
response.sendRedirect("/workflow/search/WFSearchCustom.jsp?fromadvancedmenu=1&infoId="+infoId+"&selectedContent="+selectedContent+"&menuType="+menuType);
return;
}
String selectedworkflow = "";
LeftMenuInfoHandler infoHandler = new LeftMenuInfoHandler();
LeftMenuInfo info = infoHandler.getLeftMenuInfo(infoId);
if(info!=null){
selectedworkflow = info.getSelectedContent();
}
if(!"".equals(selectedContent))
{
selectedworkflow = selectedContent;
}
selectedworkflow+="|";
/* edited end */
/*------------------------------主次账号判断----------------------*/
String userID = String.valueOf(user.getUID());
String userIDAll = String.valueOf(user.getUID());
int userid=user.getUID();
String belongtoshow = "";
RecordSet.executeSql("select * from HrmUserSetting where resourceId = "+userID);
if(RecordSet.next()){
belongtoshow = RecordSet.getString("belongtoshow");
}
//QC235172,如果不是查看自己的代办,主从账号统一显示不需要判断
if(!isSelf) belongtoshow = "";
String Belongtoids =user.getBelongtoids();
int Belongtoid=0;
String[] arr2 = null;
ArrayList<String> userlist = new ArrayList();
userlist.add(userid + "");
if(!"".equals(Belongtoids)){
userIDAll = userID+","+Belongtoids;
arr2 = Belongtoids.split(",");
for(int i=0;i<arr2.length;i++){
Belongtoid = Util.getIntValue(arr2[i]);
userlist.add(Belongtoid + "");
}
}
if(resourceid.equals("")) {
session.removeAttribute("RequestViewResource") ;
}
else {
session.setAttribute("RequestViewResource",resourceid) ;
}
boolean superior = false; //是否为被查看者上级或者本身
if("".equals(resourceid) || userID.equals(resourceid))
{
resourceid = userID;
superior = true;
}
else
{
rs.executeSql("SELECT * FROM HrmResource WHERE ID = " + resourceid + " AND managerStr LIKE '%," + userID + ",%'");
if(rs.next())
{
superior = true;
}
}
char flag = Util.getSeparator();
String username = Util.toScreen(ResourceComInfo.getResourcename(resourceid),user.getLanguage());
if(logintype.equals("2")) username = Util.toScreen(CustomerInfoComInfo.getCustomerInfoname(""+user.getUID()),user.getLanguage()) ;
String imagefilename = "/images/hdReport_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(1207,user.getLanguage()) + ": "+SystemEnv.getHtmlLabelName(367,user.getLanguage());
String needfav ="1";
String needhelp ="";
String tworkflowNodeIDs = "";
%>
<%
String typeid="";
String typecount="";
String typename="";
String workflowid="";
String workflowcount="";
String newremarkwfcount0="";
String newremarkwfcount1="";
String wfsupedcount="";
String workflowname="";
ArrayList wftypeList=new ArrayList();
ArrayList wftypecountList=new ArrayList();
ArrayList workflowList=new ArrayList();
ArrayList workflowcountList=new ArrayList();
ArrayList newremarkwfcount0List=new ArrayList();//待办数量
ArrayList newremarkwfcount1List=new ArrayList();//反馈数量
ArrayList wftypeworkflowList=new ArrayList();
ArrayList wfovertimecountList=new ArrayList();//超时数量
ArrayList wfsupedcountList = new ArrayList(); //被督办数量
Hashtable wfNodeHahstable = new Hashtable();
Map newremarkwfcount0Map=new Hashtable();//待办数量
Map newremarkwfcount1Map=new Hashtable();//反馈数量
Map wftypeworkflowMap=new Hashtable();
Map wfovertimecountMap=new Hashtable();//超时数量
Map wfsupedcountMap = new Hashtable(); //被督办数量
int totalcount=0;
String wftypes = "";
String demoLeftMenus = "";
//String SQL = "";
//SQL = "select workflowtype, workflowid from workflow_currentoperator where (isremark='0' or isremark='1' or isremark='5' or isremark='8' or isremark='9' or isremark='7') and islasttimes=1 and userid=" + resourceid + " and usertype= " + usertype +" and exists (select 1 from workflow_requestbase c where c.workflowid=workflow_currentoperator.workflowid and c.requestid=workflow_currentoperator.requestid)";
if(loadtree.equals("true")){
StringBuffer sqlsb = new StringBuffer();
sqlsb.append("SELECT wt.id workflowtype,wb.id workflowid FROM workflow_type wt,workflow_base wb,( ");
sqlsb.append("select workflowtype, workflowid ");
sqlsb.append(" from workflow_currentoperator ");
sqlsb.append(" where ((isremark = '0' and (takisremark is null or takisremark=0)) or isremark = '1' or isremark = '5' or ");
sqlsb.append(" isremark = '8' or isremark = '9' or isremark = '7') ");
sqlsb.append(" and islasttimes = 1 ");
if("1".equals(belongtoshow)){
sqlsb.append(" and userid in (").append(userIDAll);
}else{
sqlsb.append(" and userid in (").append(resourceid);
}
sqlsb.append(" ) and usertype = ").append(usertype);
//sqlsb.append(" and workflowid in (select id from workflow_base where (isvalid=1 or isvalid=3) ) ");
sqlsb.append(" and exists (select 1 ");
sqlsb.append(" from workflow_requestbase c ");
sqlsb.append(" where (c.deleted <> 1 or c.deleted is null or c.deleted='') and c.workflowid = workflow_currentoperator.workflowid ");
if(RecordSet.getDBType().equals("oracle"))
{
sqlsb.append(" and (nvl(c.currentstatus,-1) = -1 or (nvl(c.currentstatus,-1)=0 and c.creater="+user.getUID()+")) ");
}else if(RecordSet.getDBType().equals("mysql")){
sqlsb.append(" and (ifnull(c.currentstatus,-1) = -1 or (ifnull(c.currentstatus,-1)=0 and c.creater="+user.getUID()+")) ");
}
else
{
sqlsb.append(" and (isnull(c.currentstatus,-1) = -1 or (isnull(c.currentstatus,-1)=0 and c.creater="+user.getUID()+")) ");
}
sqlsb.append(" and c.requestid = workflow_currentoperator.requestid)");
//RecordSet.executeSql("select workflowtype, workflowid, viewtype, count(distinct requestid) workflowcount from workflow_currentoperator where (isremark='0' or isremark='1' or isremark='5') and islasttimes=1 and (isprocessed is null or (isprocessed<>'2' and isprocessed<>'3')) and userid=" + resourceid + " and usertype= " + usertype +" group by workflowtype, workflowid, viewtype order by workflowtype, workflowid " ) ;
//System.out.print("select workflowtype, workflowid from workflow_currentoperator where (isremark='0' or isremark='1' or isremark='5') and islasttimes=1 and userid=" + resourceid + " and usertype= " + usertype +" and exists (select 1 from workflow_requestbase c where c.requestid=workflow_currentoperator.requestid) group by workflowtype, workflowid order by workflowtype, workflowid " ) ;
//RecordSet.executeSql("select distinct a.workflowtype, a.workflowid from workflow_currentoperator a ,workflow_requestbase b where a.requestid=b.requestid and (b.currentnodetype <> '3' or (a.isremark ='1' and b.currentnodetype = '3')) and (a.isremark='0' or a.isremark='1' or a.isremark='5') and a.userid=" + resourceid + " and a.usertype= " + usertype +" group by a.workflowtype, a.workflowid order by a.workflowtype, a.workflowid " ) ;
if(!superior)
{
//SQL += " AND EXISTS (SELECT NULL FROM workFlow_CurrentOperator b WHERE workflow_currentoperator.workflowid = b.workflowid AND workflow_currentoperator.requestid = b.requestid AND b.userid=" + user.getUID() + " and b.usertype= " + usertype +") ";
sqlsb.append(" AND EXISTS (SELECT NULL FROM workFlow_CurrentOperator b WHERE workflow_currentoperator.workflowid = b.workflowid AND workflow_currentoperator.requestid = b.requestid AND b.userid in(" + user.getUID() + ") and b.usertype= " + usertype +") ");
}
if(offical.equals("1")){//发文/收文/签报
if(officalType==1){
sqlsb.append(" and workflowid in (select id from workflow_base where isWorkflowDoc=1 and officalType in (1,3) and (isvalid=1 or isvalid=3))");
}else if(officalType==2){
sqlsb.append(" and workflowid in (select id from workflow_base where isWorkflowDoc=1 and officalType=2 and (isvalid=1 or isvalid=3))");
}
}
//SQL += " group by workflowtype, workflowid order by workflowtype, workflowid";
//sqlsb.append(" group by workflowtype, workflowid order by workflowtype, workflowid ");
sqlsb.append(" group by workflowtype, workflowid ) wo WHERE wb.id=wo.workflowid AND wt.id=wb.workflowtype ");
sqlsb.append(" order BY wt.dsporder asc,wt.id ASC ,wb.dsporder asc, wb.workflowname ");
RecordSet.executeSql(sqlsb.toString());
//System.out.println(sqlsb.toString());
while(RecordSet.next()){
String theworkflowid = Util.null2String(RecordSet.getString("workflowid")) ;
String theworkflowtype = Util.null2String(RecordSet.getString("workflowtype")) ;
theworkflowid = WorkflowVersion.getActiveVersionWFID(theworkflowid);
if(WorkflowComInfo.getIsValid(theworkflowid).equals("1"))
{
/* added by wdl 2006-06-14 left menu advanced menu */
if(selectedworkflow.indexOf("T"+theworkflowtype+"|")==-1 && fromAdvancedMenu==1) continue;
if(selectedworkflow.indexOf("W"+theworkflowid+"|")==-1 && fromAdvancedMenu==1) continue;
/* added end */
if(wftypeworkflowList.indexOf(theworkflowtype+","+theworkflowid)<0){
wftypeworkflowList.add(theworkflowtype+","+theworkflowid);
}
int wftindex = wftypeList.indexOf(theworkflowtype) ;
if(wftindex == -1) {
wftypeList.add(theworkflowtype) ;
wftypecountList.add("0") ;
}
wftindex = workflowList.indexOf(theworkflowid) ;
if(wftindex == -1) {
workflowList.add(theworkflowid) ;
workflowcountList.add("0") ;
}
if(selectedworkflow.indexOf("PW"+theworkflowid+"N")!=-1 && fromAdvancedMenu==1){
int bx = selectedworkflow.indexOf("PW"+theworkflowid+"N");
String tmp = selectedworkflow.substring(bx+("PW"+theworkflowid+"N").length());
bx = tmp.indexOf("SP^AN");
tmp = tmp.substring(0, bx);
//System.out.println("theworkflowid = " + theworkflowid + " tmp = " + tmp);
wfNodeHahstable.put(theworkflowid, tmp);
}
}
}
// newremarkwfcount0List.add(""+newcount);
//newremarkwfcount1List.add(""+newcount1);
/*
wfovertimecountList.add(""+overtimecount);
int wfindex = workflowList.indexOf(tworkflowid) ;
if(wfindex != -1) {
workflowcountList.set(wfindex,""+(Util.getIntValue((String)workflowcountList.get(wfindex),0)+overtimecount)) ;
}
int wftindex = wftypeList.indexOf(tworkflowtype) ;
if(wftindex != -1) {
wftypecountList.set(wftindex,""+(Util.getIntValue((String)wftypecountList.get(wftindex),0)+overtimecount)) ;
}
totalcount += overtimecount;
*/
//左侧树拼接 json
demoLeftMenus = "[";
if(wftypeList.size()>0){
for (int i = 0,typerowcounts=wftypeList.size(); i < typerowcounts; i++) {
typeid = (String) wftypeList.get(i);
typecount = (String) wftypecountList.get(i);
typename = WorkTypeComInfo.getWorkTypename(typeid);
String workFlowIDsRequest = "";
String workFlowNodeIDsRequest = "";
for (int j = 0; j < workflowList.size(); j++) {
workflowid = (String) workflowList.get(j);
String curtypeid = WorkflowComInfo.getWorkflowtype(workflowid);
if (!curtypeid.equals(typeid)) {
continue;
}
workFlowIDsRequest += workflowid + ",";
String t_workFlowNodeIDRequest = Util.null2String((String) wfNodeHahstable.get(workflowid));
if (!"".equals(t_workFlowNodeIDRequest)) {
workFlowNodeIDsRequest += t_workFlowNodeIDRequest + ",";
}
}
if (!"".equals(workFlowIDsRequest)) {
workFlowIDsRequest = workFlowIDsRequest.substring(0, workFlowIDsRequest.length());
}
if (!"".equals(workFlowNodeIDsRequest)) {
workFlowNodeIDsRequest = workFlowNodeIDsRequest.substring(0, workFlowNodeIDsRequest.length());
}
demoLeftMenus +="{";
demoLeftMenus += "\"name\":\""+Util.toScreenForJs(Util.toScreen(typename, user.getLanguage()))+"\",";
demoLeftMenus+="\"__domid__\":\"__type_"+typeid+"\",";
demoLeftMenus += "\"hasChildren\":"+true+",";
demoLeftMenus += "\"isOpen\":"+true+",";
demoLeftMenus += "\"submenus\":[";
List<Map> maps=new ArrayList(0);
for (int j = 0; j < workflowList.size(); j++) {
workflowid = (String) workflowList.get(j);
String curtypeid = WorkflowComInfo.getWorkflowtype(workflowid);
if (!curtypeid.equals(typeid))
continue;
workflowcount = (String) workflowcountList.get(j);
workflowname = WorkflowComInfo.getWorkflowname(workflowid);
workflowname = Util.processBody(workflowname,user.getLanguage()+"");
int tempind = wftypeworkflowList.indexOf(typeid + "," + workflowid);
int ovtimenum = 0;
newremarkwfcount1 = "0";
newremarkwfcount0 = "0";
wfsupedcount = "0";
if (tempind > -1) {
Object tempovtimenumObj = wfovertimecountMap.get(workflowid);
if (tempovtimenumObj != null) {
ovtimenum = (Integer)tempovtimenumObj;
} else {
ovtimenum = 0;
}
Object tempnewremarkwfcount0Obj = newremarkwfcount0Map.get(workflowid);
if (tempnewremarkwfcount0Obj != null) {
newremarkwfcount0 = (Integer)tempnewremarkwfcount0Obj + "";
} else {
newremarkwfcount0 = "0";
}
Object tempnewremarkwfcount1Obj = newremarkwfcount1Map.get(workflowid);
if (tempnewremarkwfcount1Obj != null) {
newremarkwfcount1 = (Integer)tempnewremarkwfcount1Obj + "";
} else {
newremarkwfcount1 = "0";
}
Object tempwfsupedcountObj = wfsupedcountMap.get(workflowid);
if (tempwfsupedcountObj != null) {
wfsupedcount = (Integer)tempwfsupedcountObj + "";
} else {
wfsupedcount = "0";
}
//newremarkwfcount1 = Util.getIntValue(Util.null2String((String) newremarkwfcount1Map.get(workflowid)), 0) + "";
//(String) newremarkwfcount1Map.get(workflowid);
//wfsupedcount = Util.getIntValue(Util.null2String((String) wfsupedcountMap.get(workflowid)), 0) + "";
//(String) wfsupedcountMap.get(workflowid);
}
// System.out.println("====================================************=newremarkwfcount1=" + newremarkwfcount1+ ", " + Util.toScreen(newremarkwfcount1, user.getLanguage()));
String t_nodeids = Util.null2String((String) wfNodeHahstable.get(workflowid));
Map map=new HashMap();
map.put("name", Util.toScreenForJs(Util.toScreen(workflowname, user.getLanguage())));
map.put("workflowid",workflowid);
map.put("nodeids",t_nodeids);
//map.put("flowNew",Util.toScreen(newremarkwfcount0, user.getLanguage()));
//map.put("flowResponse",Util.toScreen(newremarkwfcount1, user.getLanguage()));
map.put("flowNew","0");
map.put("flowResponse","0");
map.put("flowOut",ovtimenum);
//map.put("flowAll",Util.toScreen(workflowcount,user.getLanguage()));
//map.put("flowSup",Util.toScreen(wfsupedcount, user.getLanguage()));
map.put("flowAll","0");
map.put("flowSup","0");
maps.add(map);
}
int flowNew=0;
int flowResponse=0;
int flowOut=0;
int flowAll=0;
int flowSup=0;
for(int x=0;x<maps.size();x++){
Map map=maps.get(x);
flowNew+=Integer.valueOf(map.get("flowNew")+"");
flowResponse+=Integer.valueOf(map.get("flowResponse")+"");
flowOut+=Integer.valueOf(map.get("flowOut")+"");
flowAll+=Integer.valueOf(map.get("flowAll")+"");
flowSup+=Integer.valueOf(map.get("flowSup")+"");
demoLeftMenus += "{";
demoLeftMenus += "\"name\":\""+map.get("name")+"\",";
demoLeftMenus+="\"__domid__\":\"__wf_"+map.get("workflowid")+"\",";
demoLeftMenus += "\"hasChildren\":false,";
demoLeftMenus += "\"attr\":{";
demoLeftMenus += "\"workflowid\":"+map.get("workflowid")+",";
demoLeftMenus += "\"nodeids\":\""+map.get("nodeids")+"\",";
demoLeftMenus += "\"flowNew\":"+map.get("flowNew")+",";
demoLeftMenus += "\"flowResponse\":"+map.get("flowResponse")+",";
demoLeftMenus += "\"flowOut\":"+map.get("flowOut")+",";
demoLeftMenus += "\"flowAll\":"+map.get("flowAll")+",";
demoLeftMenus += "\"flowSup\":"+map.get("flowSup");
demoLeftMenus += "},";
demoLeftMenus += "\"numbers\":{";
demoLeftMenus += "\"flowNew\":"+map.get("flowNew")+",";
demoLeftMenus += "\"flowResponse\":"+map.get("flowResponse")+",";
demoLeftMenus += "\"flowOut\":"+map.get("flowOut")+",";
demoLeftMenus += "\"flowAll\":"+map.get("flowAll")+",";
demoLeftMenus += "\"flowSup\":"+map.get("flowSup");
demoLeftMenus += "}";
demoLeftMenus += "}";
demoLeftMenus += (x==maps.size()-1)?"":",";
}
demoLeftMenus += "],";
demoLeftMenus += "\"attr\":{";
demoLeftMenus += "\"typeid\":"+typeid+",";
demoLeftMenus += "\"flowNew\":"+flowNew+",";
demoLeftMenus += "\"flowResponse\":"+flowResponse+",";
demoLeftMenus += "\"flowOut\":"+flowOut+",";
demoLeftMenus += "\"flowAll\":"+flowAll+",";
demoLeftMenus += "\"flowSup\":"+flowSup;
demoLeftMenus += "},";
demoLeftMenus += "\"numbers\":{";
demoLeftMenus += "\"flowNew\":"+flowNew+",";
demoLeftMenus += "\"flowResponse\":"+flowResponse+",";
demoLeftMenus += "\"flowOut\":"+flowOut+",";
demoLeftMenus += "\"flowAll\":"+flowAll+",";
demoLeftMenus += "\"flowSup\":"+flowSup;
demoLeftMenus += "}";
demoLeftMenus += "}";
demoLeftMenus += (i==typerowcounts-1)?"":",";
wftypes += typeid+",";
}}
//查询异构系统数据
if(isopenos) {
RecordSet rs1 = new RecordSet();
int wftype_count = 0;
rs.executeSql("select sysid,sysshortname,sysfullname,(select COUNT(requestid) from ofs_todo_data where userid="+user.getUID()+" AND workflowid in (select workflowid from ofs_workflow where ofs_workflow.sysid=ofs_sysinfo.sysid and cancel=0) and isremark='0') as dbs from ofs_sysinfo where cancel=0 order by sysid desc");
wftype_count = rs.getCounts();
if (wftype_count > 0) {
//demoLeftMenus+=",";
}
while (rs.next()) {
String _typeid = rs.getString(1);
String _typename = rs.getString(2);
int dbs = rs.getInt("dbs");
if(dbs==0){
wftype_count--;
continue ;
}
if(new RequestUtil().getOfsSetting().getShowsysname().equals("2")){
_typename = rs.getString(3);
}
if (demoLeftMenus.length() > 10) {
demoLeftMenus += ",{";
} else {
demoLeftMenus += "{";
}
demoLeftMenus += "\"name\":\"" + _typename + "\",";
demoLeftMenus += "\"__domid__\":\"__type_" + _typeid + "\",";
demoLeftMenus += "\"hasChildren\":" + true + ",";
demoLeftMenus += "\"isOpen\":" + true + ",";
demoLeftMenus += "\"submenus\":[";
int wf_count = 0;
RecordSet.executeSql("select workflowid,workflowname from ofs_workflow where sysid=" + _typeid + " and cancel=0 order by workflowname asc, workflowid desc");//查询OS流程
wf_count = RecordSet.getCounts();
int wfcountall = 0;
int wfnewcountall = 0;
while (RecordSet.next()) {
String _wfid = RecordSet.getString(1);
String _wfname = RecordSet.getString(2);
rs1.executeSql("select COUNT(requestid) from ofs_todo_data where userid="+user.getUID()+" AND islasttimes=1 AND workflowid=" + _wfid + " and isremark='0' ");
int wfcount = 0;
if (rs1.next()) {
wfcount = Util.getIntValue(rs1.getString(1), 0);
}
rs1.executeSql("select COUNT(requestid) from ofs_todo_data where userid="+user.getUID()+" AND islasttimes=1 AND workflowid=" + _wfid + " and isremark='0' and viewtype=0 ");
int wfnewcount = 0;
if (rs1.next()) {
wfnewcount = Util.getIntValue(rs1.getString(1), 0);
}
if(wfcount==0&&wfnewcount==0){
wf_count-- ;
continue;
}
wfcountall += wfcount;
wfnewcountall += wfnewcount ;
demoLeftMenus += "{";
demoLeftMenus += "\"name\":\"" + _wfname + "\",";
demoLeftMenus += "\"__domid__\":\"__wf_" + _wfid + "\",";
demoLeftMenus += "\"hasChildren\":false,";
demoLeftMenus += "\"attr\":{";
demoLeftMenus += "\"workflowid\":" + _wfid + ",";
demoLeftMenus += "\"nodeids\":\"\",";
demoLeftMenus += "\"flowNew\":"+wfnewcount+",";
demoLeftMenus += "\"flowResponse\":0,";
demoLeftMenus += "\"flowOut\":0,";
demoLeftMenus += "\"flowAll\":" + wfcount + ",";
demoLeftMenus += "\"flowSup\":0";
demoLeftMenus += "},";
demoLeftMenus += "\"numbers\":{";
demoLeftMenus += "\"flowNew\":"+wfnewcount+",";
demoLeftMenus += "\"flowResponse\":0,";
demoLeftMenus += "\"flowOut\":0,";
demoLeftMenus += "\"flowAll\":" + wfcount + ",";
demoLeftMenus += "\"flowSup\":0";
demoLeftMenus += "}";
demoLeftMenus += "}";
demoLeftMenus += ",";
}
if (wf_count > 0) {
demoLeftMenus = demoLeftMenus.substring(0, demoLeftMenus.length() - 1);
}
demoLeftMenus += "],";
demoLeftMenus += "\"attr\":{";
demoLeftMenus += "\"typeid\":" + _typeid + ",";
demoLeftMenus += "\"flowNew\":"+wfnewcountall+",";
demoLeftMenus += "\"flowResponse\":0,";
demoLeftMenus += "\"flowOut\":0,";
demoLeftMenus += "\"flowAll\":" + wfcountall + ",";
demoLeftMenus += "\"flowSup\":0";
demoLeftMenus += "},";
demoLeftMenus += "\"numbers\":{";
demoLeftMenus += "\"flowNew\":"+wfnewcountall+",";
demoLeftMenus += "\"flowResponse\":0,";
demoLeftMenus += "\"flowOut\":0,";
demoLeftMenus += "\"flowAll\":" + wfcountall + ",";
demoLeftMenus += "\"flowSup\":0";
demoLeftMenus += "}";
demoLeftMenus += "}";
}
}
demoLeftMenus += "]";
out.clear();
out.print(demoLeftMenus);
//System.out.println(demoLeftMenus);
return;
}
if(!isUseOldWfMode){
int typerowcounts=wftypeList.size();
JSONArray jsonWfTypeArray = new JSONArray();
for(int i=0;i<typerowcounts;i++){
typeid=(String)wftypeList.get(i);
JSONObject jsonWfType = new JSONObject();
jsonWfType.put("draggable",false);
jsonWfType.put("leaf",false);
jsonWfType.put("cls","wfTreeFolderNode");
typecount=(String)wftypecountList.get(i);
typename=WorkTypeComInfo.getWorkTypename(typeid);
String workFlowIDsRequest = "";
String workFlowNodeIDsRequest = "";
for(int j=0;j<workflowList.size();j++){
workflowid=(String)workflowList.get(j);
String curtypeid=WorkflowComInfo.getWorkflowtype(workflowid);
if(!curtypeid.equals(typeid)){
continue;
}
workFlowIDsRequest += workflowid + ",";
String t_workFlowNodeIDRequest = Util.null2String((String)wfNodeHahstable.get(workflowid));
if(!"".equals(t_workFlowNodeIDRequest)){
workFlowNodeIDsRequest += t_workFlowNodeIDRequest + ",";
}
}
if(!"".equals(workFlowIDsRequest)){
workFlowIDsRequest = workFlowIDsRequest.substring(0, workFlowIDsRequest.length());
}
if(!"".equals(workFlowNodeIDsRequest)){
workFlowNodeIDsRequest = workFlowNodeIDsRequest.substring(0, workFlowNodeIDsRequest.length());
}
if(fromAdvancedMenu==1){
jsonWfType.put("paras","method=reqeustbywftypeNode&fromadvancedmenu="+fromAdvancedMenu+"&infoId="+infoId+"&wftype="+typeid+"&complete=0&workFlowIDsRequest="+workFlowIDsRequest+"&workFlowNodeIDsRequest="+workFlowNodeIDsRequest+"&selectedContent="+selectedContent+"&menuType="+menuType);
}
else{
jsonWfType.put("paras","method=reqeustbywftype&wftype="+typeid+"&complete=0");
}
int newremark1 = 0;
int newremark2 = 0;
int over = 0;
JSONArray jsonWfTypeChildrenArray = new JSONArray();
for(int j=0;j<workflowList.size();j++){
String wfText = "";
workflowid=(String)workflowList.get(j);
JSONObject jsonWfTypeChild = new JSONObject();
jsonWfTypeChild.put("draggable",false);
jsonWfTypeChild.put("leaf",true);
String curtypeid=WorkflowComInfo.getWorkflowtype(workflowid);
if(!curtypeid.equals(typeid)) continue;
workflowcount=(String)workflowcountList.get(j);
workflowname=WorkflowComInfo.getWorkflowname(workflowid);
int tempind=wftypeworkflowList.indexOf(typeid+","+workflowid);
int ovtimenum=0;
if(tempind>-1){
ovtimenum=Util.getIntValue((String)wfovertimecountList.get(tempind),0);
//newremarkwfcount0=(String)newremarkwfcount0List.get(tempind);
//newremarkwfcount1=(String)newremarkwfcount1List.get(tempind);
newremarkwfcount0="0";
newremarkwfcount1="0";
wfsupedcount=(String)wfsupedcountList.get(tempind);
}
String t_nodeids = Util.null2String((String)wfNodeHahstable.get(workflowid));
jsonWfTypeChild.put("iconCls","btn_dot");
jsonWfTypeChild.put("cls","wfTreeLeafNode");
jsonWfTypeChild.put("paras","method=reqeustbywfidNode&workflowid="+workflowid+"&nodeids="+t_nodeids+"&complete=0");
wfText +="<a href=# onClick=javaScript:loadGrid('"+jsonWfTypeChild.get("paras").toString()+"',true) >"+workflowname+" </a> (";
if(ovtimenum>0){
String paras = "method=reqeustbywfidNode&workflowid="+workflowid+"&nodeids="+t_nodeids+"&complete=8";
wfText+="<a href = # onClick=javaScript:loadGrid('"+paras+"',true) >"+ovtimenum+"</a><IMG src='/images/BDOut_wev8.gif' align=center BORDER=0> / ";
over=ovtimenum+over;;
}
if(!newremarkwfcount0.equals("0")){
String paras = "method=reqeustbywfidNode&workflowid="+workflowid+"&nodeids="+t_nodeids+"&complete=3";
wfText+="<a href =# onClick=javaScript:loadGrid('"+paras+"',true) >"+Util.toScreen(newremarkwfcount0,user.getLanguage())+"</a><IMG src='/images/BDNew_wev8.gif' align=center BORDER=0> / ";
newremark1=Util.getIntValue(newremarkwfcount0)+newremark1;
}
if(!newremarkwfcount1.equals("0")){
String paras = "method=reqeustbywfidNode&workflowid="+workflowid+"&nodeids="+t_nodeids+"&complete=4";
wfText+="<a href=# onClick=javaScript:loadGrid('"+paras+"',true) >"+Util.toScreen(newremarkwfcount1,user.getLanguage())+"</a><IMG src='/images/BDNew2_wev8.gif' align=center BORDER=0> / ";
newremark2=Util.getIntValue(newremarkwfcount1)+newremark2;
}
wfText+=Util.toScreen(workflowcount,user.getLanguage())+")";
jsonWfTypeChild.put("text",wfText);
jsonWfTypeChildrenArray.put(jsonWfTypeChild);
}
String wfText ="";
if(over>0){
wfText+=over+"<IMG src='/images/BDOut_wev8.gif' align=center BORDER=0> / ";
}
if(newremark1>0){
wfText+=newremark1+"<IMG src='/images/BDNew_wev8.gif' align=center BORDER=0> / ";
}
if(newremark2>0){
wfText+=newremark2+"<IMG src='/images/BDNew2_wev8.gif' align=center BORDER=0> / ";
}
//wfText+=")";
jsonWfType.put("text","<a href=# onClick=javaScript:loadGrid('"+jsonWfType.get("paras").toString()+"',true)>"+WorkTypeComInfo.getWorkTypename(typeid)+" </a>("+wfText+(String)wftypecountList.get(i)+")");
//jsonWfType.put("text","");
jsonWfType.put("children",jsonWfTypeChildrenArray);
jsonWfTypeArray.put(jsonWfType);
}
session.setAttribute("view",jsonWfTypeArray);
response.sendRedirect("/workflow/request/ext/Request.jsp?type=view&isfromtab="+isfromtab); //type: view,表待办 handled表已办
return;
}
if(workflowcountList.size() == 1 && !superior){
String workflowid1 = (String)workflowList.get(0);
String nodeids1 = Util.null2String((String)wfNodeHahstable.get(workflowid1));
String href1 = "/workflow/search/WFSearchTemp.jsp?method=reqeustbywfidNode&workflowid="+workflowid1+"&nodeids="+nodeids1+"&complete=0";
//response.sendRedirect(href1);
%>
<script language=javascript>
location.href ="<%=href1%>";
</script>
<%
}
titlename+=" ("+SystemEnv.getHtmlLabelName(18609,user.getLanguage())+totalcount+SystemEnv.getHtmlLabelName(26302,user.getLanguage())+")";
%>
<body>
<%@ include file="/systeminfo/leftMenuCommon.jsp" %>
<script type="text/javascript" src="/js/ecology8/request/requestView_wev8.js"></script>
<script type="text/javascript" src="/js/ecology8/request/wf_search_requestView_wev8.js"></script>
<form name=frmmain method=post action="RequestView.jsp?offical=<%=offical %>&officalType=<%=officalType %>">
<div>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
/* edited by wdl 2006-06-14 left menu advanced menu */
if(fromAdvancedMenu!=1){
RCMenuWidth = 160;
//RCMenu += "{"+SystemEnv.getHtmlLabelName(16347,user.getLanguage())+",/workflow/search/WFSearchTemp.jsp?method=all&complete=0&viewType=1,_self}" ;
//RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(20271,user.getLanguage())+",/workflow/search/WFSearchTemp.jsp?offical="+offical+"&officalType="+officalType+"&method=all&complete=2&viewType=2,_self}" ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(16348,user.getLanguage())+",/workflow/search/WFSearchTemp.jsp?offical="+offical+"&officalType="+officalType+"&method=all&complete=1&viewType=3,_self}" ;
RCMenuHeight += RCMenuHeightStep ;
}
/* edited end */
%>
</div>
</form>
<script type="text/javascript">
function showloading()
{
if(jQuery(".leftTypeSearch").css("display") === "none");
else
e8_before2();
}
var demoLeftMenus = [];
function onloadtree()
{
var ajax=ajaxinit();
ajax.open("POST", "/workflow/request/RequestView.jsp?<%=request.getQueryString() %>", true);
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send("loadtree=true");
ajax.onreadystatechange = function() {
//如果执行状态成功,那么就把返回信息写到指定的层里
if (ajax.readyState==4&&ajax.status == 200) {
try{
var restr = ajax.responseText;
$("#overFlowDiv").attr("loadtree","true");
//demoLeftMenus = jQuery.parseJSON(restr);
demoLeftMenus = eval("("+restr+")");
var needflowOut=true;
var needflowResponse=true;
var numberTypes={
flowNew:{hoverColor:"#EE5F5F",color:"#EE5F5F",title:"<%=SystemEnv.getHtmlLabelName(84379,user.getLanguage())%>"}
};
if(needflowOut==true || needflowOut=="true"){
numberTypes.flowOut={hoverColor:"#CB9CF4",color:"#CB9CF4",title:"<%=SystemEnv.getHtmlLabelName(84505,user.getLanguage())%>"};
}
if(needflowResponse==true || needflowResponse=="true"){
numberTypes.flowResponse={hoverColor:"#FFC600",color:"#FFC600",title:"<%=SystemEnv.getHtmlLabelName(84506,user.getLanguage())%>"};
}
numberTypes.flowAll={hoverColor:"#A6A6A6",color:"black",title:"<%=SystemEnv.getHtmlLabelName(84382,user.getLanguage())%>"};
if(demoLeftMenus != null)
{
$(".ulDiv").leftNumMenu(demoLeftMenus,{
numberTypes:numberTypes,
showZero:false,
_callback:onloadtreeCount,
deleteIfAllZero:true,
menuStyles:["menu_lv1",""],
clickFunction:function(attr,level,numberType){
leftMenuClickFn(attr,level,numberType);
}
});
}
var sumCount=0;
$(".e8_level_2").each(function(){
sumCount+=parseInt($(this).find(".e8_block:last").html());
});
e8_after2();
}catch(e){e8_after2();}
}
}
}
function onloadtreeCount(obj,menus,options,level,customparams){
jQuery(obj).leftNumMenu("/workflow/request/RequestViewAjaxCount.jsp?<%=request.getQueryString() %>","update");
}
function getajaxcounturl() {
return "/workflow/request/RequestViewAjaxCount.jsp?resourceid=<%=Util.null2String(request.getParameter("resourceid")) %>";
}
function leftMenuClickFn(attr,level,numberType){
var doingTypes={
"flowAll":{complete:0}, //全部 //wfTabFrame.jsp中的viewcondition 相匹配
"flowNew":{complete:1}, //未读的
"flowResponse":{complete:2}, //反馈的
"flowOut":{complete:3}, //超时的
"flowSup":{complete:4} //督办的
};
if(numberType==null){
numberType="flowAll";
}
var viewcondition=doingTypes[numberType].complete;
var flowAll=attr.flowAll;
var flowNew=attr.flowNew;
var flowResponse=attr.flowResponse;
var flowOut=attr.flowOut;
var flowSup=attr.flowSup;
var url;
if(level==1){
var typeid=attr.typeid;
window.typeid=typeid;
window.workflowid=null;
window.nodeids=null;
var fromAdvancedMenu=attr.fromAdvancedMenu;
var infoId=attr.infoId;
var workFlowIDsRequest=attr.workFlowIDsRequest;
var workFlowNodeIDsRequest=attr.workFlowNodeIDsRequest;
var selectedContent=attr.selectedContent;
var menuType=attr.menuType;
if(fromAdvancedMenu=="1"){
url="/workflow/search/wfTabFrame.jsp?offical=<%=offical %>&officalType=<%=officalType%>&method=reqeustByWfTypeAndComplete&fromadvancedmenu="+fromAdvancedMenu+"&infoId="+infoId+"&wftype="+typeid+"&complete=0&workFlowIDsRequest="+workFlowIDsRequest+"&workFlowNodeIDsRequest="+workFlowNodeIDsRequest+"&selectedContent="+selectedContent +"&menuType="+menuType+"&wftypes=<%=wftypes %>";
}else{
url="/workflow/search/wfTabFrame.jsp?offical=<%=offical %>&officalType=<%=officalType%>&method=reqeustByWfTypeAndComplete&wftype="+typeid+"&complete=0&viewcondition="+viewcondition+"&wftypes=<%=wftypes %>";
}
}else{
var workflowid=attr.workflowid;
var nodeids=attr.nodeids;
window.typeid=null;
window.workflowid=workflowid;
window.nodeids=nodeids;
url="/workflow/search/wfTabFrame.jsp?offical=<%=offical %>&officalType=<%=officalType%>&method=reqeustbywfidNode&workflowid="+workflowid+"&nodeids="+nodeids+"&complete=0&viewcondition="+viewcondition+"&wftypes=<%=wftypes %>";
}
url+="&viewScope=doing&numberType="+numberType+"&flowAll="+flowAll+"&flowNew="+flowNew+"&flowResponse="+flowResponse+"&flowOut="+flowOut+"&flowSup="+flowSup;
$(".flowFrame").attr("src",url);
}
function WfSearchAll(){
/*清除已选项样式*/
jQuery(".leftSearchInput").val("");
if(window.e8_search && window.oldtree!=false){
if(jQuery(".webfx-tree-item").length>0){
jQuery(".webfx-tree-item_selected").find("img[src*='w_']").each(function(){
var lastSrc = jQuery(this).attr("src");
jQuery(this).attr("src",lastSrc.replace("w_",""));
});
jQuery(".webfx-tree-item_selected").removeClass("webfx-tree-item_selected");
}else{
jQuery(".curSelectedNode").removeClass("curSelectedNode");
}
format("",true);
}else{
jQuery(".e8_li_selected").find(".e8menu_icon_close_select").removeClass("e8menu_icon_close_select").addClass("e8menu_icon_close");
jQuery(".e8_li_selected").find(".e8menu_icon_open_select").removeClass("e8menu_icon_open_select").addClass("e8menu_icon_open");
jQuery(".e8_li_selected").removeClass("e8_li_selected");
format2("",true);
}
/*清除右侧查询条件并重新查询*/
document.getElementById("myFrame").src ="/workflow/search/wfTabFrame.jsp?offical=<%=offical %>&officalType=<%=officalType %>&method=all&viewScope=doing&complete=0&wftypes=<%=wftypes %>";
}
</script>
<table cellspacing="0" cellpadding="0" class="flowsTable" >
<tr>
<td class="leftTypeSearch">
<span class="leftType" onclick="WfSearchAll()">
<span><img style="vertical-align:middle;" src="/images/ecology8/request/alltype_wev8.png" width="18"/></span>
<span><%=SystemEnv.getHtmlLabelName(21979,user.getLanguage()) %></span>
</span>
<span class="leftSearchSpan">
<input type="text" class="leftSearchInput" />
</span>
</td>
<td rowspan="2">
<iframe id="myFrame" name="myFrame" src="/workflow/search/wfTabFrame.jsp?offical=<%=offical %>&officalType=<%=officalType %>&method=all&viewScope=doing&complete=0&wftypes=<%=wftypes %>"
class="flowFrame" frameborder="0" frameborder="0" width="100%"></iframe>
</td>
</tr>
<tr>
<td style="width:23%;" class="flowMenusTd">
<div class="flowMenuDiv" >
<!--<div class="flowMenuAll"><span class="allText">全部 </span></div>-->
<div style="overflow:hidden;height:300px;position:relative;" loadtree="false" id="overFlowDiv">
<div class="ulDiv" ></div>
</div>
</div>
</td>
</tr>
</table>
</body>
</html>
<%}%>