task_pending_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.         session.removeAttribute("click");
  11.         System.out.println("jianjianjianjian==="+request.getParameter("workflowId"));
  12.       int workflowId = Integer.parseInt(request.getParameter("workflowId"));
  13.         int subtaskId = Integer.parseInt(request.getParameter("subtaskId"));
  14.         int workflowtypeId = Integer.parseInt(request.getParameter("workflowtypeId"));
  15.         int subtasktypeId = Integer.parseInt(request.getParameter("subtasktypeId"));
  16.         int execId = Integer.parseInt(request.getParameter("execId"));        
  17.                           
  18.         String link = "";
  19.         
  20.         switch(workflowtypeId)
  21.         {
  22.             case WorkFlowType.PROJECT:
  23.                  switch(subtasktypeId)
  24.                  {
  25.                     case SubTaskType.EXAMINE:
  26.                        link = "/mainctrl/taskpending/taskPendingExamineProject?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  27.                          break;
  28.                     case SubTaskType.EXECUTE:
  29.                        link = "/mainctrl/taskpending/taskPendingExecuteProject?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  30.                          break;
  31.                     case SubTaskType.PASS_ROUND:
  32.                        link = "/mainctrl/taskpending/taskPendingExecuteProject?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  33.                          break;
  34.                  }
  35.                  break;
  36.                                           
  37.             case WorkFlowType.DOCUMENT:
  38.                  
  39.                  switch(subtasktypeId)
  40.                  {
  41.                     case SubTaskType.EXAMINE:
  42.                        link = "/mainctrl/taskpending/taskPendingExamineDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  43.                          break;
  44.                     case SubTaskType.EXECUTE:
  45.                        link = "/mainctrl/taskpending/taskPendingExecuteDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  46.                          break;
  47.                     case SubTaskType.PASS_ROUND:
  48.                        link = "/mainctrl/taskpending/taskPendingExecuteDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  49.                          break;
  50.                  }
  51.                  break;
  52.             case WorkFlowType.PERSONAL:
  53.                  
  54.                  switch(subtasktypeId)
  55.                  {
  56.                     case SubTaskType.EXAMINE:
  57.                        link = "/mainctrl/taskpending/taskPendingExamineDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  58.                          break;
  59.                     case SubTaskType.EXECUTE:
  60.                        link = "/mainctrl/taskpending/taskPendingExecuteDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  61.                          break;
  62.                     case SubTaskType.PASS_ROUND:
  63.                        link = "/mainctrl/taskpending/taskPendingExecuteDoc?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  64.                          break;
  65.                  }
  66.                  break;
  67.                  
  68.             case WorkFlowType.APPLY:
  69.                  
  70.                  switch(subtasktypeId)
  71.                  {
  72.                     case SubTaskType.EXAMINE:
  73.                        link = "/mainctrl/taskpending/taskPendingExamineApply?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  74.                          break;
  75.                     case SubTaskType.EXECUTE:
  76.                        link = "/mainctrl/taskpending/taskPendingExecuteApply?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  77.                          break;
  78.                     case SubTaskType.PASS_ROUND:
  79.                        link = "/mainctrl/taskpending/taskPendingExecuteApply?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  80.                          break;
  81.                  }
  82.                  break;                 
  83.             case WorkFlowType.CONFERENCE:
  84.                  
  85.                  switch(subtasktypeId)
  86.                  {
  87.                     case SubTaskType.EXAMINE:
  88.                        link = "/mainctrl/taskpending/taskPendingConference?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  89.                          break;
  90.                     case SubTaskType.CANCEL:
  91.                        link = "/mainctrl/taskpending/taskPendingConferenceCancel?workflowId="+workflowId+"&workflowtypeId="+workflowtypeId+"&subtaskId="+subtaskId+"&subtasktypeId="+subtasktypeId+"&execId="+execId;
  92.                          break;
  93.                  }
  94.                  break;
  95.         }
  96. %>
  97. <jsp:forward page="<%= link %>" />