add2_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. <jsp:useBean id="bean" scope="request" class="com.vnex.intranet.employee.value.EmployeeXValueBean" />
  6. <% 
  7.     int groupId = Integer.parseInt(request.getParameter("groupId"));
  8.     String[] ids = request.getParameterValues("employeeId");
  9.     if(ids != null)
  10.     {
  11.        for(int i=0;i<ids.length;i++)
  12.        {
  13.           EmployeeXValueBean xbean = new EmployeeXValueBean();
  14.           xbean.setEmpId(Integer.parseInt(ids[i]));
  15.           xbean.setGroupId(groupId);
  16.           employeeGroupProxy.addMember(xbean);
  17.        }
  18.     }
  19. %>
  20. <html>
  21. <head>
  22. <script language=javascript>
  23. function forward()
  24. {
  25. document.location = "/mainctrl/employeegroup/detail?groupId=<%=groupId%>&backStart=<%=request.getParameter("backStart")%>";
  26. }
  27. </script>
  28. </head>
  29. <body onload="javascript:forward()">
  30. </body>
  31. <html>  
  32.