myGoalOperation.jsp
19.1 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
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.general.TimeUtil" %>
<%@ page import="weaver.general.SessionOper" %>
<%@ page import="weaver.hrm.performance.goal.GoalUtil" %>
<%@ include file="/systeminfo/init.jsp" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="hrm" class="weaver.hrm.resource.ResourceComInfo" scope="page" />
<jsp:useBean id="delalert" class="weaver.hrm.performance.DelAlertInfo" scope="page" />
<jsp:useBean id="ApproveParameter" class="weaver.workflow.request.ApproveParameter" scope="session"/>
<jsp:useBean id="sysWF" class="weaver.system.SysCreateWF" scope="page"/>
<%
String operation = Util.null2String(request.getParameter("operation"));
String operation2 = Util.null2String(request.getParameter("operation2"));
int goalId = 0;
String goalName = Util.null2String(request.getParameter("goalName"));
String goalCode = Util.null2String(request.getParameter("goalCode"));
int parentId = Util.getIntValue(request.getParameter("parentTargetId"));
String goalDate = Util.null2String((String)SessionOper.getAttribute(session,"goalDate"));
int objId = Util.getIntValue(request.getParameter("objId")); //责任单位
int operations = user.getUID(); //分配人
int type_t = Util.getIntValue(request.getParameter("targetTypeId")); //指标类型
String startDate = Util.null2String(request.getParameter("startDate"));
String endDate = Util.null2String(request.getParameter("endDate"));
String goalType = Util.null2String(request.getParameter("goalType")); //目标类型:0集团 1分公司 2部门 3人员
String cycle = Util.null2String(request.getParameter("cycle")); //周期:0月 1季度 2年中 3年
String goalProperty = Util.null2String(request.getParameter("goalProperty"));
String unit = Util.null2String(request.getParameter("unit")); //计量单位
double targetValue = Util.getDoubleValue(request.getParameter("targetValue"),0);
double previewValue = Util.getDoubleValue(request.getParameter("previewValue"),0);
String memo = Util.null2String(request.getParameter("memo"));
//TD
String percent_n = Util.null2String(request.getParameter("percent_n"));
//int percent_n = Util.getIntValue(request.getParameter("percent_n"),0); //权重
String isApproved = Util.null2String(request.getParameter("isApproved"));
String currentTime = TimeUtil.getCurrentTimeString();
String clientIP = request.getRemoteAddr();
String sql = "";
String redirectUrl = "";
//目标新建===========================
if(operation.equals("goalAdd")){{
if(operation2.equals("goalBreak")){
String cycleSeason = Util.null2String(request.getParameter("cycleSeason")); //
String cycleMonth = Util.null2String(request.getParameter("cycleMonth")); //
if(cycle.equals("1")){
goalDate = goalDate.substring(0,4) + cycleSeason;
}else if(cycle.equals("0")){
goalDate = goalDate.substring(0,4) + cycleMonth;
}
}
boolean isReleased = false;
int tmpGroupId = 0;
/*
//查找GroupId
int tmpGroupId = 0;
sql = "SELECT groupId,status FROM HrmPerformanceGoal WHERE objId="+objId+" AND goalDate='"+goalDate+"' AND goalType='"+goalType+"' AND cycle='"+cycle+"'";
rs.executeSql(sql);
while(rs.next()){
if(rs.getString("status").equals("3")){
isReleased = true;
break;
}
if(rs.getInt("groupId")!=-1){
tmpGroupId = rs.getInt("groupId");
break;
}
}
//TD3707
//added by hubo,2006-03-21
if(isReleased){
response.sendRedirect("myGoalBreak.jsp?id="+parentId+"&msg=1&msgObjId="+objId+"&msgGoalDate="+goalDate+"&msgGoalType="+goalType+"&msgCycle="+cycle+"");
return;
}
*/
if(operation2.equals("goalBreak")){
String objIdAll = Util.null2String(request.getParameter("objId"));
String[] aObjId = Util.TokenizerString2(objIdAll, "|");
for(int i=0;i<aObjId.length;i++){
if(aObjId[i].equals("")) continue;
goalId = GoalUtil.getGoalMaxId();
//save基本信息
String[] aaObjId = Util.TokenizerString2(aObjId[i], ",");
if(aaObjId.length>1){
//分解至多个负责单位
sql = "INSERT INTO HrmPerformanceGoal(id, goalName, objId, goalCode, parentId, goalDate, operations, type_t, startDate, endDate, goalType, cycle, property, unit, targetValue, previewValue, memo, percent_n, status, groupId)VALUES("+goalId+", '"+goalName+"', "+aaObjId[0]+", '"+goalCode+"', "+parentId+", '"+goalDate+"', "+operations+", "+type_t+", '"+startDate+"', '"+endDate+"', '"+aaObjId[1]+"', '"+cycle+"', '"+goalProperty+"', '"+unit+"', "+targetValue+", "+previewValue+", '"+memo+"', '0','0',"+tmpGroupId+")";
}else{
//分解至单个负责单位
sql = "INSERT INTO HrmPerformanceGoal(id, goalName, objId, goalCode, parentId, goalDate, operations, type_t, startDate, endDate, goalType, cycle, property, unit, targetValue, previewValue, memo, percent_n, status, groupId)VALUES("+goalId+", '"+goalName+"', "+aaObjId[0]+", '"+goalCode+"', "+parentId+", '"+goalDate+"', "+operations+", "+type_t+", '"+startDate+"', '"+endDate+"', '"+goalType+"', '"+cycle+"', '"+goalProperty+"', '"+unit+"', "+targetValue+", "+previewValue+", '"+memo+"', '0','0',"+tmpGroupId+")";
}
rs.executeSql(sql);
//save评分标准
int rownum = Util.getIntValue(request.getParameter("rownum"));
String stdName = "";
int point = 0;
//out.println(rownum);
for(int j=0;j<rownum;j++){
stdName = Util.null2String(request.getParameter("stdName_"+j));
point = Util.getIntValue(request.getParameter("point_"+j),0);
sql = "INSERT INTO HrmPerformanceGoalStd (goalId,stdName,point) VALUES ("+goalId+",'"+stdName+"',"+point+")";
//out.println(sql);
rs.executeSql(sql);
}
}
}else{
goalId = GoalUtil.getGoalMaxId();
//save基本信息
sql = "INSERT INTO HrmPerformanceGoal(id, goalName, objId, goalCode, parentId, goalDate, operations, type_t, startDate, endDate, goalType, cycle, property, unit, targetValue, previewValue, memo, percent_n, status, groupId)VALUES("+goalId+", '"+goalName+"', "+objId+", '"+goalCode+"', "+parentId+", '"+goalDate+"', "+operations+", "+type_t+", '"+startDate+"', '"+endDate+"', '"+goalType+"', '"+cycle+"', '"+goalProperty+"', '"+unit+"', "+targetValue+", "+previewValue+", '"+memo+"', '"+percent_n+"','0',"+tmpGroupId+")";
//out.println(sql);
rs.executeSql(sql);
//save评分标准
int rownum = Util.getIntValue(request.getParameter("rownum"));
String stdName = "";
int point = 0;
//out.println(rownum);
for(int i=0;i<rownum;i++){
stdName = Util.null2String(request.getParameter("stdName_"+i));
point = Util.getIntValue(request.getParameter("point_"+i),0);
sql = "INSERT INTO HrmPerformanceGoalStd (goalId,stdName,point) VALUES ("+goalId+",'"+stdName+"',"+point+")";
//out.println(sql);
rs.executeSql(sql);
}
String _sql = "SELECT a.id,a.status FROM BPMGoalGroup a,HrmPerformanceGoal b where a.objid = b.objid and a.objid = b.objid and a.goalDate = b.goalDate and a.goalType = b.goalType and a.cycle = b.cycle and b.id= "+goalId;
rs.executeSql(_sql);
if(rs.next() && rs.getInt(2)==3){ //如果总的目标已发布 子项则需再审批
rs.executeSql("UPDATE HrmPerformanceGoal SET modifyStatus='1',modifyUser="+user.getUID()+" WHERE id="+goalId+"");
rs.executeSql("INSERT INTO HrmKPIRevision (goalId,operator,operateTime,operateType,clientIP) VALUES ("+goalId+","+user.getUID()+",'"+currentTime+"','1','"+clientIP+"')");
}
}
}
//删除提醒信息
if (goalType.equals("3"))
delalert.delAlert(objId,cycle,goalDate,0,"3");
redirectUrl = operation2.equals("goalBreak") ? "myGoalBreak.jsp?id="+parentId+"" : "myGoalListIframe.jsp";
//导入指标===========================
}else if(operation.equals("targetImport")){
/*
String targetIds = Util.null2String(request.getParameter("targetIds"));
String[] arrayTargetIds = targetIds.split(",");
for(int i=0;i<arrayTargetIds.length;i++){
sql = "SELECT * FROM HrmPerformanceTargetDetail WHERE id="+Util.getIntValue(arrayTargetIds[i])+"";
out.println(sql);
}
*/
//提交审批===========================
}else if(operation.equals("goalSubmit")){
int workflowId = 0;
int goalGroupId = 0;
String goalGroupName = Util.null2String(request.getParameter("goalGroupName"));
objId = ((Integer)SessionOper.getAttribute(session,"objId")).intValue();
goalType = (String)SessionOper.getAttribute(session,"goalType");
goalDate = (String)SessionOper.getAttribute(session,"goalDate");
cycle = (String)SessionOper.getAttribute(session,"cycle");
sql = "SELECT id FROM BPMGoalGroup WHERE objId="+objId+" AND goalType='"+goalType+"' AND goalDate='"+goalDate+"' AND cycle='"+cycle+"'";
rs.executeSql(sql);
if(rs.next()){
goalGroupId = rs.getInt("id");
sql = "UPDATE BPMGoalGroup SET status='2' WHERE id="+goalGroupId+"";
rs.executeSql(sql);
//更新目标表的groupId
sql = "UPDATE HrmPerformanceGoal SET groupId="+goalGroupId+" WHERE objId="+objId+" AND goalType='"+goalType+"' AND goalDate='"+goalDate+"' AND cycle='"+cycle+"'";
rs.executeSql(sql);
}else{
goalGroupId = GoalUtil.getGoalGroupMaxId();
//找目标审批流程
int objIdFlow = objId;
if(goalType.equals("3")){
objIdFlow = Util.getIntValue(hrm.getDepartmentID(String.valueOf(objId)));
}
rs.executeSql("SELECT goalFlowId FROM HrmPerformanceCheckFlow WHERE objId="+objIdFlow+" AND objType='"+goalType+"'");
if(rs.next()){
workflowId = rs.getInt("goalFlowId");
}
if(workflowId==-1){
out.println("<div style='color:red;font-size:12px'>"+SystemEnv.getHtmlLabelName(18268,user.getLanguage())+"!</div>");
return;
}
//触发审批流程
String subject = SystemEnv.getHtmlLabelName(18102,user.getLanguage())+":"+goalGroupName;
ArrayList infos = new ArrayList();
infos.add(new Integer(goalGroupId));
int requestid = 0;
try{
sysWF.setUser(user);
requestid = sysWF.setWorkflowInfo(workflowId,subject,user.getUID(),infos);
}catch(Exception e){
//TD3927
//modified by hubo,2006-03-16
redirectUrl ="/hrm/performance/goal/myGoalListIframe.jsp?msg=1";
response.sendRedirect(redirectUrl);
return;
}
//更新目标表的groupId
sql = "UPDATE HrmPerformanceGoal SET groupId="+goalGroupId+" WHERE objId="+objId+" AND goalType='"+goalType+"' AND goalDate='"+goalDate+"' AND cycle='"+cycle+"'";
rs.executeSql(sql);
//目标Group表中插入一条记录
sql = "INSERT INTO BPMGoalGroup (id,goalName,objId,goalType,goalDate,cycle,status,requestid) VALUES ("+goalGroupId+",'"+goalGroupName+"',"+objId+",'"+goalType+"','"+goalDate+"','"+cycle+"','2',"+requestid+")";
rs.executeSql(sql);
}
redirectUrl ="/hrm/performance/goal/myGoalListIframe.jsp";
//退回提交===========================
}else if(operation.equals("goalSubmit2")){
objId = ((Integer)SessionOper.getAttribute(session,"objId")).intValue();
goalType = (String)SessionOper.getAttribute(session,"goalType");
goalDate = (String)SessionOper.getAttribute(session,"goalDate");
cycle = (String)SessionOper.getAttribute(session,"cycle");
int requestId = 0;
int groupId = Util.getIntValue(request.getParameter("groupId"));
sql = "SELECT id FROM BPMGoalGroup WHERE objId="+objId+" AND goalType='"+goalType+"' AND goalDate='"+goalDate+"' AND cycle='"+cycle+"'";
rs.executeSql(sql);
if(rs.next()){
groupId = rs.getInt("id");
}
sql = "SELECT requestid FROM BillBPMApproveGoal WHERE paraId="+groupId+"";
rs.executeSql(sql);
if(rs.next()){
requestId = rs.getInt("requestId");
//更新目标表的groupId
sql = "UPDATE HrmPerformanceGoal SET groupId="+groupId+" WHERE objId="+objId+" AND goalType='"+goalType+"' AND goalDate='"+goalDate+"' AND cycle='"+cycle+"'";
rs.executeSql(sql);
}
redirectUrl ="/workflow/request/BillBPMApproveGoalOperation.jsp?fromWhere=goalList&requestid="+requestId+"";
//目标分解===========================
}else if(operation.equals("goalBreak")){
//目标编辑===========================
}else if(operation.equals("goalEdit")){
goalId = Util.getIntValue(request.getParameter("id"));
//编辑已发布的目标时
//保存变更记录-----------------------------------------
boolean saveRevision = Util.null2String(request.getParameter("saveRevision")).equals("1") ? true : false;
if(saveRevision){
//rs.executeSql("INSERT INTO HrmKPIRevision (goalId,operator,operateTime,operateType,clientIP) VALUES ("+goalId+","+user.getUID()+",'"+currentTime+"','0','"+clientIP+"')");
//详细----------------------------------------------
String _goalName = "";
String _goalCode = "";
int _parentId = 0;
int _typeT = 0;
String _startDate="", _endDate="";
String _property = "";
String _unit = "";
String _targetValue="", _previewValue="";
String _memo = "";
String _percentN = "";
rs.executeSql("SELECT * FROM HrmPerformanceGoal WHERE id="+goalId+"");
if(rs.next()){
_goalName = rs.getString("goalname");
_goalCode = rs.getString("goalCode");
_parentId = rs.getInt("parentid");
_typeT = rs.getInt("type_t");
_startDate = rs.getString("startdate");
_endDate = rs.getString("enddate");
_property = rs.getString("property");
_unit = rs.getString("unit");
_targetValue = rs.getString("targetValue");
_previewValue = rs.getString("previewValue");
_memo = rs.getString("memo");
_percentN = rs.getString("percent_n");
}
String sqlPrefix = "INSERT INTO HrmKPIRevisionDetail (goalId,operator,operateTime,operateType,clientIP,fieldName,originalValue,updatedValue) VALUES ("+goalId+","+user.getUID()+",'"+currentTime+"','0','"+clientIP+"',";
String sqlTemp = "";
if(!goalName.equals(_goalName)){
sqlTemp = "'goalName','"+_goalName+"','"+goalName+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(!goalCode.equals(_goalCode)){
sqlTemp = "'goalCode','"+_goalCode+"','"+goalCode+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(parentId!=_parentId){
sqlTemp = "'parentId','"+_parentId+"','"+parentId+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(type_t!=_typeT){
sqlTemp = "'type_t','"+_typeT+"','"+type_t+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(!startDate.equals(_startDate)){
sqlTemp = "'startDate','"+_startDate+"','"+startDate+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(!endDate.equals(_endDate)){
sqlTemp = "'endDate','"+_endDate+"','"+endDate+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(!goalProperty.equals(_property)){
sqlTemp = "'property','"+_property+"','"+goalProperty+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(!unit.equals(_unit)){
sqlTemp = "'unit','"+_unit+"','"+unit+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(!String.valueOf(targetValue).equals(_targetValue)){
sqlTemp = "'targetValue','"+_targetValue+"','"+targetValue+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(!String.valueOf(previewValue).equals(_previewValue)){
sqlTemp = "'previewValue','"+_previewValue+"','"+previewValue+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(!memo.equals(_memo)){
sqlTemp = "'memo','"+_memo+"','"+memo+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
if(!percent_n.equals(_percentN)){
sqlTemp = "'percent_n','"+_percentN+"','"+percent_n+"')";
rs.executeSql(sqlPrefix + sqlTemp);
}
}
String _sql = "SELECT a.id,a.status FROM BPMGoalGroup a,HrmPerformanceGoal b where a.objid = b.objid and a.goalDate = b.goalDate and a.goalType = b.goalType and a.cycle = b.cycle and b.id= "+goalId;
rs.executeSql(_sql);
if(rs.next() && rs.getInt(2)==3){ //如果总的目标已发布 子项则需再审批
if(isApproved.equals("true")){
rs.executeSql("UPDATE HrmPerformanceGoal SET modifyStatus='2',modifyUser="+user.getUID()+" WHERE id="+goalId+"");
rs.executeSql("INSERT INTO HrmKPIRevisionLog SELECT * FROM HrmPerformanceGoal WHERE id="+goalId+"");
rs.executeSql("INSERT INTO HrmKPIRevision (goalId,operator,operateTime,operateType,clientIP) VALUES ("+goalId+","+user.getUID()+",'"+currentTime+"','2','"+clientIP+"')");
}
}
//update基本信息-----------------------------------------
if(goalProperty.equals("0")){
targetValue = 0;
previewValue = 0;
}
sql = "UPDATE HrmPerformanceGoal SET goalName='"+goalName+"', goalCode='"+goalCode+"', parentId="+parentId+", goalDate='"+goalDate+"', type_t="+type_t+", startDate='"+startDate+"', endDate='"+endDate+"', cycle='"+cycle+"', property='"+goalProperty+"', unit='"+unit+"', targetValue="+targetValue+", previewValue="+previewValue+", memo='"+memo+"', percent_n='"+percent_n+"' WHERE id="+goalId+"";
rs.executeSql(sql);
//update评分标准-----------------------------------------
sql = "DELETE FROM HrmPerformanceGoalStd WHERE goalId="+goalId+"";
rs.executeSql(sql);
int rownum = Util.getIntValue(request.getParameter("rownum"));
String stdName = "";
int point = 0;
for(int i=0;i<rownum;i++){
stdName = Util.null2String(request.getParameter("stdName_"+i));
point = Util.getIntValue(request.getParameter("point_"+i),0);
sql = "INSERT INTO HrmPerformanceGoalStd (goalId,stdName,point) VALUES ("+goalId+",'"+stdName+"',"+point+")";
//out.println(sql);
rs.executeSql(sql);
}
redirectUrl = "myGoalView.jsp?id="+goalId+"";
//目标导入指标库===========================
}else if(operation.equals("exportToTarget")){
int targetDetailId = 0;
String goalIds = Util.null2String(request.getParameter("goalIds"));
String[] arrayGoalIds = Util.TokenizerString2(goalIds,",");
for(int i=0;i<arrayGoalIds.length;i++){
targetDetailId = GoalUtil.getTargetDetailMaxId();
sql = "INSERT INTO HrmPerformanceTargetDetail (id,targetId,targetName,targetCode,type_l,cycle,type_t,unit,targetValue,previewValue,memo) SELECT "+targetDetailId+",type_t,goalName,goalCode,goalType,cycle,property,unit,targetValue,previewValue,memo FROM HrmPerformanceGoal WHERE id="+arrayGoalIds[i]+"";
//out.println(sql);
rs.executeSql(sql);
//评分标准
sql = "INSERT INTO HrmPerformanceTargetStd (targetDetailId,stdName,point) SELECT "+targetDetailId+",stdName,point FROM HrmPerformanceGoalStd WHERE goalId="+arrayGoalIds[i]+"";
//out.println(sql);
rs.executeSql(sql);
//TD3689
//added by hubo,2006-03-16
sql = "UPDATE HrmPerformanceGoal SET beExported='1' WHERE id="+arrayGoalIds[i]+"";
rs.executeSql(sql);
}
out.println("<script type='text/javascript'>alert('"+SystemEnv.getHtmlLabelName(18419,user.getLanguage())+"');history.back();</script>");
return;
//权重调整=================================
}else if(operation.equals("modifyPercent")){
String[] percentValues = request.getParameterValues("percent_n");
String[] percentIDs = request.getParameterValues("percent_id");
for(int i=0;i<percentIDs.length;i++){
sql = "UPDATE HrmPerformanceGoal SET percent_n='"+percentValues[i]+"' WHERE id="+Util.getIntValue(percentIDs[i])+"";
rs.executeSql(sql);
//out.println(sql);
}
redirectUrl = "myGoalListIframe.jsp";
//目标删除==================================
}else if(operation.equals("delete")){
goalId = Util.getIntValue(request.getParameter("id"));
String _sql = "SELECT a.id,a.status FROM BPMGoalGroup a,HrmPerformanceGoal b where a.objid = b.objid and a.goalDate = b.goalDate and a.goalType = b.goalType and a.cycle = b.cycle and b.id= "+goalId;
boolean candelete = true;
rs.executeSql(_sql);
if(rs.next()){ //如果总的目标提交过审批 删除操作都需确认
candelete = false;
}
if(isApproved.equals("true") && !candelete){
sql = "UPDATE HrmPerformanceGoal SET modifyStatus='3' WHERE id="+goalId+"";
rs.executeSql(sql);
rs.executeSql("INSERT INTO HrmKPIRevision (goalId,operator,operateTime,operateType,clientIP) VALUES ("+goalId+","+user.getUID()+",'"+currentTime+"','3','"+clientIP+"')");
}else{
sql = "DELETE FROM HrmPerformanceGoal WHERE id="+goalId+"";
rs.executeSql(sql);
}
redirectUrl = "myGoalListIframe.jsp";
}
response.sendRedirect(redirectUrl);
%>