HrmRightTransferDetailData.jsp
22 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%
request.setCharacterEncoding("UTF-8");
%>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="ResourceComInfo" class="weaver.hrm.resource.ResourceComInfo" scope="page"/>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page"/>
<%
int type=Util.getIntValue(request.getParameter("type"),0);
String fromid=Util.null2String(request.getParameter("fromid"));
int resourceallnum=Util.getIntValue(request.getParameter("resourceallnum"),0);
String resourceidstr=Util.null2String(request.getParameter("resourceidstr"));
int docallnum=Util.getIntValue(request.getParameter("docallnum"),0);
String docidstr=Util.null2String(request.getParameter("docidstr"));
int crmallnum=Util.getIntValue(request.getParameter("crmallnum"),0);
String crmidstr=Util.null2String(request.getParameter("crmidstr"));
int projectallnum=Util.getIntValue(request.getParameter("projectallnum"),0);
String projectidstr=Util.null2String(request.getParameter("projectidstr"));
int eventAllNum=Util.getIntValue(request.getParameter("eventAllNum"),0); //apollo
String eventIDStr=Util.null2String(request.getParameter("eventIDStr"));//apollo
int coworkAllNum=Util.getIntValue(request.getParameter("coworkAllNum"),0);
String coworkIDStr=Util.null2String(request.getParameter("coworkIDStr"));
/* 2014-7-31 start */
int pendingEventAllNum=Util.getIntValue(request.getParameter("pendingEventAllNum"), 0);
String pendingEventIDStr=Util.null2String(request.getParameter("pendingEventIDStr"));
/* 2014-7-31 end */
ArrayList resourceids=new ArrayList();
ArrayList docids=new ArrayList();
ArrayList crmids=new ArrayList();
ArrayList projectids=new ArrayList();
ArrayList eventIDs=new ArrayList();//apollo
ArrayList coworkIDs=new ArrayList();
/* 2014-7-31 start */
ArrayList pendingEventIDs = new ArrayList();
/* 2014-7-31 end */
int i=0;
int j=0;
%>
<% if(type==3) { %>
<jsp:useBean id="JobTitlesComInfo" class="weaver.hrm.job.JobTitlesComInfo" scope="page"/>
<table class=viewform>
<colgroup>
<col width=10px>
<col width="49%">
<col width=10px>
<col width="49%">
<TBODY>
<TR CLASS=title><TD COLSPAN=4>
<B><%=SystemEnv.getHtmlLabelName(179,user.getLanguage())%>:<%=Util.toScreen(ResourceComInfo.getResourcename(fromid),user.getLanguage())%>
(<%=SystemEnv.getHtmlLabelName(523,user.getLanguage())%>:<%=resourceallnum%>)</B></TD></TR>
<TR CLASS=spacing style="height: 1px"><TD CLASS=line1 COLSPAN=4></TD></TR>
<tr>
<%
String managerid="";
String resourceid="";
String resourcename="";
String jobtitle="";
String jobtitlename="";
String checked="";
//by Charoes Huang
String status ="";
String id ="";
resourceids=Util.TokenizerString(resourceidstr,",");
i=0;
while(ResourceComInfo.next()){
managerid=ResourceComInfo.getManagerID();
id = ResourceComInfo.getResourceid();
status = ResourceComInfo.getStatus(id);
if(fromid.equals(managerid) && (status.equals("0")||status.equals("1")||status.equals("2")||status.equals("3"))){
resourceid=ResourceComInfo.getResourceid();
resourcename=ResourceComInfo.getResourcename();
jobtitle=ResourceComInfo.getJobTitle();
jobtitlename=JobTitlesComInfo.getJobTitlesname(jobtitle);
i++;
checked="";
for(j=0;j<resourceids.size();j++){
if(((String)resourceids.get(j)).equals(resourceid))
checked="checked";
}
%>
<TD><INPUT TYPE=CheckBox VALUE="<%=resourceid%>" NAME=ids <%=checked%>></TD>
<td class=field><a href="/hrm/resource/HrmResource.jsp?id=<%=resourceid%>" target=_blank>
<%=Util.toScreen(resourcename,user.getLanguage())%> , <%=Util.toScreen(jobtitlename,user.getLanguage())%></a></td>
<%
if((i%2)==0&&i<resourceallnum){ %> </tr><tr> <%}
if((i==resourceallnum)){
if((i%2)==0){ %> </tr> <%}
if((i%2)==1){ %> <td> </td><td> </td></tr><%}
}
}
}
%>
</tbody>
</table>
<%}%>
<% if(type==4) {%>
<table class=viewform>
<colgroup>
<col width=10px>
<col width="49%">
<col width=10px>
<col width="49%">
<TBODY>
<TR CLASS=title><TD COLSPAN=4>
<B><%=SystemEnv.getHtmlLabelName(58,user.getLanguage())%>:<%=Util.toScreen(ResourceComInfo.getResourcename(fromid),user.getLanguage())%>
(<%=SystemEnv.getHtmlLabelName(523,user.getLanguage())%>:<%=docallnum%>)</B></TD></TR>
<TR CLASS=spacing style="height: 1px"><TD CLASS=line1 COLSPAN=4></TD></TR>
<tr>
<%
String ownerid="";
String docid="";
String docname="";
String checked="";
docids=Util.TokenizerString(docidstr,",");
i=0;
//update by alan on 2009-08-17 for td:11539
String sql="select id,docsubject,doccreaterid,ownerid,usertype , replydocid from DocDetail where maincategory!=0 and subcategory!=0 and seccategory!=0 and ";
sql += "id IN (select max(id) from DocDetail where ownerid="+fromid+" and (ishistory is null or ishistory = 0) group by parentids)";
RecordSet.executeSql(sql);
while(RecordSet.next()){
ownerid=RecordSet.getString("ownerid");
docid=RecordSet.getString("id");
docname=RecordSet.getString("docsubject");
i++;
checked="";
for(j=0;j<docids.size();j++){
if(((String)docids.get(j)).equals(docid))
checked="checked";
}
%>
<TD><INPUT TYPE=CheckBox VALUE="<%=docid%>" NAME=ids <%=checked%>></TD>
<td class=field><a href="/docs/docs/DocDsp.jsp?id=<%=docid%>" target=_blank><%=Util.toScreen(docname,user.getLanguage())%></a></td>
<%
if((i%2)==0&&i<docallnum){ %> </tr><tr> <%}
if((i==docallnum)){
if((i%2)==0){ %> </tr> <%}
if((i%2)==1){ %> <td> </td><td> </td></tr><%}
}
}
%>
</tbody>
</table>
<%}%>
<% if(type==1) { %>
<jsp:useBean id="CustomerStatusComInfo" class="weaver.crm.Maint.CustomerStatusComInfo" scope="page"/>
<jsp:useBean id="CustomerTypeComInfo" class="weaver.crm.Maint.CustomerTypeComInfo" scope="page"/>
<%
String crmtype=Util.null2String(request.getParameter("crmtype"));
String crmstatus=Util.null2String(request.getParameter("crmstatus"));
%>
<table class=viewform>
<tr class=title><th colspan=3><%=SystemEnv.getHtmlLabelName(172,user.getLanguage())%></th></tr>
<TR CLASS=spacing style="height: 1px"><TD CLASS=line1 COLSPAN=3></TD></TR>
<tr>
<td width="20%"><%=SystemEnv.getHtmlLabelName(178,user.getLanguage())%>
<select name="crmtype" size=1 >
<option value=""> </option>
<%
String curtype="";
String curtypename="";
String selected="";
while(CustomerTypeComInfo.next()) {
curtype=CustomerTypeComInfo.getCustomerTypeid();
curtypename=CustomerTypeComInfo.getCustomerTypename();
if(curtype.equals(crmtype)) selected="selected";
else selected="";
%>
<option value="<%=curtype%>" <%=selected%>><%=Util.toScreen(curtypename,user.getLanguage())%></option>
<%}
CustomerTypeComInfo.setTofirstRow();
%>
</select>
</td>
<td width="20%"><%=SystemEnv.getHtmlLabelName(169,user.getLanguage())%>
<select name="crmstatus" size=1 >
<option value=""> </option>
<%
String curstatus="";
String curstatusname="";
selected="";
while(CustomerStatusComInfo.next()) {
curstatus=CustomerStatusComInfo.getCustomerStatusid();
curstatusname=CustomerStatusComInfo.getCustomerStatusname();
if(curstatus.equals(crmstatus)) selected="selected";
else selected="";
%>
<option value="<%=curstatus%>" <%=selected%>><%=Util.toScreen(curstatusname,user.getLanguage())%></option>
<%}
CustomerStatusComInfo.setTofirstRow();
%>
</select>
</td>
<td width="60%"> </td>
</tr>
</tbody>
</table>
<table class=viewform>
<colgroup>
<col width=10px>
<col width="49%">
<col width=10px>
<col width="49%">
<TBODY>
<TR CLASS=title><TD COLSPAN=4>
<B><%=SystemEnv.getHtmlLabelName(147,user.getLanguage())%>:<%=Util.toScreen(ResourceComInfo.getResourcename(fromid),user.getLanguage())%>
(<%=SystemEnv.getHtmlLabelName(523,user.getLanguage())%>:<%=crmallnum%>)</B></TD></TR>
<TR CLASS=spacing><TD CLASS=Sep2 COLSPAN=4></TD></TR>
<tr>
<%
String managerid="";
String crmid="";
String crmname="";
String checked="";
crmids=Util.TokenizerString(crmidstr,",");
i=0;
String sql="select id,name,language,manager,type,status , seclevel FROM CRM_CustomerInfo where (deleted is null or deleted<>1) and manager="+fromid;
if(!crmtype.equals(""))
sql+=" and type="+crmtype;
if(!crmstatus.equals(""))
sql+=" and status="+crmstatus;
RecordSet.executeSql(sql);
while(RecordSet.next()){
crmid=RecordSet.getString("id");
curtype=RecordSet.getString("type");
curtypename=CustomerTypeComInfo.getCustomerTypename(curtype);
crmname=RecordSet.getString("name");
i++;
checked="";
for(j=0;j<crmids.size();j++){
if(((String)crmids.get(j)).equals(crmid))
checked="checked";
}
%>
<TD><INPUT TYPE=CheckBox VALUE="<%=crmid%>" NAME=ids <%=checked%>></TD>
<td class=field><a href="/CRM/data/ViewCustomer.jsp?CustomerID=<%=crmid%>" target=_blank>
<%=Util.toScreen(crmname,user.getLanguage())%> , <%=Util.toScreen(curtypename,user.getLanguage())%></a></td>
<%
if((i%2)==0){ %> </tr><tr> <%}
}
if((i%2)==0){ %></tr><%}
if((i%2)==1){ %><td> </td><td> </td></tr><%}
%>
</tbody>
</table>
<%}%>
<% if(type==2) { %>
<jsp:useBean id="ProjectInfoComInfo" class="weaver.proj.Maint.ProjectInfoComInfo" scope="page"/>
<jsp:useBean id="ProjectStatusComInfo" class="weaver.proj.Maint.ProjectStatusComInfo" scope="page"/>
<jsp:useBean id="ProjectTypeComInfo" class="weaver.proj.Maint.ProjectTypeComInfo" scope="page"/>
<jsp:useBean id="WorkTypeComInfo" class="weaver.proj.Maint.WorkTypeComInfo" scope="page"/>
<%
String projecttype=Util.null2String(request.getParameter("projecttype"));
String projectstatus=Util.null2String(request.getParameter("projectstatus"));
String worktype=Util.null2String(request.getParameter("worktype"));
%>
<table class=viewform>
<tr class=Section><th colspan=4><%=SystemEnv.getHtmlLabelName(172,user.getLanguage())%></th></tr>
<TR CLASS=Separator><TD CLASS=Sep2 COLSPAN=4></TD></TR>
<tr>
<td width="20%"><%=SystemEnv.getHtmlLabelName(178,user.getLanguage())%>
<select name="projecttype" size=1 >
<option value=""> </option>
<%
String curtype="";
String curtypename="";
String selected="";
while(ProjectTypeComInfo.next()) {
curtype=ProjectTypeComInfo.getProjectTypeid();
curtypename=ProjectTypeComInfo.getProjectTypename();
if(curtype.equals(projecttype)) selected="selected";
else selected="";
%>
<option value="<%=curtype%>" <%=selected%>><%=Util.toScreen(curtypename,user.getLanguage())%></option>
<%}
ProjectTypeComInfo.setTofirstRow();
%>
</select>
</td>
<td width="20%"><%=SystemEnv.getHtmlLabelName(432,user.getLanguage())%>
<select name="worktype" size=1 >
<option value=""> </option>
<%
curtype="";
curtypename="";
selected="";
while(WorkTypeComInfo.next()) {
curtype=WorkTypeComInfo.getWorkTypeid();
curtypename=WorkTypeComInfo.getWorkTypename();
if(curtype.equals(worktype)) selected="selected";
else selected="";
%>
<option value="<%=curtype%>" <%=selected%>><%=Util.toScreen(curtypename,user.getLanguage())%></option>
<%}
WorkTypeComInfo.setTofirstRow();
%>
</select>
</td>
<td width="20%"><%=SystemEnv.getHtmlLabelName(169,user.getLanguage())%>
<select name="projectstatus" size=1 >
<option value=""> </option>
<%
String curstatus="";
String curstatusname="";
selected="";
while(ProjectStatusComInfo.next()) {
curstatus=ProjectStatusComInfo.getProjectStatusid();
curstatusname=ProjectStatusComInfo.getProjectStatusname();
String _name = SystemEnv.getHtmlLabelName(Integer.valueOf(curstatusname).intValue(),user.getLanguage());
if(curstatus.equals(projectstatus)) selected="selected";
else selected="";
%>
<option value="<%=curstatus%>" <%=selected%>><%=_name%></option>
<%}
ProjectStatusComInfo.setTofirstRow();
%>
</select>
</td>
<td width="40%"> </td>
</tr>
</tbody>
</table>
<table class=viewform>
<colgroup>
<col width=10px>
<col width="49%">
<col width=10px>
<col width="49%">
<TBODY>
<TR CLASS=title><TD COLSPAN=4>
<B><%=SystemEnv.getHtmlLabelName(101,user.getLanguage())%>:<%=Util.toScreen(ResourceComInfo.getResourcename(fromid),user.getLanguage())%>
(<%=SystemEnv.getHtmlLabelName(523,user.getLanguage())%>:<%=projectallnum%>)</B></TD></TR>
<TR CLASS=spacing><TD CLASS=Sep2 COLSPAN=4></TD></TR>
<tr>
<%
String managerid="";
String projectid="";
String projectname="";
String checked="";
projectids=Util.TokenizerString(projectidstr,",");
i=0;
while(ProjectInfoComInfo.next()){
if(!projecttype.equals("")){
if(!projecttype.equals(ProjectInfoComInfo.getProjectInfoprjtype()))
continue;
}
if(!worktype.equals("")){
if(!worktype.equals(ProjectInfoComInfo.getProjectInfoworktype()))
continue;
}
if(!projectstatus.equals("")){
if(!projectstatus.equals(ProjectInfoComInfo.getProjectInfostatus()))
continue;
}
managerid=ProjectInfoComInfo.getProjectInfomanager();
if(fromid.equals(managerid)){
projectid=ProjectInfoComInfo.getProjectInfoid();
curtype=ProjectInfoComInfo.getProjectInfoprjtype();
curtypename=ProjectTypeComInfo.getProjectTypename(curtype);
projectname=ProjectInfoComInfo.getProjectInfoname();
i++;
checked="";
for(j=0;j<projectids.size();j++){
if(((String)projectids.get(j)).equals(projectid))
checked="checked";
}
%>
<TD><INPUT TYPE=CheckBox VALUE="<%=projectid%>" NAME=ids <%=checked%>></TD>
<td class=field><a href="/proj/data/ViewProject.jsp?ProjID=<%=projectid%>" target=_blank>
<%=Util.toScreen(projectname,user.getLanguage())%> , <%=Util.toScreen(curtypename,user.getLanguage())%></a></td>
<%
if((i%2)==0){ %> </tr><tr> <%}
}
}
if((i%2)==0){ %></tr><%}
if((i%2)==1){ %><td> </td><td> </td></tr><%}
%>
</tbody>
</table>
<%}%>
<%
if(type==5)
{
%>
<jsp:useBean id="WorkflowComInfo" class="weaver.workflow.workflow.WorkflowComInfo" scope="page"/>
<table class=viewform>
<colgroup>
<col width=10px>
<col width="49%">
<col width=10px>
<col width="49%">
<TBODY>
<TR CLASS=title>
<TD COLSPAN=4>
<B><%=SystemEnv.getHtmlLabelName(17991,user.getLanguage())%>:<%=Util.toScreen(ResourceComInfo.getResourcename(fromid),user.getLanguage())%>(<%=SystemEnv.getHtmlLabelName(523,user.getLanguage())%>:<%=eventAllNum%>)</B>
</TD>
</TR>
<TR CLASS=spacing>
<TD CLASS=Sep2 COLSPAN=4></TD>
</TR>
<tr>
<%
eventIDs = Util.TokenizerString(eventIDStr, ",");
i=0;
String logintype = ""+user.getLogintype();
int usertype = 0;
if(logintype.equals("2"))
{
usertype= 1;
}
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("SELECT DISTINCT a.workflowId, a.requestId, a.requestName, a.creater, a.createDate, a.createTime");
stringBuffer.append(" FROM Workflow_RequestBase a, Workflow_CurrentOperator b");
stringBuffer.append(" WHERE a.requestId = b.requestId");
stringBuffer.append(" AND b.isRemark in ('2', '4')");
stringBuffer.append(" AND isLastTimes = 1");
stringBuffer.append(" AND userId = ");
stringBuffer.append(fromid);
stringBuffer.append(" AND userType = ");
stringBuffer.append(usertype);
stringBuffer.append(" AND (b.isComplete = 1 OR (b.agenttype<>1");
stringBuffer.append(" OR (b.agenttype=1 AND NOT EXISTS(");
stringBuffer.append(" SELECT 1 FROM workflow_currentoperator b2 WHERE b2.userid=b.agentorbyagentid AND b2.agenttype=2 AND b2.agentorbyagentid=b.userid AND b2.isremark='0'");
stringBuffer.append(" ))))");
stringBuffer.append(" ORDER BY createDate DESC , createTime DESC");
RecordSet.executeSql(stringBuffer.toString());
while(RecordSet.next())
{
String eventID = "";
String eventName = "";
String checked="";
String theworkflowid = Util.null2String(RecordSet.getString("workflowId"));
String isValid = WorkflowComInfo.getIsValid(theworkflowid);
if("1".equals(isValid) || "3".equals(isValid))
{
eventID = Util.null2String(RecordSet.getString("requestId"));
eventName = Util.null2String(RecordSet.getString("requestName"));
checked="";
i++;
for(j=0;j<eventIDs.size();j++)
{
if(((String)eventIDs.get(j)).equals(eventID))
{
checked="checked";
}
}
%>
<TD><INPUT TYPE=CheckBox VALUE="<%=eventID%>" NAME=ids <%=checked%>></TD>
<td class=field>
<a href="/workflow/request/ViewRequest.jsp?requestid=<%=eventID%>" target=_blank>
<%=Util.toScreen(eventName,user.getLanguage())%>
</a>
</td>
<%
}
if((i%2)==0)
{
%>
</tr>
<tr>
<%
}
}
if((i%2)==0)
{
%>
</tr>
<%
}
if((i%2)==1)
{
%>
<td> </td><td> </td></tr>
<%
}
%>
</tbody>
</table>
<%
}
%>
<%
if(type==6)
{
%>
<jsp:useBean id="WorkflowComInfo" class="weaver.workflow.workflow.WorkflowComInfo" scope="page"/>
<table class=viewform>
<colgroup>
<col width=10px>
<col width="49%">
<col width=10px>
<col width="49%">
<TBODY>
<TR CLASS=title>
<TD COLSPAN=4>
<B><%=SystemEnv.getHtmlLabelName(125,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(17855,user.getLanguage())%>:<%=Util.toScreen(ResourceComInfo.getResourcename(fromid),user.getLanguage())%>(<%=SystemEnv.getHtmlLabelName(523,user.getLanguage())%>:<%=coworkAllNum%>)</B>
</TD>
</TR>
<TR CLASS=spacing>
<TD CLASS=Sep2 COLSPAN=4></TD>
</TR>
<tr>
<%
coworkIDs = Util.TokenizerString(coworkIDStr, ",");
i=0;
String logintype = ""+user.getLogintype();
int usertype = 0;
if(logintype.equals("2"))
{
usertype= 1;
}
RecordSet.executeSql("select * from cowork_items where coworkmanager="+fromid);
while(RecordSet.next()){
i++;
String coworkID = Util.null2String(RecordSet.getString("id"));
String coworkName = Util.null2String(RecordSet.getString("name"));
String checked="";
for(j=0;j<coworkIDs.size();j++){
if(((String)coworkIDs.get(j)).equals(coworkID))
{
checked="checked";
}
}
%>
<TD><INPUT TYPE=CheckBox VALUE="<%=coworkID%>" NAME=ids <%=checked%>></TD>
<td class=field>
<a href="/cowork/ViewCoWork.jsp?id=<%=coworkID%>" target=_blank>
<%=Util.toScreen(coworkName,user.getLanguage())%>
</a>
</td>
<%
if((i%2)==0)
{
%>
</tr>
<tr>
<%
}
}
if((i%2)==0)
{
%>
</tr>
<%
}
if((i%2)==1)
{
%>
<td> </td><td> </td></tr>
<%
}
%>
</tbody>
</table>
<%
}
%>
<%
if(type==7)
{
%>
<jsp:useBean id="WorkflowComInfo" class="weaver.workflow.workflow.WorkflowComInfo" scope="page"/>
<table class=viewform>
<colgroup>
<col width=10px>
<col width="49%">
<col width=10px>
<col width="49%">
<TBODY>
<TR CLASS=title>
<TD COLSPAN=4>
<B><%=SystemEnv.getHtmlLabelName(1207,user.getLanguage())%>:<%=Util.toScreen(ResourceComInfo.getResourcename(fromid),user.getLanguage())%>(<%=SystemEnv.getHtmlLabelName(523,user.getLanguage())%>:<%=pendingEventAllNum%>)</B>
</TD>
</TR>
<TR CLASS=spacing>
<TD CLASS=Sep2 COLSPAN=4></TD>
</TR>
<tr>
<%
pendingEventIDs = Util.TokenizerString(pendingEventIDStr, ",");
i=0;
String logintype = ""+user.getLogintype();
int usertype = 0;
if(logintype.equals("2"))
{
usertype= 1;
}
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("SELECT DISTINCT a.workflowId, a.requestId, a.requestName, a.creater, a.createDate, a.createTime");
stringBuffer.append(" FROM Workflow_RequestBase a, Workflow_CurrentOperator b");
stringBuffer.append(" WHERE a.requestId = b.requestId");
stringBuffer.append(" AND b.isRemark in ('0','1','5','8','9','7')");
stringBuffer.append(" AND isLastTimes = 1");
stringBuffer.append(" AND userId = ");
stringBuffer.append(fromid);
stringBuffer.append(" AND userType = ");
stringBuffer.append(usertype);
stringBuffer.append(" ORDER BY createDate DESC , createTime DESC");
RecordSet.executeSql(stringBuffer.toString());
while(RecordSet.next())
{
String pendingEventID = "";
String pendingEventName = "";
String checked="";
String theworkflowid = Util.null2String(RecordSet.getString("workflowId"));
String isValid = WorkflowComInfo.getIsValid(theworkflowid);
if("1".equals(isValid) || "3".equals(isValid))
{
pendingEventID = Util.null2String(RecordSet.getString("requestId"));
pendingEventName = Util.null2String(RecordSet.getString("requestName"));
checked="";
i++;
for(j=0;j<pendingEventIDs.size();j++)
{
if(((String)pendingEventIDs.get(j)).equals(pendingEventID))
{
checked="checked";
}
}
%>
<TD><INPUT TYPE=CheckBox VALUE="<%=pendingEventID%>" NAME=ids <%=checked%>></TD>
<td class=field>
<a href="/workflow/request/ViewRequest.jsp?requestid=<%=pendingEventID%>" target=_blank>
<%=Util.toScreen(pendingEventName,user.getLanguage())%>
</a>
</td>
<%
}
if((i%2)==0)
{
%>
</tr>
<tr>
<%
}
}
if((i%2)==0)
{
%>
</tr>
<%
}
if((i%2)==1)
{
%>
<td> </td><td> </td></tr>
<%
}
%>
</tbody>
</table>
<%
}
%>