ShowDocumentTemplet.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:1k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin1.jsp" flush="true"/>
- <%
- Session m_session = new Session(session);
- Request m_request = new Request(request);
- int iSysDirID = m_request.GetInt("SysDirID");
- int iDocumentTempletID = m_request.GetInt("ID");
- if(iDocumentTempletID <1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert(",请与管理员联系!");
- window.close();
- </script>
- <%
- }
- else
- {
- Vector vt = DocumentTempletManager.getRecordByID(iDocumentTempletID);
- if(vt.size()==1)
- {
- if(((Vector)vt.get(0)).get(11).toString().equalsIgnoreCase(iSysDirID + ""))
- {
- out.println(((Vector)vt.get(0)).get(10).toString());
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("您没有权限查看此记录!");
- window.close();
- </script>
- <%
- }
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限查看此记录!");
- window.close();
- </script>
- <%
- }
- }
- %>