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

电子政务应用

开发平台:

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