WFSearchResultForNewBackWorkflow.jsp
21.8 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%><!--added by xwj for td2023 on 2005-05-20-->
<%@ include file="/systeminfo/init_wev8.jsp" %>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="WorkflowComInfo" class="weaver.workflow.workflow.WorkflowComInfo" scope="page" />
<jsp:useBean id="ResourceComInfo" class="weaver.hrm.resource.ResourceComInfo" scope="page" />
<jsp:useBean id="CustomerInfoComInfo" class="weaver.crm.Maint.CustomerInfoComInfo" scope="page" />
<jsp:useBean id="HomepageElementCominfo" class="weaver.homepage.cominfo.HomepageElementCominfo" scope="page"/>
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
</head>
<%
String imagefilename = "/images/hdDOC_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(197,user.getLanguage())+":"+SystemEnv.getHtmlLabelName(20288,user.getLanguage());
String needfav ="1";
String needhelp ="";
%>
<BODY>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<FORM id=weaver name=frmmain method=post action="WFSearchResultForNewBackWorkflow.jsp">
<%
String workflowid = "" ;
String nodetype ="" ;
String fromdate ="" ;
String todate ="" ;
String creatertype ="" ;
String createrid ="" ;
String requestlevel ="" ;
String fromdate2 ="" ;
String todate2 ="" ;
String workcode ="" ;
String fromself =Util.null2String(request.getParameter("fromself"));
String fromselfSql =Util.null2String(request.getParameter("fromselfSql"));
String isfirst =Util.null2String(request.getParameter("isfirst"));
int isovertime= Util.getIntValue(request.getParameter("isovertime"),0) ;
if(fromself.equals("1")) {
workflowid = Util.null2String(request.getParameter("workflowid"));
nodetype = Util.null2String(request.getParameter("nodetype"));
fromdate = Util.null2String(request.getParameter("fromdate"));
todate = Util.null2String(request.getParameter("todate"));
creatertype = Util.null2String(request.getParameter("creatertype"));
createrid = Util.null2String(request.getParameter("createrid"));
requestlevel = Util.null2String(request.getParameter("requestlevel"));
fromdate2 = Util.null2String(request.getParameter("fromdate2"));
todate2 = Util.null2String(request.getParameter("todate2"));
workcode = Util.null2String(request.getParameter("workcode"));
}
else {
String eid=Util.null2String(request.getParameter("eid"));
String strsqlwhere=HomepageElementCominfo.getStrsqlwhere(eid);
String tempSqlWhereKey=Util.StringReplace(strsqlwhere,"^,^",",");
if(!"".equals(tempSqlWhereKey)){
fromselfSql=" t2.workflowtype in("+tempSqlWhereKey+")";
}
}
String newsql="";
if(fromself.equals("1")) {
if(!workflowid.equals(""))
newsql+=" and t1.workflowid in("+workflowid+")" ;
if(!nodetype.equals(""))
newsql += " and t1.currentnodetype='"+nodetype+"'";
if(!fromdate.equals(""))
newsql += " and t1.createdate>='"+fromdate+"'";
if(!todate.equals(""))
newsql += " and t1.createdate<='"+todate+"'";
if(!fromdate2.equals(""))
newsql += " and t2.receivedate>='"+fromdate2+"'";
if(!todate2.equals(""))
newsql += " and t2.receivedate<='"+todate2+"'";
if(!workcode.equals(""))
newsql += " and t1.creatertype= '0' and t1.creater in(select id from hrmresource where workcode like '%"+workcode+"%')";
if(!createrid.equals("")){
newsql += " and t1.creater='"+createrid+"'";
newsql += " and t1.creatertype= '"+creatertype+"' ";
}
if(!requestlevel.equals("")){
newsql += " and t1.requestlevel="+requestlevel;
}
if (!fromselfSql.equals("")){
newsql += " and " + fromselfSql;
}
}else{
if (!fromselfSql.equals("")){
newsql += " and " + fromselfSql;
}
}
String userID = String.valueOf(user.getUID());
String logintype = ""+user.getLogintype();
int usertype = 0;
if(logintype.equals("2")) usertype= 1;
String sqlwhere="where t1.requestid = t2.requestid and t1.deleted<>1 ";
sqlwhere +=" "+newsql ;
String orderby = "t2.receivedate ,t2.receivetime";
int perpage=10;
boolean hascreatetime =true;
boolean hascreater =true;
boolean hasworkflowname =true;
boolean hasrequestlevel =true;
boolean hasrequestname =true;
boolean hasreceivetime =true;
boolean hasstatus =true;
boolean hasreceivedpersons =true;
boolean hascurrentnode =true;
RecordSet.executeProc("workflow_RUserDefault_Select",""+user.getUID());
if(RecordSet.next()){
if(!Util.null2String(RecordSet.getString("hascreatetime")).equals("1")) hascreatetime=false;
if(!Util.null2String(RecordSet.getString("hascreater")).equals("1")) hascreater=false;
if(!Util.null2String(RecordSet.getString("hasworkflowname")).equals("1")) hasworkflowname=false;
if(!Util.null2String(RecordSet.getString("hasrequestlevel")).equals("1")) hasrequestlevel=false;
if(!Util.null2String(RecordSet.getString("hasrequestname")).equals("1")) hasrequestname=false;
if(!Util.null2String(RecordSet.getString("hasreceivetime")).equals("1")) hasreceivetime=false;
if(!Util.null2String(RecordSet.getString("hasstatus")).equals("1")) hasstatus=false;
if(!Util.null2String(RecordSet.getString("hasreceivedpersons")).equals("1")) hasreceivedpersons=false;
if(!Util.null2String(RecordSet.getString("hascurrentnode")).equals("1")) hascurrentnode=false;
perpage= RecordSet.getInt("numperpage");
}else{
RecordSet.executeProc("workflow_RUserDefault_Select","1");
if(RecordSet.next()){
if(!Util.null2String(RecordSet.getString("hascreatetime")).equals("1")) hascreatetime=false;
if(!Util.null2String(RecordSet.getString("hascreater")).equals("1")) hascreater=false;
if(!Util.null2String(RecordSet.getString("hasworkflowname")).equals("1")) hasworkflowname=false;
if(!Util.null2String(RecordSet.getString("hasrequestlevel")).equals("1")) hasrequestlevel=false;
if(!Util.null2String(RecordSet.getString("hasrequestname")).equals("1")) hasrequestname=false;
if(!Util.null2String(RecordSet.getString("hasreceivetime")).equals("1")) hasreceivetime=false;
if(!Util.null2String(RecordSet.getString("hasstatus")).equals("1")) hasstatus=false;
if(!Util.null2String(RecordSet.getString("hasreceivedpersons")).equals("1")) hasreceivedpersons=false;
if(!Util.null2String(RecordSet.getString("hascurrentnode")).equals("1")) hascurrentnode=false;
perpage= RecordSet.getInt("numperpage");
}
}
/*如果所有的列都不显示,那么就显示所有的,避免页面出错*/
if(!hascreatetime&&!hascreater&&!hasworkflowname&&!hasrequestlevel&&!hasrequestname&&!hasreceivetime&&!hasstatus&&!hasreceivedpersons&&!hascurrentnode){
hascreatetime =true;
hascreater =true;
hasworkflowname =true;
hasrequestlevel =true;
hasrequestname =true;
hasreceivetime =true;
hasstatus =true;
hasreceivedpersons =true;
hascurrentnode =true;
}
RCMenu += "{"+SystemEnv.getHtmlLabelName(197,user.getLanguage())+",javascript:OnSearch(),_self}" ;
RCMenuHeight += RCMenuHeightStep ;
%>
<div id='divshowreceivied' style='background:#FFFFFF;padding:3px;width:100%' valign='top'>
</div>
<input type=hidden name=fromself value="<%=fromself%>">
<input type=hidden name=isfirst value="<%=isfirst%>">
<input type=hidden name=fromselfSql value="<%=fromselfSql%>">
<input type=hidden name=isovertime value="<%=isovertime%>">
<table width=100% height=100% border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="10">
<col width="">
<col width="10">
<tr>
<td height="10" colspan="3"></td>
</tr>
<tr>
<td ></td>
<td valign="top">
<TABLE class=Shadow>
<tr>
<td valign="top">
<table class="viewform">
<colgroup>
<col width="10%">
<col width="20%">
<col width="5">
<col width="10%">
<col width="20%">
<col width="5%">
<col width="10%">
<col width="20">
<tbody>
<tr>
<td><%=SystemEnv.getHtmlLabelName(63,user.getLanguage())%></td>
<td class=field>
<button class=browser onClick="onShowWorkFlow('workFlowId','workflowspan')"></button>
<span id=workflowspan>
<%=WorkflowComInfo.getWorkflowname(workflowid)%>
</span>
<input name=workflowid type=hidden value="<%=workflowid%>">
</td>
<td> </td>
<td><%=SystemEnv.getHtmlLabelName(15536,user.getLanguage())%></td>
<td class=field>
<select class=inputstyle size=1 name=nodetype style=width:150>
<option value=""> </option>
<option value="0" <% if(nodetype.equals("0")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(125,user.getLanguage())%></option>
<option value="1" <% if(nodetype.equals("1")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(142,user.getLanguage())%></option>
<option value="2" <% if(nodetype.equals("2")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(725,user.getLanguage())%></option>
<option value="3" <% if(nodetype.equals("3")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(251,user.getLanguage())%></option>
</select>
</td>
<td> </td>
<td ><%=SystemEnv.getHtmlLabelName(603,user.getLanguage())%></td>
<td class=field>
<select class=inputstyle name=requestlevel style=width:140 size=1>
<option value=""> </option>
<option value="0" <% if(requestlevel.equals("0")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(225,user.getLanguage())%></option>
<option value="1" <% if(requestlevel.equals("1")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(15533,user.getLanguage())%></option>
<option value="2" <% if(requestlevel.equals("2")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(2087,user.getLanguage())%></option>
</select>
</td>
</tr>
<TR><TD class=Line colSpan=8></TD></TR>
<tr>
<td><%=SystemEnv.getHtmlLabelName(722,user.getLanguage())%></td>
<td class=field><BUTTON class=calendar id=SelectDate onclick="gettheDate(fromdate,fromdatespan)"></BUTTON>
<SPAN id=fromdatespan ><%=fromdate%></SPAN>
- <BUTTON class=calendar id=SelectDate2 onclick="gettheDate(todate,todatespan)"></BUTTON>
<SPAN id=todatespan ><%=todate%></SPAN>
<input type="hidden" name="fromdate" value="<%=fromdate%>"><input type="hidden" name="todate" value="<%=todate%>">
</td>
<td> </td>
<td ><%=SystemEnv.getHtmlLabelName(882,user.getLanguage())%></td>
<td class=field>
<select class=inputstyle name=creatertype>
<%if(!user.getLogintype().equals("2")){%>
<option value="0"<% if(creatertype.equals("0")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(179,user.getLanguage())%></option>
<%}%>
<option value="1"<% if(creatertype.equals("1")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(136,user.getLanguage())%></option>
</select>
 
<button class=browser onClick="onShowResource()"></button>
<span id=resourcespan><% if(creatertype.equals("0")){%><%=ResourceComInfo.getResourcename(createrid)%><%}%>
<% if(creatertype.equals("1")){%><%=Util.toScreen(CustomerInfoComInfo.getCustomerInfoname(createrid),user.getLanguage())%><%}%></span>
<input name=createrid type=hidden value="<%=createrid%>"></td>
<td> </td>
<td><%=SystemEnv.getHtmlLabelName(17994,user.getLanguage())%></td>
<td class=field><BUTTON class=calendar id=SelectDate3 onclick="gettheDate(fromdate2,fromdatespan2)"></BUTTON>
<SPAN id=fromdatespan2 ><%=fromdate2%></SPAN>
- <BUTTON class=calendar id=SelectDate4 onclick="gettheDate(todate2,todatespan2)"></BUTTON>
<SPAN id=todatespan2 ><%=todate2%></SPAN>
<input type="hidden" name="fromdate2" value="<%=fromdate2%>"><input type="hidden" name="todate2" value="<%=todate2%>">
<input type="hidden" name="pageId" id="pageId" value="<%= PageIdConst.WF_SEARCH_WFSEARCHRESULTFORNEWBACKWORKFLOW %>"/>
</td>
</tr> <TR><TD class=Line colSpan=8></TD></TR>
<tr>
<td><%=SystemEnv.getHtmlLabelName(882,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(714,user.getLanguage())%></td>
<td class=field>
<input type="text" name="workcode" value="<%=workcode%>">
</td>
<td> </td>
<td ></td>
<td >
</td>
<td> </td>
<td></td>
<td>
</td>
</tr> <TR><TD class=Line colSpan=8></TD></TR>
</tbody>
</table>
</form>
<TABLE width="100%">
<tr>
<td valign="top">
<%
String tableString = "";
if(perpage <2) perpage=10;
String backfields = " t1.requestid, t1.createdate, t1.createtime,t1.creater, t1.creatertype, t1.workflowid, t1.requestname, t1.status,t1.requestlevel,t1.currentnodeid,t2.viewtype,t2.receivedate,t2.receivetime ";
String fromSql = " from workflow_requestbase t1, ( select workflowtype,receivedate,receivetime,requestid,viewtype,isreminded from workflow_currentoperator where id in( select max(id) from workflow_currentoperator " +
"where needwfback=1 and viewtype=-1 and isremark in('2','4') and userid ="+user.getUID()+" and usertype="+(Util.getIntValue(user.getLogintype())-1)+" group by requestid) "+
") t2 ";
String sqlWhere = sqlwhere;
if(RecordSet.getDBType().equals("oracle"))
{
sqlWhere += " and (nvl(t1.currentstatus,-1) = -1 or (nvl(t1.currentstatus,-1)=0 and t1.creater="+user.getUID()+")) ";
}
else
{
sqlWhere += " and (isnull(t1.currentstatus,-1) = -1 or (isnull(t1.currentstatus,-1)=0 and t1.creater="+user.getUID()+")) ";
}
String para2="column:requestid+column:workflowid+column:viewtype+"+isovertime+"+"+user.getLanguage();
String para4=user.getLanguage()+"+"+user.getUID();
tableString =" <table instanceid=\"workflowRequestListTable\" tabletype=\"none\" pagesize=\""+PageIdConst.getPageSize(PageIdConst.WF_SEARCH_WFSEARCHRESULTFORNEWBACKWORKFLOW,user.getUID())+"\" >"+
" <sql backfields=\""+backfields+"\" sqlform=\""+fromSql+"\" sqlwhere=\""+Util.toHtmlForSplitPage(sqlWhere)+"\" sqlorderby=\""+orderby+"\" sqlprimarykey=\"t1.requestid\" sqlsortway=\"Desc\" sqlisdistinct=\"true\" />"+
" <head>";
if(hascreatetime)
tableString+=" <col width=\"10%\" text=\""+SystemEnv.getHtmlLabelName(722,user.getLanguage())+"\" column=\"createdate\" orderkey=\"t1.createdate,t1.createtime\" otherpara=\"column:createtime\" transmethod=\"weaver.general.WorkFlowTransMethod.getWFSearchResultCreateTime\" />";
if(hascreater)
tableString+=" <col width=\"6%\" text=\""+SystemEnv.getHtmlLabelName(882,user.getLanguage())+"\" column=\"creater\" orderkey=\"t1.creater\" otherpara=\"column:creatertype\" transmethod=\"weaver.general.WorkFlowTransMethod.getWFSearchResultName\" />";
if(hasworkflowname)
tableString+=" <col width=\"10%\" text=\""+SystemEnv.getHtmlLabelName(259,user.getLanguage())+"\" column=\"workflowid\" orderkey=\"t1.workflowid\" transmethod=\"weaver.workflow.workflow.WorkflowComInfo.getWorkflowname\" />";
if(hasrequestlevel)
tableString+=" <col width=\"8%\" text=\""+SystemEnv.getHtmlLabelName(15534,user.getLanguage())+"\" column=\"requestlevel\" orderkey=\"t1.requestlevel\" transmethod=\"weaver.general.WorkFlowTransMethod.getWFSearchResultUrgencyDegree\" otherpara=\""+user.getLanguage()+"\"/>";
if(hasrequestname)
tableString+=" <col width=\"19%\" text=\""+SystemEnv.getHtmlLabelName(1334,user.getLanguage())+"\" column=\"requestname\" orderkey=\"t1.requestname\" linkkey=\"requestid\" linkvaluecolumn=\"requestid\" target=\"_fullwindow\" transmethod=\"weaver.general.WorkFlowTransMethod.getWfNewLink\" otherpara=\""+para2+"\"/>";
if(hascurrentnode)
tableString+=" <col width=\"8%\" text=\""+SystemEnv.getHtmlLabelName(18564,user.getLanguage())+"\" column=\"currentnodeid\" transmethod=\"weaver.general.WorkFlowTransMethod.getCurrentNode\"/>";
if(hasreceivetime)
tableString+=" <col width=\"10%\" text=\""+SystemEnv.getHtmlLabelName(17994,user.getLanguage())+"\" column=\"receivedate\" orderkey=\"t2.receivedate,t2.receivetime\" otherpara=\"column:receivetime\" transmethod=\"weaver.general.WorkFlowTransMethod.getWFSearchResultCreateTime\" />";
if(hasstatus)
tableString+=" <col width=\"8%\" text=\""+SystemEnv.getHtmlLabelName(1335,user.getLanguage())+"\" column=\"status\" orderkey=\"t1.status\" />";
if(hasreceivedpersons)
tableString+=" <col width=\"15%\" text=\""+SystemEnv.getHtmlLabelName(16354,user.getLanguage())+"\" column=\"requestid\" otherpara=\""+para4+"\" transmethod=\"weaver.general.WorkFlowTransMethod.getUnOperators\"/>";
tableString+=" </head>"+
"</table>";
%>
<wea:SplitPageTag tableString='<%=tableString%>' mode="run" />
</td>
</tr>
</TABLE>
<table align=right>
<tr>
<td> </td>
<td>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(18363,user.getLanguage())+",javascript:_table.firstPage(),_self}" ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(1258,user.getLanguage())+",javascript:_table.prePage(),_self}" ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(1259,user.getLanguage())+",javascript:_table.nextPage(),_self}" ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(18362,user.getLanguage())+",javascript:_table.lastPage(),_self}" ;
RCMenuHeight += RCMenuHeightStep ;
%>
<td> </td>
</tr>
</TABLE>
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
</body>
<script language=vbs>
sub onShowResource()
tmpval = document.all("creatertype").value
if tmpval = "0" then
id = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/hrm/resource/ResourceBrowser.jsp")
else
id = window.showModalDialog("/systeminfo/BrowserMain.jsp?url=/CRM/data/CustomerBrowser.jsp")
end if
if NOT isempty(id) then
if id(0)<> "" then
resourcespan.innerHtml = id(1)
frmmain.createrid.value=id(0)
else
resourcespan.innerHtml = ""
frmmain.createrid.value=""
end if
end if
end sub
</script>
<SCRIPT language="javascript">
function OnSearch(){
document.frmmain.fromself.value="1";
document.frmmain.isfirst.value="1";
document.frmmain.submit();
}
var showTableDiv = document.getElementById('divshowreceivied');
var oIframe = document.createElement('iframe');
function showreceiviedPopup(content){
showTableDiv.style.display='';
var message_Div = document.createElement("<div>");
message_Div.id="message_Div";
message_Div.className="xTable_message";
showTableDiv.appendChild(message_Div);
var message_Div1 = document.getElementById("message_Div");
message_Div1.style.display="inline";
message_Div1.innerHTML=content;
var pTop= document.body.offsetHeight/2+document.body.scrollTop-50;
var pLeft= document.body.offsetWidth/2-50;
message_Div1.style.position="absolute"
message_Div1.style.posTop=pTop;
message_Div1.style.posLeft=pLeft;
message_Div1.style.zIndex=1002;
oIframe.id = 'HelpFrame';
showTableDiv.appendChild(oIframe);
oIframe.frameborder = 0;
oIframe.style.position = 'absolute';
oIframe.style.top = pTop;
oIframe.style.left = pLeft;
oIframe.style.zIndex = message_Div1.style.zIndex - 1;
oIframe.style.width = parseInt(message_Div1.offsetWidth);
oIframe.style.height = parseInt(message_Div1.offsetHeight);
oIframe.style.display = 'block';
}
function ajaxinit(){
var ajax=false;
try {
ajax = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
ajax = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
ajax = false;
}
}
if (!ajax && typeof XMLHttpRequest!='undefined') {
ajax = new XMLHttpRequest();
}
return ajax;
}
function showallreceived(requestid,returntdid){
showreceiviedPopup("<%=SystemEnv.getHtmlLabelName(19205,user.getLanguage())%>");
var ajax=ajaxinit();
ajax.open("POST", "WorkflowUnoperatorPersons.jsp", true);
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send("requestid="+requestid+"&returntdid="+returntdid);
//获取执行状态
//alert(ajax.readyState);
//alert(ajax.status);
ajax.onreadystatechange = function() {
//如果执行状态成功,那么就把返回信息写到指定的层里
if (ajax.readyState==4&&ajax.status == 200) {
try{
document.all(returntdid).innerHTML = ajax.responseText;
}catch(e){}
showTableDiv.style.display='none';
oIframe.style.display='none';
}
}
}
</script>
<script language=vbs src="/js/browser/WorkFlowBrowser.vbs"></script>
<SCRIPT language="javascript" src="/js/datetime_wev8.js"></script>
<SCRIPT language="javascript" src="/js/JSDateTime/WdatePicker_wev8.js"></script>
</html>