OfsInfoDetailAdd.jsp
19.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
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.conn.*" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ taglib uri="/browserTag" prefix="brow"%>
<link rel="stylesheet" href="/wui/theme/ecology8/weaveredittable/css/WeaverEditTable_wev8.css">
<script src="/wui/theme/ecology8/weaveredittable/js/WeaverEditTable_wev8.js"></script>
<script language="javascript" src="/wui/theme/ecology8/jquery/js/zDialog_wev8.js"></script>
<script language="javascript" src="/wui/theme/ecology8/jquery/js/zDrag_wev8.js"></script>
</head>
<%
if(!HrmUserVarify.checkUserRight("ofs:ofssetting", user)){
response.sendRedirect("/notice/noright.jsp");
return;
}
String backto = Util.null2String(request.getParameter("backto"));
String isDialog = Util.null2String(request.getParameter("isdialog"));
String imagefilename = "/images/hdHRMCard_wev8.gif";
String titlename = SystemEnv.getHtmlLabelNames("31694,127023",user.getLanguage());//归档流程注册信息
String needfav ="1";
String needhelp ="";
String timezone_ = "";
//得到网段策略
ArrayList ips=new ArrayList();
RecordSet rsNetwork=new RecordSet();
String sqlNetwork="select id,inceptipaddress,endipaddress from HrmnetworkSegStr order by id ";
rsNetwork.executeSql(sqlNetwork);
while(rsNetwork.next()){
String inceptipaddress=Util.null2String(rsNetwork.getString("inceptipaddress"));
String endipaddress=Util.null2String(rsNetwork.getString("endipaddress"));
ips.add(inceptipaddress+"~"+endipaddress);
}
%>
<BODY>
<%if("1".equals(isDialog)){ %>
<div class="zDialog_div_content">
<script language=javascript >
var parentWin = parent.parent.getParentWindow(parent);
</script>
<%} %>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
if(HrmUserVarify.checkUserRight("ofs:ofssetting", user)){
RCMenu += "{"+SystemEnv.getHtmlLabelName(86,user.getLanguage())+",javascript:submitData(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(32159,user.getLanguage())+",javascript:doSaveAndNext(),_TOP} " ;//保存并进入详细设置
RCMenuHeight += RCMenuHeightStep ;
}
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<table id="topTitle" cellpadding="0" cellspacing="0">
<tr>
<td></td>
<td class="rightSearchSpan" style="text-align:right; width:500px!important">
<%if(HrmUserVarify.checkUserRight("ofs:ofssetting", user)){%>
<input type="button" value="<%=SystemEnv.getHtmlLabelName(86 ,user.getLanguage()) %>" class="e8_btn_top" onclick="submitData()"/>
<input type="button" value="<%=SystemEnv.getHtmlLabelName(32159,user.getLanguage())%>" class="e8_btn_top" onclick="doSaveAndNext()"/>
<%}%>
<span id="advancedSearch" class="advancedSearch" style='display:none;'><%=SystemEnv.getHtmlLabelName(21995 ,user.getLanguage()) %></span>
<span title="<%=SystemEnv.getHtmlLabelName(23036 ,user.getLanguage()) %>" class="cornerMenu"></span>
</td>
</tr>
</table>
<div id="tabDiv" >
<span style="font-size:14px;font-weight:bold;"><%=titlename%></span>
</div>
<div class="cornerMenuDiv"></div>
<div class="advancedSearchDiv" id="advancedSearchDiv" style='display:none;'>
</div>
<FORM id=weaver name=frmMain action="OfsInfoDetailOperation.jsp?isdialog=1" method=post >
<input class=inputstyle type=hidden name="backto" value="<%=backto%>">
<input class=inputstyle type="hidden" id='operation' name=operation value="add">
<wea:layout><!-- 基本信息 -->
<wea:group context="<%=SystemEnv.getHtmlLabelName(1361 ,user.getLanguage())%>" attributes="{'samePair':'BaseInfo','groupOperDisplay':'none'}">
<wea:item><%=SystemEnv.getHtmlLabelName(84,user.getLanguage())%></wea:item><!--标识 -->
<wea:item attributes="{'id':'syscode_td'}">
<wea:required id="syscodeimage" required="true" value="">
<input class=inputstyle type='text' onpaste="return false" style='width:280px!important;' size='100' maxlength="100" name="syscode" _noMultiLang='true' id="syscode" onkeyup="this.value=this.value.replace(/[^0-9a-zA-Z]/g,'');" onblur="checkinput('syscode','syscodeimage');checkvalues(this.name);" >
</wea:required>
</wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(399,user.getLanguage())%></wea:item><!--简称 -->
<wea:item>
<wea:required id="sysshortnameimage" required="true">
<input class=inputstyle type=text style='width:280px!important;' size=100 maxlength="100" name="sysshortname" id="sysshortname" onchange='checkinput("sysshortname","sysshortnameimage");checkvalues(this.name);' onblur="checkshortname();">
</wea:required>
</wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(15767,user.getLanguage())%></wea:item><!--全称 -->
<wea:item>
<wea:required id="sysfullnameimage" required="true">
<input class=inputstyle type=text style='width:280px!important;' size=100 maxlength="100" name="sysfullname" id="sysfullname" onchange='checkinput("sysfullname","sysfullnameimage");checkvalues(this.name);'>
</wea:required>
</wea:item>
<%--<wea:item><%=SystemEnv.getHtmlLabelName(387437,user.getLanguage())%></wea:item><!--时区 -->--%>
<%--<wea:item>--%>
<%--<select name="timezone_" id="timezone_">--%>
<%--<option value=""></option>--%>
<%--<option value="GMT-12:00" <%="GMT-12:00".equals(timezone_)?"selected":"" %> >GMT-12:00</option>--%>
<%--<option value="GMT-11:00" <%="GMT-11:00".equals(timezone_)?"selected":"" %> >GMT-11:00</option>--%>
<%--<option value="GMT-10:00" <%="GMT-10:00".equals(timezone_)?"selected":"" %> >GMT-10:00</option>--%>
<%--<option value="GMT-09:00" <%="GMT-09:00".equals(timezone_)?"selected":"" %> >GMT-09:00</option>--%>
<%--<option value="GMT-08:00" <%="GMT-08:00".equals(timezone_)?"selected":"" %> >GMT-08:00</option>--%>
<%--<option value="GMT-07:00" <%="GMT-07:00".equals(timezone_)?"selected":"" %> >GMT-07:00</option>--%>
<%--<option value="GMT-06:00" <%="GMT-06:00".equals(timezone_)?"selected":"" %> >GMT-06:00</option>--%>
<%--<option value="GMT-05:00" <%="GMT-05:00".equals(timezone_)?"selected":"" %> >GMT-05:00</option>--%>
<%--<option value="GMT-04:00" <%="GMT-04:00".equals(timezone_)?"selected":"" %> >GMT-04:00</option>--%>
<%--<option value="GMT-03:00" <%="GMT-03:00".equals(timezone_)?"selected":"" %> >GMT-03:00</option>--%>
<%--<option value="GMT-02:00" <%="GMT-02:00".equals(timezone_)?"selected":"" %> >GMT-02:00</option>--%>
<%--<option value="GMT-01:00" <%="GMT-01:00".equals(timezone_)?"selected":"" %> >GMT-01:00</option>--%>
<%--<option value="GMT+01:00" <%="GMT+01:00".equals(timezone_)?"selected":"" %> >GMT+01:00</option>--%>
<%--<option value="GMT+02:00" <%="GMT+02:00".equals(timezone_)?"selected":"" %> >GMT+02:00</option>--%>
<%--<option value="GMT+03:00" <%="GMT+03:00".equals(timezone_)?"selected":"" %> >GMT+03:00</option>--%>
<%--<option value="GMT+04:00" <%="GMT+04:00".equals(timezone_)?"selected":"" %> >GMT+04:00</option>--%>
<%--<option value="GMT+05:00" <%="GMT+05:00".equals(timezone_)?"selected":"" %> >GMT+05:00</option>--%>
<%--<option value="GMT+06:00" <%="GMT+06:00".equals(timezone_)?"selected":"" %> >GMT+06:00</option>--%>
<%--<option value="GMT+07:00" <%="GMT+07:00".equals(timezone_)?"selected":"" %> >GMT+07:00</option>--%>
<%--<option value="GMT+08:00" <%="GMT+08:00".equals(timezone_)?"selected":"" %> >GMT+08:00</option>--%>
<%--<option value="GMT+09:00" <%="GMT+09:00".equals(timezone_)?"selected":"" %> >GMT+09:00</option>--%>
<%--<option value="GMT+10:00" <%="GMT+10:00".equals(timezone_)?"selected":"" %> >GMT+10:00</option>--%>
<%--<option value="GMT+11:00" <%="GMT+11:00".equals(timezone_)?"selected":"" %> >GMT+11:00</option>--%>
<%--<option value="GMT+12:00" <%="GMT+12:00".equals(timezone_)?"selected":"" %> >GMT+12:00</option>--%>
<%--</select>--%>
<%--</wea:item>--%>
<wea:item><%=SystemEnv.getHtmlLabelNames("32363,120",user.getLanguage())%>IP</wea:item><!--接口安全IP-->
<wea:item>
<wea:required id="SecurityIpimage" required="false">
<input class=inputstyle type=text style='width:280px!important;' size=100 maxlength="100" name="securityip" onblur="checkEngMsg(this);" _noMultiLang='true' >
<SPAN class="e8tips" style="CURSOR: hand" id=remind title="<%=SystemEnv.getHtmlLabelName(128476,user.getLanguage()) %>"><IMG align=absMiddle src="/images/remind_wev8.png"></SPAN>
</wea:required>
</wea:item>
<wea:item ><%=SystemEnv.getHtmlLabelName(125423,user.getLanguage())%></wea:item>
<wea:item >
<input class='Inputstyle' type='checkbox' tzCheckbox="true" name="autologinflag" id="autologinflag" value="1" onclick="changeautologinflag();">
<span id="autologinspan" style="display:none">
<select id="inneripselecct" style='width:260px!important;' name="inneripselecct" >
<%
if(ips!=null&&ips.size()>0)
{
for(int i=0;i<ips.size();i++){
%>
<option value="<%=ips.get(i)%>"><%=ips.get(i)%></option>
<%
}
}
%>
</select> <a style="color:#00B2FC;" href="javascript:addtr();"><%=SystemEnv.getHtmlLabelName(83476,user.getLanguage())%></a> <SPAN class="e8tips" style="CURSOR: hand" title="<%=SystemEnv.getHtmlLabelName(18890,user.getLanguage())+"["+SystemEnv.getHtmlLabelName(83726,user.getLanguage())+"]"+SystemEnv.getHtmlLabelName(125421,user.getLanguage())+"."%>"><img src="/images/tooltip_wev8.png" align="absMiddle"/></SPAN> <a style="color:#00B2FC;" href="javascript:setNetwork();" ><%=SystemEnv.getHtmlLabelName(83726,user.getLanguage())%></a>
</span>
</wea:item>
<wea:item attributes="{'samePair':'networkview','display':'none'}"> </wea:item>
<wea:item attributes="{'samePair':'networkview','isTableList':'true','display':'none'}">
<div style="width:100%;" >
<table cellSpacing="0" cellpadding="0" id="networktable" width="100%">
<colgroup>
<col width="30%">
<col width="10%">
<col width="100%">
</colgroup>
</table>
</div>
</wea:item>
<wea:item>PC<%=SystemEnv.getHtmlLabelNames("110,1994,583",user.getLanguage())%></wea:item><!-- PC内部地址前缀 -->
<wea:item>
<wea:required id="Pcprefixurlimage" required="true">
<input class=inputstyle type=text style='width:280px!important;' size=100 maxlength="100" name="pcprefixurl" _noMultiLang='true' onchange='checkinput("pcprefixurl","Pcprefixurlimage")'>
</wea:required>
</wea:item>
<wea:item>PC<%=SystemEnv.getHtmlLabelNames("110,1995,583",user.getLanguage())%></wea:item><!-- PC外部地址前缀 -->
<wea:item>
<wea:required id="PcOuterfixurlimage" required="false">
<input class=inputstyle type=text style='width:280px!important;' size=100 maxlength="100" name="pcouterfixurl" _noMultiLang='true' onchange='changeautologinflag()'>
</wea:required>
</wea:item>
<wea:item>PC<%=SystemEnv.getHtmlLabelName(382137,user.getLanguage())%></wea:item><!-- PC中转页面地址 -->
<wea:item>
<input class=inputstyle type=text style='width:280px!important;' size=100 maxlength="100" name="pcentranceurl" _noMultiLang='true' >
</wea:item>
<wea:item>APP<%=SystemEnv.getHtmlLabelNames("110,583",user.getLanguage())%></wea:item><!--APP地址前缀-->
<wea:item>
<wea:required id="Appprefixurlimage" required="false">
<input class=inputstyle type=text style='width:280px!important;' size=100 maxlength="100" name="appprefixurl" _noMultiLang='true' >
</wea:required>
</wea:item>
<wea:item>APP<%=SystemEnv.getHtmlLabelName(382137,user.getLanguage())%></wea:item><!-- APP中转页面地址 -->
<wea:item>
<input class=inputstyle type=text style='width:280px!important;' size=100 maxlength="100" name="appentranceurl" _noMultiLang='true' >
</wea:item>
<wea:item><%=SystemEnv.getHtmlLabelNames("1867,23128",user.getLanguage())%></wea:item><!--人员转换规则-->
<wea:item>
<select id="hrmtransrule" style='width:120px!important;' name="hrmtransrule" >
<option value="0">OA<%=SystemEnv.getHtmlLabelName(1867,user.getLanguage())%>ID</option>
<option value="1">OA<%=SystemEnv.getHtmlLabelNames("674,83594",user.getLanguage())%></option><!-- OA登录账号-->
<option value="2"><%=SystemEnv.getHtmlLabelName(1933,user.getLanguage())%></option><!-- 工号-->
<option value="3"><%=SystemEnv.getHtmlLabelName(1887,user.getLanguage())%></option><!-- 身份证号-->
<option value="4"><%=SystemEnv.getHtmlLabelName(477,user.getLanguage())%></option><!-- 电子邮件-->
</select>
</wea:item>
<wea:item><%=SystemEnv.getHtmlLabelNames("81855,125,16579",user.getLanguage())%></wea:item><!--自动创建流程类型-->
<wea:item>
<input class="inputstyle" type="checkbox" tzCheckbox='true' id="autocreatewftype" name="autocreatewftype" value="1" checked>
</wea:item>
<wea:item><%=SystemEnv.getHtmlLabelNames("93,16579",user.getLanguage())%></wea:item><!--编辑流程类型-->
<wea:item>
<input class="inputstyle" type="checkbox" tzCheckbox='true' id="editwftype" name="editwftype" value="1" checked>
</wea:item>
<wea:item><%=SystemEnv.getHtmlLabelNames("18526,126871",user.getLanguage())%></wea:item><!--接收流程数据-->
<wea:item>
<input class="inputstyle" type="checkbox" tzCheckbox='true' id="receivewfdata" name="receivewfdata" value="1" checked>
</wea:item>
</wea:group>
</wea:layout>
<br>
</form>
<script language=javascript>
jQuery(document).ready(function(){
jQuery(".e8tips").wTooltip({html:true});
});
//QC286837 [80][90]统一待办中心集成-编辑/注册异构系统页面,IP地址文本框可以输入中文 Start
function checkEngMsg(_this){
var val = $(_this).val();
var reg = /^[^\u4e00-\u9fa5]{0,}$/;
if(val && !(reg.test(val))){
$(_this).val("");
}
}
//QC286837 [80][90]统一待办中心集成-编辑/注册异构系统页面,IP地址文本框可以输入中文 End
function checkvalues(obj) {
var timestamp = (new Date()).valueOf();
var values = jQuery("#"+obj).val();
var id = '';
var params = "operation=checkinput&id="+id+"&values="+values+"&field="+obj+"&ts="+timestamp;
jQuery.ajax({
type : "post",
cache : false,
processData : false,
url: "/integration/ofs/OfsInfoDetailCheckInputAjax.jsp",
data: params,
success: function(msg){
if(msg != ''){
top.Dialog.alert(msg);
jQuery("#"+obj).val("");
jQuery("#"+obj+"image").html("<img align=\"absMiddle\" src=\"/images/BacoError_wev8.gif\">");
}
}
});
}
function submitData() {
var checkvalue = "";
var checked = $("#autologinflag").attr("checked");
if(checked){
checkvalue = "syscode,sysshortname,sysfullname,pcprefixurl,pcouterfixurl";
}else{
checkvalue = "syscode,sysshortname,sysfullname,pcprefixurl";
}
if(check_form(frmMain,checkvalue)){
frmMain.submit();
}else{
}
}
function onBack(){
parentWin.closeDialog();
}
function doSaveAndNext() {
jQuery("#operation").val("addAndNext");
var checkvalue = "syscode,sysshortname,sysfullname,pcprefixurl";
if(check_form(frmMain,checkvalue)){
frmMain.submit();
}else{
}
}
function changeautologinflag(){
var checked = $("#autologinflag").attr("checked");
if(!checked){
$("#autologinspan").hide();
hideEle("networkview");
$("#PcOuterfixurlimage").html("");
} else {
$("#autologinspan").show();
showEle("networkview");
checkinput("pcouterfixurl","PcOuterfixurlimage")
}
}
function addtr(){
var val=$("#inneripselecct").val();
var temp=$("#networktable tr").find("td:eq(0)");
if(val==temp1){
top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(126052,user.getLanguage())%>!");
return ;
}
if(temp!=null&&temp.length>0)
{
for(var i=0;i<temp.length;i++){
var temp1=$(temp[i]).html();
if(val==temp1){
top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(125425,user.getLanguage())%>!");
return ;
}
}
}
str = "<tr><td class='field'>"+val+"</td><td class='field'><a href='#' id='testa' onclick='deltr(this)'><%=SystemEnv.getHtmlLabelName(125426,user.getLanguage())%></a></td><td class='field'><input type='hidden' name='outternetworks' id='outternetworks' value='"+val+"'></td></tr>";
$('#networktable').append(str);
}
function openDialog3(url,title){
var browserDialog = new top.Dialog();
browserDialog.currentWindow = window;
browserDialog.Width = 980 ;
browserDialog.Height = 650;
browserDialog.URL = url;
browserDialog.Title = '';
browserDialog.checkDataChange = false;
browserDialog.callback=refreshNetwork;
browserDialog.show();
}
function setNetwork()
{
var url = "/interface/outter/outter_netWorkTab.jsp?urlType=1&backto=&isdialog=1&mode=1";
var title = "";
openDialog3(url,title);
}
function refreshNetwork(datas,otherdatas)
{
getNetwork();
}
function getNetwork()
{
$.ajax({
type:"POST",
url: "/interface/outter/outter_getNetWork.jsp",
cache: false,
async: false,
success: function(data){
data=data.replace(/(^\s+)|(\s+$)/g,"");
$("#inneripselecct option").remove();
$("#inneripselecct").append(data);
}
});
jQuery("#inneripselecct").selectbox("detach");
__jNiceNamespace__.beautySelect("#inneripselecct");
}
//删除对应的行
function deltr(obj){
$(obj).parent().parent().remove();
}
//QC331058 [80][90][优化]统一待办中心集成-异构系统页面,名称内含的符号为反转义-优化start
//检查简称的输入
function checkshortname(){
/* var value = jQuery("#sysshortname").val().replace(/[-\+=\`~!@#$%^&\*\(\)\[\]{};:'",.<>\/\?\\|]/g,"");
jQuery("#sysshortname").val(value); */
var value = jQuery("#sysshortname").val();
value = $.trim(value);
if(isSpecialChar(value)){//包含特殊字符
top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(132009,user.getLanguage())%>");
jQuery("#sysshortname").val("");
checkinput("sysshortname","sysshortnameimage");
return false;
}
return true;
}
//检测字符中是否含有特殊字符
function isSpecialChar(str){
var reg = /[-\+=\`~!@#$%^&\*\(\)\[\]{};:'",.<>\/\?\\|]/;
return reg.test(str);
}
//QC331058 [80][90][优化]统一待办中心集成-异构系统页面,名称内含的符号为反转义-优化end
</script>
<%if("1".equals(isDialog)){ %>
<div id="zDialog_div_bottom" class="zDialog_div_bottom">
<input type="button" style="display:none;" class=zd_btn_submit accessKey=S id=btnsearch value="S-<%=SystemEnv.getHtmlLabelName(197,user.getLanguage())%>"></input>
<wea:layout needImportDefaultJsAndCss="false">
<wea:group context="" attributes="{'groupDisplay':'none'}">
<wea:item type="toolbar">
<input type="button" class="zd_btn_cancle" accessKey="T" id="btncancel" value="T-<%=SystemEnv.getHtmlLabelName(309,user.getLanguage())%>" onclick='onBack();'></input>
</wea:item>
</wea:group>
</wea:layout>
<script type="text/javascript">
jQuery(document).ready(function(){
resizeDialog(document);
});
</script>
</div>
</div>
<%} %>
</BODY>
</HTML>