CreateDocAction.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:2k
源码类别:
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>
- <%
- DocumentManagerPlus manager = new DocumentManagerPlus();
- int iDocID = 0;
- Request m_request = new Request(request);
- int iDocTempletMoveFlowID = m_request.GetInt("ID");
- int iSysDirID = m_request.GetInt("SysDirID");
- String strIPAddress=request.getRemoteAddr();
- int iUserID = m_session.GetInt("UserID");
- String strDocTempletTableName = m_request.GetString("DocTempletTableName");
- iDocID = DocumentManagerPlus.InsertRecord(iDocTempletMoveFlowID, iUserID, strIPAddress, strDocTempletTableName);
- if (iDocID > 0)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("公文成功起草,按“确定”进入填写页面!")
- self.location="DocumentProcess.jsp?SysDirID=<%=iSysDirID%>&ID=<%=iDocID%>";
- </script>
- <%
- }
- else if(iDocID == -101)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("没有找到您所要生成的公文,公文增加失败!");
- history.back();
- </script>
- <%
- }
- else if(iDocID == -102)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("没有生成此公文的权限,公文增加失败!");
- history.back();
- </script>
- <%
- }
- else if(iDocID == -104)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("此公文没有起始流程环节,公文增加失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("未知错误,生成失败,请与管理员联系!");
- history.back();
- </script>
- <%
- }
- %>
- </html>