CheckView.jsp
20.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
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@page import="weaver.hrm.common.database.dialect.DialectUtil"%>
<%@ include file="/systeminfo/init.jsp" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.general.TimeUtil" %>
<%@ page import="weaver.general.SessionOper" %>
<%@ page import="weaver.hrm.performance.*" %>
<%@ page import="weaver.general.*" %>
<jsp:useBean id="RecordSet" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="rs1" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="rs2" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="rsf" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="pointtree" class="weaver.hrm.performance.maintenance.TargetList" scope="page" />
<jsp:useBean id="ck" class="weaver.hrm.performance.targetcheck.CheckInfo" scope="page" />
<jsp:useBean id="DepartmentComInfo" class="weaver.hrm.company.DepartmentComInfo" scope="page"/>
<jsp:useBean id="ResourceComInfo" class="weaver.hrm.resource.ResourceComInfo" scope="page" />
<jsp:useBean id="docComInfo" class="weaver.docs.docs.DocComInfo" scope="page"/>
<%
int i=0;
String checkDate="";
String cycle="";
String type="";
String checkType="";
String type_c=""; //0:目标考核;1:综合素质 2:述职报告
String item=""; //0工作计划 1:月汇总
String gradeName="";
String objId="";
String id=request.getParameter("id");
String pointIds=ck.getMaxID("nodepointid");//得到HrmPerformanceNodePointid,供新增时用
int requestid=0;
int nodeid=0;
int groupid=0;
rs1.execute("select * from GradeGroup where id="+id);
if (rs1.next())
{
checkDate=rs1.getString("checkDate");
cycle=rs1.getString("cycle");
checkType=rs1.getString("checkType");
type_c=rs1.getString("type_c");
item=rs1.getString("item");
gradeName=rs1.getString("gradeName");
objId=rs1.getString("objId");
requestid=rs1.getInt("requestId");
}
rsf.execute("select currentnodeid,d.id as groupids from workflow_requestbase left join workflow_currentoperator on workflow_requestbase.requestid=workflow_currentoperator.requestid left join workflow_nodegroup d on d.nodeid=workflow_currentoperator.nodeid where workflow_currentoperator.userid="+user.getUID()+" and workflow_requestbase.requestid="+requestid);
//out.print("select currentnodeid,d.groupid as groupids from workflow_requestbase left join workflow_currentoperator on workflow_requestbase.requestid=workflow_currentoperator.requestid left join workflow_nodegroup d on d.nodeid=workflow_currentoperator.nodeid where workflow_currentoperator.userid="+user.getUID()+" and workflow_requestbase.requestid="+requestid);
if (rsf.next())
{
nodeid=rsf.getInt("currentnodeid");
groupid=rsf.getInt("groupids");
}
//得到评分标准中可评分的最低和最高分
String minPoint="0";
String maxPoint="100" ;
String pointMethod=""; //评分方式 0:依据评分标准 1:手工评分
//评分模式 If pointMethod=0 (1:允许调整,0:不允许调整)If pointMethod=1(0;不用总分评定模式1:起用总分评定模式)
String pointModul="";
rs2.execute("select * from HrmPerformancePointRule");
if (rs2.next())
{
minPoint=rs2.getString("minPoint");
maxPoint=rs2.getString("maxPoint");
pointMethod=rs2.getString("pointMethod");
pointModul=rs2.getString("pointModul");
}
//得到分数
String point1="";
String point2="";
String point3="";
String point4="";
String pointId="";
rs1.execute("select * from HrmPerformanceNodePoint where cycle='"+cycle+"' and checkType='"+checkType+"' and objId="+objId+" and checkDate='"+checkDate+"' and nodeId="+nodeid+" and operationId="+groupid);
if (rs1.next())
{
pointId=rs1.getString("id");
point1=rs1.getString("point1");
point2=rs1.getString("point2");
point3=rs1.getString("point3");
point4=rs1.getString("point4");
}
ArrayList point=new ArrayList();
if (!point1.equals("")) {
point = Util.TokenizerString(point1, ",");
}
//pointModul="1";
//pointMethod="1";
%>
<HTML><HEAD>
<LINK href="/css/Weaver.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver.js"></script>
</HEAD>
<%
String needfav ="1";
String needhelp ="";
%>
<BODY>
<%@ include file="/systeminfo/RightClickMenuConent.jsp" %>
<%
RCMenu += "{"+SystemEnv.getHtmlLabelName(309,user.getLanguage())+",javaScript:window.close(),_self} " ;
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu.jsp" %>
<table width=100% height=100% border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="1">
<col width="">
<col width="1">
<tr>
<td height="10" colspan="3"></td>
</tr>
<tr>
<td ></td>
<td valign="top">
<TABLE class=ListStyle>
<tr>
<td valign="top">
<form name="planform" method="post" action="CheckOperation.jsp">
<input type="hidden" name="cycle" value=<%=cycle%>>
<input type="hidden" name="id" value=<%=id%>>
<input type="hidden" name="item" value=<%=item%>>
<input type="hidden" name="objId" value=<%=objId%>>
<input type="hidden" name="requestid" value=<%=requestid%>>
<input type="hidden" name="groupid" value=<%=groupid%>>
<input type="hidden" name="nodeid" value=<%=nodeid%>>
<input type="hidden" name="checkType" value=<%=checkType%>>
<input type="hidden" name="type_c" value=<%=type_c%>>
<input type="hidden" name="pointMethod" value=<%=pointMethod%>>
<input type="hidden" name="pointModul" value=<%=pointModul%>>
<input type="hidden" name="operationType">
<% if (pointId.equals("")){%>
<input type="hidden" name="pointId" value=<%=pointIds%>>
<%}
else {%>
<input type="hidden" name="pointId" value=<%=pointId%>>
<%}
%>
<input type="hidden" name="checkDate" value=<%=checkDate%>>
<TABLE class=ListStyle cellspacing=1 >
<COLGROUP>
<COL width="100%">
<TBODY>
<TR>
<th align="center"><%=gradeName%></th>
</tr>
</TBODY></TABLE>
<!--个人报告-->
<%
boolean isLight = false;
if (type_c.equals("0")&&item.equals("0")) {
RecordSet.execute("select workPlan.* ,a.planName ,f.id as reportId,f.pointSelf,f.status as statusr,f.percent_n as perp,g.point1 as pointDown from workPlan left join HrmPerformanceReport f on workPlan.id=f.planId left join HrmPerformanceBeforePoint g on g.planId=workPlan.id join HrmPerformancePlanKindDetail a on a.id=workPlan.planProperty where workPlan.objId="+objId+" and workPlan.cycle='"+cycle+"' and workPlan.planDate='"+checkDate+"' and workPlan.type_n='6' and workPlan.planType='"+checkType+"' ");
%>
<TABLE class=viewform >
<COLGROUP>
<COL width="90%">
<COL width="10%">
<TBODY>
<TR class=title>
<th>
<%=SystemEnv.getHtmlLabelName(18181,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(555,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(622,user.getLanguage())%>
</th>
<th></th>
</TR>
<TR class=spacing>
<TD class=line1 colspan=2></TD>
</TR>
</TBODY>
</TABLE>
<TABLE class=ListStyle cellspacing=1 >
<COLGROUP>
<COL width="15%">
<COL width="12%">
<COL width="10%">
<COL width="10%">
<COL width="5%">
<COL width="12%">
<COL width="12%">
<COL width="3%">
<COL width="8%">
<COL width="7%">
<COL width="10%">
<TBODY>
<TR class=Header>
<th><%=SystemEnv.getHtmlLabelName(229,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(6152,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(18182,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(742,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(15500,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(2097,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(18183,user.getLanguage())%>/<%=SystemEnv.getHtmlLabelName(2097,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(18184,user.getLanguage())%>/<%=SystemEnv.getHtmlLabelName(2097,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(18063,user.getLanguage())%>(%)</th>
<th><%=SystemEnv.getHtmlLabelName(602,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(15489,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(18242,user.getLanguage())%></th>
</tr>
<TR class=Line>
<TD colspan="11" >
</TD>
</TR>
<%
while(RecordSet.next())
{
if(isLight = !isLight)
{%>
<TR CLASS=DataLight>
<% }else{%>
<TR CLASS=DataDark>
<% }%>
<TD>
<a href="#" onclick="openFullWindow('/hrm/performance/targetPlan/PlanView.jsp?id=<%=RecordSet.getString("id")%>')">
<%=Util.toScreen(RecordSet.getString("name"),user.getLanguage())%></a></TD>
<TD><%=Util.toScreen(RecordSet.getString("planName"),user.getLanguage())%></TD>
<TD><%=Util.toScreen(RecordSet.getString("rbeginDate"),user.getLanguage())%> <%=Util.toScreen(RecordSet.getString("rbeginTime"),user.getLanguage())%></TD>
<TD><%=Util.toScreen(RecordSet.getString("rendDate"),user.getLanguage())%> <%=Util.toScreen(RecordSet.getString("rendTime"),user.getLanguage())%></TD>
<TD>
<%if (!RecordSet.getString("principal").equals("")) {
String hrmName="";
ArrayList hrmIda=Util.TokenizerString(RecordSet.getString("principal"),",");
for (int k=0;k<hrmIda.size();k++)
{
hrmName=hrmName + "<a href=/hrm/resource/HrmResource.jsp?id="+hrmIda.get(k)+">"+ResourceComInfo.getResourcename(""+hrmIda.get(k))+"</a>"+" ";
}
out.print(hrmName);
}%>
</TD>
<TD>
<%
String upHrm=RecordSet.getString("upPrincipal");
if (!upHrm.equals("")) {
String upHrms="";
String upHrmTemp="";
ArrayList hrmIds=Util.TokenizerString(upHrm,",");
for (int j=0;j<hrmIds.size();j++)
{
upHrmTemp=(String)hrmIds.get(j);
int upL=upHrmTemp.indexOf("/");
upHrms=upHrms+"<a href=/hrm/company/HrmDepartmentDsp.jsp?id="+upHrmTemp.substring(0,upL)+">" +DepartmentComInfo.getDepartmentname(""+upHrmTemp.substring(0,upL))+"</a>/"+"<a href=/hrm/resource/HrmResource.jsp?id="+upHrmTemp.substring(upL+1,upHrmTemp.length())+">" +ResourceComInfo.getResourcename(""+upHrmTemp.substring(upL+1,upHrmTemp.length()))+"</a>"+" ";
}
out.print(upHrms);
}
%>
</TD>
<TD><%
String dnHrm=RecordSet.getString("downPrincipal");
if (!dnHrm.equals("")) {
String dnHrms="";
String dnHrmTemp="";
ArrayList hrmIds=Util.TokenizerString(dnHrm,",");
for (int j=0;j<hrmIds.size();j++)
{
dnHrmTemp=(String)hrmIds.get(j);
int upL=dnHrmTemp.indexOf("/");
dnHrms=dnHrms+"<a href=/hrm/company/HrmDepartmentDsp.jsp?id="+dnHrmTemp.substring(0,upL)+">" +DepartmentComInfo.getDepartmentname(""+dnHrmTemp.substring(0,upL))+"</a>/"+"<a href=/hrm/resource/HrmResource.jsp?id="+dnHrmTemp.substring(upL+1,dnHrmTemp.length())+">" +ResourceComInfo.getResourcename(""+dnHrmTemp.substring(upL+1,dnHrmTemp.length()))+"</a>"+" ";
}
out.print(dnHrms);
}
%></TD>
<TD>
<%=RecordSet.getString("percent_n")%>
</TD>
<TD>
<% if (Util.null2String(RecordSet.getString("statusr")).equals("0")) {%><%=SystemEnv.getHtmlLabelName(18230,user.getLanguage())%><%}%>
<% if (Util.null2String(RecordSet.getString("statusr")).equals("1")) {%><%=SystemEnv.getHtmlLabelName(1960,user.getLanguage())%><%}%>
<% if (Util.null2String(RecordSet.getString("statusr")).equals("2")) {%><%=SystemEnv.getHtmlLabelName(732,user.getLanguage())%><%}%>
<% if (Util.null2String(RecordSet.getString("statusr")).equals("3")) {%><%=SystemEnv.getHtmlLabelName(1961,user.getLanguage())%><%}%>
<% if (Util.null2String(RecordSet.getString("statusr")).equals("1")) {%>
<%=SystemEnv.getHtmlLabelName(847,user.getLanguage())%><%=Util.null2String(RecordSet.getString("perp"))%>%
<%}%></TD>
<td><input type="hidden" name="reportId_<%=i%>" id="reportId_<%=i%>" value=<%=RecordSet.getString("reportId")%>>
<%if (pointMethod.equals("0")) {
String goal=RecordSet.getString("oppositeGoal");
%>
<BUTTON type="button" class="Browser" id="SelectSTD" onclick="onShowSTD('point_<%=i%>','<%=goal%>')"></BUTTON>
<input class="inputstyle" <%if (point.size()>0) {%> value="<%=point.get(i)%>" <%}%> name="point_<%=i%>" id="point_<%=i%>" onchange="checknumber('point_<%=i%>')" maxlength="3" size="3" <%if (pointModul.equals("0")) {%> disabled <%}%> >
<%}%>
<%if (pointMethod.equals("1")&&pointModul.equals("0")) {%>
<input class="inputstyle" <%if (point.size()>0) {%> value="<%=point.get(i)%>" <%}%> name="point_<%=i%>" id="point_<%=i%>" maxlength="3" size="3" onchange="checknumber('point_<%=i%>')">
<%}
if (pointMethod.equals("1")&&pointModul.equals("1")) //总分评定模式只有一个输入
{ if (i==0){%>
<input class="inputstyle" value="<%=point1%>" name="point_0" id="point_0" maxlength="3" size="3" onchange="checknumber('point_0')">
<%}}%>
</td>
<td>
<%=RecordSet.getString("pointDown")%>
</td>
</TR>
<%
i++;}
if (pointMethod.equals("1")&&pointModul.equals("1")) i=1; //总分评定模式只有一个输入
%>
<input type="hidden" name="len" id="len" value=<%=i%>>
</TABLE>
<%}%>
<!--个人计划结束-->
<%if (type_c.equals("0")&&item.equals("1")) {%>
<!--个人报告汇总-->
<TABLE class=viewform >
<COLGROUP>
<COL width="90%">
<COL width="10%">
<TBODY>
<TR class=title>
<th>
<%=SystemEnv.getHtmlLabelName(18247,user.getLanguage())%>
</th>
<th></th>
</TR>
<TR class=spacing>
<TD class=line1 colspan=2></TD>
</TR>
</TBODY>
</TABLE>
<TABLE class=ListStyle cellspacing=1 >
<COLGROUP>
<COL width="15%">
<COL width="75%">
<COL width="10%">
<TBODY>
<TR class=Header>
<th><%=SystemEnv.getHtmlLabelName(887,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(17506,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(15489,user.getLanguage())%></th>
</tr>
<TR class=Line><TD colspan="3" ></TD></TR>
<% int minm=0;
int maxm=0;
int j=0;
if (cycle.equals("0"))
{
if (rs1.getDBType().equals("oracle")||rs1.getDBType().equals("db2")|| DialectUtil.isMySql(rs1.getDBType()))
{
rs1.execute("select * from HrmPerformanceCheckPoint where cycle='2' and SubStr(checkDate,1,4)='"+checkDate.substring(0,4)+"' and objId="+objId+" and checkType='"+checkType+"' order by checkDate");
}
else
{
rs1.execute("select * from HrmPerformanceCheckPoint where cycle='2' and SubString(checkDate,1,4)='"+checkDate.substring(0,4)+"' and objId="+objId+" and checkType='"+checkType+"' order by checkDate");
}
}
if (cycle.equals("1"))
{
minm=Integer.parseInt(checkDate.substring(4))*3-2;
maxm=Integer.parseInt(checkDate.substring(4))*3;
if (rs1.getDBType().equals("oracle")||rs1.getDBType().equals("db2")|| DialectUtil.isMySql(rs1.getDBType()))
{
rs1.execute("select * from HrmPerformanceCheckPoint where cycle='2' and SubStr(checkDate,1,4)='"+checkDate.substring(0,4)+"' and (substr(checkDate,5)>="+minm+" and substr(checkDate,5)<="+maxm+") and objId="+objId+" and checkType='"+checkType+"' order by checkDate");
}
else
{
rs1.execute("select * from HrmPerformanceCheckPoint where cycle='2' and SubString(checkDate,1,4)='"+checkDate.substring(0,4)+"' and (substring(checkDate,5,2)>="+minm+" and substring(checkDate,5,2)<="+maxm+") and objId="+objId+" and checkType='"+checkType+"' order by checkDate");
}
}
if (cycle.equals("4"))
{ minm=1;
maxm=6;
if (rs1.getDBType().equals("oracle")||rs1.getDBType().equals("db2")|| DialectUtil.isMySql(rs1.getDBType()))
{
rs1.execute("select * from HrmPerformanceCheckPoint where cycle='2' and SubStr(checkDate,1,4)='"+checkDate.substring(0,4)+"' and (substr(checkDate,5)>="+minm+" and substr(checkDate,5)<="+maxm+") and objId="+objId+" and checkType='"+checkType+"' order by checkDate");
}
else
{
rs1.execute("select * from HrmPerformanceCheckPoint where cycle='2' and SubString(checkDate,1,4)='"+checkDate.substring(0,4)+"' and (substring(checkDate,5,2)>="+minm+" and substring(checkDate,5,2)<="+maxm+") and objId="+objId+" and checkType='"+checkType+"' order by checkDate");
}
}
while(rs1.next())
{
if(isLight = !isLight)
{%>
<TR CLASS=DataLight>
<% }else{%>
<TR CLASS=DataDark>
<% }%>
<TD>
<a href="#" onclick="openFullWindow('checkView.jsp?id=<%=rs1.getString("id")%>')">
<%=rs1.getString("checkDate").substring(4)%><%=SystemEnv.getHtmlLabelName(6076,user.getLanguage())%><%=SystemEnv.getHtmlLabelName(6106,user.getLanguage())%></a></TD>
<TD><%=rs1.getFloat("point6")%></TD>
<TD>
<%if (j==0) {%>
<input class="inputstyle" value="<%=point2%>" name="point_0" id="point_0" maxlength="3" size="3" onchange="checknumber('point_0')">
<%}%>
</TR>
<%
j++;}
%>
</TABLE>
<!--个人报告汇总结束-->
<%i++;}
%>
<!--综合素质考核-->
<%if (type_c.equals("1"))
{
String points="";
if (!pointId.equals(""))
{ points=pointId;
rs2.execute("select * from HrmPerformanceCheckPointDetail where nodePointId="+pointId);
if (!rs2.next())
{
rsf.execute("insert into HrmPerformanceCheckPointDetail SELECT id,checkId,targetName,percent_n,stdName, crmCode, parentId, levels, depath,targetIndex,0,"+pointId+" FROM HrmPerformanceCheckDetail where checkId="+item);
}
//插入综合素质明细
}
else
{
//插入综合素质明细
rsf.execute("insert into HrmPerformanceCheckPointDetail SELECT id,checkId,targetName,percent_n,stdName, crmCode, parentId, levels, depath,targetIndex,0,"+pointIds+" FROM HrmPerformanceCheckDetail where checkId="+item);
points=pointIds;
}
rs2.execute("update HrmPerformanceCheckPointDetail set targetIndex='-1' where nodePointId="+points+" and checkId="+item);
pointtree.setUser(user);
%>
<TABLE class=viewform>
<tr>
<td valign="top">
<TABLE class=ListStyle cellspacing=1 >
<COLGROUP>
<COL width="30%">
<COL width="10%">
<COL width="50%">
<COL width="10%">
<TBODY>
<TR class=title>
<TH colSpan=3><%=SystemEnv.getHtmlLabelName(18094,user.getLanguage())%></TH>
</TR>
<TR class=spacing>
<TD class=line1 colSpan=4></TD>
</TR>
<TR class=Header>
<th><%=SystemEnv.getHtmlLabelName(18086,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(6071,user.getLanguage())%>(%)</th>
<th><%=SystemEnv.getHtmlLabelName(18091,user.getLanguage())%></th>
<th><%=SystemEnv.getHtmlLabelName(15489,user.getLanguage())%></th>
</tr>
<TR class=Line><TD colspan="4" ></TD></TR>
<%out.print(pointtree.getViewTargetPointListStr(Util.getIntValue(item),points));
%>
<%}%>
<!--综合素质考核结束-->
<!--述职总结-->
<%if (type_c.equals("2")) {%>
<TABLE class=viewform >
<COLGROUP>
<COL width="90%">
<COL width="10%">
<TBODY>
<TR class=title>
<th>
<%=SystemEnv.getHtmlLabelName(18062,user.getLanguage())%></th>
<th></th>
</TR>
<TR class=spacing>
<TD class=line1 colspan=2></TD>
</TR>
</TBODY>
</TABLE>
<div id="showobjs">
<table><tr><td>
<%String docIds="";
rs2.execute("select * from HrmPerformanceReport where reportType='"+checkType+"' and cycle='"+cycle+"' and objId="+objId+" and reportDate='"+checkDate+"' and reportTypep='1' ");
if (rs2.next()) docIds=rs2.getString("docId");
%>
<SPAN id="docspan">
<%
if (!docIds.equals("")) {
ArrayList docs = Util.TokenizerString(docIds, ",");
for (int j = 0; j < docs.size(); j++) {
%><A style="cursor:hand" onclick=openFullWindow('/docs/docs/DocDsp.jsp?isrequest=1&id=<%=""+docs.get(j)%>')><%=docComInfo.getDocname("" + docs.get(j))%></A>
<%
}
}%>
</SPAN>
<%=SystemEnv.getHtmlLabelName(15489,user.getLanguage())%>:
<input class="inputstyle" value="<%=point4%>" name="point_0" id="point_0" maxlength="3" size="3" onchange="checknumber('point_0')">
</td></tr></table></div>
<%
i++;
}%>
</td>
</tr>
</TABLE>
</FORM>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
<SCRIPT language="VBS" src="/js/browser/GoalSTDBrowser.vbs"></SCRIPT>
<script language="javascript">
function OnSubmit()
{var type=<%=type_c%>;
if (type=="1")
{
if (!getPoint())
{
return;
}
}
if (checkPoint())
{
document.planform.operationType.value="save";
document.planform.submit();
enablemenu();
}
}
function OnSubmits()
{
if (checkPoint())
{
document.planform.operationType.value="confirm";
document.planform.submit();
enablemenu();
}
}
function checkPoint()
{
var l=<%=i%>;
for (k=0;k<l;k++)
{
if (document.all("point_"+k).value=="")
{
alert('<%=SystemEnv.getHtmlLabelName(18243,user.getLanguage())%>');
document.all("point_"+k).focus();
return false;
}
else if ((parseInt(document.all("point_"+k).value)<=<%=minPoint%>)||(parseInt(document.all("point_"+k).value)><%=maxPoint%>))
{
alert('<%=SystemEnv.getHtmlLabelName(18232,user.getLanguage())%>');
document.all("point_"+k).focus();
return false;
}
}
return true;
}
function getPoint()
{
var obj=document.planform.elements; // 列出表单中所有元素放入数组
for(i = 10; i < obj.length; i++)
{
if ((obj[i].tagName.toLowerCase()=="input")&&(obj[i].name.indexOf("points_")>=0))
{
if (obj[i].value=="")
{
alert('<%=SystemEnv.getHtmlLabelName(18243,user.getLanguage())%>');
obj[i].focus();
return false;
}
else if ((parseInt(obj[i].value)<=<%=minPoint%>)||(parseInt(obj[i].value)><%=maxPoint%>))
{
alert('<%=SystemEnv.getHtmlLabelName(18232,user.getLanguage())%>');
obj[i].value.focus();
return false;
}
}
}
return true;
}
</script>
</BODY>