DocumentProcessAction.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:3k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html;charset=gb2312" %>
- <%@ page import="java.util.*,com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>公文处理 -- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- </head>
- <%
- ApproveRecordInfoManager ARI_manager = new ApproveRecordInfoManager();
- DocFieldsValueManager DFV_manager = new DocFieldsValueManager();
- DocumentManagerPlus DMP_manager = new DocumentManagerPlus();
- int iARI_ID = 0;
- int iDFV_ID = 0;
- Request m_request = new Request(request);
- int iSysDirID = m_request.GetInt("SysDirID");
- String strUserID = m_session.GetString("UserID");
- String strDocumentID = m_request.GetString("ID");
- String strDocTempletID = m_request.GetString("DocTempletID");
- String strCurrentTache = m_request.GetString("CurrentTache");
- String strNextTache = m_request.GetString("FT_select");
- java.util.Date t_Date = new java.util.Date();
- String ApproveTime = StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss");
- String ApproveFromIP = request.getRemoteAddr();
- Vector DTField_vt = DocTempletFieldsManager.getRecordBySearch("","","","","","","","","","","","True","","",strDocTempletID,"","","","OrderNumber","");
- iARI_ID = ARI_manager.InsertApproveInfo(strCurrentTache,strDocumentID,strUserID,ApproveTime,ApproveFromIP,"0");
- Vector ARI_vt = ARI_manager.getRecordBySearch("",strCurrentTache,"",strDocumentID,"",strUserID,"","","",ApproveTime,ApproveFromIP,"","","");
- if (ARI_vt.size()==1)
- {
- for (int i=0;i<DTField_vt.size();i++)
- {
- if ((("," + ((Vector)DTField_vt.get(i)).get(9).toString() + ",").indexOf("," + strUserID + ",")>=0))
- {
- String DocTempletFieldsID = ((Vector)DTField_vt.get(i)).get(0).toString();
- String FieldValue = m_request.GetString(((Vector)DTField_vt.get(i)).get(3).toString());
- DFV_manager.InsertFieldValue(strDocumentID,DocTempletFieldsID,FieldValue,((Vector)ARI_vt.get(0)).get(0).toString());
- }
- }
- if (!(strCurrentTache.equalsIgnoreCase(strNextTache)))
- {
- DMP_manager.MoveFlow(strDocumentID,strNextTache);
- }
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("公文处理成功!");
- window.location="DocumentProcessManage.jsp?SysDirID=<%=iSysDirID%>";
- </script>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("审批信息保存错误,提交操作失败!");
- history.back();
- </script>
- <%
- }
- %>
- </HTML>