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

电子政务应用

开发平台:

Java

  1. <%@ include file="/vnex/head.jsp"%>
  2. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  3. <%@ page import="java.util.*" %>
  4. <%@ page import="com.vnex.intranet.workflow.pub.value.*" %>
  5. <%@ page import="com.vnex.intranet.workflow.util.*" %>
  6. <%@ page import="com.vnex.intranet.util.StringUtil" %>
  7. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <jsp:useBean id="proxy" scope="session" class="com.vnex.intranet.workflow.taskpending.proxy.TaskPendingProxyBean" />
  10. <jsp:useBean id="taskPendingInfo" scope="session" class="com.vnex.intranet.workflow.taskpending.value.TaskPendingValueBean" />
  11. <jsp:useBean id="projectInfo" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean" />
  12. <jsp:useBean id="workflowFileInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.WorkflowFileValueBean" />
  13. <jsp:useBean id="routeInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
  14. <%
  15.     int workflowId = Integer.parseInt(request.getParameter("workflowId"));
  16.     int subtaskId = Integer.parseInt(request.getParameter("subtaskId"));
  17.     
  18.     int workflowtypeId = Integer.parseInt(request.getParameter("workflowtypeId"));
  19.     int subtasktypeId = Integer.parseInt(request.getParameter("subtasktypeId"));
  20.     
  21.     int querytype = -1;
  22.     if ( request.getParameter("querytype")!=null ) 
  23.        querytype = Integer.parseInt(request.getParameter("querytype"));
  24.     int execId = Integer.parseInt(request.getParameter("execId"));
  25.         
  26.     SubTaskValueBean sub = new SubTaskValueBean();
  27.     
  28.     taskPendingInfo = proxy.getPretaskDetailInfo(workflowId,workflowtypeId);
  29.     projectInfo = taskPendingInfo.getProjectInfo();
  30.     routeInfo = projectInfo.getRoute();                
  31.     session.setAttribute("routeInfo",routeInfo);
  32.     
  33.     ArrayList subs = routeInfo.getSubtaskList();
  34.     
  35. %>
  36. <script language=JavaScript>
  37. function acceptor(form)
  38. {
  39.   form.action="/mainctrl/taskpending/taskPendingProjectSummary?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=ExecutorStatus.AGREE%>&querytype=<%=querytype%>";
  40.   form.submit();
  41. }
  42. function refuse(form)
  43. {
  44.   form.action="/mainctrl/taskpending/taskPendingProjectSummary?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=ExecutorStatus.DISAGREE%>&querytype=<%=querytype%>";
  45.   form.submit();
  46. }
  47. function goback(form)
  48. {
  49.     form.action="/mainctrl/taskpending/taskPendingFinishList?querytype=<%=querytype%>";
  50.     form.submit();
  51. }
  52. </script>
  53. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  54. <HTML>
  55. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  56. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff 
  57. topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  58. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  59. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  60. <script language="JavaScript">
  61. window.onload=init
  62. </script>
  63. <DIV align=center>
  64. <form name="form1" method="post" action="">
  65.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  66.     <TBODY> 
  67.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  68.     <TR> 
  69.         <TD colSpan=3 align="center"><br>
  70.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  71.             <tr> 
  72.               <td align="center" colspan="2" bgcolor="#FFFFFF"> 
  73.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  74.                   <tr bgcolor="#666666"> 
  75.                      <td bgcolor="#666666"><font class="strongw">&nbsp;<a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;<a href="/mainctrl/taskpending/taskPendingFinishList"><font color="#FFFFFF">已办事宜</font></a>&gt;&gt;项目管理</font>
  76.                      </td>
  77.                   </tr>
  78.                 </table>  
  79.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  80.                           <tr bgcolor="#e0e0e0"> 
  81.                             <td width="20%"><strong>&nbsp;项目名称:</strong></td>
  82.                             <td><%=projectInfo.getTitle()%></td>
  83.                           </tr>
  84.                           <tr bgcolor="#fafafa"> 
  85.                             <td  width="20%"><strong>&nbsp;项目开始时间:</font></td>
  86.                             <td><%=projectInfo.getPlanBeginDateS()%></td>
  87.                           </tr>
  88.                           <tr bgcolor="#e0e0e0">  
  89.                             <td width="20%"><strong>&nbsp;计划结束时间:</strong></td>
  90.                             <td><%=projectInfo.getPlanEndDateS()%></td>
  91.                           </tr>
  92.                           <tr bgcolor="#fafafa"> 
  93.                             <td width="20%"><strong>&nbsp;项目描述:</strong></td>
  94.                             <td>
  95.                                 <%=projectInfo.getDescription()%>
  96.                             </td>
  97.                           </tr>
  98.                           <tr bgcolor="#e0e0e0"> 
  99.                             <td width="20%"><strong>&nbsp;基本相关文档:</strong></td>
  100.                             <td>
  101.                                 <vnex:fileList collection="<%=projectInfo.getFiles()%>"> 
  102.                                 <vnex:items>
  103.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  104.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  105.                                  </a><br>
  106.                                   </vnex:items> 
  107.                               </vnex:fileList>
  108.                             </td>
  109.                           </tr>
  110.                           </table>
  111.                           <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  112.                           <tr> 
  113.                             <td align="center"><strong>序号</strong></td>
  114.                             <td align="center"><strong>子任务名称</strong></td>
  115.                             <td align="center"><strong>执行者</strong></td>
  116.                             <td align="center"><strong>项目进展情况</strong></td>
  117.                             <td align="center"><strong>相关文档</strong></td>
  118.                             <td align="center"><strong>批复日期</strong></td>
  119.                           </tr>
  120. <%
  121.     for(int i = 0; i<subs.size(); i++)
  122.     {
  123.         sub = (SubTaskValueBean)subs.get(i);
  124.         
  125.         if( i%2 == 0) 
  126.         {             
  127. %>
  128.                   <tr bgcolor="#fafafa" align="center"> 
  129. <%}else{
  130. %>
  131.                   <tr bgcolor="#e0e0e0" align="center"> 
  132. <%}
  133. %>
  134.                             <td align="center"><a href="/mainctrl/taskpending/taskPendingFinishProjectDetail?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&csubtaskId=<%=sub.getSubtaskId()%>&subtasktypeId=<%=subtasktypeId%>&csubtasktypeId=<%=sub.getSubTypeId()%>&execId=<%=execId%>&querytype=<%=querytype%>"><%=sub.getSubStepNo()%></a></td>
  135.                             <td align="center"><%=sub.getSubTitle()%></td>
  136.                             <td align="center"><%=sub.getSubExecutorName("<br>")%></td>
  137.                             <td align="center"><a href="/mainctrl/taskpending/taskPendingFinishProjectSummaryDescription?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&csubtaskId=<%=sub.getSubtaskId()%>&subtasktypeId=<%=subtasktypeId%>&csubtasktypeId=<%=sub.getSubTypeId()%>&execId=<%=execId%>&querytype=<%=querytype%>"><%=sub.getSubStatusName()%></a></td>
  138.                             <td align="center">
  139.                             
  140.                               <vnex:fileList collection="<%=sub.getSubFiles()%>"> 
  141.                                 <vnex:items>
  142.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  143.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  144.                                  </a><br>
  145.                                   </vnex:items> 
  146.                               </vnex:fileList>
  147.                             <td align="center">
  148.                             <%
  149.                             if ( sub.getSubEndTimeS() != null && !sub.getSubEndTimeS().equals("") )
  150.                                out.println( StringUtil.getTimeChars( sub.getSubEndTimeS()+"", "day" ) ) ;
  151.                             else
  152.                                 out.println("无");
  153.                             %>
  154.                                 </td>
  155.                           </tr>
  156. <%
  157.     }//end for
  158. %>
  159.                          <tr bgcolor="#fafafa">
  160.                             <td colspan="6" align="center" height="30">
  161.                               <input type="button" name="Button" value="返回" onClick="goback(this.form)" class="text">
  162.                             </td>
  163.                          </tr>  
  164.                         </table>
  165.                     </td>
  166.                   </tr>
  167.                 </table>  
  168.  
  169. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  170. </TD>
  171.     </TR>
  172.        <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  173.     </TABLE>
  174.   <BR>
  175.      <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  176. </form></DIV>
  177. </BODY></HTML>