Document_Route_Subtask_Save.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:3k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.workflow.pub.value.*" %>
  3. <%@ taglib uri="/vnex_workflow.tld" prefix="workflow" %>
  4. <%@ page import="com.vnex.intranet.workflow.document.value.*" %>
  5. <%@ page import="com.vnex.intranet.workflow.util.*" %>
  6. <jsp:useBean id="dsvb" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
  7. <jsp:useBean id="routeValueBean" scope="page" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <jsp:useBean id="subtaskValueBean" scope="page" class="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" />
  10. <jsp:setProperty name="subtaskValueBean" property="*" />
  11. <%  
  12.      dsvb = ( DocumentSendValueBean )session.getAttribute( "document" );    
  13.      routeValueBean = dsvb.getRoute(); 
  14.      
  15.      if ( request.getParameter("isNew") != null && request.getParameter("isNew").equals( "true" ) ) 
  16.      {
  17.          subtaskValueBean.setSubStatusId( SubTaskStatus.WAITING );
  18.          routeValueBean.addSubtask( subtaskValueBean );
  19.      }
  20.      else if( request.getParameter("isNew") != null && request.getParameter("isNew").equals( "false" ) )
  21.      {
  22.          routeValueBean.setSubtask( Integer.parseInt( request.getParameter( "subtaskId") ), subtaskValueBean );
  23.      }
  24.         
  25.      dsvb.setRoute( routeValueBean );     
  26.      session.setAttribute( "document", dsvb );
  27.      //修改发文
  28.      if( request.getParameter("flag") != null && request.getParameter("flag").equals( "docModify" ) ) 
  29.      {  //继续增加
  30.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "true" ) )
  31.         {
  32. %> 
  33. <jsp:forward page="/mainctrl/office/document/sentsubtaskcreate?isDocCreate=docModify" />
  34. <%      }  
  35.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "false" ) )
  36.         {
  37. %> 
  38. <jsp:forward page="/mainctrl/office/document/sentupdate?comeback=1&flag=routeModify" />
  39. <%
  40.         }
  41.      }
  42.      //创建发文 
  43.      if( request.getParameter("flag") != null && request.getParameter("flag").equals( "docCreate" ) ) 
  44.      {
  45.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "true" ) )
  46.         {
  47. %> 
  48. <jsp:forward page="/mainctrl/office/document/sentsubtaskcreate?flag=routeCreate&isDocCreate=docCreate" />
  49. <%      }  
  50.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "false" ) )
  51.         {
  52. %> 
  53. <jsp:forward page="/mainctrl/office/document/sentcreate" />
  54. <%
  55.         }
  56.      }   
  57. %>