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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "com.redmoon.oa.flow.*"%>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  10. <title>修改流程1</title>
  11. <link href="common.css" rel="stylesheet" type="text/css">
  12. <%@ include file="inc/nocache.jsp"%>
  13. <style type="text/css">
  14. <!--
  15. .style2 {font-size: 14px}
  16. -->
  17. </style>
  18. </head>
  19. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  20. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  21. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  22. <%
  23. String priv="read";
  24. if (!privilege.isUserPrivValid(request,priv))
  25. {
  26. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  27. return;
  28. }
  29. try {
  30. int flow_id = ParamUtil.getInt(request, "flowId");
  31. String typeCode = ParamUtil.get(request, "typeCode");
  32. String title = ParamUtil.get(request, "title");
  33. WorkflowMgr wm = new WorkflowMgr();
  34. WorkflowDb wf = wm.getWorkflowDb(flow_id);
  35. wf.setTypeCode(typeCode);
  36. wf.setTitle(title);
  37. if (wf.save())
  38. {
  39. com.redmoon.oa.Config cfg = new com.redmoon.oa.Config();
  40. String canUserModifyFlow = cfg.get("canUserModifyFlow");
  41. if (canUserModifyFlow.equals("true"))
  42. // response.sendRedirect("flow_initiate2_notmodifyform.jsp?op=edit&id=" + wf.getDocId() + "&work=modify&flowId=" + flow_id);
  43. response.sendRedirect("flow_modify3.jsp?flowId=" + flow_id);
  44. else {
  45. out.print(StrUtil.Alert_Back("修改成功!"));
  46. }
  47. }
  48. else
  49. out.print(StrUtil.Alert_Back("修改流程失败!"));
  50. }
  51. catch (ErrMsgException e) {
  52. out.print(fchar.Alert_Back(e.getMessage()));
  53. }
  54. %>
  55. </body>
  56. </html>