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

电子政务应用

开发平台:

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>
  10. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  11. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  12. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  13. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff 
  14. topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  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.     
  26.     int workflowId = Integer.parseInt(request.getParameter("workflowId"));
  27.     int subtaskId = Integer.parseInt(request.getParameter("subtaskId"));
  28.     
  29.     int workflowtypeId = Integer.parseInt(request.getParameter("workflowtypeId"));
  30.     int subtasktypeId = Integer.parseInt(request.getParameter("subtasktypeId"));
  31.     
  32.     int execId = Integer.parseInt(request.getParameter("execId"));
  33.         
  34.     SubTaskValueBean sub = new SubTaskValueBean();        
  35.     
  36.     taskPendingInfo = proxy.getPretaskDetailInfo(workflowId,workflowtypeId);
  37.     docInfo = taskPendingInfo.getDocumentInfo();
  38.     routeInfo = docInfo.getRoute();
  39.     session.setAttribute("routeInfo",routeInfo);
  40.                         
  41.     ArrayList subs = routeInfo.getSubtaskList();
  42. %>
  43. <script language=JavaScript>
  44. function acceptor(form)
  45. {
  46.   form.action="/mainctrl/taskpending/taskPendingProjectSummary?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=ExecutorStatus.AGREE%>";
  47.   form.submit();
  48. }
  49. function refuse(form)
  50. {
  51.   form.action="/mainctrl/taskpending/taskPendingProjectSummary?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=ExecutorStatus.DISAGREE%>";
  52.   form.submit();
  53. }
  54. function goback(form)
  55. {
  56.     form.action="/mainctrl/taskpending/taskPendingList";
  57.     form.submit();
  58. }
  59. </script>
  60. <DIV align=center> 
  61.   <form name="form1" method="post" action="">
  62.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  63.       <TR> 
  64.       <TD><IMG height=4 src="/vnex/MacOS/lefttop.gif" width=6></TD>
  65.       <TD background=/vnex/MacOS/top.gif colSpan=3><IMG height=4 
  66.       src="/vnex/MacOS/top.gif" width=1></TD>
  67.       <TD><IMG height=4 src="/vnex/MacOS/righttop.gif"></TD>
  68.     </TR>
  69.     <TR> 
  70.       <TD vAlign=top background=/vnex/MacOS/lwing.gif rowSpan=3><IMG height=8 
  71.       src="/vnex/MacOS/left.gif" width=8></TD>
  72.       <TD vAlign=top background=/vnex/MacOS/titlebg.gif width="16"> 
  73.           <a href="/vnex/index.htm"><img src="/vnex/MacOS/logo.gif" width="16" height="16" alt="返回Net_Office首页" border="0"></a>
  74.       </TD>
  75.         <TD vAlign=top noWrap align=center width="100%" 
  76.     background=/vnex/MacOS/titlebg.gif><SPAN 
  77.       style="BACKGROUND-COLOR: #cecece"><FONT class=strong> Net - Office </font></SPAN></TD>
  78.         <TD><a href="javascript:self.close()"><IMG height=18 src="/vnex/MacOS/right_b2.gif" width=18 border="0" alt="关闭窗口"></a></TD>
  79.       <TD vAlign=top background=/vnex/MacOS/rwing.gif rowSpan=3><IMG height=18 
  80.       src="/vnex/MacOS/right.gif" width=7></TD>
  81.     </TR>
  82.     <TR> 
  83.       <TD background=/vnex/MacOS/hr.gif colSpan=3><IMG height=2 
  84.       src="/vnex/MacOS/hr.gif" width=1></TD>
  85.     </TR>
  86.     <TR> 
  87.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  88.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  89.             <tr valign="top"> 
  90.               <td bgcolor="#fafafa">
  91.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  92.                   <tr bgcolor="#666666"> 
  93.                     <td><font class="strongw"><a href="/vnex/HR/EMPLOYEE_ATTENDANCE/employee_attendance.htm"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;<a href="task_pending.htm"><font color="#FFFFFF">日常办公</font></a>&gt;&gt;<a href="/mainctrl/taskpending/taskPendingList"><font color="#FFFFFF">待办事宜</font></a>&gt;&gt;请示汇报</font></td>
  94.                   </tr>
  95.                   <tr>
  96.                     <td></td>
  97.                   </tr>
  98.                 </table> 
  99.                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
  100.                   <tr valign="top" bgcolor="#fafafa"> 
  101.                     <td> 
  102.                       <table class=title width="100%" border="0" cellspacing="1" cellpadding="2">
  103.                           <tr bgcolor="#666666"> 
  104.                             <td width="17%" bgcolor="#E0E0E0"> <font class="strong">&nbsp;请示名称:</font> 
  105.                             </td>
  106.                             <td colspan="5" bgcolor="#E0E0E0" width="83%">
  107.                                 <%=docInfo.getTitle()%></td>
  108.                           </tr>
  109.                           <tr bgcolor="#FFFFFF"> 
  110.                             <td width="17%"><font class="strong">&nbsp;请示人/部门:</font></td>
  111.                             <td colspan="5" width="83%">
  112.                                 <%=docInfo.getCreatorName()%>
  113.                              </td>
  114.                           </tr>
  115.                           <tr bgcolor="#E0E0E0"> 
  116.                             <td width="17%"> <font class="strong">&nbsp;请示时间:</font></td>
  117.                             
  118.                           <td colspan="5" width="83%"><%=docInfo.getCreateDate()%></td>
  119.                           </tr>
  120.                           <tr bgcolor="#FAFAFA"> 
  121.                             <td width="17%"><font class="strong">&nbsp;重要度:</font></td>
  122. <td width="17%"><%=docInfo.getInstancyType()%></td>
  123.                           </tr>
  124.                           <tr bgcolor="#E0E0E0"> 
  125.                             <td width="17%"> <font class="strong">&nbsp;请示内容描述:</font> 
  126.                             </td>
  127.                             <td colspan="5" width="83%">
  128.                                 <%=docInfo.getDescription()%>
  129.                               </td>
  130.                           </tr>
  131.                           <tr> 
  132.                             <td width="17%" valign="top" bgcolor="#FFFFFF"> <font class="strong">&nbsp;相关材料:</font> 
  133.                             </td>
  134.                             <td colspan="5" bgcolor="#FFFFFF" width="83%">
  135.                                  <vnex:fileList collection="<%=docInfo.getFiles()%>"> 
  136.                                 <vnex:items>
  137.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  138.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  139.                                  </a><br>
  140.                                   </vnex:items> 
  141.                               </vnex:fileList>
  142. <%/*
  143.     Collection c = docInfo.getFiles();
  144.     Iterator it = c.iterator();
  145.     
  146.     while(it.hasNext())
  147.     {
  148.         workflowFileInfo = (WorkflowFileValueBean)it.next();            
  149. %>
  150.                                   <!--a href="/<%=workflowFileInfo.getTitle()%>" target="_blank"><%=workflowFileInfo.getName()%></a> <br-->
  151. <%
  152.     }*/
  153. %>                                  
  154.                          </td>
  155.                           </tr>
  156.                         </table>
  157.                      </td>
  158.                   </tr>
  159.                 </table>
  160.                 <table class=title width="100%" border="0" cellpadding="2" cellspacing="1">
  161.                   <tr> 
  162.                     <td colspan="5" bgcolor="#666666"><font class="strongw">请示路径</font></td>
  163.                   </tr>
  164.                   <tr align="center"> 
  165.                     <td width="19%"><font class="strong">序号</font></td>
  166.                     <td width="21%"><font class="strong">姓名</font></td>
  167.                     <td width="18%"><font class="strong">批复</font></td>
  168.  
  169.                     <td width="18%"><font class="strong">相关文档</font></td>
  170.                     <td width="24%"><font class="strong">批复日期</font></td>
  171.                   </tr>
  172. <%
  173.     for(int i = 0; i<subs.size(); i++)
  174.     {
  175.         sub = (SubTaskValueBean)subs.get(i);
  176.         
  177. %>
  178.                           <tr bgcolor="#e0e0e0"> 
  179.                             
  180.                     <td width="19%" bgcolor="#e0e0e0" align="center"><%=sub.getSubStepNo()%></td>
  181.                             
  182.                     <td width="21%" align="center"><%=sub.getSubExecutorName("<br>")%></td>
  183.                             
  184.                     <td width="18%" align="center"><a href="/mainctrl/taskpending/taskPendingProjectSummaryDescription?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&csubtaskId=<%=sub.getSubtaskId()%>&subtasktypeId=<%=subtasktypeId%>&csubtasktypeId=<%=sub.getSubTypeId()%>&execId=<%=execId%>"><%=sub.getSubStatusName()%></a></td>
  185.                             
  186.                     <td width="18%"> 
  187.                     
  188.                      <vnex:fileList collection="<%=sub.getSubFiles()%>"> 
  189.                                 <vnex:items>
  190.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  191.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  192.                                  </a><br>
  193.                                   </vnex:items> 
  194.                               </vnex:fileList>
  195.                             
  196.                     <td width="24%" align="center">
  197.                     <%
  198.                     if( sub.getSubEndTime() != null )
  199.                         out.println( StringUtil.getTimeChars( sub.getSubEndTime()+"", "day" ) ) ;
  200.                     else
  201.                         out.println("无");
  202.                     %>
  203.                     </td>
  204.                           </tr>
  205. <%
  206.     }//end for
  207. %>
  208.                       <tr align="center"> 
  209.                     <td colspan="5" height="30" bgcolor="#fafafa"> 
  210.                          <input type="button" name="Button" value="已阅" onClick="acceptor(this.form)" class="text">&nbsp;&nbsp;
  211.                          <input type="button" name="Button" value="返回" onClick="goback(this.form)" class="text">
  212.                     </td>
  213.                   </tr>
  214.                 </table>
  215.               </td>
  216.             </tr>
  217.           </table>
  218.           <br><br>
  219.           
  220.           
  221.           
  222.           
  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>