flow_getfile.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=gb2312"%><%@page import="cn.js.fan.util.*"%><%@page import="cn.js.fan.web.Global"%><%@page import="com.redmoon.oa.*"%><%@page import="com.redmoon.oa.flow.*"%><%@page import="java.util.*"%><%@page import="java.io.*"%><%@page import="java.net.*"%><jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/><jsp:useBean id="fsecurity" scope="page" class="cn.js.fan.security.SecurityUtil"/><jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/><%
- String priv = request.getParameter("priv");
- if (priv==null)
- priv = "read";
- if (!privilege.isUserPrivValid(request, priv))
- {
- //response.setContentType("text/html;charset=gb2312");
- out.print("<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>");
- out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
- return;
- }
- int flowId = ParamUtil.getInt(request, "flowId");
- int attId = ParamUtil.getInt(request, "attachId");
- WorkflowDb wf = new WorkflowDb();
- wf = wf.getWorkflowDb(flowId);
- Document doc = new Document();
- doc = doc.getDocument(wf.getDocId());
- Attachment att = doc.getAttachment(1, attId);
- // response.setContentType(MIMEMap.get(StrUtil.getFileExt(att.getDiskName())));
- // 婵炶揪绲介悘婵嬵敇瑜版帒绠e