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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="java.util.*" %>
  5. <%@ page import="com.vnex.intranet.util.*" %>
  6. <%@ page import="com.vnex.intranet.system.loader.*"%> 
  7. <%@ page import="com.vnex.intranet.upload.*"%> 
  8. <%@ page import="com.vnex.intranet.workflow.pub.value.*"%>
  9. <%@ page import="com.vnex.intranet.workflow.util.*"%>
  10. <%@ page import="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean"%>
  11. <%@ page import="com.vnex.intranet.workflow.loader.WorkflowLoader" %>
  12. <jsp:useBean id="pvb" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean"/>
  13. <jsp:useBean id="routeValueBean" scope="page" class="com.vnex.intranet.workflow.pub.value.RouteValueBean"/>
  14. <jsp:useBean id="pmProxy" scope="application" class="com.vnex.intranet.workflow.projectmanagement.proxy.PmProxyBean" />
  15. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  16. <%
  17.     java.sql.Timestamp current = new java.sql.Timestamp(System.currentTimeMillis());
  18.     boolean isDelay = false;
  19.     if( request.getParameter("return") != null && request.getParameter("return").equals( "true" ))
  20.     {
  21.         pvb = ( PmValueBean )session.getAttribute( "pvb" );
  22.     }
  23.     else
  24.     {    
  25.         pvb = pmProxy.getProjectDetail(Integer.parseInt(request.getParameter("workflowId")));    
  26.         session.setAttribute("pvb",pvb);
  27.     }    
  28.     routeValueBean = pvb.getRoute();  
  29.     session.setAttribute( "subtasks", routeValueBean );
  30.     ArrayList subtasks = routeValueBean.getSubtaskList();      
  31. %>
  32. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  33. <HTML>
  34. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  35. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  36. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  37. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  38. <script language="JavaScript" src="/vnex/validate.js"></script>
  39. <script language=JavaScript>
  40. function updateDoc(form)
  41. {
  42.    form.action="/mainctrl/projectmanagement/modifyproject";
  43.    form.submit();   
  44. }
  45. function sendDoc(form)
  46. {
  47.    form.action="/mainctrl/projectmanagement/startproject";
  48.    form.submit();   
  49. }
  50. function getBack(form)
  51. {
  52.    form.action="/mainctrl/projectmanagement/getbackproject";
  53.    form.submit();   
  54. }
  55. function deleteDoc(form)
  56. {
  57.     if( confirm( "确定要删除该项目?" ) )
  58.     { 
  59.         form.action="/mainctrl/projectmanagement/deleteproject";
  60.         form.submit(); 
  61.     }  
  62. }
  63. </script>
  64. <DIV align=center>
  65.   <form name="form1" method="post">
  66.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  67.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  68.     <TR> 
  69.         <TD colSpan=3 align="center">
  70.           <br><!--个人信息开始 -->
  71.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  72.             <tr bgcolor="#fafafa"> 
  73.               <td> 
  74.                 <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
  75.                   <tr bgcolor="#666666"> 
  76.                     <td colspan="76" height="15"><font class="strongw">&nbsp;<a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;<a href="/mainctrl/projectmanagement/projectlist"><font color="#FFFFFF">工程项目管理</font></a>&gt;&gt;<font color="#FFFFFF">项目详细信息</font> 
  77.                       </font></td>
  78.                   </tr>
  79.                   <tr> 
  80.                     <td width="150" bgcolor="#fafafa"><font class="strong">&nbsp;项目名称:</font></td>
  81.                     <td colspan="6" bgcolor="#fafafa"><%= pvb.getTitle() %></td>
  82.                   </tr>                  
  83.                   <tr> 
  84.                     <td width="150" bgcolor="#e0e0e0"><font class="strong">&nbsp;计划开始时间:</font></td>
  85.                     <td colspan="6" bgcolor="#e0e0e0"><%= pvb.getPlanBeginDateS() %></td>
  86.                   </tr>
  87.                   <tr> 
  88.                     <td width="150" bgcolor="#fafafa"><font  class="strong">&nbsp;计划结束时间:</font></td>
  89.                     <td colspan="6" bgcolor="#fafafa"><%= pvb.getPlanEndDateS() %></td>
  90.                   </tr>
  91.                   
  92.                   <tr> 
  93.                     <td width="150" bgcolor="#e0e0e0"> <font  class="strong">&nbsp;项目描述:</font> 
  94.                     </td>
  95.                     <td colspan="6" bgcolor="#e0e0e0"><%= pvb.getDescription() %></td>
  96.                   </tr>
  97.                   <tr bgcolor="#fafafa"> 
  98.                     <td width="150" bgcolor="#fafafa" ><font  class="strong">&nbsp;文件附件:</font></td>
  99.                     
  100.                     <td colspan="6" bgcolor="#fafafa">                    
  101.                       <table border="0" cellspacing="0" cellpadding="2" width="100%" bgcolor="#cccccc" >
  102.                         <vnex_workflow:fileList collection="<%=pvb.getFiles() %>">          
  103.                           <vnex_workflow:items>       
  104.                           <tr> 
  105.                             <td width="102" bgcolor="#fafafa"><a href="/<vnex_workflow:fileAttribute attribute="workflowfile_title" />" target="_blank">
  106.                                 <vnex_workflow:fileAttribute attribute="workflowfile_name"/></a></td>
  107.                             </td>
  108.                           </tr>
  109.                           </vnex_workflow:items> 
  110.                           </vnex_workflow:fileList>      
  111.                       </table>
  112.                     </td>
  113.                   </tr>  
  114.                   <tr> 
  115.                     <td bgcolor="#e0e0e0" width="150" rowspan="<%=( routeValueBean.getSubtaskNum() + 1 ) %>"><font  class="strong">&nbsp;执行顺序:</font></td>
  116.                     <td bgcolor="#e0e0e0" width="50" align="center"><font class="strong">顺序</font></td>
  117.                     <td bgcolor="#e0e0e0" width="145" align="center"><font class="strong">子任务</font></td>
  118.                     <td bgcolor="#e0e0e0" width="135" align="center"><font class="strong">执行者</font></td>
  119.                     <td bgcolor="#e0e0e0" width="94" align="center"><font class="strong">类型</font></td>
  120.                     <td bgcolor="#e0e0e0" width="95" align="center"><font  class="strong">状态</font></td>
  121.                     <td bgcolor="#e0e0e0" width="95" align="center"><font  class="strong">截止时间</font></td>
  122.                   </tr>
  123. <%
  124.     for( int i = 0; i < subtasks.size(); i++ )
  125.     {
  126.         SubTaskValueBean sub = ( SubTaskValueBean )subtasks.get(i);    
  127.         if( i%2 == 0) 
  128.         {             
  129. %>
  130.                   <tr bgcolor="#fafafa" align="center"> 
  131. <%}else{
  132. %>
  133.                   <tr bgcolor="#e0e0e0" align="center"> 
  134. <%}
  135. %>
  136.                     <td width="50"><%= sub.getSubStepNo() %></td>
  137.                     <td width="145"><a href="/mainctrl/projectmanagement/sentsubtaskdetail?subtaskId=<%= sub.getSubtaskId() %>&workflowId=<%=pvb.getWorkflowId() %>"><%= sub.getSubTitle() %></td>
  138.                     <td width="135"> 
  139.                         <%=sub.getSubExecutorName() %>
  140.                     </td>
  141.                     <td width="94"> 
  142.                        <%= WorkflowLoader.getSubtaskType( sub.getSubTypeId() ) %>                      
  143.                     </td>
  144.                     <td width="95">                     
  145.                         <%= WorkflowLoader.getSubtaskStatus( sub.getSubStatusId() ) %>                        
  146.                     </td> 
  147.                     <td width="95">                     
  148. <%  
  149.         if( sub.getSubStatusId() == SubTaskStatus.PENDING && sub.getSubPlanEndTime() != null && sub.getSubPlanEndTime().before( current ) )
  150.         {     isDelay = true;
  151. %>
  152.                                      
  153.        <font color=red ><%= sub.getSubPlanEndTimeS() %></font></td></tr>
  154. <%      }
  155.         else
  156.         {
  157. %>
  158.            <%= sub.getSubPlanEndTimeS() %></td></tr>
  159. <%      }
  160.    }
  161. %> 
  162.                   <tr bgcolor="#fafafa" align="center"> 
  163.                     <td colspan="7" height="30"> 
  164.                     <input type="hidden" name="workflowId" value="<%=pvb.getWorkflowId()%>" > 
  165.           <%            
  166.             if ( pvb.getStatusId() == WorkFlowStatus.CREATING )
  167.             {
  168.           %>                     
  169.                      <input type="button" name="Submitf" value="启动" class="file" onClick="sendDoc(this.form)">&nbsp;&nbsp;
  170.                      <input type="button" name="Submitx" value="修改" class="file" onClick="updateDoc(this.form)">&nbsp;&nbsp;                     
  171.                      <input type="button" name="Submitd" value="删除" class="file" onClick="deleteDoc(this.form)">&nbsp;&nbsp;
  172.                      <input type="button" name="Submitb" value="返回" class="file" onclick="location='/mainctrl/projectmanagement/projectlist?statusId=<%= WorkFlowStatus.CREATING  %>'">
  173.           <%
  174.             }
  175.             if ( pvb.getStatusId() == WorkFlowStatus.SENDBACK )
  176.             {
  177.           %>
  178.                      <input type="button" name="Submitf" value="发出" class="file" onClick="sendDoc(this.form)">&nbsp;&nbsp;
  179.                      <input type="button" name="Submitx" value="修改" class="file" onClick="updateDoc(this.form)">&nbsp;&nbsp;
  180.                      <input type="button" name="Submitd" value="删除" class="file" onClick="deleteDoc(this.form)">&nbsp;&nbsp;
  181.                      <input type="button" name="Submitb" value="返回" class="file" onclick="location='/mainctrl/projectmanagement/projectlist?statusId=<%= WorkFlowStatus.SENDBACK  %>'">
  182.           <%
  183.             }
  184.             if ( pvb.getStatusId() == WorkFlowStatus.DONE )
  185.             {
  186.           %>  
  187.                     <input type="button" name="Submitd" value="删除" class="file" onClick="deleteDoc(this.form)">&nbsp;&nbsp;
  188.                     <input type="button" name="Submitb" value="返回" class="file" onclick="location='/mainctrl/projectmanagement/projectlist?statusId=<%= WorkFlowStatus.DONE  %>'">
  189.           <%
  190.             }
  191.             if ( pvb.getStatusId() == WorkFlowStatus.EXECUTING )
  192.             { 
  193.                 if( true/*isDelay*/ )
  194.                 {
  195.           %>  
  196.                 <input type="button" name="Submitg" value="撤回" class="file" onClick="getBack(this.form)">&nbsp;&nbsp;   
  197.           <%    } %>   
  198.                 <input type="button" name="Submitb" value="返回" class="file" onclick="location='/mainctrl/projectmanagement/projectlist?statusId=<%= WorkFlowStatus.EXECUTING %>'">
  199.           <%}
  200.           %>            
  201.                     
  202.                     </td>
  203.                   </tr>
  204.                 </table>
  205.               </td>
  206.             </tr>
  207.           </table>          
  208.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  209.        </TD>
  210.     </TR>
  211.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  212.      </TABLE>
  213.   <BR>
  214.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  215. </form></DIV>
  216. </BODY></HTML>