task_pending_finish_doc.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. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  9. <HTML><HEAD><TITLE>net-office</TITLE>
  10. <META http-equiv=Content-Type content="text/html; charset=gb_2312-80">
  11. <META content="MSHTML 5.50.4134.600" name=GENERATOR>
  12. <link rel="stylesheet" href="/vnex/hr_macos.css" type="text/css">
  13. </HEAD>
  14. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  15. <jsp:useBean id="proxy" scope="session" class="com.vnex.intranet.workflow.taskpending.proxy.TaskPendingProxyBean" />
  16. <jsp:useBean id="taskPendingInfo" scope="session" class="com.vnex.intranet.workflow.taskpending.value.TaskPendingValueBean" />
  17. <jsp:useBean id="projectInfo" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean" />
  18. <jsp:useBean id="docInfo" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean" />
  19. <jsp:useBean id="workflowFileInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.WorkflowFileValueBean" />
  20. <jsp:useBean id="routeInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
  21. <%
  22.     int workflowId = Integer.parseInt(request.getParameter("workflowId"));
  23.     int subtaskId = Integer.parseInt(request.getParameter("subtaskId"));
  24.     
  25.     int workflowtypeId = Integer.parseInt(request.getParameter("workflowtypeId"));
  26.     int subtasktypeId = Integer.parseInt(request.getParameter("subtasktypeId"));
  27.     
  28.     int querytype = -1;
  29.     if ( request.getParameter("querytype")!=null ) 
  30.        querytype = Integer.parseInt(request.getParameter("querytype"));
  31.     int execId = Integer.parseInt(request.getParameter("execId"));
  32.     SubTaskValueBean sub = new SubTaskValueBean();        
  33.     
  34.     taskPendingInfo = proxy.getPretaskDetailInfo(workflowId,workflowtypeId);
  35.     docInfo = taskPendingInfo.getDocumentInfo();
  36.     
  37.     routeInfo = docInfo.getRoute();
  38.     session.setAttribute("routeInfo",routeInfo);
  39.                         
  40.     ArrayList subs = routeInfo.getSubtaskList();
  41. %>
  42. <script language=JavaScript>
  43. function acceptor(form)
  44. {
  45.   form.action="/mainctrl/taskpending/taskPendingProjectSummary?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=ExecutorStatus.AGREE%>&querytype=<%=querytype%>";
  46.   form.submit();
  47. }
  48. function refuse(form)
  49. {
  50.   form.action="/mainctrl/taskpending/taskPendingProjectSummary?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=ExecutorStatus.DISAGREE%>&querytype=<%=querytype%>";
  51.   form.submit();
  52. }
  53. function goback(form)
  54. {
  55.     form.action="/mainctrl/taskpending/taskPendingFinishList?querytype=<%=querytype%>";
  56.     form.submit();
  57. }
  58. </script>
  59. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  60. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  61. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  62. <script language="JavaScript">
  63. window.onload=init
  64. </script>
  65. <DIV align=center>
  66. <form name="form1" method="post" action="">
  67.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  68.     <TBODY> 
  69.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  70.     <TR> 
  71.         <TD colSpan=3 align="center"><br>
  72.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  73.             <tr> 
  74.               <td align="center" colspan="2" bgcolor="#FFFFFF"> 
  75.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  76.                   <tr bgcolor="#666666"> 
  77.                      <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>
  78.                      </td>
  79.                   </tr>
  80.                 </table>  
  81.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  82.                           <tr bgcolor="#e0e0e0"> 
  83.                             <td width="15%"> 
  84.                               <font class="strong">&nbsp;公文名称:</font> 
  85.                               </div>
  86.                             </td>
  87.                             <td>
  88.                                 <%=docInfo.getTitle()%>
  89.                             </td>
  90.                           </tr>  
  91.                           <tr bgcolor="#fafafa">
  92.                             <td width="15%"><font class="strong">&nbsp;紧急程度:
  93.                             </font></td>
  94.                             <td><%=docInfo.getInstancyType()%></td>
  95.                           </tr>
  96.                           <tr bgcolor="#e0e0e0"> 
  97.                             <td width="15%"><font class="strong">&nbsp;秘密等级:</font></td>
  98.                             <td ><%=docInfo.getSecurityType()%></td>
  99.                           </tr>  
  100.                           <tr bgcolor="#fafafa"> 
  101.                             <td width="15%"><font class="strong">&nbsp;主题词:</font></td>
  102.                             <td ><%=docInfo.getKeyword()%> </td>
  103.                           </tr>
  104.                           <tr bgcolor="#e0e0e0"> 
  105.                             <td width="15%"><font class="strong">&nbsp;发件摘要:</font>
  106.                             </td>
  107.                             <td> 
  108.                             <%=docInfo.getDescription()%>
  109.                             </td>
  110.                           </tr>
  111.                           <tr bgcolor="#fafafa"> 
  112.                             <td width="15%"><font class="strong">&nbsp;相关材料:</strong>
  113.                             </td>
  114.                             <td >
  115.                               <div align="left">
  116.                                    <vnex:fileList collection="<%=docInfo.getFiles()%>"> 
  117.                                 <vnex:items>
  118.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  119.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  120.                                  </a><br>
  121.                                   </vnex:items> 
  122.                               </vnex:fileList>                        
  123.                               </div>
  124.                             </td>
  125.                           </tr>
  126.                         </table>
  127.                         <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  128.                           <tr> 
  129.                             
  130.                     <td width="7%" align="center"><strong>序号</strong></td>
  131.                     <td width="22%" align="center"><strong>子任务名称</strong></td>
  132.                             
  133.                     <td width="15%" align="center"><strong>执行者</strong></td>
  134.                             
  135.                     <td width="24%" align="center"><strong>批复</strong></td>
  136.                             
  137.                     <td width="18%" align="center"><strong>相关文档</strong></td>
  138.                             
  139.                     <td width="14%" align="center"><strong>批复日期</strong></td>
  140.                           </tr>
  141. <%
  142.     for(int i = 0; i<subs.size(); i++)
  143.     {
  144.         sub = (SubTaskValueBean)subs.get(i);
  145.         
  146.         if ((i%2) == 1)
  147.         {
  148.             out.print("<tr bgcolor="#fafafa">");
  149.         }
  150.         else
  151.         {
  152.             out.print("<tr bgcolor="#e0e0e0">");        
  153.         }
  154. %>
  155.                             
  156.                     <td width="7%" align="center"><%=sub.getSubStepNo() %></td>
  157.                     <td width="22%" align="center"><%=sub.getSubTitle() %></td>
  158.                             
  159.                     <td width="15%" align="center"><%=sub.getSubExecutorName("<br>")%></td>
  160.                             
  161.                     <td width="24%" 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>
  162.                             
  163.                     <td width="18%" align="center"> 
  164.                     
  165.                     <vnex:fileList collection="<%=sub.getSubFiles()%>"> 
  166.                                 <vnex:items>
  167.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  168.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  169.                                  </a><br>
  170.                                   </vnex:items> 
  171.                               </vnex:fileList>
  172.                             
  173.                     <td width="14%" align="center">
  174.                     
  175.                     <%
  176.                             if ( sub.getSubEndTime() != null )
  177.                                 out.println( StringUtil.getTimeChars( sub.getSubEndTime()+"", "day" ) ) ;
  178.                             else
  179.                                 out.println("无");
  180.                      %>
  181.                      </td>
  182.                           </tr>
  183. <%
  184.     }//end for
  185. %>
  186.                         <tr bgcolor="#fafafa">
  187.                             <td colspan="6" align="center" height="30">
  188.                               <input type="button" name="Button" value="返回" onClick="goback(this.form)" class="text">
  189.                             </td>
  190.                         </tr>  
  191.                         </table>
  192.                     </td>
  193.                   </tr>
  194.                 </table>
  195. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  196.        </TD>
  197.      </TR>
  198.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  199.     </TBODY> 
  200.   </TABLE>
  201.     <BR>
  202.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  203. </form>
  204. </DIV>
  205. </BODY>
  206. </HTML>