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="persondocbean" 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.      persondocbean = ( DocumentSendValueBean )session.getAttribute( "persondocument" );    
  13.      routeValueBean = persondocbean.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.      persondocbean.setRoute( routeValueBean );
  26.      
  27.      session.setAttribute( "persondocument", persondocbean );
  28.      //修改发文
  29.      if( request.getParameter("flag") != null && request.getParameter("flag").equals( "docModify" ) ) 
  30.      {  //继续增加
  31.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "true" ) )
  32.         {
  33. %> 
  34. <jsp:forward page="/mainctrl/personal/document/sentsubtaskcreate?isDocCreate=docModify" />
  35. <%      }  
  36.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "false" ) )
  37.         {
  38. %> 
  39. <jsp:forward page="/mainctrl/personal/document/sentupdate?comeback=1&flag=routeModify" />
  40. <%
  41.         }
  42.      }
  43.      //创建发文 
  44.      if( request.getParameter("flag") != null && request.getParameter("flag").equals( "docCreate" ) ) 
  45.      {
  46.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "true" ) )
  47.         {
  48. %> 
  49. <jsp:forward page="/mainctrl/personal/document/sentsubtaskcreate?isDocCreate=docCreate" />
  50. <%      }  
  51.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "false" ) )
  52.         {
  53. %> 
  54. <jsp:forward page="/mainctrl/personal/document/sentcreate" />
  55. <%
  56.         }
  57.      }   
  58. %>