delete_from_employee_group.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp"%>
  2. <%@ page import="java.util.Vector"%>
  3. <%@ page import="com.vnex.intranet.employee.value.EmployeeXValueBean" %>
  4. <jsp:useBean id="employeeGroupProxy" scope="application" class="com.vnex.intranet.employee.proxy.EmployeeGroupProxyBean" />
  5. <% 
  6.     int groupId = Integer.parseInt(request.getParameter("groupId"));
  7.     String[] ids = request.getParameterValues("empIds");
  8.     if(ids != null)
  9.     {
  10.        for(int i=0;i<ids.length;i++)
  11.        {
  12.           EmployeeXValueBean xbean = new EmployeeXValueBean();
  13.           xbean.setEmpId(Integer.parseInt(ids[i]));
  14.           xbean.setGroupId(groupId);
  15.           employeeGroupProxy.removeMember(xbean);
  16.        }
  17.     }
  18. %>
  19. <html>
  20. <head>
  21. <script language=javascript>
  22. function forward()
  23. {
  24. document.location = "/mainctrl/employeegroup/detail?groupId=<%=groupId%>&backStart=<%=request.getParameter("backStart")%>";
  25. }
  26. </script>
  27. </head>
  28. <body onload="javascript:forward()">
  29. </body>
  30. <html>  
  31.