mainPlugins.jsp
24.5 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
<%@page import="weaver.login.LoginMsg"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.general.Util,weaver.hrm.User,
weaver.rtx.RTXExtCom,
weaver.hrm.settings.BirthdayReminder,
weaver.hrm.settings.RemindSettings,
weaver.systeminfo.setting.HrmUserSettingHandler,
weaver.systeminfo.setting.HrmUserSetting,
weaver.general.TimeUtil,
weaver.login.Account" %>
<%@ page import="weaver.rtx.RTXConfig" %>
<%@ page import="java.net.*" %>
<%@ page import="java.util.*,HT.HTSrvAPI,java.math.*" %>
<%@ page import="java.sql.Timestamp" %>
<%@ page import="weaver.general.GCONST" %>
<%@ page import="weaver.general.IsGovProj" %>
<%@ page import="weaver.file.Prop" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ include file="/systeminfo/template/templateCss.jsp" %>
<%@ include file="/docs/common.jsp" %>
<%@ include file="/times.jsp" %>
<jsp:useBean id="rspop" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="rspopuser" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="rtxClient" class="weaver.rtx.RTXClientCom" scope="page" />
<jsp:useBean id="autoPlan" class="weaver.hrm.performance.targetplan.AutoPlan" scope="page" />
<jsp:useBean id="SubCompanyComInfo" class="weaver.hrm.company.SubCompanyComInfo" scope="page"/>
<jsp:useBean id="DepartmentComInfo" class="weaver.hrm.company.DepartmentComInfo" scope="page"/>
<jsp:useBean id="JobTitlesComInfo" class="weaver.hrm.job.JobTitlesComInfo" scope="page"/>
<jsp:useBean id="DocSearchManage" class="weaver.docs.search.DocSearchManage" scope="page" />
<jsp:useBean id="DocSearchComInfo" class="weaver.docs.search.DocSearchComInfo" scope="session" />
<jsp:useBean id="BaseBean" class="weaver.general.BaseBean" scope="page" />
<jsp:useBean id="PluginUserCheck" class="weaver.license.PluginUserCheck" scope="page" />
<jsp:useBean id="MouldStatusCominfo" class="weaver.systeminfo.MouldStatusCominfo" scope="page" />
<SCRIPT LANGUAGE="javascript">
//设置页面title
document.title = "<%=templateTitle%> - <%=user.getLastname()%>";
</script>
<SCRIPT LANGUAGE="javascript">
var eBirth = false;//判断是否有人过生日
</SCRIPT>
<!--网上调查部分-- 开始No blank -->
<%
//------------------------------------
// 客户端语言取得 Start
//------------------------------------
String acceptlanguage = Util.null2String(request.getHeader("Accept-Language"));
if(!"".equals(acceptlanguage))
acceptlanguage = acceptlanguage.toLowerCase();
//------------------------------------
//客户端语言取得 ENd
//------------------------------------
%>
<%
//------------------------------------
// 插件检测(是否安装) Start
//------------------------------------
boolean NoCheck=false;
RecordSet.executeSql("select NoCheckPlugin from SysActivexCheck where NoCheckPlugin='1' and logintype='1' and userid="+user.getUID());
if(RecordSet.next()) NoCheck=true;
String agent = request.getHeader("user-agent");
String isIENew = "";
if((agent.contains("Firefox")||agent.contains(" Chrome")||agent.contains("Safari") )|| agent.contains("Edge")){
isIENew = "false";
}
else{
isIENew = "true";
}
if(!NoCheck && isIENew.equalsIgnoreCase("true")){
%>
<script language="javascript" src="/js/activex/ActiveX_wev8.js"></script>
<SCRIPT LANGUAGE="javascript">
function getOuterLanguage()
{
return '<%=acceptlanguage%>';
}
checkWeaverActiveX(<%=user.getLanguage()%>);
</script>
<%
}
//------------------------------------
//插件检测(是否安装) End
//------------------------------------
%>
<%
//------------------------------------
//网上调查部分 Start
//------------------------------------
int isgoveproj = Util.getIntValue(IsGovProj.getPath(),0);//0:非政务系统,1:政务系统
Date newdate = new Date() ;
long datetime = newdate.getTime() ;
Timestamp timestamp = new Timestamp(datetime) ;
String CurrentDate = (timestamp.toString()).substring(0,4) + "-" + (timestamp.toString()).substring(5,7) + "-" +(timestamp.toString()).substring(8,10);
String CurrentTime = (timestamp.toString()).substring(11,13) + ":" + (timestamp.toString()).substring(14,16);
boolean isSyadmin=false;
//判断分权管理员
RecordSet.executeSql("select loginid from hrmresourcemanager where loginid = '"+user.getLoginid()+"'");
if(RecordSet.next()){
isSyadmin = true;
}
%>
<%
//------------------------------------
//生日提醒部分 Start
//------------------------------------
//boolean checkchattemp = false;
//String chatserver = Util.null2String(weaver.general.GCONST.getCHATSERVER());//检测即时通讯是否开启
//if(!"".equals(chatserver)) checkchattemp = true;
//String frommain = Util.null2String(request.getParameter("frommain")) ;
ChgPasswdReminder reminder=new ChgPasswdReminder();
RemindSettings settings=reminder.getRemindSettings();
String birth_valid = settings.getBirthvalid();
String birth_remindmode = settings.getBirthremindmode();//提醒方式 1:工作流 0:弹出框
BirthdayReminder birth_reminder = new BirthdayReminder();
if(birth_valid!=null&&birth_valid.equals("1")&&birth_remindmode!=null&&birth_remindmode.equals("0")){
String today = TimeUtil.getCurrentDateString();
//由于启用了提醒范围,所以每次 都需要重新加载
//if(application.getAttribute("birthday")==null||application.getAttribute("birthday")!=today){
//application.setAttribute("birthday",today);
//ArrayList birthEmployers=birth_reminder.getBirthEmployerNames(user);
//application.setAttribute("birthEmployers",birthEmployers);
//}
application.setAttribute("birthday",today);
ArrayList birthEmployers=birth_reminder.getBirthEmployerNames(user);
application.setAttribute("birthEmployers",birthEmployers);
//ArrayList birthEmployers=(ArrayList)application.getAttribute("birthEmployers");
if(birthEmployers.size()>0){
%>
<script>
var chasm = screen.availWidth;
var mount = screen.availHeight;
function openCenterWin(url,w,h) {
window.open(url,'','scrollbars=yes,resizable=no,width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
}
//openCenterWin('/hrm/setting/Birthday.jsp',516,420);
eBirth = true;
</script>
<%
}
}
//------------------------------------
//生日提醒部分 End
//------------------------------------
%>
<script language=javascript>
jQuery(document).ready(function() {
showBirth();
});
function showBirth(){
if(eBirth){
var diag_bir = new window.top.Dialog();
diag_bir.Width = 475;
diag_bir.Height = 475;
diag_bir.AutoClose=15;
diag_bir.Title = "<%=SystemEnv.getHtmlLabelName(17534,user.getLanguage())%>";
diag_bir.URL = "/hrm/setting/Birthday.jsp?theme=ecology7";
diag_bir.show();
}
}
</script>
<script language=javascript>
var glbreply = true;
</script>
<%
//------------------------------------
//个人计划生成部分 Start
//------------------------------------
String username = ""+user.getUsername() ;
String userid = ""+user.getUID() ;
String usertype = "" ;
if(user.getLogintype().equals("1")) usertype = "1" ;
else usertype = ""+(-1*user.getType()) ;
char separator = Util.getSeparator() ;
Calendar today = Calendar.getInstance();
String currentyear = Util.add0(today.get(Calendar.YEAR), 4) ;
String currentmonth = Util.add0(today.get(Calendar.MONTH)+1, 2) ;
String currentdate = Util.add0(today.get(Calendar.DAY_OF_MONTH), 2) ;
String currenthour = Util.add0(today.get(Calendar.HOUR_OF_DAY), 2) ;
String initsrcpage = "" ;
String logintype = Util.null2String(user.getLogintype()) ;
String Customertype = Util.null2String(""+user.getType()) ;
int targetid = Util.getIntValue(request.getParameter("targetid"),0) ;
//String loginfile = Util.null2String(request.getParameter("loginfile")) ;
String loginfile = Util.getCookie(request , "loginfileweaver") ;
String message = Util.null2String(request.getParameter("message")) ;
String logmessage = Util.null2String((String)session.getAttribute("logmessage")) ;
//自动生成个人计划
//autoPlan.autoSetPlanDay(""+user.getUID(),user);
if(targetid == 0) {
if(!logintype.equals("2")){
//initsrcpage="/workspace/WorkSpace.jsp";
// initsrcpage="/homepage/HomepageRedirect.jsp";
initsrcpage="/homepage/HomepageRedirect.jsp?hpid=1&subCompanyId=1&isfromportal=0&isfromhp=0";
}else{
initsrcpage="/docs/news/NewsDsp.jsp";
}
}
String gopage = Util.null2String(request.getParameter("gopage"));
String frompage = Util.null2String(request.getParameter("frompage"));
if(!gopage.equals("")){
gopage=URLDecoder.decode(gopage);
if(!"".equals(frompage)){
initsrcpage = gopage+"&message=1&id="+user.getUID();
}else{
initsrcpage = gopage;
}
}
else {
username = user.getUsername() ;
userid = ""+user.getUID() ;
if(logintype.equals("2")){
switch(targetid) {
case 1: // 文档 - 新闻
initsrcpage = "/docs/news/NewsDsp.jsp?id=1" ;
break ;
case 2: // 人力资源 - 新闻
initsrcpage = "/docs/news/NewsDsp.jsp?id=2" ;
break ;
case 3: // 财务 - 组织结构
initsrcpage = "/org/OrgChart.jsp?charttype=F" ;
break ;
case 4: // 物品 - 搜索页面
initsrcpage = "/lgc/catalog/LgcCatalogsView.jsp" ;
break ;
case 5: // CRM - 我的客户
initsrcpage = "/CRM/data/ViewCustomer.jsp?CustomerID="+userid ;
break ;
case 6: // 项目 - 我的项目
initsrcpage = "/proj/search/SearchOperation.jsp" ;
break ;
case 7: // 工作流 - 我的工作流
initsrcpage = "/workflow/request/RequestView.jsp" ;
break ;
case 8: // 工作流 - 我的工作流
initsrcpage = "/system/SystemMaintenance.jsp" ;
break ;
case 9: // 工作流 - 我的工作流
initsrcpage = "/cpt/CptMaintenance.jsp" ;
break ;
}
}else{
switch(targetid) {
case 1: // 文档 - 新闻
initsrcpage = "/docs/report/DocRp.jsp" ;
break ;
case 2: // 人力资源 - 新闻
initsrcpage = "/hrm/report/HrmRp.jsp" ;
break ;
case 3: // 财务 - 组织结构
initsrcpage = "/fna/report/FnaReport.jsp" ;
break ;
case 4: // 物品 - 搜索页面
initsrcpage = "/lgc/report/LgcRp.jsp" ;
break ;
case 5: // CRM - 我的客户
initsrcpage = "/CRM/CRMReport.jsp" ;
break ;
case 6: // 项目 - 我的项目
initsrcpage = "/proj/ProjReport.jsp" ;
break ;
case 7: // 工作流 - 我的工作流
initsrcpage = "/workflow/WFReport.jsp" ;
break ;
case 8: // 工作流 - 我的工作流
initsrcpage = "/system/SystemMaintenance.jsp" ;
break ;
case 9: // 工作流 - 我的工作流
initsrcpage = "/cpt/report/CptRp.jsp" ;
break ;
}
}
}
if(!relogin0.equals("1")&&frommain.equals("yes")&&application.getAttribute("logmessages")!=null){
logmessages=(Map)application.getAttribute("logmessages");
logmessages.put(""+user.getUID(),logmessage);
}
if(application.getAttribute("logmessages")!=null){
logmessages=(Map)application.getAttribute("logmessages");
logmessages.put(""+user.getUID(),logmessage);
}
if(!relogin0.equals("1")&&!frommain.equals("yes")&&!logmessage.equals("")){
session.setAttribute("frommain","true");
%>
<script language=javascript>
flag=confirm("<%=SystemEnv.getHtmlLabelName(16643,user.getLanguage())%>!\n<%=SystemEnv.getHtmlLabelName(2023,user.getLanguage())%>:"+"<%=logmessage%>");
if(flag)
//window.location="/main.jsp?frommain=yes&gopage=<%=gopage%>"
else
window.location="/login/Login.jsp"
</script>
<%}%>
<%
if(relogin0.equals("1")&&!logmessage.equals("")){
boolean is_relogin_open=Prop.getPropValue("hrm_mfstyle","is_relogin_open").equalsIgnoreCase("true");
if(is_relogin_open){
%>
<script language=javascript>
//alert("<%=SystemEnv.getHtmlLabelName(16643,user.getLanguage())%>!\n<%=SystemEnv.getHtmlLabelName(27892,user.getLanguage())+SystemEnv.getHtmlLabelName(2023,user.getLanguage())%>:"+"<%=logmessage%>");
jQuery(function () {
Dialog.alert("<%=SystemEnv.getHtmlLabelName(16643,user.getLanguage())%>!<br><%=SystemEnv.getHtmlLabelName(27892,user.getLanguage())+SystemEnv.getHtmlLabelName(2023,user.getLanguage())%>:"+"<%=LoginMsg.getLastLoginInfo(""+user.getUID()) %>"
,function(){}, 372, 70, false
);
});
</script>
<% }
}%>
<script language=javascript>
function goMainFrame(o){
o.contentWindow.document.frames[1].document.location.href = "<%=initsrcpage%>";
}
//------------------------------------
//个人计划生成部分 Start
//------------------------------------
</script>
<%
//------------------------------------
//usb key检测部分 Start
//------------------------------------
if(needusb0==1&&"2".equals(usbtype0)){
String randLong = ""+Math.random()*1000000000;
String serialNo = user.getSerial();
HTSrvAPI htsrv = new HTSrvAPI();
String sharv = "";
sharv = htsrv.HTSrvSHA1(randLong, randLong.length());
sharv = sharv + "04040404";
String ServerEncData = htsrv.HTSrvCrypt(0, serialNo, 0, sharv);
%>
<script language="JavaScript" src="/js/htusbjs_wev8.js"></script>
<script language="vbs" src="/js/htusb.vbs"></script>
<OBJECT id="htactx" name="htactx" classid="clsid:FB4EE423-43A4-4AA9-BDE9-4335A6D3C74E" codebase="HTActX.cab#version=1,0,0,1" style="HEIGHT: 0px; WIDTH: 0px;display:none"></OBJECT>
<script language="JavaScript">
var usbuserloginid = "<%=user.getLoginid()%>";
var usblanguage = "<%=user.getLanguage()%>";
var ServerEncData = "<%=ServerEncData%>";
var randLong = "<%=randLong%>";
var password = "<%=user.getPwd()%>";
checkusb();
</script>
<%
}
//------------------------------------
//usb key检测部分 End
//------------------------------------
%>
<!-- //------------------------------------ -->
<!-- //页面关闭时,提示脚本 Start -->
<!-- //------------------------------------ -->
<%@ include file="/favourite/FavouriteShortCut.jsp" %>
<script>
var con=null;
window.onbeforeunload=function(){
if(!isMesasgerUnavailable && glbreply == true){
return "<%=SystemEnv.getHtmlLabelName(24985,user.getLanguage())%>";
}
}
window.onunload=function(e){
e=e||event;
var n = e.screenX - window.screenLeft;
var b = n > document.documentElement.scrollWidth-20;
if(b && e.clientY < 0 || e.altKey) {
$.get("/login/LogoutForMain.jsp");
}
<%
boolean isHaveMessager=Prop.getPropValue("Messager","IsUseWeaverMessager").equalsIgnoreCase("1");
isHaveMessager=true;
int isHaveMessagerRight =PluginUserCheck.checkPluginUserRight("messager",user.getUID()+"");
if(isHaveMessager&&!userid.equals("1")&&isHaveMessagerRight==1){%>
logoutForMessager();
<%
}
%>
}
</script>
<!-- //------------------------------------ -->
<!-- //页面关闭时,提示脚本 End -->
<!-- //------------------------------------ -->
<script>
//------------------------------------
//鼠标右键部分 Start
//------------------------------------
/*
document.oncontextmenu=""
search.searchvalue.oncontextmenu=showRightClickMenu1
function showRightClickMenu1(){
var o = document.getElementById("leftFrame").contentWindow.document.getElementById("mainFrame");
if(o.workSpaceLeft!=null)
o.workSpaceLeft.rightMenu.style.visibility="hidden";
if(o.workSpaceInfo!=null)
o.workSpaceInfo.rightMenu.style.visibility="hidden";
if(o.workSpaceRight!=null)
o.workSpaceRight.rightMenu.style.visibility="hidden";
if(o.workplanLeft!=null)
o.workplanLeft.rightMenu.style.visibility="hidden";
if(o.workplanRight!=null)
o.workplanRight.rightMenu.style.visibility="hidden";
showRightClickMenu();
}
*/
//------------------------------------
//鼠标右键部分 End
//------------------------------------
</script>
<!--文档弹出窗口-- 开始-->
<%
String docsid = "";
String pop_width = "";
String pop_hight = "";
String is_popnum = "";
String pop_type = "";
String popupsql ="";
String pop_num ="";
String checktype="select docid,pop_type,pop_hight,pop_width,is_popnum, pop_num from DocDetail t1, "+tables+" t2,DocPopUpInfo t3 where t1.id=t2.sourceid and t1.id = t3.docid and t1.docstatus in ('1','2','5') and (t1.ishistory is null or t1.ishistory = 0) and (t3.pop_startdate <= '"+CurrentDate+"' and t3.pop_enddate >= '"+CurrentDate+"') ";
rspop.executeSql(checktype);
while(rspop.next()){
pop_type=Util.null2String(rspop.getString("pop_type"));
docsid = Util.null2String(rspop.getString("docid"));
pop_hight =Util.null2String(rspop.getString("pop_hight"));
pop_width = Util.null2String(rspop.getString("pop_width"));
is_popnum = Util.null2String(rspop.getString("is_popnum"));
pop_num = Util.null2String(rspop.getString("pop_num"));
if("".equals(pop_hight)) pop_hight = "500";
if("".equals(pop_width)) pop_width = "600";
if(pop_type.equals("1")||pop_type.equals("")){
popupsql = "select 1 from DocDetail t1, "+tables+" t2,DocPopUpInfo t3 where t1.id=t2.sourceid and t1.id = t3.docid and (t1.ishistory is null or t1.ishistory = 0) and (t3.pop_startdate <= '"+CurrentDate+"' and t3.pop_enddate >= '"+CurrentDate+"') and pop_num > is_popnum and docid="+docsid;
RecordSet.executeSql(popupsql);
if(RecordSet.next()){
RecordSet.executeSql("update DocPopUpInfo set is_popnum = "+(Util.getIntValue(is_popnum,0)+1)+" where docid = "+docsid);
%>
<script language=javascript>
var is_popnum = <%=is_popnum%>;
var docsid = <%=docsid%>;
var pop_hight = <%=pop_hight%>;
var pop_width = <%=pop_width%>;
var docid_num = docsid +"_"+ is_popnum;
window.open("/docs/docs/DocDsp.jsp?popnum="+docid_num,"","height="+pop_hight+",width="+pop_width+",scrollbars,resizable=yes,status=yes,Minimize=yes,Maximize=yes");
</script>
<%
}
} else {
rspopuser.executeSql("select * from DocPopUpUser where userid="+user.getUID()+" and docid="+docsid);
if(rspopuser.next()){
is_popnum = Util.null2String(rspopuser.getString("haspopnum"));
if(Util.getIntValue(is_popnum,0) <Util.getIntValue(pop_num,0)){
RecordSet.executeSql("update DocPopUpUser set haspopnum = "+(Util.getIntValue(is_popnum,0)+1)+" where docid = "+docsid+" and userid="+user.getUID());
%>
<script language=javascript>
var is_popnum = <%=is_popnum%>;
var docsid = <%=docsid%>;
var pop_hight = <%=pop_hight%>;
var pop_width = <%=pop_width%>;
var docid_num = docsid +"_"+ is_popnum;
window.open("/docs/docs/DocDsp.jsp?popnum="+docid_num,"","height="+pop_hight+",width="+pop_width+",scrollbars,resizable=yes,status=yes,Minimize=yes,Maximize=yes");
</script>
<%
}
}else{
if(Util.getIntValue(pop_num,0)>0){
RecordSet.executeSql("insert into DocPopUpUser(userid,docid,haspopnum) values ("+user.getUID()+","+docsid+",1 )");
%>
<script language=javascript>
var is_popnum = <%=is_popnum%>;
var docsid = <%=docsid%>;
var pop_hight = <%=pop_hight%>;
var pop_width = <%=pop_width%>;
var docid_num = docsid +"_0";
window.open("/docs/docs/DocDsp.jsp?popnum="+docid_num,"","height="+pop_hight+",width="+pop_width+",scrollbars,resizable=yes,status=yes,Minimize=yes,Maximize=yes");
</script>
<%
}
}
}
}
%>
<!--文档弹出窗口-- 结束-->
<SCRIPT language=javascript>
//------------------------------------
//RTX客户端打开 Start
//------------------------------------
function openRtxClient(){
<%if(!isIE.equalsIgnoreCase("true")){%>
document.all("mainFrame").src="/wui/common/page/sysRemind.jsp?labelid=83530";
<%}else{%>
document.all("rtxClient").src="/RTXClientOpen.jsp?notify=true";
<%}%>
}
function openEimClient(){
<%if(!isIE.equalsIgnoreCase("true")){%>
document.all("mainFrame").src="/wui/common/page/sysRemind.jsp?labelid=27463";
<%}else{%>
document.all("rtxClient").src="/EimClientOpen.jsp";
<%}%>
}
//------------------------------------
//RTX客户端打开 End
//------------------------------------
//------------------------------------
//左侧菜单和顶部隐藏 Start
//------------------------------------
function mnToggleleft(){
}
function mnToggletop(){
}
//------------------------------------
//左侧菜单和顶部隐藏 END
//------------------------------------
//------------------------------------
//多账号 Start
//------------------------------------
/*
var firstTime = new Date().getTime();
function setAccountSelect(){
var nowTime = new Date().getTime();
if((nowTime-firstTime) < 10000){
setTimeout(function(){setAccountSelect();},1000);
}else{
try{
document.getElementById("accountSelect").disabled = false;
}catch(e){}
}
}
setAccountSelect();
*/
//------------------------------------
//多账号 end
//------------------------------------
</SCRIPT>
<!-- //------------------------------------ -->
<!-- //显示版本 Start -->
<!-- //------------------------------------ -->
<script language="vbs">
'sub showVersion()
' about=window.showModalDialog("/systeminfo/version.jsp",,"dialogHeight:376px;dialogwidth:466px;help:no")
'end sub
</script>
<!-- //------------------------------------ -->
<!-- //显示版本 End -->
<!-- //------------------------------------ -->
<script language="javascript" src="/js/Cookies_wev8.js"></script>
<!-- //------------------------------------ -->
<!-- //消息提醒 start -->
<!-- //------------------------------------ -->
<%if(!Util.null2String(user.getLogintype()).equals("2")){%>
<iframe BORDER=0 FRAMEBORDER=no NORESIZE=NORESIZE width=0 height=0 SCROLLING=no SRC=/system/SysRemind.jsp></iframe>
<%}%>
<!-- //------------------------------------ -->
<!-- //消息提醒 End -->
<!-- //------------------------------------ -->
<%
HrmUserSettingHandler handler = new HrmUserSettingHandler();
HrmUserSetting setting = handler.getSetting(user.getUID());
RecordSet.execute("SELECT templateid FROM SystemTemplateSubComp WHERE subcompanyid="+user.getUserSubCompany1()+"");
boolean hasSubTemplate = false;//分部有模板则为指定了模板
if(RecordSet.next() && RecordSet.getString("templateid") != null && !"".equals(RecordSet.getString("templateid")) && !"-1".equals(RecordSet.getString("templateid"))){
hasSubTemplate = true;
}
boolean rtxOnload = setting.isRtxOnload();
if(rtxClient.isValidOfRTX() && rtxOnload){
String rtxorelinkurl = "";
RTXConfig rtxConfig = new RTXConfig();
String RtxOrElinkType = (Util.null2String(rtxConfig.getPorp(RTXConfig.RtxOrElinkType))).toUpperCase();
if("ELINK".equals(RtxOrElinkType)){
rtxorelinkurl = "EimClientOpen.jsp";
} else {
rtxorelinkurl = "RTXClientOpen.jsp";
}
%>
<iframe name="rtxClient" src="/<%=rtxorelinkurl%>" style="display:none"></iframe>
<%} else { %>
<iframe name="rtxClient" src="" style="display:none"></iframe>
<%}%>
<SCRIPT language=javascript>
function showSkinListDialog(){
var hasSubTemplate = '<%=hasSubTemplate%>';
if(hasSubTemplate == 'true'){
Dialog.alert("<%=SystemEnv.getHtmlLabelName(126325, user.getLanguage())%>");
return;
}
var diag_xx = new Dialog();
diag_xx.Width = 600;
diag_xx.Height = 500;
diag_xx.ShowCloseButton=true;
diag_xx.Title = "<%=SystemEnv.getHtmlLabelName(27714, user.getLanguage())%>";//"主题中心";
diag_xx.Modal = true;
diag_xx.opacity=0;
diag_xx.URL = "/wui/theme/ecology8/page/skinTabs.jsp";
diag_xx.show();
}
</SCRIPT>