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

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. Request t_request = new Request(request);
  12. int iUserID = m_session.GetInt("UserID");
  13. int iISAgreed = t_request.GetInt("ISAgreed");
  14. int iRecordID = t_request.GetInt("ID");
  15. String strContent = t_request.GetString("Content");
  16. String strApproveType = t_request.GetString("ApproveType");
  17. int intLeaveApplyID = 0;
  18. intLeaveApplyID = ApproveRecordManager.ExamineAndApprove(strApproveType,iRecordID,iUserID,iISAgreed,strContent);
  19. if(intLeaveApplyID>0)
  20. {
  21. %>
  22. <script language="JavaScript" type="text/JavaScript">
  23. alert("请假申请审批成功!");
  24. window.opener.location=window.opener.location;
  25. window.close();
  26. </script>
  27. <%
  28. }
  29. else if(intLeaveApplyID==-3)
  30. {
  31. %>
  32. <script language="JavaScript" type="text/JavaScript">
  33. alert("要修改的请假记录不存在,修改失败!");
  34. history.back();
  35. </script>
  36. <%
  37. }
  38. else if(intLeaveApplyID==-1)
  39. {
  40. %>
  41. <script language="JavaScript" type="text/JavaScript">
  42. alert("已经存在相同名称请假记录,修改失败!");
  43. history.back();
  44. </script>
  45. <%
  46. }
  47. else
  48. {
  49. %>
  50. <script language="JavaScript" type="text/JavaScript">
  51. alert("未知错误,修改失败,请与管理员联系!<%=intLeaveApplyID%>");
  52. history.back();
  53. </script>
  54. <%
  55. }
  56. %>
  57. </HTML>