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

电子政务应用

开发平台:

Java

  1. <%@ include file="/vnex/head.jsp"%>
  2. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  3. <%@ page import="com.vnex.intranet.workflow.util.WorkFlowStatus" %>
  4. <%@ page import="com.vnex.intranet.workflow.util.SubTaskStatus" %>
  5. <%@ page import="com.vnex.intranet.workflow.util.ExecutorStatus" %>
  6. <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
  7. <%@ page import="com.vnex.intranet.workflow.util.SubTaskType" %>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <%
  10.       int workflowId = Integer.parseInt(request.getParameter("workflowId"));
  11.         int subtaskId = Integer.parseInt(request.getParameter("subtaskId"));
  12.         int workflowtypeId = Integer.parseInt(request.getParameter("workflowtypeId"));
  13.         int subtasktypeId = Integer.parseInt(request.getParameter("subtasktypeId"));
  14.         int execId = Integer.parseInt(request.getParameter("execId"));        
  15.                           
  16.         String link = "";
  17.         
  18.         switch(workflowtypeId)
  19.         {
  20.             case WorkFlowType.PROJECT:
  21.                  switch(subtasktypeId)
  22.                  {
  23.                     case SubTaskType.EXAMINE:
  24.                        link = "/mainctrl/taskpending/taskPendingFinishProject?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  25.                          break;
  26.                     case SubTaskType.EXECUTE:
  27.                        link = "/mainctrl/taskpending/taskPendingFinishProject?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  28.                          break;
  29.                     case SubTaskType.PASS_ROUND:
  30.                        link = "/mainctrl/taskpending/taskPendingFinishProject?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  31.                          break;
  32.                  }
  33.                  break;
  34.                                           
  35.             case WorkFlowType.DOCUMENT:
  36.                  
  37.                  switch(subtasktypeId)
  38.                  {
  39.                     case SubTaskType.EXAMINE:
  40.                        link = "/mainctrl/taskpending/taskPendingFinishDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  41.                          break;
  42.                     case SubTaskType.EXECUTE:
  43.                        link = "/mainctrl/taskpending/taskPendingFinishDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  44.                          break;
  45.                     case SubTaskType.PASS_ROUND:
  46.                        link = "/mainctrl/taskpending/taskPendingFinishDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  47.                          break;
  48.                  }
  49.                  break;
  50.             case WorkFlowType.PERSONAL:
  51.                  
  52.                  switch(subtasktypeId)
  53.                  {
  54.                     case SubTaskType.EXAMINE:
  55.                        link = "/mainctrl/taskpending/taskPendingFinishDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  56.                          break;
  57.                     case SubTaskType.EXECUTE:
  58.                        link = "/mainctrl/taskpending/taskPendingFinishDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  59.                          break;
  60.                     case SubTaskType.PASS_ROUND:
  61.                        link = "/mainctrl/taskpending/taskPendingFinishDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  62.                          break;
  63.                  }
  64.                  break;
  65.                  
  66.             case WorkFlowType.APPLY:
  67.                  
  68.                  switch(subtasktypeId)
  69.                  {
  70.                     case SubTaskType.EXAMINE:
  71.                        link = "/mainctrl/taskpending/taskPendingFinishApply?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  72.                          break;
  73.                     case SubTaskType.EXECUTE:
  74.                        link = "/mainctrl/taskpending/taskPendingFinishApply?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  75.                          break;
  76.                     case SubTaskType.PASS_ROUND:
  77.                        link = "/mainctrl/taskpending/taskPendingFinishApply?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  78.                          break;
  79.                  }
  80.                  break;                 
  81.             case WorkFlowType.CONFERENCE:
  82.                  
  83.                  switch(subtasktypeId)
  84.                  {
  85.                     case SubTaskType.EXAMINE:
  86.                        link = "/mainctrl/taskpending/taskPendingFinishConference?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  87.                          break;
  88.                     case SubTaskType.CANCEL:
  89.                        link = "/mainctrl/taskpending/taskPendingFinishConference?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  90.                          break;
  91.                  }
  92.                  break;
  93.         }
  94. %>
  95. <jsp:forward page="<%= link %>" />