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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="cn.js.fan.module.cms.*"%>
  3. <%@ page import="cn.js.fan.util.*"%>
  4. <%@ page import="com.redmoon.oa.flow.*"%>
  5. <link href="common.css" rel="stylesheet" type="text/css">
  6. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  7. <%
  8. String priv="read";
  9. if (!privilege.isUserPrivValid(request,priv))
  10. {
  11. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  12. return;
  13. }
  14. int flow_id = ParamUtil.getInt(request, "flowId");
  15. WorkflowMgr wfm = new WorkflowMgr();
  16. boolean re = false;
  17. try {
  18. re = wfm.start(request, flow_id); // 在start中对flowString作了更改
  19. }
  20. catch (ErrMsgException e) {
  21. out.print(StrUtil.Alert_Back(e.getMessage()));
  22. return;
  23. }
  24. if (!re)
  25. out.print(StrUtil.Alert_Back("开始流程未成功!"));
  26. else {
  27. WorkflowDb wf = wfm.getWorkflowDb(flow_id);
  28. %>
  29. <table width="494" height="89" border="0" align="center" cellpadding="0" cellspacing="0" class="main">
  30.   <tr>
  31.     <td height="23" valign="bottom" class="right-title">&nbsp;&nbsp;<span>流程开始</span></td>
  32.   </tr>
  33.   <tr>
  34.     <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
  35.         <tr>
  36.           <td align="center">
  37.     <OBJECT ID="Designer" CLASSID="CLSID:ADF8C3A0-8709-4EC6-A783-DD7BDFC299D7" codebase="<%=request.getContextPath()%>/activex/Designer.CAB" width=740 height=338>
  38.               <param name="Workflow" value="<%=wf.getFlowString()%>">
  39.               <param name="Mode" value="user"><!--debug user initiate complete-->
  40.               <param name="CurrentUser" value="<%=privilege.getUser(request)%>">
  41.             </OBJECT>
  42.           </td>
  43.         </tr>
  44.     </table></td>
  45.   </tr>
  46.   <tr>
  47.     <td height="29" align="center"><span class="p14"><strong>流程开始了!</strong></span></td>
  48.   </tr>
  49. </table>
  50. <%}%>