Delete_position.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ 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%>" />