workplan_getfile.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@page import="cn.js.fan.util.*"%>
  3. <%@page import="cn.js.fan.web.Global"%>
  4. <%@page import="com.redmoon.oa.*"%>
  5. <%@page import="com.redmoon.oa.workplan.*"%>
  6. <%@page import="java.util.*"%>
  7. <%@page import="java.io.*"%>
  8. <%@page import="java.net.*"%>
  9. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  10. <jsp:useBean id="fsecurity" scope="page" class="cn.js.fan.security.SecurityUtil"/>
  11. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  12. <%
  13. String priv = request.getParameter("priv");
  14. if (priv==null)
  15. priv = "read";
  16. if (!privilege.isUserPrivValid(request, priv))
  17. {
  18. //response.setContentType("text/html;charset=gb2312"); 
  19. out.print("<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>");
  20. out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  21. return;
  22. }
  23. int workPlanId = ParamUtil.getInt(request, "workPlanId");
  24. int attId = ParamUtil.getInt(request, "attachId");
  25. WorkPlanDb td = new WorkPlanDb();
  26. td = td.getWorkPlanDb(workPlanId);
  27. Attachment att = td.getAttachment(attId);
  28. // 鐢ㄤ笅鍙ヤ細浣縄E鍦ㄦ湰绐楀彛涓