task_pending_execute_project.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.StringUtil" %>
  7. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <jsp:useBean id="proxy" scope="session" class="com.vnex.intranet.workflow.taskpending.proxy.TaskPendingProxyBean" />
  10. <jsp:useBean id="taskPendingInfo" scope="session" class="com.vnex.intranet.workflow.taskpending.value.TaskPendingValueBean" />
  11. <jsp:useBean id="projectInfo" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean" />
  12. <jsp:useBean id="workflowFileInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.WorkflowFileValueBean" />
  13. <jsp:useBean id="routeInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
  14. <%
  15.     session.removeAttribute("routeInfo");
  16.     session.removeAttribute("click");
  17.     
  18.     int workflowId = Integer.parseInt(request.getParameter("workflowId"));
  19.     int subtaskId = Integer.parseInt(request.getParameter("subtaskId"));
  20.     
  21.     int workflowtypeId = Integer.parseInt(request.getParameter("workflowtypeId"));
  22.     int subtasktypeId = Integer.parseInt(request.getParameter("subtasktypeId"));
  23.     
  24.     int execId = Integer.parseInt(request.getParameter("execId"));
  25.     int querytype = 0;
  26.     if ( request.getParameter("querytype") != null )
  27.        querytype = Integer.parseInt(request.getParameter("querytype"));
  28.             
  29.     SubTaskValueBean sub = new SubTaskValueBean();
  30.     
  31.     taskPendingInfo = proxy.getPretaskDetailInfo(workflowId,workflowtypeId);
  32.     projectInfo = taskPendingInfo.getProjectInfo();
  33.     routeInfo = projectInfo.getRoute();                
  34.     session.setAttribute("routeInfo",routeInfo);
  35.     
  36.     ArrayList subs = routeInfo.getSubtaskList();
  37.     
  38. %>
  39. <script language=JavaScript>
  40. function acceptor(form)
  41. {
  42.   form.action="/mainctrl/taskpending/taskPendingProjectSummary?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=ExecutorStatus.AGREE%>&querytype=<%=querytype%>";
  43.   form.submit();
  44. }
  45. function refuse(form)
  46. {
  47.   form.action="/mainctrl/taskpending/taskPendingProjectSummary?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=ExecutorStatus.DISAGREE%>&querytype=<%=querytype%>";
  48.   form.submit();
  49. }
  50. function goback(form)
  51. {
  52.     form.action="/mainctrl/taskpending/taskPendingList?querytype=<%=querytype%>";
  53.     form.submit();
  54. }
  55. </script>
  56. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  57. <HTML>
  58. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  59. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  60. <STYLE>
  61. #ssm2 A {
  62. FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana; TEXT-DECORATION: none
  63. }
  64. #ssm2 A:hover {
  65. COLOR: red
  66. }
  67. </STYLE>
  68. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  69. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  70. <DIV align=center>
  71. <form name="form1" method="post" action="">
  72.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  73.     <TBODY> 
  74.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  75.     <TR> 
  76.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  77.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  78.             <tr align="center"> 
  79.               <td bgcolor="#fafafa" > 
  80.                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  81.                   <tr>  
  82.                     <td bgcolor="#666666"><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>&gt;&gt;<a href="/mainctrl/taskpending/taskPendingList"><font color="#FFFFFF">待办事宜</font></a>&gt;>项目管理</font></td>  
  83.                   </tr>
  84.                   <tr valign="top" bgcolor="#fafafa"> 
  85.                     <td> 
  86.                       <table class=title width="100%" cellpadding="2" cellspacing="1" border="0">
  87.                           <tr> 
  88.                             <td width="22%" bgcolor="#e0e0e0"> <font class="strong">&nbsp;项目名称:</font> 
  89.                             </td>
  90.                             <td colspan="5" bgcolor="#e0e0e0"> <%=projectInfo.getTitle()%></td>
  91.                           </tr>
  92.                           <tr> 
  93.                             <td  height="7" width="22%" bgcolor="#fafafa"><font class="strong">&nbsp;项目开始时间:</font></td>
  94.                             <td colspan="5" bgcolor="#fafafa"> <%=projectInfo.getPlanBeginDateS()%> 
  95. </td>
  96.                           </tr>
  97.                           <tr> 
  98.                             <td width="22%" bgcolor="#e0e0e0" height="23"> <font class="strong">&nbsp;计划结束时间:</font></td>
  99.                             <td colspan="5" bgcolor="#e0e0e0" height="23"> <%=projectInfo.getPlanEndDateS()%></td>
  100.                           </tr>
  101.                           <tr> 
  102.                             <td  height="21" width="22%" bgcolor="#fafafa"> <font class="strong">&nbsp;项目描述</font>: 
  103.                             </td>
  104.                             <td colspan="5" height="21" bgcolor="#fafafa"> <%=projectInfo.getDescription()%> 
  105.                             </td>
  106.                           </tr>
  107.                           <tr bgcolor="e0e0e0"> 
  108.                             <td width="22%" valign="top" height="52"> <font class="strong">&nbsp;基本相关文档</font>: 
  109.                             </td>
  110.                             <td colspan="5"> 
  111.                               <div align="left"> 
  112.                                    <vnex:fileList collection="<%=projectInfo.getFiles()%>"> 
  113.                                 <vnex:items>
  114.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  115.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  116.                                  </a><br>
  117.                                   </vnex:items> 
  118.                               </vnex:fileList>
  119.                                 <%/*
  120.     Collection c = projectInfo.getFiles();
  121.     Iterator it = c.iterator();
  122.     
  123.     while(it.hasNext())
  124.     {
  125.         workflowFileInfo = (WorkflowFileValueBean)it.next();            
  126. %>
  127.                                <!--a href="/<%=workflowFileInfo.getTitle()%>" target="_blank"><%=workflowFileInfo.getName()%></a> <br-->
  128.                                   <%
  129.     }*/
  130. %>
  131.                               </div>
  132.                             </td>
  133.                           </tr>
  134.                        </table>
  135.                         
  136.                       <table class=title width="100%" border="0" cellpadding="2" cellspacing="1">
  137.                          <tr> 
  138.                             <td align="center" width="21%"><font class="strong">序号</font></td>
  139.                             
  140.                             <td align="center" width="16%"><font class="strong">姓名</font></td>
  141.                             
  142.                             <td align="center" width="23%"><font class="strong">项目进展情况</font></td>
  143.                             
  144.                             <td align="center" width="16%"><font class="strong">相关文档</font></td>
  145.                             
  146.                             <td align="center" width="24%"><font class="strong">批复日期</font></td>
  147.                           </tr>
  148. <%
  149.     for(int i = 0; i<subs.size(); i++)
  150.     {
  151.         sub = (SubTaskValueBean)subs.get(i);        
  152. %>
  153.                           <tr bgcolor="#e0e0e0"> 
  154.                             <td width="21%" bgcolor="#e0e0e0" align="center"><a href="/mainctrl/taskpending/taskPendingProjectDetail?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&csubtaskId=<%=sub.getSubtaskId()%>&subtasktypeId=<%=subtasktypeId%>&csubtasktypeId=<%=sub.getSubTypeId()%>&execId=<%=execId%>&querytype=<%=querytype%>"><%=sub.getSubStepNo()%></a></td>
  155.                             <td width="16%" align="center"><%=sub.getSubExecutorName("<br>")%></td>
  156.                             <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>
  157.                             <td width="16%">
  158.                               <vnex:fileList collection="<%=sub.getSubFiles()%>"> 
  159.                                 <vnex:items>
  160.                                  <a href="/<vnex:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  161.                                  <vnex:fileAttribute attribute="WorkflowFile_name"/>
  162.                                  </a><br>
  163.                                   </vnex:items> 
  164.                               </vnex:fileList>
  165.                             <td width="24%" align="center">
  166.                             <%
  167.                             if ( sub.getSubEndTime() != null )
  168.                                 out.println( StringUtil.getTimeChars( sub.getSubEndTime()+"", "day" ) );
  169.                             else
  170.                                 out.println("无");
  171.                             %>
  172.                             </td> 
  173.                           </tr>
  174. <%
  175.     }//end for
  176. %>
  177.                         </table>
  178. </td>
  179. </tr>
  180. </table>  
  181.                         <table width="600" border="0" cellspacing="0" cellpadding="0">
  182.                           <tr align="center"> 
  183.                             <td height="30" bgcolor="fafafa"> 
  184.                               <input type="button" name="Button" value="完成" onClick="acceptor(this.form)" class="text">&nbsp;&nbsp;
  185.                               <input type="button" name="Button2" value="返回" onClick="goback(this.form)" class="text">
  186.                             </td>
  187.                   </tr>
  188.                 </table>
  189.               </td>
  190.             </tr>
  191.           </table>
  192.           <br>
  193.           <br>
  194. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  195. </TD>
  196.     </TR>
  197.        <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  198.     </TABLE>
  199.   <BR>
  200.      <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  201. </form></DIV>
  202. </BODY></HTML>