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

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html;charset=gb2312" %>
  2. <%@ page import="java.util.*,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. ApproveRecordInfoManager ARI_manager = new ApproveRecordInfoManager();
  12. DocFieldsValueManager DFV_manager = new DocFieldsValueManager();
  13. DocumentManagerPlus DMP_manager = new DocumentManagerPlus();
  14. int iARI_ID = 0;
  15. int iDFV_ID = 0;
  16. Request m_request = new Request(request);
  17. int iSysDirID = m_request.GetInt("SysDirID");
  18. String strUserID = m_session.GetString("UserID");
  19. String strDocumentID = m_request.GetString("ID");
  20. String strDocTempletID = m_request.GetString("DocTempletID");
  21. String strCurrentTache = m_request.GetString("CurrentTache");
  22. String strNextTache = m_request.GetString("FT_select");
  23. java.util.Date t_Date = new java.util.Date();
  24. String ApproveTime = StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss");
  25. String ApproveFromIP = request.getRemoteAddr();
  26. Vector DTField_vt = DocTempletFieldsManager.getRecordBySearch("","","","","","","","","","","","True","","",strDocTempletID,"","","","OrderNumber","");
  27. iARI_ID = ARI_manager.InsertApproveInfo(strCurrentTache,strDocumentID,strUserID,ApproveTime,ApproveFromIP,"0");
  28. Vector ARI_vt = ARI_manager.getRecordBySearch("",strCurrentTache,"",strDocumentID,"",strUserID,"","","",ApproveTime,ApproveFromIP,"","","");
  29. if (ARI_vt.size()==1)
  30. {
  31.   for (int i=0;i<DTField_vt.size();i++)
  32.   {
  33.     if ((("," + ((Vector)DTField_vt.get(i)).get(9).toString() + ",").indexOf("," + strUserID + ",")>=0))
  34.     {
  35.       String DocTempletFieldsID = ((Vector)DTField_vt.get(i)).get(0).toString();
  36.       String FieldValue = m_request.GetString(((Vector)DTField_vt.get(i)).get(3).toString());
  37.       DFV_manager.InsertFieldValue(strDocumentID,DocTempletFieldsID,FieldValue,((Vector)ARI_vt.get(0)).get(0).toString());
  38.     }
  39.   }
  40.   if (!(strCurrentTache.equalsIgnoreCase(strNextTache)))
  41.   {
  42.    DMP_manager.MoveFlow(strDocumentID,strNextTache);
  43.   }
  44. %>
  45. <script language="JavaScript" type="text/JavaScript">
  46. alert("公文处理成功!");
  47. window.location="DocumentProcessManage.jsp?SysDirID=<%=iSysDirID%>";
  48. </script>
  49. <%
  50. }
  51. else
  52. {
  53. %>
  54. <script language="JavaScript" type="text/JavaScript">
  55. alert("审批信息保存错误,提交操作失败!");
  56. history.back();
  57. </script>
  58. <%
  59. }
  60. %>
  61. </HTML>