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