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

电子政务应用

开发平台:

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. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  12. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  13. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  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.     session.removeAttribute("routeInfo");
  23.     session.removeAttribute("click");
  24.     
  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 execId = Integer.parseInt(request.getParameter("execId"));
  32.         
  33.     SubTaskValueBean sub = new SubTaskValueBean();        
  34.     
  35.     taskPendingInfo = proxy.getPretaskDetailInfo(workflowId,workflowtypeId);
  36.     docInfo = taskPendingInfo.getDocumentInfo();
  37.     routeInfo = docInfo.getRoute();
  38.     session.setAttribute("routeInfo",routeInfo);
  39.                         
  40.     ArrayList subs = routeInfo.getSubtaskList();
  41. %>
  42. <script language=JavaScript>
  43. function accept(form)
  44. {  
  45.   form.action="/mainctrl/taskpending/taskPendingProjectSummary?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=ExecutorStatus.AGREE%>";
  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%>";
  51.   form.submit();
  52. }
  53. function goback(form)
  54. {
  55.     form.action="/mainctrl/taskpending/taskPendingList";
  56.     form.submit();
  57. }
  58. </script>
  59. <DIV align=center>
  60. <form name="form1" method="post" action="">
  61.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  62.       <TR> 
  63.       <TD><IMG height=4 src="/vnex/MacOS/lefttop.gif" width=6></TD>
  64.       <TD background=/vnex/MacOS/top.gif colSpan=3><IMG height=4 
  65.       src="/vnex/MacOS/top.gif" width=1></TD>
  66.       <TD><IMG height=4 src="/vnex/MacOS/righttop.gif"></TD>
  67.     </TR>
  68.     <TR> 
  69.       <TD vAlign=top background=/vnex/MacOS/lwing.gif rowSpan=3><IMG height=8 
  70.       src="/vnex/MacOS/left.gif" width=8></TD>
  71.       <TD vAlign=top background=/vnex/MacOS/titlebg.gif width="16"> 
  72.           <a href="/vnex/index.htm"><img src="/vnex/MacOS/logo.gif" width="16" height="16" alt="返回Net_Office首页" border="0"></a>
  73.       </TD>
  74.         <TD vAlign=top noWrap align=center width="100%" 
  75.     background=/vnex/MacOS/titlebg.gif><SPAN 
  76.       style="BACKGROUND-COLOR: #cecece"><FONT class=strong> Net - Office </font></SPAN></TD>
  77.         <TD><a href="javascript:self.close()"><IMG height=18 src="/vnex/MacOS/right_b2.gif" width=18 border="0" alt="关闭窗口"></a></TD>
  78.       <TD vAlign=top background=/vnex/MacOS/rwing.gif rowSpan=3><IMG height=18 
  79.       src="/vnex/MacOS/right.gif" width=7></TD>
  80.     </TR>
  81.     <TR> 
  82.       <TD background=/vnex/MacOS/hr.gif colSpan=3><IMG height=2 
  83.       src="/vnex/MacOS/hr.gif" width=1></TD>
  84.     </TR>
  85.     <TR> 
  86.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  87.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  88.             <tr valign="top"> 
  89.               <td bgcolor="#fafafa">
  90.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  91.                   <tr bgcolor="#666666"> 
  92.                     <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>
  93.                   </tr>
  94.                   <tr>
  95.                     <td></td>
  96.                   </tr>
  97.                 </table> 
  98.                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
  99.                   <tr valign="top" bgcolor="#fafafa"> 
  100.                     <td> 
  101.                       <table class=title width="100%" border="0" cellspacing="1" cellpadding="2">
  102.                           <tr bgcolor="#666666"> 
  103.                             <td width="17%" bgcolor="#E0E0E0"> <font class="strong">&nbsp;请示名称:</font> 
  104.                             </td>
  105.                             <td colspan="5" bgcolor="#E0E0E0" width="83%">
  106.                                 <%=docInfo.getTitle()%></td>
  107.                           </tr>
  108.                           <tr bgcolor="#FFFFFF"> 
  109.                             <td width="17%"><font class="strong">&nbsp;请示人/部门:</font></td>
  110.                             <td colspan="5" width="83%">
  111.                                 <%=docInfo.getCreatorName()%>
  112.                              </td>
  113.                           </tr>
  114.                           <tr bgcolor="#E0E0E0"> 
  115.                             <td width="17%"> <font class="strong">&nbsp;请示时间:</font></td>
  116.                             
  117.                           <td colspan="5" width="83%">
  118.                           <%
  119.                           if ( docInfo.getCreateDate() != null ) 
  120.                               out.println( StringUtil.getTimeChars( docInfo.getCreateDate() + "" , "day" ) );
  121.                           else
  122.                               out.println("无");
  123.                           %>
  124.                           </td>
  125.                           </tr>
  126.                           <tr bgcolor="#FAFAFA"> 
  127.                             <td width="17%"><font class="strong">&nbsp;重要度:</font></td>
  128. <td width="17%"><%=docInfo.getInstancyType()%></td>
  129.                           </tr>
  130.                           <tr bgcolor="#E0E0E0"> 
  131.                             <td width="17%"> <font class="strong">&nbsp;请示内容描述:</font> 
  132.                             </td>
  133.                             <td colspan="5" width="83%">
  134.                                 <%=docInfo.getDescription()%>
  135.                               </td>
  136.                           </tr>
  137.                           <tr> 
  138.                             <td width="17%" valign="top" bgcolor="#FFFFFF"><font class="strong">&nbsp;相关材料:</font> 
  139.                             </td>
  140.                             <td colspan="5" bgcolor="#FFFFFF" width="83%">
  141.                                 <vnex:fileList collection="<%=docInfo.getFiles()%>"> 
  142.                                 <vnex:items>
  143.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  144.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  145.                                  </a><br>
  146.                                   </vnex:items> 
  147.                               </vnex:fileList>
  148.                          </td>
  149.                           </tr>
  150.                         </table>
  151.                      </td>
  152.                   </tr>
  153.                 </table>
  154.                 <table class=title width="100%" border="0" cellpadding="2" cellspacing="1">
  155.                   <tr> 
  156.                     <td colspan="5" bgcolor="#666666"><font class="strongw">请示路径</font></td>
  157.                   </tr>
  158.                   <tr align="center"> 
  159.                     <td width="19%"><font class="strong">序号</font></td>
  160.                     <td width="21%"><font class="strong">姓名</font></td>
  161.                     <td width="18%"><font class="strong">批复</font></td>
  162.  
  163.                     <td width="18%"><font class="strong">相关文档</font></td>
  164.                     <td width="24%"><font class="strong">批复日期</font></td>
  165.                   </tr>
  166. <%
  167.     for(int i = 0; i<subs.size(); i++)
  168.     {
  169.         sub = (SubTaskValueBean)subs.get(i);
  170.         
  171. %>
  172.                           <tr bgcolor="#e0e0e0"> 
  173.                             
  174.                     <td width="19%" bgcolor="#e0e0e0" align="center"><%=sub.getSubStepNo()%></td>
  175.                             
  176.                     <td width="21%" align="center"><%=sub.getSubExecutorName("<br>")%></td>
  177.                             
  178.                     <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>
  179.                             
  180.                     <td width="18%"> 
  181.                      <vnex:fileList collection="<%=sub.getSubFiles()%>"> 
  182.                                 <vnex:items>
  183.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  184.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  185.                                  </a><br>
  186.                                   </vnex:items> 
  187.                               </vnex:fileList>                           
  188.                     <td width="24%" align="center">
  189.                     <%
  190.                      if ( sub.getSubEndTime() != null )
  191.                          out.println( StringUtil.getTimeChars( sub.getSubEndTime()+"", "day" ) ;
  192.                      else
  193.                          out.println("无");
  194.                     %>
  195.                     </td>
  196.                           </tr>
  197. <%
  198.     }//end for
  199. %>
  200.                       <tr align="center"> 
  201.                     <td colspan="5" height="30" bgcolor="#fafafa"> 
  202.                         <input type="button" name="Button" value="同意" onClick="accept(this.form)" class="text">&nbsp;&nbsp;
  203.           <input type="button" name="Submit2" value="拒绝" onClick="refuse(this.form)" class="text">&nbsp;&nbsp;
  204.           <input type="button" name="Button" value="返回" onClick="goback(this.form)" class="text">
  205.                     </td>
  206.                   </tr>
  207.                 </table>
  208.               </td>
  209.             </tr>
  210.           </table>
  211.           <br><br><img src="/vnex/images/c_logo.gif" width="300" height="50">
  212.           <table width="100%" border="0" cellspacing="0" cellpadding="0">
  213.              <tr> 
  214.               <td height="3"><img src="/vnex/a.gif" width="1" height="1"></td>
  215.             </tr>
  216.             <tr> 
  217.               <td background="/vnex/MacOS/hr.gif"><img src="/vnex/MacOS/hr.gif" width="1" height="2"></td>
  218.             </tr>
  219.              <tr> 
  220.               <td height="3"><img src="/vnex/a.gif" width="1" height="1"></td>
  221.             </tr>
  222.           </table>
  223. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  224.             <tr> 
  225.               <td> 
  226.                 <div align="right"><a href="/help.htm" style="cursor:help" title="使用帮助"><img src="/vnex/MacOS/help.gif" width="16" height="16" border="0">HELP</a></div>
  227.               </td>
  228.             </tr>
  229.           </table>
  230. </TD>
  231.     </TR>
  232.     <TR> 
  233.         <TD height="2"><IMG height=7 src="/vnex/MacOS/leftbottom.gif" width=6></TD>
  234.         <TD background=/vnex/MacOS/bottom.gif colSpan=3 height="2"><IMG height=7 
  235.       src="/vnex/MacOS/bottom.gif" width=1></TD>
  236.         <TD height="2"><IMG height=7 src="/vnex/MacOS/rightbottom.gif" 
  237. width=7></TD>
  238.     </TR>
  239.    </TABLE>
  240.     <BR>
  241.   <TABLE cellSpacing=1 cellPadding=2 width="300" border=0>
  242.       <TR>
  243.         <TD align=center><FONT class=footer><IMG height=1 
  244.       src="/vnex/MacOS/hr_black.gif" width="100%"><BR>
  245.           <A target=_top 
  246.       href="http://www.visionnex.com">VisionNex Net-Office System Version 1.0</A><br>
  247.           </FONT></TD>
  248.     </TR></TABLE>
  249. </form></DIV>
  250. </BODY></HTML>