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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
  5. <%@ page import="com.vnex.intranet.workflow.util.*"%>
  6. <%@ page import="com.vnex.intranet.workflow.loader.WorkflowLoader" %>
  7. <%@ page import="java.util.*"%>
  8. <%@ page import="com.vnex.intranet.workflow.projectmanagement.value.PmQryBean" %>
  9. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  10. <jsp:useBean id="pmProxy" scope="application" class="com.vnex.intranet.workflow.projectmanagement.proxy.PmProxyBean" />
  11. <jsp:useBean id="condition" scope="page" class="com.vnex.intranet.workflow.projectmanagement.value.PmQryBean" />
  12. <%         
  13.     if( request.getParameter("a") != null && Integer.parseInt( request.getParameter("a") ) == 1 )
  14.         condition= ( PmQryBean )session.getAttribute("projectCondition"); 
  15.     else
  16.     {
  17.         String strStatus = request.getParameter( "statusId" );
  18.         if( strStatus != null )
  19.             condition.setStatusId( Integer.parseInt( strStatus ) );  
  20.         else
  21.             condition.setStatusId( WorkFlowStatus.CREATING );     
  22.         condition.setCreatorId( BusinessName.getEmpId() );  
  23.         session.setAttribute( "projectCondition", condition ); 
  24.     } 
  25.         
  26.     String start = "";
  27.     if( request.getParameter("start") != null )
  28.     {
  29.         start = "&start=" + request.getParameter("start");
  30.     }   
  31. %>
  32. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  33. <HTML>
  34. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  35. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  36. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  37. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  38. <script language=JavaScript>
  39. function queryProject(form)
  40. {
  41.    form.action="/mainctrl/projectmanagement/projectlist";
  42.    form.submit();     
  43. }
  44. </script>
  45. <DIV align=center>
  46. <form name="form1" method="post" action="">   
  47.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  48.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  49.     <TR> 
  50.         <TD colSpan=3 align="center"><br>
  51.           <!--个人信息开始 -->
  52.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  53.             <tr bgcolor="#fafafa"> 
  54.               <td> 
  55.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  56.                   <tr> 
  57.                     <td colspan="5" height="15" bgcolor="#666666"><font class="strongw">&nbsp;<a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;工程项目管理 
  58.                       </font></td>
  59.                   </tr>
  60.                   <tr> 
  61.                     <td colspan="4" height="30">
  62.                       <font class="strong" >&nbsp;状态: </font>&nbsp; 
  63.                        <select name="statusId" size="1">
  64.                        <option value="-1" selected >全部状态</option>                        
  65. <%                    
  66.                         Hashtable hash = WorkflowLoader.getAllWorkflowStatus();
  67.                         Enumeration enum = hash.keys();
  68.                         if(enum != null)
  69.                         {
  70.                             while(enum.hasMoreElements())
  71.                             {       
  72.                                 String key = (String)enum.nextElement();                                                    
  73. %>                    
  74.                        <option value="<%= key%>"
  75. <%                     if( condition.getStatusId() == Integer.parseInt( key ) ) out.println( "selected" ); %>                                                  
  76.                        ><%= (String)hash.get( key )%>
  77. <%
  78.                             }
  79.                         }
  80. %>                                 
  81.                       </select>
  82.                       
  83.                       &nbsp;<input type="button" name="Submit" value="查询" class="file" onClick="queryProject(this.form)">
  84.                     </td>
  85.                   </tr>
  86.                 </table>
  87.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  88.                   <tr align=left bgcolor="#fafafa"> 
  89.                     <td colspan="4" height="30">&nbsp; 
  90.                       <input type="button" style="width:60px" name="Submit222" value="新建项目" class="file" onClick="location='/mainctrl/projectmanagement/createselect'">
  91.                     </td>
  92.                   </tr>
  93.                   <tr align=middle> 
  94.                     <td width="23%" height="2"><font class="strong">项目名称</font></td>
  95.                     <td width="15%" height="2"><font class="strong">计划开始时间</font></td>
  96.                     <td width="15%" height="2"><font class="strong">计划结束时间</font></td>
  97.                     <td width="7%" height="2"><font class="strong">项目状态</font></td>
  98.                   </tr>
  99.                   <vnex_workflow:projectList condition="<%= condition %>">   
  100.                         <vnex:pagingItems>                               
  101.                         <tr bgcolor="<vnex:itemsColor />"> 
  102.                           <td width="23%" align="left" height="19"><font size="2" face="宋体"> 
  103.                             <p align="center"><a href="/mainctrl/projectmanagement/projectdetail?workflowId=<vnex_workflow:projectAttribute attribute="workflow_id"/><%= start %>"><vnex_workflow:projectAttribute attribute="title" /></a> 
  104.                             </font> </td>
  105.                           <td width="15%" align="left" height="19"><font size="2" face="宋体"> 
  106.                             <p align="center"><vnex_workflow:projectAttribute attribute="begin_date" /></a> 
  107.                             </font> </td>
  108.                           <td width="15%" align="left" height="19"><font size="2" face="宋体"> 
  109.                             <p align="center"><vnex_workflow:projectAttribute attribute="end_date" /></a> 
  110.                             </font> </td>
  111.                           <td width="7%" align="left" height="19"><font size="2" face="宋体"> 
  112.                             <p align="center"><vnex_workflow:projectAttribute attribute="status" /></a> 
  113.                             </font> </td>
  114.                         </tr>                        
  115.                         </vnex:pagingItems> 
  116.                         <tr>
  117.                            <td colspan="6" align="left" bgcolor="#e0e0e0">                              
  118.                              &nbsp;<vnex:pagingTag pageName="/mainctrl/projectmanagement/projectlist?a=1" />                                   
  119.                            </td>
  120.                         </tr>  
  121.                         </vnex_workflow:projectList>
  122.                 </table>
  123.                 </td>
  124.             </tr>
  125.           </table>          
  126.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  127.        </TD>
  128.     </TR>
  129.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  130.     </TABLE>
  131.   <BR>
  132.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  133. </form></DIV>
  134. </BODY></HTML>