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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp"%>
  2. <%@ page import="java.util.Collection"%>
  3. <%@ page import="com.vnex.intranet.employee.value.*" %>
  4. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  5. <jsp:useBean id="employeeGroupProxy" scope="application" class="com.vnex.intranet.employee.proxy.EmployeeGroupProxyBean" />
  6. <%
  7.     EmployeeGroupValueBean bean = new EmployeeGroupValueBean();
  8.     bean.setGroupName(request.getParameter("groupName"));
  9.     bean.setEmpId(BusinessName.getEmpId());
  10.     System.out.println("empId="+BusinessName.getEmpId());
  11.     int result = employeeGroupProxy.createGroup(bean);
  12.     if(result == 0)
  13.     {
  14.        out.println("<script language='JavaScript'>");
  15.        out.println("alert("组别名称已经存在,请不要输入重复的名称")");
  16.        out.println("</script>");
  17.     }   
  18. %>
  19. <html>
  20. <head>
  21. <script language=javascript>
  22. function forward()
  23. {
  24. document.location = "/mainctrl/employeegroup/home";
  25. }
  26. </script>
  27. </head>
  28. <body onload="javascript:forward()">
  29. </body>
  30. <html>