MySubordinateInfoDefine.jsp
14.9 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
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.conn.*" %>
<%@ page import="weaver.general.GCONST" %>
<%@ page import="weaver.general.IsGovProj" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<!-- added by wcd 2014-07-10 [E7 to E8] -->
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<%
int isgoveproj = Util.getIntValue(IsGovProj.getPath(),0);//0:非政务系统,1:政务系统
int userid = user.getUID();
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 hasresourceid="";
String hasresourcename="";
String hasjobtitle ="";
String hasactivitydesc="";
String hasjobgroup ="";
String hasjobactivity ="";
String hascostcenter ="";
String hascompetency ="";
String hasresourcetype="";
String hasstatus ="";
String hassubcompany ="";
String hasdepartment ="";
String haslocation ="";
String hasmanager ="";
String hasassistant ="";
String hasroles ="";
String hasseclevel ="";
String hasjoblevel ="";
String hasworkroom ="";
String hastelephone ="";
String hasstartdate ="";
String hasenddate ="";
String hascontractdate="";
String hasbirthday ="";
String hassex ="";
String hasaccounttype = "";
String hasage ="";
String projectable ="";
String crmable ="";
String itemable ="";
String docable ="";
String workflowable ="";
String subordinateable="";
String trainable ="";
String budgetable ="";
String fnatranable ="";
String dspperpage ="";
String workplanable ="";
String hasworkcode = "";
String hasjobcall = "";
String hasmobile = "";
String hasmobilecall = "";
String hasfax = "";
String hasemail = "";
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 = "";
RecordSet.executeProc("HrmUserDefine_SelectByID",""+userid);
if(RecordSet.next()){
hasresourceid=RecordSet.getString("hasresourceid");
hasresourcename=RecordSet.getString("hasresourcename");
hasjobtitle =RecordSet.getString("hasjobtitle");
hasactivitydesc=RecordSet.getString("hasactivitydesc");
hasjobgroup =RecordSet.getString("hasjobgroup");
hasjobactivity =RecordSet.getString("hasjobactivity");
hascostcenter =RecordSet.getString("hascostcenter");
hascompetency =RecordSet.getString("hascompetency");
hasresourcetype=RecordSet.getString("hasresourcetype");
hasstatus =RecordSet.getString("hasstatus");
hassubcompany =RecordSet.getString("hassubcompany");
hasdepartment =RecordSet.getString("hasdepartment");
haslocation =RecordSet.getString("haslocation");
hasmanager =RecordSet.getString("hasmanager");
hasassistant =RecordSet.getString("hasassistant");
hasroles =RecordSet.getString("hasroles");
hasseclevel =RecordSet.getString("hasseclevel");
hasjoblevel =RecordSet.getString("hasjoblevel");
hasworkroom =RecordSet.getString("hasworkroom");
hastelephone =RecordSet.getString("hastelephone");
hasstartdate =RecordSet.getString("hasstartdate");
hasenddate =RecordSet.getString("hasenddate");
hascontractdate=RecordSet.getString("hascontractdate");
hasbirthday =RecordSet.getString("hasbirthday");
hassex =RecordSet.getString("hassex");
hasaccounttype = RecordSet.getString("hasaccounttype");
hasage =RecordSet.getString("hasage");
projectable =RecordSet.getString("projectable");
crmable =RecordSet.getString("crmable");
itemable =RecordSet.getString("itemable");
docable =RecordSet.getString("docable");
workflowable =RecordSet.getString("workflowable");
subordinateable=RecordSet.getString("subordinateable");
trainable =RecordSet.getString("trainable");
budgetable =RecordSet.getString("budgetable");
fnatranable =RecordSet.getString("fnatranable");
dspperpage =RecordSet.getString("dspperpage");
workplanable =RecordSet.getString("workplanable");
hasworkcode = RecordSet.getString("hasworkcode");
hasjobcall = RecordSet.getString("hasjobcall");
hasmobile = RecordSet.getString("hasmobile");
hasmobilecall = RecordSet.getString("hasmobilecall");
hasfax = RecordSet.getString("hasfax");
hasemail = RecordSet.getString("hasemail");
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 ischecked = "";
%>
<HTML>
<HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<script language=javascript>
function doSave() {
frmMain.submit();
}
</script>
</head>
<BODY>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(86,user.getLanguage())+",javascript:doSave(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+SystemEnv.getHtmlLabelName(1290,user.getLanguage())+",/hrm/search/HrmResourceView.jsp?id="+userid+",_self} " ;
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;">
<input type="button" value="<%=SystemEnv.getHtmlLabelName(86,user.getLanguage())%>" class="e8_btn_top" onclick="doSave();">
<span title="<%=SystemEnv.getHtmlLabelName(23036,user.getLanguage())%>" class="cornerMenu"></span>
</td>
</tr>
</table>
<FORM id=weaver name=frmMain action="UserDefineOperation.jsp" method=post>
<wea:layout type="4col" attributes="{'expandAllGroup':'true'}">
<wea:group context='<%=SystemEnv.getHtmlLabelName(172,user.getLanguage())+SystemEnv.getHtmlLabelName(531,user.getLanguage())%>'>
<wea:item>
<%
ischecked = "";
if(workplanable.equals("1"))ischecked = " checked";
%>
<input type=checkbox name=workplanable value=1 <%=ischecked%>></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(2192,user.getLanguage())%></wea:item>
<wea:item>
<%
ischecked = "";
if(workflowable.equals("1"))ischecked = " checked";
%>
<input type=checkbox name=workflowable value=1 <%=ischecked%>></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(1207,user.getLanguage())%></wea:item>
<wea:item>
<%
ischecked = "";
if(docable.equals("1"))ischecked = " checked";
%>
<input type=checkbox name=docable value=1 <%=ischecked%>></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(58,user.getLanguage())%></wea:item>
<%if(isgoveproj==0){%>
<wea:item>
<%
ischecked = "";
if(projectable.equals("1"))ischecked = " checked";
%>
<input type=checkbox name=projectable value=1 <%=ischecked%>></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(101,user.getLanguage())%></wea:item>
<%if(software.equals("ALL") || software.equals("CRM")){%>
<wea:item>
<%
ischecked = "";
if(crmable.equals("1"))ischecked = " checked";
%>
<input type=checkbox name=crmable value=1 <%=ischecked%>></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(136,user.getLanguage())%></wea:item>
<%}%>
<%}%>
<%if(software.equals("ALL")){%>
<wea:item>
<%
ischecked = "";
if(itemable.equals("1"))ischecked = " checked";
%>
<input type=checkbox name=itemable value=1 <%=ischecked%>></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(535,user.getLanguage())%></wea:item>
<%}%>
<wea:item>
<%
ischecked = "";
if(subordinateable.equals("1"))ischecked = " checked";
%>
<input type=checkbox name=subordinateable value=1 <%=ischecked%>></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(442,user.getLanguage())%></wea:item>
<%if(isgoveproj==0){%>
<wea:item>
<%
ischecked = "";
if(budgetable.equals("1"))ischecked = " checked";
%>
<input type=checkbox name=budgetable value=1 <%=ischecked%>></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(386,user.getLanguage())%></wea:item>
<wea:item>
<%
ischecked = "";
if(fnatranable.equals("1"))ischecked = " checked";
%>
<input type=checkbox name=fnatranable value=1 <%=ischecked%>></wea:item>
<wea:item><%=SystemEnv.getHtmlLabelName(428,user.getLanguage())%></wea:item>
<%}%>
</wea:group>
</wea:layout>
<input type=hidden name=userid value="<%=userid%>">
<input type=hidden name=hasresourceid value="<%=hasresourceid%>">
<input type=hidden name=hasresourcename value="<%=hasresourcename%>">
<input type=hidden name=hasjobtitle value="<%=hasjobtitle%>">
<input type=hidden name=hasactivitydesc value="<%=hasactivitydesc%>">
<input type=hidden name=hasjobgroup value="<%=hasjobgroup%>">
<input type=hidden name=hasjobactivity value="<%=hasjobactivity%>">
<input type=hidden name=hascostcenter value="<%=hascostcenter%>">
<input type=hidden name=hascompetency value="<%=hascompetency%>">
<input type=hidden name=hasresourcetype value="<%=hasresourcetype%>">
<input type=hidden name=hasstatus value="<%=hasstatus%>">
<input type=hidden name=hassubcompany value="<%=hassubcompany%>">
<input type=hidden name=hasdepartment value="<%=hasdepartment%>">
<input type=hidden name=haslocation value="<%=haslocation%>">
<input type=hidden name=hasmanager value="<%=hasmanager%>">
<input type=hidden name=hasassistant value="<%=hasassistant%>">
<input type=hidden name=hasroles value="<%=hasroles%>">
<input type=hidden name=hasseclevel value="<%=hasseclevel%>">
<input type=hidden name=hasjoblevel value="<%=hasjoblevel%>">
<input type=hidden name=hasworkroom value="<%=hasworkroom%>">
<input type=hidden name=hastelephone value="<%=hastelephone%>">
<input type=hidden name=hasstartdate value="<%=hasstartdate%>">
<input type=hidden name=hasenddate value="<%=hasenddate%>">
<input type=hidden name=hascontractdate value="<%=hascontractdate%>">
<input type=hidden name=hasbirthday value="<%=hasbirthday%>">
<input type=hidden name=hassex value="<%=hassex%>">
<input type=hidden name=hasaccounttype value="<%=hasaccounttype%>">
<input type=hidden name=hasage value="<%=hasage%>">
<input type=hidden name=hasworkcode value="<%=hasworkcode%>">
<input type=hidden name=hasjobcall value="<%=hasjobcall%>">
<input type=hidden name=hasmobile value="<%=hasmobile%>">
<input type=hidden name=hasmobilecall value="<%=hasmobilecall%>">
<input type=hidden name=hasfax value="<%=hasfax%>">
<input type=hidden name=hasemail value="<%=hasemail%>">
<input type=hidden name=hasfolk value="<%=hasfolk%>">
<input type=hidden name=hasnativeplace value="<%=hasnativeplace%>">
<input type=hidden name=hasregresidentplace value="<%=hasregresidentplace%>">
<input type=hidden name=hasmaritalstatus value="<%=hasmaritalstatus%>">
<input type=hidden name=hascertificatenum value="<%=hascertificatenum%>">
<input type=hidden name=hastempresidentnumber value="<%=hastempresidentnumber%>">
<input type=hidden name=hasresidentplace value="<%=hasresidentplace%>">
<input type=hidden name=hashomeaddress value="<%=hashomeaddress%>">
<input type=hidden name=hashealthinfo value="<%=hashealthinfo%>">
<input type=hidden name=hasheight value="<%=hasheight%>">
<input type=hidden name=hasweight value="<%=hasweight%>">
<input type=hidden name=haseducationlevel value="<%=haseducationlevel%>">
<input type=hidden name=hasdegree value="<%=hasdegree%>">
<input type=hidden name=hasusekind value="<%=hasusekind%>">
<input type=hidden name=haspolicy value="<%=haspolicy%>">
<input type=hidden name=hasbememberdate value="<%=hasbememberdate%>">
<input type=hidden name=hasbepartydate value="<%=hasbepartydate%>">
<input type=hidden name=hasislabouunion value="<%=hasislabouunion%>">
<input type=hidden name=hasbankid1 value="<%=hasbankid1%>">
<input type=hidden name=hasaccountid1 value="<%=hasaccountid1%>">
<input type=hidden name=hasaccumfundaccount value="<%=hasaccumfundaccount%>">
<input type=hidden name=hasloginid value="<%=hasloginid%>">
<input type=hidden name=dspperpage value="<%=dspperpage%>">
<input type=hidden name=hassystemlanguage value="<%=hassystemlanguage%>">
<input type=hidden name=returnurl value='<%=Util.null2String(request.getParameter("returnurl"))%>'>
</FORM>
</BODY>
</HTML>