Project_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. <%@ page import="com.vnex.intranet.workflow.util.SubTaskStatus" %>
  4. <%@ taglib uri="/vnex_workflow.tld" prefix="workflow" %>
  5. <%@ page import="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean" %>
  6. <jsp:useBean id="pvb" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean"/>
  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. System.out.println("subtaskValueBean.getHourS()"+subtaskValueBean.getHourS());
  13.      pvb = ( PmValueBean )session.getAttribute( "pvb" );
  14.      routeValueBean = pvb.getRoute(); 
  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.      pvb.setRoute( routeValueBean );
  26.     
  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/projectmanagement/subtaskcreate?flag=docModify" />
  34. <%      }  
  35.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "false" ) )
  36.         {
  37. %> 
  38. <jsp:forward page="/mainctrl/projectmanagement/modifyproject?comeback=1&?flag=routeCreate" />
  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/projectmanagement/subtaskcreate?flag=docCreate" />
  49. <%      }  
  50.         if( request.getParameter("goon") != null && request.getParameter("goon").equals( "false" ) )
  51.         {
  52. %> 
  53. <jsp:forward page="/mainctrl/projectmanagement/createproject" />
  54. <%
  55.         }
  56.      }   
  57. %>