MoveDepartment.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:1k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" %>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>部门管理-- GForce OA 2.0</title>
  8. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  9. </HEAD>
  10. <%
  11. int iDepartmentID = 0;
  12. String strDirect="";
  13. Request m_request=new Request(request);
  14. iDepartmentID=m_request.GetInt("ID");
  15. strDirect=m_request.GetString("Direct");
  16. iDepartmentID = DepartmentManager.moveDepartment(iDepartmentID,strDirect);
  17. if(iDepartmentID>0)
  18. {
  19. %>
  20. <script language="JavaScript" type="text/JavaScript">
  21. alert("部门信息移动成功!");
  22. window.location="DepartmentManage.jsp";
  23. </script>
  24. <%
  25. }
  26. else if(iDepartmentID==-3)
  27. {
  28. %>
  29. <script language="JavaScript" type="text/JavaScript">
  30. alert("要移动的部门不存在,移动失败!");
  31. history.back();
  32. </script>
  33. <%
  34. }
  35. else
  36. {
  37. %>
  38. <script language="JavaScript" type="text/JavaScript">
  39. alert("未知错误,修改失败,请与管理员联系!<%=iDepartmentID%>");
  40. history.back();
  41. </script>
  42. <%
  43. }
  44. %>
  45. </HTML>