CareerPlanInformOperation.jsp
1.28 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
<%@ page import="weaver.general.Util,
weaver.conn.RecordSet,
weaver.hrm.career.HrmCareerPlanInform" %>
<%@ page import="java.util.*" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%
int careerplanid = Util.getIntValue(request.getParameter("CareerPlanID"));
String cmd = Util.null2String(request.getParameter("cmd"));
String _status = Util.null2String(request.getParameter("_status"));
String principalid ="";
String topic ="";
RecordSet rs = new RecordSet();
String sql = "select * from HrmCareerPlan where id ="+careerplanid ;
rs.executeSql(sql);
while(rs.next()){
topic = Util.null2String(rs.getString("topic"));
principalid = Util.null2String(rs.getString("principalid"));
}
boolean haseditright = false ;
if( HrmUserVarify.checkUserRight("HrmCareerPlanEdit:Edit", user) || principalid.equals(""+user.getUID()))
haseditright = true ;
if(!haseditright){
response.sendRedirect("/notice/noright.jsp");
return;
}
HrmCareerPlanInform inform = new HrmCareerPlanInform(user ,careerplanid);
inform.setTopic(topic);
inform.informAll();
response.sendRedirect(cmd.equals("home")?"HrmCareerPlan.jsp?status="+_status:"HrmCareerPlanEdit.jsp?isdialog=1&id="+careerplanid);
%>