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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="cn.js.fan.util.*"%>
  3. <%@ page import="com.redmoon.oa.flow.*"%>
  4. <link href="common.css" rel="stylesheet" type="text/css">
  5. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  6. <%
  7. String priv="read";
  8. if (!privilege.isUserPrivValid(request,priv))
  9. {
  10. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  11. return;
  12. }
  13. String flowString = ParamUtil.get(request, "flowString");
  14. int flowId = ParamUtil.getInt(request, "flowId");
  15. WorkflowMgr wfm = new WorkflowMgr();
  16. WorkflowDb wf = wfm.getWorkflowDb(flowId);
  17. boolean returnBack = ParamUtil.getBoolean(request, "returnBack", false); 
  18. try {
  19. wf.createFromString(flowString);
  20. wf.setReturnBack(returnBack);
  21. wf.save();
  22. }
  23. catch (ErrMsgException e) {
  24. out.print(StrUtil.Alert_Back(e.getMessage()));
  25. }
  26. response.sendRedirect("flow_dispose.jsp?flowId=" + flowId);
  27. if (true)
  28. return;
  29. %>
  30. <table width="98%" height="89" border="0" align="center" cellpadding="0" cellspacing="0" class="tableframe">
  31.   <tr>
  32.     <td width="100%" height="23" valign="bottom" background="images/top-right.gif" class="right-title">&nbsp;&nbsp;<span>流程向导 (预览流程)</span></td>
  33.   </tr>
  34.   <tr>
  35.     <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
  36.         <tr>
  37.           <td align="center">
  38.     <OBJECT ID="Designer" CLASSID="CLSID:ADF8C3A0-8709-4EC6-A783-DD7BDFC299D7" codebase="<%=request.getContextPath()%>/activex/Designer.CAB" width=740 height=338>
  39.               <param name="Workflow" value="<%=flowString%>">
  40.               <param name="Mode" value="user"><!--debug user initiate complete-->
  41.               <param name="CurrentUser" value="<%=privilege.getUser(request)%>">
  42.           </OBJECT></td>
  43.         </tr>
  44.           <tr>
  45.             <td height="35" align="center">
  46. <input type="button" class="button1" onclick="window.location.href='flow_modify.jsp?flowId=<%=flowId%>'" value="修改流程"/>
  47. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  48. <input type=button class="button1" onClick="window.location.href='flow_dispose.jsp?flowId=<%=flowId%>'" value=" 办 理 ">
  49. <!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  50. &nbsp;
  51. <input name="button" type="button" class="button1" onclick="window.location.href='flow_monitor.jsp?flowId=<%=flowId%>'" value="指定流程监控人员" />
  52. -->
  53. </td>
  54.           </tr>
  55.           
  56.           <tr>
  57.             <td height="35" align="center"><!-- <strong class="p14">流 程 内 容<br />
  58.             </strong>
  59.               <%
  60. int doc_id = wf.getDocId();
  61. DocumentMgr dm = new DocumentMgr();
  62. Document doc = dm.getDocument(doc_id);
  63. %>
  64. <%=doc.getContent(1)%><br>
  65.               <br>
  66.               <%
  67.   if (doc!=null) {
  68.   java.util.Vector attachments = doc.getAttachments(1);
  69.   java.util.Iterator ir = attachments.iterator();
  70.   while (ir.hasNext()) {
  71.    Attachment am = (Attachment) ir.next(); %>
  72.               <table width="569"  border="0" cellspacing="0" cellpadding="0">
  73.                 <tr>
  74.                   <td width="91" align="right"><img src=images/attach.gif></td>
  75.                   <td width="478">&nbsp; <a target=_blank href="<%=am.getVisualPath() + "/" + am.getDiskName()%>"><%=am.getName()%></a> </td>
  76.                 </tr>
  77.               </table>
  78.             <%}
  79.   }
  80.   %>
  81.             <br>
  82.             <%if (doc.getType()==1) {
  83. String[] voptions = doc.getVoteOption().split("\|");
  84. int len = voptions.length; %>
  85.             <table width="100%" >
  86.               <form action="?op=vote" name=formvote method="post">
  87.                 <input type=hidden name=op value="vote">
  88.                 <input type=hidden name=id value="<%=doc.getID()%>">
  89.                 <%for (int k=0; k<len; k++) { %>
  90.                 <tr>
  91.                   <td width="5%"><%=k+1%>、 </td>
  92.                   <td width="73%"><input class="n" type=radio name=votesel value="<%=k%>">
  93.                       <%=voptions[k]%> </td>
  94.                   <td>&nbsp;</td>
  95.                 </tr>
  96.                 <% } %>
  97.                 <tr>
  98.                   <td colspan="2" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          </td>
  99.                   <td width="22%">&nbsp;</td>
  100.                 </tr>
  101.               </form>
  102.             </table>
  103.             <%}%>
  104.             <br>--></td>
  105.           </tr>
  106.     </table></td>
  107.   </tr>
  108. </table>