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

电子政务应用

开发平台:

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