HrmResourceSearch_inner.jsp
46.6 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
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<%@ page import="weaver.general.GCONST" %>
<%@ page import="weaver.general.IsGovProj" %>
<%@ page import="weaver.docs.docs.CustomFieldManager" %>
<%@ page import="weaver.interfaces.workflow.browser.Browser" %>
<%@ page import="weaver.interfaces.workflow.browser.BrowserBean" %>
<%@ page import="weaver.hrm.util.html.HtmlUtil"%>
<%@ page import="org.json.JSONObject"%>
<%@ page import="weaver.hrm.util.html.HtmlElement"%>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="rs1" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="UseKindComInfo" class="weaver.hrm.job.UseKindComInfo" scope="page" />
<jsp:useBean id="RolesComInfo" class="weaver.hrm.roles.RolesComInfo" scope="page"/>
<jsp:useBean id="BankComInfo" class="weaver.hrm.finance.BankComInfo" scope= "page"/>
<jsp:useBean id="EducationLevelComInfo" class="weaver.hrm.job.EducationLevelComInfo" scope="page" />
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="BrowserComInfo" class="weaver.workflow.field.BrowserComInfo" scope="page"/>
<jsp:useBean id="LanguageComInfo" class="weaver.systeminfo.language.LanguageComInfo" scope="page" />
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/browserTag" prefix="brow"%>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%
int userid = user.getUID();
int isgoveproj = Util.getIntValue(IsGovProj.getPath(),0);//0:非政务系统,1:政务系统
boolean flagaccount = weaver.general.GCONST.getMOREACCOUNTLANDING();//账号类型
boolean issys = false;
boolean isfin = false;
boolean ishr = false;
String sql = "select hrmid from HrmInfoMaintenance where id = 1";
rs.executeSql(sql);
while(rs.next()){
int hrmid = Util.getIntValue(rs.getString(1));
if(userid == hrmid){
issys = true;
break;
}
}
sql = "select hrmid from HrmInfoMaintenance where id = 2";
rs.executeSql(sql);
while(rs.next()){
int hrmid = Util.getIntValue(rs.getString(1));
if(userid == hrmid){
isfin = true;
break;
}
}
if(HrmUserVarify.checkUserRight("HrmResourceAdd:Add",user)) {
ishr = true;
}
//日期控件处理
String startdateselect = Util.null2String(request.getParameter("startdateselect"));
String enddateselect = Util.null2String(request.getParameter("enddateselect"));
String bepartydateselect = Util.null2String(request.getParameter("bepartydateselect"));
String contractdateselect = Util.null2String(request.getParameter("contractdateselect"));
String bememberdateselect =Util.null2String(request.getParameter("bememberdateselect"));
String birthdaydateselect =Util.null2String(request.getParameter("birthdaydateselect"));
String hasroles ="";
String hasseclevel ="";
String hasstartdate ="";
String hasenddate ="";
String hascontractdate="";
String hasbirthday ="";
String hassex ="";
String hasage ="";
String projectable ="";
String crmable ="";
String itemable ="";
String docable ="";
String workflowable ="";
String subordinateable="";
String trainable ="";
String budgetable ="";
String fnatranable ="";
String dspperpage ="";
String hasfolk = "";
String hasnativeplace = "";
String hasregresidentplace = "";
String hasmaritalstatus = "";
String hascertificatenum = "";
String hastempresidentnumber = "";
String hasresidentplace = "";
String hashomeaddress = "";
String hashealthinfo = "";
String hasheight = "";
String hasweight = "";
String haseducationlevel = "";
String hasdegree = "";
String hasusekind = "";
String haspolicy = "";
String hasbememberdate = "";
String hasbepartydate = "";
String hasislabouunion = "";
String hasbankid1 = "";
String hasaccountid1 = "";
String hasaccumfundaccount = "";
String hasloginid = "";
String hassystemlanguage = "";
String departmentStr = "";
RecordSet.executeProc("HrmUserDefine_SelectByID",""+userid);
if(RecordSet.next()){
hasroles =RecordSet.getString(17);
hasseclevel =RecordSet.getString(18);
hasstartdate =RecordSet.getString(22);
hasenddate =RecordSet.getString(23);
hascontractdate=RecordSet.getString(24);
hasbirthday =RecordSet.getString(25);
hasage =RecordSet.getString("hasage");
hasfolk = RecordSet.getString("hasfolk");
hasnativeplace = RecordSet.getString("hasnativeplace");
hasregresidentplace = RecordSet.getString("hasregresidentplace");
hasmaritalstatus = RecordSet.getString("hasmaritalstatus");
hascertificatenum = RecordSet.getString("hascertificatenum");
hastempresidentnumber = RecordSet.getString("hastempresidentnumber");
hasresidentplace = RecordSet.getString("hasresidentplace");
hashomeaddress = RecordSet.getString("hashomeaddress");
hashealthinfo = RecordSet.getString("hashealthinfo");
hasheight = RecordSet.getString("hasheight");
hasweight = RecordSet.getString("hasweight");
haseducationlevel = RecordSet.getString("haseducationlevel");
hasdegree = RecordSet.getString("hasdegree");
hasusekind = RecordSet.getString("hasusekind");
haspolicy = RecordSet.getString("haspolicy");
hasbememberdate = RecordSet.getString("hasbememberdate");
hasbepartydate = RecordSet.getString("hasbepartydate");
hasislabouunion = RecordSet.getString("hasislabouunion");
hasbankid1 = RecordSet.getString("hasbankid1");
hasaccountid1 = RecordSet.getString("hasaccountid1");
hasaccumfundaccount = RecordSet.getString("hasaccumfundaccount");
hasloginid = RecordSet.getString("hasloginid");
hassystemlanguage = RecordSet.getString("hassystemlanguage");
}
String jobtitle ="";
String roles ="";
String seclevel ="";
String seclevelTo ="";
String joblevel ="";
String joblevelTo ="";
String workroom ="";
String startdate ="";
String startdateTo ="";
String enddate ="";
String enddateTo ="";
String contractdate ="";
String contractdateTo ="";
String birthdaydate ="";
String birthdaydateTo ="";
String age ="";
String ageTo ="";
String resourceidfrom = "";
String resourceidto = "";
String folk = "";
String nativeplace = "";
String regresidentplace = "";
String maritalstatus = "";
String certificatenum = "";
String tempresidentnumber = "";
String residentplace = "";
String homeaddress = "";
String healthinfo = "";
String heightfrom = "";
String heightto = "";
String weightfrom = "";
String weightto = "";
String educationlevel = "";
String educationlevelTo = "";
String degree = "";
String usekind = "";
String policy = "";
String bememberdatefrom = "";
String bememberdateto = "";
String bepartydatefrom = "";
String bepartydateto = "";
String islabouunion = "";
String bankid1 = "";
String accountid1 = "";
String accumfundaccount = "";
String loginid = "";
String systemlanguage = "";
rs1.executeSql("select * from HrmSearchMould where 1=2");
String[] hrmsearchcol = rs1.getColumnName();
ArrayList hrmsearchList = new ArrayList();
for(int i=0;i<hrmsearchcol.length;i++){
hrmsearchList.add(hrmsearchcol[i]);
}
int scopeId = -1;
CustomFieldManager cfm1 = new CustomFieldManager("HrmCustomFieldByInfoType",scopeId);
scopeId = 0;//由于ALTER TABLE HrmSearchMould ADD 不支持 -1 形式 改为0 查询,其他不变 ,因为替换把所有的都替换为-1 工作量太大
cfm1.getCustomFields();
String mouldcolname = "";
scopeId = 1;
cfm1 = new CustomFieldManager("HrmCustomFieldByInfoType",scopeId);
cfm1.getCustomFields();
mouldcolname = "";
Map customFieldMapPersonal=new HashMap();
ArrayList customFieldListPersonal = new ArrayList();
while(cfm1.next()){
mouldcolname = "column_"+scopeId+"_"+cfm1.getId();
customFieldListPersonal.add(mouldcolname);
if(hrmsearchList.contains(mouldcolname) || hrmsearchList.contains(mouldcolname.toUpperCase())){
continue;
}else{
if("oracle".equals(rs1.getDBType())){
rs1.executeSql("ALTER TABLE HrmSearchMould ADD " + mouldcolname + " varchar2(200) NULL");
}else{
rs1.executeSql("ALTER TABLE HrmSearchMould ADD " + mouldcolname + " varchar(200) NULL");
}
}
}
for(int i=0;i<hrmsearchList.size();i++){
String searchcolname = (String)hrmsearchList.get(i);
if(searchcolname.startsWith("column_"+scopeId+"_")){
//System.out.println("searchcolname:"+searchcolname);
if(!customFieldListPersonal.contains(searchcolname)){
rs1.executeSql("ALTER TABLE HrmSearchMould DROP COLUMN " + searchcolname );
}
}
}
int mouldid=Util.getIntValue(request.getParameter("mouldid"),0);
RecordSet.executeProc("HrmSearchMould_SelectByID",""+mouldid);
if(RecordSet.next()){
jobtitle =Util.toScreenToEdit(RecordSet.getString("jobtitle"),user.getLanguage());
roles =Util.toScreenToEdit(RecordSet.getString("roles"),user.getLanguage());
seclevel =Util.toScreenToEdit(RecordSet.getString("seclevel"),user.getLanguage());
seclevelTo =Util.toScreenToEdit(RecordSet.getString("seclevelTo"),user.getLanguage());
joblevel =Util.toScreenToEdit(RecordSet.getString("joblevel"),user.getLanguage());
joblevelTo =Util.toScreenToEdit(RecordSet.getString("joblevelTo"),user.getLanguage());
workroom =Util.toScreenToEdit(RecordSet.getString("workroom"),user.getLanguage());
startdate =Util.toScreenToEdit(RecordSet.getString("startdate"),user.getLanguage());
startdateTo =Util.toScreenToEdit(RecordSet.getString("startdateTo"),user.getLanguage());
enddate =Util.toScreenToEdit(RecordSet.getString("enddate"),user.getLanguage());
enddateTo =Util.toScreenToEdit(RecordSet.getString("enddateTo"),user.getLanguage());
contractdate =Util.toScreenToEdit(RecordSet.getString("contractdate"),user.getLanguage());//试用期结束日期
contractdateTo =Util.toScreenToEdit(RecordSet.getString("contractdateTo"),user.getLanguage());
birthdaydate =Util.toScreenToEdit(RecordSet.getString("birthdaydate"),user.getLanguage());
birthdaydateTo =Util.toScreenToEdit(RecordSet.getString("birthdaydateTo"),user.getLanguage());
age =Util.toScreenToEdit(RecordSet.getString("age"),user.getLanguage());
ageTo =Util.toScreenToEdit(RecordSet.getString("ageTo"),user.getLanguage());
resourceidfrom = Util.toScreenToEdit(RecordSet.getString("resourceidfrom"),user.getLanguage());
resourceidto = Util.toScreenToEdit(RecordSet.getString("resourceidto"),user.getLanguage());
folk = Util.toScreenToEdit(RecordSet.getString("folk"),user.getLanguage());
nativeplace = Util.toScreenToEdit(RecordSet.getString("nativeplace"),user.getLanguage());
regresidentplace = Util.toScreenToEdit(RecordSet.getString("regresidentplace"),user.getLanguage());
maritalstatus = Util.toScreenToEdit(RecordSet.getString("maritalstatus"),user.getLanguage());
certificatenum = Util.toScreenToEdit(RecordSet.getString("certificatenum"),user.getLanguage());
tempresidentnumber = Util.toScreenToEdit(RecordSet.getString("tempresidentnumber"),user.getLanguage());
residentplace = Util.toScreenToEdit(RecordSet.getString("residentplace"),user.getLanguage());
homeaddress = Util.toScreenToEdit(RecordSet.getString("homeaddress"),user.getLanguage());
healthinfo = Util.toScreenToEdit(RecordSet.getString("healthinfo"),user.getLanguage());
heightfrom = Util.toScreenToEdit(RecordSet.getString("heightfrom"),user.getLanguage());
heightto = Util.toScreenToEdit(RecordSet.getString("heightto"),user.getLanguage());
weightfrom = Util.toScreenToEdit(RecordSet.getString("weightfrom"),user.getLanguage());
weightto = Util.toScreenToEdit(RecordSet.getString("weightto"),user.getLanguage());
educationlevel = Util.toScreenToEdit(RecordSet.getString("educationlevel"),user.getLanguage());
educationlevelTo = Util.toScreenToEdit(RecordSet.getString("educationlevelto"),user.getLanguage());
degree = Util.toScreenToEdit(RecordSet.getString("degree"),user.getLanguage());
usekind = Util.toScreenToEdit(RecordSet.getString("usekind"),user.getLanguage());
policy = Util.toScreenToEdit(RecordSet.getString("policy"),user.getLanguage());
bememberdatefrom = Util.toScreenToEdit(RecordSet.getString("bememberdatefrom"),user.getLanguage());
bememberdateto = Util.toScreenToEdit(RecordSet.getString("bememberdateto"),user.getLanguage());
bepartydatefrom = Util.toScreenToEdit(RecordSet.getString("bepartydatefrom"),user.getLanguage());
bepartydateto = Util.toScreenToEdit(RecordSet.getString("bepartydateto"),user.getLanguage());
islabouunion = Util.toScreenToEdit(RecordSet.getString("islabouunion"),user.getLanguage());
bankid1 = Util.toScreenToEdit(RecordSet.getString("bankid1"),user.getLanguage());
accountid1 = Util.toScreenToEdit(RecordSet.getString("accountid1"),user.getLanguage());
accumfundaccount = Util.toScreenToEdit(RecordSet.getString("accumfundaccount"),user.getLanguage());
loginid = Util.toScreenToEdit(RecordSet.getString("loginid"),user.getLanguage());
systemlanguage = Util.toScreenToEdit(RecordSet.getString("systemlanguage"),user.getLanguage());
String customFieldvalue = "";
String columnName = "";
for(int i=0;i<customFieldListPersonal.size();i++){
columnName = customFieldListPersonal.get(i).toString();
customFieldvalue = Util.toScreenToEdit(RecordSet.getString(columnName),user.getLanguage());
customFieldMapPersonal.put(columnName,customFieldvalue);
}
}
%>
<wea:layout type="4col" attributes="{'expandAllGroup':'true'}">
<%if(software.equals("ALL") || software.equals("HRM")){%>
<%if(ishr){%>
<wea:group context='<%=SystemEnv.getHtmlLabelName(15687,user.getLanguage())%>' attributes="{'samePair':'moreKeyWord','isColspan':'false','groupOperDisplay':'none'}">
<%if(hasbirthday.equals("1") && (mouldid==0||!(birthdaydate.equals(""))||!(birthdaydateTo.equals("0")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(464,user.getLanguage())%></wea:item>
<wea:item>
<span>
<select name="birthdaydateselect" id="birthdaydateselect" onchange="changeDate(this,'spanbirthdaydate');" style="width: 135px">
<option value="0" <%=birthdaydateselect.equals("0")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
<option value="6" <%=birthdaydateselect.equals("6")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(32530,user.getLanguage())%></option>
</select>
</span>
<span id=spanbirthdaydate style="<%=birthdaydateselect.equals("6")?"":"display:none;" %>">
<BUTTON type="button" class=Calendar id=selectbirthdaydate onclick="getDate(birthdaydatespan,birthdaydate)"></BUTTON>
<SPAN id=birthdaydatespan ><%=birthdaydate%></SPAN>-
<BUTTON type="button" class=Calendar id=selectbirthdaydateTo onclick="getDate(birthdaydateTospan,birthdaydateTo)"></BUTTON>
<SPAN id=birthdaydateTospan ><%=birthdaydateTo%></SPAN>
</span>
<input class=inputstyle type="hidden" id="birthdaydate" name="birthdaydate" value="<%=birthdaydate%>">
<input class=inputstyle type="hidden" id="birthdaydateTo" name="birthdaydateTo" value="<%=birthdaydateTo%>">
</wea:item>
<%}if(hasage.equals("1") && (mouldid==0||!(age.equals("0"))||!(ageTo.equals("0")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(671,user.getLanguage())%></wea:item>
<wea:item>
<INPUT class=inputstyle type="text" name=age size=5 maxlength=3 onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("age")' value="<%=age%>" style="width: 50px">-
<INPUT class=inputstyle name=ageTo type="text" size=5 maxlength=3 onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("ageTo")' value="<%=ageTo%>" style="width: 50px">
</wea:item>
<%}if(hasfolk.equals("1") && (mouldid==0||!(folk.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1886,user.getLanguage())%></wea:item>
<wea:item><INPUT style="width: 165px" class=inputstyle type="text" name=folk value='<%=folk%>'></wea:item>
<%}if(hasnativeplace.equals("1") && (mouldid==0||!(nativeplace.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1840,user.getLanguage())%></wea:item>
<wea:item><INPUT style="width: 165px" class=inputstyle type="text" name=nativeplace value='<%=nativeplace%>'></wea:item>
<%}if(hasregresidentplace.equals("1") && (mouldid==0||!(regresidentplace.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(15683,user.getLanguage())%></wea:item>
<wea:item><INPUT style="width: 165px" class=inputstyle type=text name=regresidentplace value='<%=regresidentplace%>'></wea:item>
<%}if(hasmaritalstatus.equals("1") &&(mouldid==0||!(maritalstatus.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(469,user.getLanguage())%></wea:item>
<wea:item>
<select class=inputstyle id=maritalstatus name=maritalstatus style="width: 135px">
<option value="" <% if(maritalstatus.equals("")) {%>selected<%}%>></option>
<option value=0 <% if(maritalstatus.equals("0")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(470,user.getLanguage())%></option>
<option value=1 <% if(maritalstatus.equals("1")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(471,user.getLanguage())%></option>
<option value=2 <% if(maritalstatus.equals("2")) {%>selected<%}%>><%=SystemEnv.getHtmlLabelName(472,user.getLanguage())%></option>
</select>
</wea:item>
<%}if(hascertificatenum.equals("1") && (mouldid==0||!(certificatenum.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1887,user.getLanguage())%></wea:item>
<wea:item><INPUT class=inputstyle type="text" name=certificatenum style="width: 165px" value='<%=certificatenum%>'></wea:item>
<%}if(hasresidentplace.equals("1") && (mouldid==0||!(residentplace.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1829,user.getLanguage())%></wea:item>
<wea:item><INPUT style="width: 165px" class=inputstyle type="text" name=residentplace size=20 value='<%=residentplace%>'></wea:item>
<%}
scopeId =1;
CustomFieldManager cfm = new CustomFieldManager("HrmCustomFieldByInfoType",scopeId);
cfm.getCustomFields();
while(cfm.next()){
String fieldvalue = Util.null2String((String)customFieldMapPersonal.get("column_"+scopeId+"_"+cfm.getId()));
if(cfm.getHtmlType().equals("6")||!cfm.isUse())continue;
if(mouldid==0||!("").equals(fieldvalue)){
%>
<wea:item><%=SystemEnv.getHtmlLabelName(Util.getIntValue(cfm.getLable()),user.getLanguage())%></wea:item>
<wea:item>
<%
if(cfm.getHtmlType().equals("1")){
if(cfm.getType()==1){
%>
<input datatype="text" style="width: 165px" type=text value="<%=fieldvalue%>" class=Inputstyle name="column_<%=scopeId %>_<%=cfm.getId()%>" value="" size=20>
<%
}else if(cfm.getType()==2){
%>
<input datatype="int" style="width: 165px" type=text value="<%=fieldvalue%>" class=Inputstyle name="column_<%=scopeId %>_<%=cfm.getId()%>" size=10 onKeyPress="ItemCount_KeyPress()" onBlur='checkcount1(this)'>
<%
}else if(cfm.getType()==3){
%>
<input datatype="float" style="width: 165px" type=text value="<%=fieldvalue%>" class=Inputstyle name="column_<%=scopeId %>_<%=cfm.getId()%>" size=10 onKeyPress="ItemNum_KeyPress()" onBlur='checknumber1(this)'>
<%
}
}else if(cfm.getHtmlType().equals("2")){
%>
<input datatype="text" type=text value="<%=fieldvalue%>" class=Inputstyle name="column_<%=scopeId %>_<%=cfm.getId()%>" value="" size=20>
<%
}else if(cfm.getHtmlType().equals("3")){
String fieldtype = String.valueOf(cfm.getType());
String url=BrowserComInfo.getBrowserurl(fieldtype); // 浏览按钮弹出页面的url
String linkurl=BrowserComInfo.getLinkurl(fieldtype); // 浏览值点击的时候链接的url
String showname = ""; // 新建时候默认值显示的名称
String showid = ""; // 新建时候默认值
if("161".equals(fieldtype) || "162".equals(fieldtype)) {
url = url + "?type=" + cfm.getDmrUrl();
if(!"".equals(fieldvalue)) {
Browser browser=(Browser) StaticObj.getServiceByFullname(cfm.getDmrUrl(), Browser.class);
try{
String[] fieldvalues = fieldvalue.split(",");
for(int i = 0;i < fieldvalues.length;i++) {
BrowserBean bb=browser.searchById(fieldvalues[i]);
String desc=Util.null2String(bb.getDescription());
String name=Util.null2String(bb.getName());
if(!"".equals(showname)) {
showname += ",";
}
showname += name;
}
}catch (Exception e){}
}
}
String docfileid = Util.null2String(request.getParameter("docfileid")); // 新建文档的工作流字段
String newdocid = Util.null2String(request.getParameter("docid"));
if( fieldtype.equals("37") && !newdocid.equals("")) {
if( ! fieldvalue.equals("") ) fieldvalue += "," ;
fieldvalue += newdocid ;
}
if(fieldtype.equals("2") ||fieldtype.equals("19")){
showname=fieldvalue; // 日期时间
}else if(!fieldvalue.equals("")&& !("161".equals(fieldtype) || "162".equals(fieldtype))) {
String tablename=BrowserComInfo.getBrowsertablename(fieldtype); //浏览框对应的表,比如人力资源表
String columname=BrowserComInfo.getBrowsercolumname(fieldtype); //浏览框对应的表名称字段
String keycolumname=BrowserComInfo.getBrowserkeycolumname(fieldtype); //浏览框对应的表值字段
sql = "";
HashMap temRes = new HashMap();
if(fieldtype.equals("17")|| fieldtype.equals("18")||fieldtype.equals("27")||fieldtype.equals("37")||fieldtype.equals("56")||fieldtype.equals("57")||fieldtype.equals("65")||fieldtype.equals("168")||fieldtype.equals("194")) { // 多人力资源,多客户,多会议,多文档
sql= "select "+keycolumname+","+columname+" from "+tablename+" where "+keycolumname+" in( "+fieldvalue+")";
}
else {
sql= "select "+keycolumname+","+columname+" from "+tablename+" where "+keycolumname+"="+fieldvalue;
}
RecordSet.executeSql(sql);
while(RecordSet.next()){
showid = Util.null2String(RecordSet.getString(1)) ;
String tempshowname= Util.toScreen(RecordSet.getString(2),user.getLanguage()) ;
if(!linkurl.equals("")&&false)
//showname += "<a href='"+linkurl+showid+"'>"+tempshowname+"</a> " ;
temRes.put(String.valueOf(showid),"<a href='"+linkurl+showid+"'>"+tempshowname+"</a> ");
else{
//showname += tempshowname ;
temRes.put(String.valueOf(showid),tempshowname);
}
}
StringTokenizer temstk = new StringTokenizer(fieldvalue,",");
String temstkvalue = "";
while(temstk.hasMoreTokens()){
temstkvalue = temstk.nextToken();
if(temstkvalue.length()>0&&temRes.get(temstkvalue)!=null){
if(showname.length()>0)showname += ",";
showname += temRes.get(temstkvalue);
}
}
}
if(fieldtype.equals("2") ||fieldtype.equals("19")){
String classname = "Calendar";
if(fieldtype.equals("19"))classname = "Clock";
%>
<button type="button" class=<%=classname %>
<%if(fieldtype.equals("2")){%>
onclick="onRpDateShow(column_<%=scopeId %>_<%=cfm.getId()%>startspan,column_<%=scopeId %>_<%=cfm.getId()%>start,'0')"
<%}else{%>
onclick="onWorkFlowShowTime(column_<%=scopeId %>_<%=cfm.getId()%>startspan,column_<%=scopeId %>_<%=cfm.getId()%>start,'0')"
<%}%>
title="<%=SystemEnv.getHtmlLabelName(172,user.getLanguage())%>"></button>
<input type=hidden name="column_<%=scopeId %>_<%=cfm.getId()%>start" value="<%=fieldvalue%>">
<span id="column_<%=scopeId %>_<%=cfm.getId()%>startspan"><%=Util.toScreen(showname,user.getLanguage())%>
</span> -
<button type="button" class=<%=classname %>
<%if(fieldtype.equals("2")){%>
onclick="onRpDateShow(column_<%=scopeId %>_<%=cfm.getId()%>endspan,column_<%=scopeId %>_<%=cfm.getId()%>end,'0')"
<%}else{%>
onclick="onWorkFlowShowTime(column_<%=scopeId %>_<%=cfm.getId()%>endspan,column_<%=scopeId %>_<%=cfm.getId()%>end,'0')"
<%}%>
title="<%=SystemEnv.getHtmlLabelName(172,user.getLanguage())%>"></button>
<input type=hidden name="column_<%=scopeId %>_<%=cfm.getId()%>end" value="<%=fieldvalue%>">
<span id="column_<%=scopeId %>_<%=cfm.getId()%>endspan"><%=Util.toScreen(showname,user.getLanguage())%>
</span>
<%}else{%>
<!--
<button class=Browser type="button" onclick="onShowBrowser('<%=cfm.getId()%>','<%=url%>','<%=linkurl%>','<%=fieldtype%>','0','<%=scopeId %>')" title="<%=SystemEnv.getHtmlLabelName(172,user.getLanguage())%>"></button>
<input type=hidden name="column_<%=scopeId %>_<%=cfm.getId()%>" value="<%=fieldvalue%>">
<span id="column_<%=scopeId %>_<%=cfm.getId()%>span"><%=Util.toScreen(showname,user.getLanguage())%>
</span>
-->
<%
int id=cfm.getId();
String fieldname="column_"+scopeId+"_"+cfm.getId();
String type=fieldtype;
String eleclazzname=HtmlUtil.getHtmlClassName("3");
JSONObject hrmFieldConf=new JSONObject();
hrmFieldConf.put("id", id);
hrmFieldConf.put("fieldname", fieldname);
hrmFieldConf.put("fielddbtype", "");
hrmFieldConf.put("fieldhtmltype", 3);
hrmFieldConf.put("type", type);
hrmFieldConf.put("issystem", 1);
hrmFieldConf.put("fieldkind", "hrmresourcesearch");
hrmFieldConf.put("ismand", 0);
hrmFieldConf.put("isused", 1);
hrmFieldConf.put("dmlurl", cfm.getDmrUrl());
hrmFieldConf.put("fieldlabel", "");
hrmFieldConf.put("dsporder", "");
%>
<%=((HtmlElement)Class.forName(eleclazzname).newInstance()).getHtmlElementString(fieldvalue, hrmFieldConf, user) %>
<%}
}else if(cfm.getHtmlType().equals("4")){
%>
<input type=checkbox value=1 name="column_<%=scopeId %>_<%=cfm.getId()%>" <%=fieldvalue.equals("1")?"checked":""%> >
<%
}else if(cfm.getHtmlType().equals("5")){
cfm.getSelectItem(cfm.getId());
%>
<select class=InputStyle name="column_<%=scopeId %>_<%=cfm.getId()%>" class=InputStyle style="width: 135px">
<option></option>
<%
while(cfm.nextSelect()){
%>
<option value="<%=cfm.getSelectValue()%>" <%=cfm.getSelectValue().equals(fieldvalue)?"selected":""%>><%=cfm.getSelectName()%>
<%
}
%>
</select>
<%
}
%>
</wea:item>
<%
}
}%>
<%if(hasheight.equals("1") && (mouldid==0||!(heightfrom.equals("0"))||!(heightto.equals("0")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1826,user.getLanguage())%></wea:item>
<wea:item>
<INPUT class=inputstyle type="text" name=heightfrom size=5 onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("heightfrom")' value="<%=heightfrom%>" style="width: 50px">
-<INPUT class=inputstyle type="text" name=heightto size=5 onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("heightto")' value="<%=heightto%>" style="width: 50px">
</wea:item>
<%}if(hasweight.equals("1") && (mouldid==0||!(weightfrom.equals("0"))||!(weightto.equals("0")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(15674,user.getLanguage())%></wea:item>
<wea:item>
<INPUT class=inputstyle type="text" name=weightfrom size=5 onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("weightfrom")' value="<%=weightfrom%>" style="width: 50px">
-<INPUT class=inputstyle type="text" name=weightto size=5 onKeyPress="ItemCount_KeyPress()" onBlur='checknumber("weightto")' value="<%=weightto%>" style="width: 50px">
</wea:item>
<%}if(haseducationlevel.equals("1") && (mouldid==0||!(educationlevel.equals("0"))||!(educationlevelTo.equals("0")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(818,user.getLanguage())%> </wea:item>
<wea:item>
<select class=inputstyle id=educationlevel name=educationlevel value="<%=educationlevel%>" style="width: 135px">
<option value=""></option>
<%
EducationLevelComInfo.setTofirstRow();
while(EducationLevelComInfo.next()){
%>
<option value="<%=EducationLevelComInfo.getEducationLevelid()%>" <%if(educationlevel.equals(EducationLevelComInfo.getEducationLevelid())){%> selected <%}%>><%=EducationLevelComInfo.getEducationLevelname()%></option>
<%
}
%>
</select>-
<select class=inputstyle id=educationlevelto name=educationlevelto value="<%=educationlevelTo%>" style="width: 135px">
<option value=""></option>
<%
EducationLevelComInfo.setTofirstRow();
while(EducationLevelComInfo.next()){
%>
<option value="<%=EducationLevelComInfo.getEducationLevelid()%>" <%if(educationlevelTo.equals(EducationLevelComInfo.getEducationLevelid())){%> selected <%}%>><%=EducationLevelComInfo.getEducationLevelname()%></option>
<%
}
%>
</select>
</wea:item>
<%}if(hasdegree.equals("1") && (mouldid==0||!(degree.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1833,user.getLanguage())%></wea:item>
<wea:item><INPUT type="text" class=inputstyle name=degree size=20 value='<%=degree%>' style="width: 165px">
</wea:item>
<%}if(hasusekind.equals("1") && (mouldid==0||!(usekind.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(804,user.getLanguage())%></wea:item>
<wea:item>
<brow:browser viewType="0" name="usekind" browserValue='<%= jobtitle %>'
browserUrl="/systeminfo/BrowserMain.jsp?url=/hrm/usekind/UseKindBrowser.jsp?selectedids="
hasInput="true" isSingle="true" hasBrowser = "true" isMustInput='1'
completeUrl="/data.jsp?type=usekind" width="165px"
browserSpanValue='<%=UseKindComInfo.getUseKindname(usekind)%>'>
</brow:browser>
</wea:item>
<%}if(haspolicy.equals("1") && (mouldid==0||!(policy.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1837,user.getLanguage())%></wea:item>
<wea:item><INPUT type="text" class=inputstyle name=policy size=20 value='<%=policy%>' style="width: 165px"></wea:item>
<%}if(hasbepartydate.equals("1") && (mouldid==0||!(bepartydatefrom.equals(""))||!(bepartydateto.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1835,user.getLanguage())%></wea:item>
<wea:item>
<span>
<select name="bepartydateselect" id="bepartydateselect" onchange="changeDate(this,'spanbepartydate');" style="width: 135px">
<option value="0" <%=bepartydateselect.equals("0")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
<option value="1" <%=bepartydateselect.equals("1")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15537,user.getLanguage())%></option>
<option value="2" <%=bepartydateselect.equals("2")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15539,user.getLanguage())%></option>
<option value="3" <%=bepartydateselect.equals("3")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15541,user.getLanguage())%></option>
<option value="4" <%=bepartydateselect.equals("4")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(21904,user.getLanguage())%></option>
<option value="5" <%=bepartydateselect.equals("5")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15384,user.getLanguage())%></option>
<option value="6" <%=bepartydateselect.equals("6")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(32530,user.getLanguage())%></option>
</select>
</span>
<span id=spanbepartydate style="<%=bepartydateselect.equals("6")?"":"display:none;" %>">
<BUTTON type="button" class=Calendar id=selectbepartydatefrom onclick="getDate(bepartydatefromspan,bepartydatefrom)"></BUTTON>
<SPAN id=bepartydatefromspan ><%=bepartydatefrom%></SPAN> -
<BUTTON type="button" class=Calendar id=selectbpartydateto onclick="getDate(bepartydatetospan,bepartydateto)"></BUTTON>
<SPAN id=bepartydatetospan ><%=bepartydateto%></SPAN>
</span>
<input class=inputstyle type="hidden" name="bepartydatefrom" value="<%=bepartydatefrom%>">
<input class=inputstyle type="hidden" name="bepartydateto" value="<%=bepartydateto%>">
</wea:item>
<%}if(hasbememberdate.equals("1") && (mouldid==0||!(bememberdatefrom.equals(""))||!(bememberdateto.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1834,user.getLanguage())%></wea:item>
<wea:item>
<span>
<select name="bememberdateselect" id="bememberdateselect" onchange="changeDate(this,'spanbememberdate');" style="width: 135px">
<option value="0" <%=bememberdateselect.equals("0")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
<option value="1" <%=bememberdateselect.equals("1")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15537,user.getLanguage())%></option>
<option value="2" <%=bememberdateselect.equals("2")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15539,user.getLanguage())%></option>
<option value="3" <%=bememberdateselect.equals("3")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15541,user.getLanguage())%></option>
<option value="4" <%=bememberdateselect.equals("4")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(21904,user.getLanguage())%></option>
<option value="5" <%=bememberdateselect.equals("5")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15384,user.getLanguage())%></option>
<option value="6" <%=bememberdateselect.equals("6")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(32530,user.getLanguage())%></option>
</select>
</span>
<span id=spanbememberdate style="<%=bememberdateselect.equals("6")?"":"display:none;" %>">
<BUTTON type="button" class=Calendar id=selectbememberdatefrom onclick="getDate(bememberdatefromspan,bememberdatefrom)"></BUTTON>
<SPAN id=bememberdatefromspan ><%=bememberdatefrom%></SPAN> -
<BUTTON type="button" class=Calendar id=selectbememberdateto onclick="getDate(bememberdatetospan,bememberdateto)"></BUTTON>
<SPAN id=bememberdatetospan ><%=bememberdateto%></SPAN>
</span>
<input class=inputstyle type="hidden" name="bememberdatefrom" value="<%=bememberdatefrom%>">
<input class=inputstyle type="hidden" name="bememberdateto" value="<%=bememberdateto%>">
</wea:item>
<%}if(hasstartdate.equals("1") && (mouldid==0||!(startdate.equals(""))||!(startdateTo.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1970,user.getLanguage())%></wea:item>
<wea:item>
<span>
<select name="startdateselect" id="startdateselect" onchange="changeDate(this,'spanStartdate');" style="width: 135px">
<option value="0" <%=startdateselect.equals("0")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
<option value="1" <%=startdateselect.equals("1")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15537,user.getLanguage())%></option>
<option value="2" <%=startdateselect.equals("2")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15539,user.getLanguage())%></option>
<option value="3" <%=startdateselect.equals("3")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15541,user.getLanguage())%></option>
<option value="4" <%=startdateselect.equals("4")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(21904,user.getLanguage())%></option>
<option value="5" <%=startdateselect.equals("5")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15384,user.getLanguage())%></option>
<option value="6" <%=startdateselect.equals("6")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(32530,user.getLanguage())%></option>
</select>
</span>
<span id=spanStartdate style="<%=startdateselect.equals("6")?"":"display:none;" %>">
<BUTTON type="button" class=Calendar id=selectstartdate onclick="getstartDate()"></BUTTON>
<SPAN id=startdatespan ><%=startdate%></SPAN>-
<BUTTON type="button" class=Calendar id=selectstartdateTo onclick="getstartDateTo()"></BUTTON>
<SPAN id=startdateTospan ><%=startdateTo%></SPAN>
</span>
<input class=inputstyle type="hidden" id="startdate" name="startdate" value="<%=startdate%>">
<input class=inputstyle type="hidden" id="startdateTo" name="startdateTo" value="<%=startdateTo%>">
</wea:item>
<%}if(hasenddate.equals("1") && (mouldid==0||!(enddate.equals(""))||!(enddateTo.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(15236,user.getLanguage())%></wea:item>
<wea:item>
<span>
<select name="enddateselect" id="enddateselect" onchange="changeDate(this,'spanenddate');" style="width: 135px">
<option value="0" <%=enddateselect.equals("0")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
<option value="1" <%=enddateselect.equals("1")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15537,user.getLanguage())%></option>
<option value="2" <%=enddateselect.equals("2")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15539,user.getLanguage())%></option>
<option value="3" <%=enddateselect.equals("3")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15541,user.getLanguage())%></option>
<option value="4" <%=enddateselect.equals("4")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(21904,user.getLanguage())%></option>
<option value="5" <%=enddateselect.equals("5")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15384,user.getLanguage())%></option>
<option value="6" <%=enddateselect.equals("6")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(32530,user.getLanguage())%></option>
</select>
</span>
<span id=spanenddate style="<%=enddateselect.equals("6")?"":"display:none;" %>">
<BUTTON type="button" class=Calendar id=selectenddate onclick="getendDate()"></BUTTON>
<SPAN id=enddatespan ><%=enddate%></SPAN>-
<BUTTON type="button" class=Calendar id=selectenddateTo onclick="getendDateTo()"></BUTTON>
<SPAN id=enddateTospan ><%=enddateTo%></SPAN>
</span>
<input class=inputstyle type="hidden" name="enddate" value="<%=enddate%>">
<input class=inputstyle type="hidden" name="enddateTo" value="<%=enddateTo%>">
</wea:item>
<%}if(hascontractdate.equals("1") && (mouldid==0||!(contractdate.equals(""))||!(contractdateTo.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(15778,user.getLanguage())%></wea:item>
<wea:item>
<span>
<select name="contractdateselect" id="contractdateselect" onchange="changeDate(this,'spancontractdate');" style="width: 135px">
<option value="0" <%=contractdateselect.equals("0")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(332,user.getLanguage())%></option>
<option value="1" <%=contractdateselect.equals("1")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15537,user.getLanguage())%></option>
<option value="2" <%=contractdateselect.equals("2")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15539,user.getLanguage())%></option>
<option value="3" <%=contractdateselect.equals("3")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15541,user.getLanguage())%></option>
<option value="4" <%=contractdateselect.equals("4")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(21904,user.getLanguage())%></option>
<option value="5" <%=contractdateselect.equals("5")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(15384,user.getLanguage())%></option>
<option value="6" <%=contractdateselect.equals("6")?"selected":"" %>><%=SystemEnv.getHtmlLabelName(32530,user.getLanguage())%></option>
</select>
</span>
<span id=spancontractdate style="<%=contractdateselect.equals("6")?"":"display:none;" %>">
<BUTTON type="button" class=Calendar id=selectcontractdate onclick="getcontractDate()"></BUTTON>
<SPAN id=contractdatespan ><%=contractdate%></SPAN>-
<BUTTON type="button" class=Calendar id=selectcontractdateTo onclick="getcontractDateTo()"></BUTTON>
<SPAN id=contractdateTospan ><%=contractdateTo%></SPAN>
</span>
<input class=inputstyle type="hidden" name="contractdate" value="<%=contractdate%>">
<input class=inputstyle type="hidden" name="contractdateTo" value="<%=contractdateTo%>">
</wea:item>
<%}if(hashomeaddress.equals("1") && (mouldid==0||!(homeaddress.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(16018,user.getLanguage())%></wea:item>
<wea:item><INPUT class=inputstyle type="text" name=homeaddress size=20 value='<%=homeaddress%>'></wea:item>
<%}if(hasroles.equals("1") && (mouldid==0||!(roles.equals("0")||roles.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(122,user.getLanguage())%></wea:item>
<wea:item>
<brow:browser viewType="0" name="roles" browserValue='<%= roles %>'
browserUrl="/systeminfo/BrowserMain.jsp?url=/hrm/roles/MutiRolesBrowser.jsp?selectedids="
hasInput="true" isSingle="true" hasBrowser = "true" isMustInput='1'
completeUrl="/data.jsp?type=65" width="165px"
browserSpanValue='<%=Util.toScreen(RolesComInfo.getRolesname(roles),user.getLanguage())%>'>
</brow:browser>
</wea:item>
<%}if(hasislabouunion.equals("1") && (mouldid==0||!(islabouunion.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(15684,user.getLanguage())%></wea:item>
<wea:item>
<select class=inputstyle id=islabouunion name=islabouunion value="<%=islabouunion%>" style="width: 135px">
<option value="" <%if(islabouunion.equals("")){%> selected <%}%>></option>
<option value=1 <%if(islabouunion.equals("1")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(163,user.getLanguage())%></option>
<option value=0 <%if(islabouunion.equals("0")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(161,user.getLanguage())%></option>
</select>
</wea:item>
<%}if(hastempresidentnumber.equals("1") && (mouldid==0||!(tempresidentnumber.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(15685,user.getLanguage())%></wea:item>
<wea:item><INPUT type="text" class=inputstyle name=tempresidentnumber style="width: 165px" value='<%=tempresidentnumber%>'></wea:item>
<%}if(hashealthinfo.equals("1") && (mouldid==0||!(healthinfo.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1827,user.getLanguage())%></wea:item>
<wea:item>
<select class=inputstyle id=healthinfo name=healthinfo value="<%=healthinfo%>" style="width: 135px">
<option value="" <%if(healthinfo.equals("")){%> selected <%}%>></option>
<option value=0 <%if(healthinfo.equals("0")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(824,user.getLanguage())%></option>
<option value=1 <%if(healthinfo.equals("1")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(821,user.getLanguage())%></option>
<option value=2 <%if(healthinfo.equals("2")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(154,user.getLanguage())%></option>
<option value=3 <%if(healthinfo.equals("3")){%> selected <%}%>><%=SystemEnv.getHtmlLabelName(825,user.getLanguage())%></option>
</select>
</wea:item>
<%}%>
</wea:group>
<%}%>
<%
if(isgoveproj==0){
if( ishr || isfin ) {
if(hasaccountid1.equals("1") || hasbankid1.equals("1") || hasaccumfundaccount.equals("1")){
%>
<wea:group context='<%=SystemEnv.getHtmlLabelName(15805,user.getLanguage())%>' attributes="{'samePair':'moreKeyWord','isColspan':'false','groupOperDisplay':'none'}">
<%if(hasaccountid1.equals("1") && (mouldid==0||!(accountid1.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(16016,user.getLanguage())%></wea:item>
<wea:item><input class=inputstyle type=text name="accountid1" value='<%=accountid1%>' style="width: 165px"></wea:item>
<%}if(hasbankid1.equals("1") && (mouldid==0||!(bankid1.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(15812,user.getLanguage())%></wea:item>
<wea:item>
<brow:browser viewType="0" name="bankid1" browserValue='<%=bankid1 %>'
browserUrl="/systeminfo/BrowserMain.jsp?mouldID=hrm&url=/hrm/finance/bank/BankBrowser.jsp?selectedids="
hasInput="true" isSingle="true" hasBrowser = "true" isMustInput='1'
completeUrl="/data.jsp?type=hrmbank" width="165px"
browserSpanValue='<%=BankComInfo.getBankname(bankid1)%>'>
</brow:browser>
</wea:item>
<%}if(hasaccumfundaccount.equals("1") && (mouldid==0||!(accumfundaccount.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(1939,user.getLanguage())%></wea:item>
<wea:item><INPUT class=inputstyle type="text" name=accumfundaccount size=20 style="width: 165px" value='<%=accumfundaccount%>'></wea:item>
<%}%>
</wea:group>
<%}}}}%>
<%
if(ishr || issys){
if(hasseclevel.equals("1")||hasloginid.equals("1")||hassystemlanguage.equals("1")){
%>
<wea:group context='<%=SystemEnv.getHtmlLabelName(15804,user.getLanguage())%>' attributes="{'samePair':'moreKeyWord','isColspan':'false','groupOperDisplay':'none'}">
<%if(hasseclevel.equals("1") && (mouldid==0||!(seclevel.equals("0"))||!(seclevelTo.equals("0")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(683,user.getLanguage())%></wea:item>
<wea:item><INPUT class=inputstyle type="text" name=seclevel size=5 maxlength=3 onKeyPress="ItemPlusCount_KeyPress()" onBlur='checknumber("seclevel")' value='<%=seclevel%>' style="width: 50px"> - <INPUT class=inputstyle type="text" name=seclevelTo size=5 maxlength=3 onKeyPress="ItemPlusCount_KeyPress()" onBlur='checknumber("seclevelTo")' value='<%=seclevelTo%>' style="width: 50px"></wea:item>
<%}if(hasloginid.equals("1") && (mouldid==0||!(loginid.equals("")))){%>
<wea:item><%=SystemEnv.getHtmlLabelName(16126,user.getLanguage())%></wea:item>
<wea:item><INPUT class=inputstyle type="text" name=loginid size=20 value='<%=loginid%>' style="width: 165px"></wea:item>
<%}if(hassystemlanguage.equals("1") && (mouldid==0||isMultilanguageOK)){%>
<wea:item><%=SystemEnv.getHtmlLabelName(16066,user.getLanguage())%></wea:item>
<wea:item>
<brow:browser viewType="0" name="systemlanguage" browserValue='<%=""+systemlanguage %>'
browserUrl="/systeminfo/BrowserMain.jsp?mouldID=hrm&url=/systeminfo/language/LanguageBrowser.jsp?selectedids="
hasInput="true" isSingle="true" hasBrowser = "true" isMustInput='1'
completeUrl="/data.jsp?type=systemlanguage" width="300px"
browserSpanValue='<%=LanguageComInfo.getLanguagename(""+systemlanguage)%>'>
</brow:browser>
</wea:item>
<%}%>
</wea:group>
<%}
}
%>
</wea:layout>