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

电子政务应用

开发平台:

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.Iterator" %>
  5. <%@ page import="com.vnex.intranet.util.TimeStamp" %>
  6. <%@ page import="com.vnex.intranet.workflow.util.*" %>
  7. <%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
  8. <%@ page import="com.vnex.intranet.workflow.document.value.SecurityType" %>
  9. <%@ page import="com.vnex.intranet.workflow.document.value.InstancyType" %>
  10. <%@ page import="com.vnex.intranet.workflow.document.value.*" %>
  11. <%@ page import="com.vnex.intranet.workflow.loader.WorkflowLoader" %>
  12. <%@ page import="com.vnex.intranet.util.FieldUtil" %> 
  13. <jsp:useBean id="persondocbean" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
  14. <jsp:useBean id="documentProxy" scope="application" class="com.vnex.intranet.workflow.document.proxy.DocumentProxyBean" />
  15. <jsp:useBean id="routeInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
  16. <jsp:include page="/vnex/head.jsp"/>
  17. <%    
  18.     java.sql.Timestamp current = new java.sql.Timestamp(System.currentTimeMillis());
  19.     boolean isDelay = false;
  20.     
  21.     if( request.getParameter("return") != null && request.getParameter("return").equals( "true" ))
  22.     {
  23.         persondocbean = ( DocumentSendValueBean )session.getAttribute( "persondocument" );
  24.     }
  25.     else
  26.     {    
  27.         String sId = request.getParameter("id");      
  28.         persondocbean = documentProxy.getSentDocDetail( Integer.parseInt( sId ) );
  29.     }
  30.     routeInfo = persondocbean.getRoute();
  31.     session.setAttribute( "subtasks", routeInfo );
  32.     ArrayList subtasks = routeInfo.getSubtaskList();
  33. %>
  34. <script language="JavaScript" src="/vnex/validate.js"></script>
  35. <script language=JavaScript>
  36. function updateDoc(form)
  37. {
  38.    form.action="/mainctrl/personal/document/sentupdate";
  39.    form.submit();   
  40. }
  41. function sendDoc(form)
  42. {
  43.    form.action="/mainctrl/personal/document/sentupdateok?flag=send";
  44.    form.submit();   
  45. }
  46. function getBack(form)
  47. {
  48.    form.action="/mainctrl/personal/document/getbacksentdoc";
  49.    form.submit();   
  50. }
  51. function deleteDoc(form)
  52. {
  53.     if( confirm( "确定要删除该发文?" ) )
  54.     {  
  55.         form.action="/mainctrl/personal/document/sentdeleteok";
  56.         form.submit();   
  57.     }
  58. }
  59. </script>
  60. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  61. <HTML>
  62. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  63. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  64. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  65. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  66. <SCRIPT>
  67. window.onload=init
  68. </SCRIPT>
  69. <DIV align=center>
  70.   <form name="form1" method="post">
  71.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  72.      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  73.     <TR> 
  74.         <TD colSpan=3 align="center">
  75.           <br><!--个人信息开始 -->
  76.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  77.             <tr bgcolor="#fafafa"> 
  78.               <td> 
  79.                 <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
  80.                   <tr bgcolor="#666666"> 
  81.                     <td colspan="7" 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/personal/document/sentlist"><font color="#FFFFFF">发文管理</font></a>&gt;&gt;发文详细信息
  82.                       </font></td>
  83.                   </tr>
  84.                   <tr> 
  85.                     <td width="100" bgcolor="#e0e0e0"><font class="strong">&nbsp;标题:</font></td>
  86.                     <td colspan="6" bgcolor="#e0e0e0"><%= FieldUtil.filterScriptTag( persondocbean.getTitle() )%></td>
  87.                   </tr>
  88.                   <tr> 
  89.                     <td width="100" bgcolor="#fafafa"> <font class="strong">&nbsp;主题词:</font> 
  90.                     </td>
  91.                     <td colspan="6" bgcolor="#fafafa"><%= FieldUtil.filterScriptTag( persondocbean.getKeyword() ) %></td>
  92.                   </tr>
  93.                   <tr> 
  94.                     <td width="100" bgcolor="#e0e0e0"><font class="strong">&nbsp;紧急程度:</font></td>
  95.                     <td colspan="6" bgcolor="#e0e0e0"><%= persondocbean.getInstancyType() %></td>
  96.                   </tr>
  97.                   <tr> 
  98.                     <td width="100" bgcolor="#fafafa"><font  class="strong">&nbsp;秘密等级:</font></td>
  99.                     <td colspan="6" bgcolor="#fafafa"><%= persondocbean.getSecurityType() %></td>
  100.                   </tr>
  101.                   
  102.                   <tr> 
  103.                     <td width="100" bgcolor="#e0e0e0"> <font  class="strong">&nbsp;发件摘要:</font> 
  104.                     </td>
  105.                     <td colspan="6" bgcolor="#e0e0e0"><%= FieldUtil.filterScriptTag( persondocbean.getDescription() ) %></td>
  106.                   </tr>
  107.                   <tr bgcolor="#fafafa"> 
  108.                     <td width="100" bgcolor="#fafafa" ><font  class="strong">&nbsp;文件附件:</font></td>
  109.                     
  110.                     <td colspan="6" bgcolor="#fafafa">                    
  111.                       <table border="0" cellspacing="0" cellpadding="2" width="100%" bgcolor="#cccccc" >
  112.                         <vnex_workflow:fileList collection="<%=persondocbean.getFiles() %>">          
  113.                           <vnex_workflow:items>       
  114.                           <tr bgcolor="<vnex:itemsColor />"> 
  115.                             <td width="102" bgcolor="#fafafa"><a href="/<vnex_workflow:fileAttribute attribute="workflowfile_title"/>" target="_blank">
  116.                                 <vnex_workflow:fileAttribute attribute="workflowfile_name"/></a></td>
  117.                             </td>
  118.                           </tr>
  119.                           </vnex_workflow:items> 
  120.                           </vnex_workflow:fileList>      
  121.                       </table>
  122.                     </td>
  123.                   </tr>  
  124.                   <tr class="table_row_title"> 
  125.                     <td bgcolor="#e0e0e0" rowspan="<%=( routeInfo.getSubtaskNum() + 1 ) %>"><font  class="strong">&nbsp;执行顺序:</font></td>
  126.                     <td width="50" align="center"><font class="strong">顺序</font></td>
  127.                     <td width="145" align="center"><font class="strong">子任务</font></td>
  128.                     <td width="135" align="center"><font class="strong">执行者</font></td>
  129.                     <td width="94" align="center"><font class="strong">类型</font></td>
  130.                     <td width="95" align="center"><font  class="strong">状态</font></td>
  131.                     <td width="95" align="center"><font  class="strong">截止时间</font></td>
  132.                   </tr>
  133. <%
  134.     for( int i = 0; i < subtasks.size(); i++ )
  135.     {
  136.         SubTaskValueBean sub = ( SubTaskValueBean )subtasks.get(i);  
  137.         if( i%2 == 0) 
  138.         {             
  139. %>
  140.                   <tr bgcolor="#fafafa" align="center"> 
  141. <%}else{
  142. %>
  143.                   <tr bgcolor="#e0e0e0" align="center"> 
  144. <%}
  145. %>
  146.                     <td width="50" ><%= sub.getSubStepNo() %></td>
  147.                     <td width="145"><a href="/mainctrl/personal/document/sentsubtaskdetail?subtaskId=<%= sub.getSubtaskId()%>&workflowId=<%=persondocbean.getWorkflowId()%>"><%= FieldUtil.filterScriptTag( sub.getSubTitle() )%></a></td>
  148.                     <td width="135"> 
  149.                         <%=sub.getSubExecutorName() %>
  150.                     </td>
  151.                     <td width="94"> 
  152.                         <%= WorkflowLoader.getSubtaskType( sub.getSubTypeId() ) %>                      
  153.                     </td>
  154.                     <td width="95"> 
  155.                         <%= WorkflowLoader.getSubtaskStatus( sub.getSubStatusId() ) %>                         
  156.                     </td>                  
  157.                     <td width="95">      
  158. <%      java.util.Date  cur = new java.util.Date( current.getYear(), current.getMonth(), current.getDate() );
  159.         java.util.Date  et = null;
  160.         if( sub.getSubEndTime() != null )
  161.             et = new java.util.Date( sub.getSubEndTime().getYear(), sub.getSubEndTime().getMonth(), sub.getSubEndTime().getDate() );
  162.                 
  163.         if( sub.getSubStatusId() == SubTaskStatus.PENDING && sub.getSubEndTime() != null &&  cur.after( et ) )
  164.         {     isDelay = true;
  165. %>
  166.                                      
  167.        <font color=red ><%= sub.getSubPlanEndTimeS() %></font></td></tr>
  168. <%      }
  169.         else
  170.         {
  171. %>
  172.            <%= sub.getSubPlanEndTimeS() %></td></tr>
  173. <%      }
  174.    }
  175. %> 
  176.                   <tr bgcolor="#fafafa" align="center"> 
  177.                     <td colspan="7" height="30"> 
  178.                      <input type="hidden" name="id" value="<%=persondocbean.getWorkflowId()%>" > 
  179.           <%            
  180.             if ( persondocbean.getStatusId() == WorkFlowStatus.CREATING )
  181.             {
  182.           %>                    
  183.                      <input type="button" name="Submit" value="发出" class="file" onClick="sendDoc(this.form)">&nbsp;&nbsp;
  184.                      <input type="button" name="Submit" value="修改" class="file" onClick="updateDoc(this.form)">&nbsp;&nbsp;                 
  185.                      <input type="button" name="Submit" value="删除" class="file" onClick="deleteDoc(this.form)">&nbsp;&nbsp;
  186.                      <input type="reset" name="Submit2" value="返回" class="file" onclick="location='/mainctrl/personal/document/sentlist'">
  187.           <%
  188.             }
  189.             if ( persondocbean.getStatusId() == WorkFlowStatus.SENDBACK )
  190.             {
  191.           %>
  192.                      <input type="button" name="Submit" value="发出" class="file" onClick="sendDoc(this.form)">&nbsp;&nbsp;
  193.                      <input type="button" name="Submit" value="修改" class="file" onClick="updateDoc(this.form)">&nbsp;&nbsp;
  194.                      <input type="button" name="Submit" value="删除" class="file" onClick="deleteDoc(this.form)">&nbsp;&nbsp;
  195.                      <input type="reset" name="Submit2" value="返回" class="file" onclick="location='/mainctrl/personal/document/sentlist'">
  196.           <%
  197.             }
  198.             if ( persondocbean.getStatusId() == WorkFlowStatus.DONE )
  199.             {
  200.           %>                             
  201.                     <input type="button" name="Submit" value="修改" class="file" onClick="updateDoc(this.form)">&nbsp;&nbsp;
  202.                     <input type="button" name="Submit" value="删除" class="file" onClick="deleteDoc(this.form)">&nbsp;&nbsp;
  203.                     <input type="reset" name="Submit2" value="返回" class="file" onclick="location='/mainctrl/personal/document/sentlist'">
  204.           <%
  205.             }
  206.             if ( persondocbean.getStatusId() == WorkFlowStatus.EXECUTING )
  207.             {if( true /*isDelay*/ )
  208.                 {
  209.           %>  
  210.            
  211.                 <input type="button" name="Submitg" value="撤回" class="file" onClick="getBack(this.form)">&nbsp;&nbsp; 
  212.           <%    } %>    
  213.                 <input type="reset" name="Submit2" value="返回" class="file" onclick="location='/mainctrl/personal/document/sentlist'">
  214.           <%
  215.             }
  216.           %>  
  217.                     </td>
  218.                   </tr>
  219.                 </table>
  220.               </td>
  221.             </tr>
  222.           </table>
  223. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  224. </TD>
  225.     </TR>
  226.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  227.      </TABLE>
  228.   <BR>
  229.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  230. </form></DIV>
  231. </BODY></HTML>