📄 delete_position.jsp
字号:
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.organization.value.*"%>
<%@ page import="com.vnex.intranet.organization.proxy.*"%>
<jsp:useBean id="positionProxyBean" scope="Application" class="com.vnex.intranet.organization.proxy.PositionProxyBean" />
<%
int did = Integer.parseInt(request.getParameter("id"));
int divid = Integer.parseInt(request.getParameter("divid"));
String divisionName = request.getParameter("dname");
ArrayList dparray = (ArrayList)positionProxyBean.getPrivilegesByDuty(did);
if (dparray!=null)
{
int[] idsremove = new int[dparray.size()];
for(int j=0;j<dparray.size();j++)
{
idsremove[j] = ((PrivilegeValueBean)dparray.get(j)).getPrivilegeId();
}
positionProxyBean.removePrivileges(idsremove,did);
}
positionProxyBean.removeDuty(did);
String link="/mainctrl/organization/getAllPosition?id="+divid + "&name=" + divisionName;
%>
<jsp:forward page="<%=link%>" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -