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