create_employee_group.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp"%>
- <%@ page import="java.util.Collection"%>
- <%@ page import="com.vnex.intranet.employee.value.*" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="employeeGroupProxy" scope="application" class="com.vnex.intranet.employee.proxy.EmployeeGroupProxyBean" />
- <%
- EmployeeGroupValueBean bean = new EmployeeGroupValueBean();
- bean.setGroupName(request.getParameter("groupName"));
- bean.setEmpId(BusinessName.getEmpId());
- System.out.println("empId="+BusinessName.getEmpId());
- int result = employeeGroupProxy.createGroup(bean);
- if(result == 0)
- {
- out.println("<script language='JavaScript'>");
- out.println("alert("组别名称已经存在,请不要输入重复的名称")");
- out.println("</script>");
- }
- %>
- <html>
- <head>
- <script language=javascript>
- function forward()
- {
- document.location = "/mainctrl/employeegroup/home";
- }
- </script>
- </head>
- <body onload="javascript:forward()">
- </body>
- <html>