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

电子政务应用

开发平台:

Java

  1. <%@jsp:include file="/vnex/head.jsp"%>
  2. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  3. <%@ page import="java.util.*" %>
  4. <%@ page import="com.vnex.intranet.workflow.loader.*" %>
  5. <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
  6. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  7. <script language=JavaScript>
  8. function query(form)
  9. {
  10.   form.action="/mainctrl/taskpending/taskPendingFinishList";
  11.   form.submit();
  12. }
  13. function SelectAll(form)
  14. {
  15.   for (var i=0;i<form.elements.length;i++)
  16.   {
  17.     var e = form.elements[i];
  18.     if (e.name != 'C1')
  19.        e.checked = form.C1.checked;
  20.   }
  21. }
  22. </script>
  23. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  24. <%
  25.     int userId = BusinessName.getEmpId();
  26.     //userId = 1001;    
  27.     session.removeAttribute("routeInfo");
  28.     String querytype = request.getParameter("type");
  29.     int workflowtype = 0;
  30.     
  31.     String pageTo = "/mainctrl/taskpending/taskPendingFinishList?a";
  32.     
  33.     if(querytype!=null)
  34.     {
  35.         workflowtype = Integer.parseInt(querytype);
  36.         pageTo = pageTo + "&querytype="+workflowtype + "&type="+workflowtype;
  37.     }
  38. %>
  39. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  40. <HTML>
  41. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  42. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  43. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  44. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  45. <script language="JavaScript">
  46. window.onload=init
  47. </script>
  48. <DIV align=center>
  49. <form name="form1" method="post" action="">
  50.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  51.     <TBODY> 
  52.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  53.     <TR> 
  54.         <TD colSpan=3 align="center"><br>
  55.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  56.             <tr> 
  57.               <td align="center" colspan="2" bgcolor="#FFFFFF"> 
  58.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  59.                   <tr bgcolor="#666666"> 
  60.                     <td bgcolor="#666666"><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;<font color="#FFFFFF">已办事宜</font> 
  61.                     </td>
  62.                   </tr>
  63.                   <tr>
  64.                      <td height="30" bgcolor="#fafafa">
  65.                       &nbsp;&nbsp;请选择已办事宜类型:
  66.                     
  67.                     <select size="1" name="type" value="0" style="width=150">
  68.                         <option value="0">&nbsp;全部类型
  69. <%                    
  70.                         Hashtable hash = WorkflowLoader.getAllWorkflowType();
  71.                         Enumeration enum = hash.keys();
  72.                         
  73.                         if(enum != null)
  74.                         {
  75.                             while(enum.hasMoreElements())
  76.                             {
  77.                                 String key = (String)enum.nextElement();
  78.                                 String s = (String)hash.get(key);
  79. %>                          
  80.                     <option value="<%= key%>"><%= s%></option>
  81. <%}}%>                    
  82.                     </select>&nbsp;
  83.                     <input type="button" name="Button2" value="查询" onClick="query(this.form)" class="text">
  84.                     </td>
  85.                   </tr>
  86.                 </table>
  87.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  88.                               <tr> 
  89.                                 <td align="center"><font class="strong">任务名</font></td>
  90.                                 <td align="center"><font class="strong">子任务名</font></td>
  91.                                 <td align="center"><font class="strong">类型</font></td>
  92. <!--
  93.                                 <td align="center"><font class="strong">开始日期</font></td>
  94. -->
  95.                                 <td align="center"><font class="strong">预计完成时间</font></td>
  96.                                 <td align="center"><font class="strong">创建人</font></td>
  97.                                 <td align="center"><font class="strong">状态</font></td>
  98.                               </tr>
  99. <vnex_workflow:taskPendingList employeeId = "<%=userId%>" type = "<%=workflowtype%>" page= "finish">
  100. <vnex:pagingItems>                              
  101.                               <tr bgcolor="<vnex:itemsColor />"> 
  102.                                 <td align="center" width="20%">
  103.                                     <a href="/mainctrl/taskpending/taskPendingFinishDispatch?workflowId=<vnex_workflow:taskPendingAttribute attribute = "workflowId"/>&subtaskId=<vnex_workflow:taskPendingAttribute attribute = "subtaskId"/>&workflowtypeId=<vnex_workflow:taskPendingAttribute attribute = "workflowtypeId"/>&subtasktypeId=<vnex_workflow:taskPendingAttribute attribute = "subtasktypeId"/>&execId=<vnex_workflow:taskPendingAttribute attribute = "execId"/>&querytype=<%=workflowtype%>">
  104.                                         <vnex_workflow:taskPendingAttribute attribute = "workflowTitle"/>
  105.                                     </a>
  106.                                 </td>                                
  107.                                 <td align="center" width="20%">
  108.                                     <vnex_workflow:taskPendingAttribute attribute = "subtaskTitle"/>
  109.                                 </td>                                
  110.                                 
  111.                                 <td align="center" width="10%">
  112.                                     <vnex_workflow:taskPendingAttribute attribute = "workflowtypeName"/>
  113.                                 </td>                                
  114. <!--
  115.                                 <td align="center" width="15%">
  116.                                     <vnex_workflow:taskPendingAttribute attribute = "beginTime"/>
  117.                                 </td>
  118. -->
  119.                                 <td align="center" width="15%">
  120.                                     <vnex_workflow:taskPendingAttribute attribute = "planEndTime"/>
  121.                                 </td>
  122.                                 <td align="center" width="10%"> 
  123.                                     <vnex_workflow:taskPendingAttribute attribute = "creatorName"/> 
  124.                                 </td>                                
  125.                                 <td align="center" width="10%">
  126.                                     <vnex_workflow:taskPendingAttribute attribute = "statusName"/>
  127.                                 </td>
  128.                               </tr>
  129. </vnex:pagingItems> 
  130. <tr>
  131.    <td colspan="7" align="left" bgcolor="#e0e0e0">&nbsp; 
  132.                                     <vnex:pagingTag pageName="<%=pageTo%>" /> 
  133.    </td>
  134. </tr>
  135. </vnex_workflow:taskPendingList>   
  136.          
  137.                             </table>
  138.                           </td>
  139.                         </tr>
  140.                        </table>
  141.           <!--个人信息结束 --> <!--分隔线开始 -->
  142.  
  143. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  144. </TD>
  145.     </TR>
  146.        <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  147.     </TABLE>
  148.   <BR>
  149.      <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  150. </form></DIV>
  151. </BODY></HTML>