Workflow_Project_List.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
- <%@ page import="com.vnex.intranet.workflow.util.*"%>
- <%@ page import="com.vnex.intranet.workflow.loader.WorkflowLoader" %>
- <%@ page import="java.util.*"%>
- <%@ page import="com.vnex.intranet.workflow.projectmanagement.value.PmQryBean" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="pmProxy" scope="application" class="com.vnex.intranet.workflow.projectmanagement.proxy.PmProxyBean" />
- <jsp:useBean id="condition" scope="page" class="com.vnex.intranet.workflow.projectmanagement.value.PmQryBean" />
- <%
- if( request.getParameter("a") != null && Integer.parseInt( request.getParameter("a") ) == 1 )
- condition= ( PmQryBean )session.getAttribute("projectCondition");
- else
- {
- String strStatus = request.getParameter( "statusId" );
- if( strStatus != null )
- condition.setStatusId( Integer.parseInt( strStatus ) );
- else
- condition.setStatusId( WorkFlowStatus.CREATING );
- condition.setCreatorId( BusinessName.getEmpId() );
- session.setAttribute( "projectCondition", condition );
- }
- String start = "";
- if( request.getParameter("start") != null )
- {
- start = "&start=" + request.getParameter("start");
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language=JavaScript>
- function queryProject(form)
- {
- form.action="/mainctrl/projectmanagement/projectlist";
- form.submit();
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center"><br>
- <!--个人信息开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr bgcolor="#fafafa">
- <td>
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td colspan="5" height="15" bgcolor="#666666"><font class="strongw"> <a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>>工程项目管理
- </font></td>
- </tr>
- <tr>
- <td colspan="4" height="30">
- <font class="strong" > 状态: </font>
- <select name="statusId" size="1">
- <option value="-1" selected >全部状态</option>
- <%
- Hashtable hash = WorkflowLoader.getAllWorkflowStatus();
- Enumeration enum = hash.keys();
- if(enum != null)
- {
- while(enum.hasMoreElements())
- {
- String key = (String)enum.nextElement();
- %>
- <option value="<%= key%>"
- <% if( condition.getStatusId() == Integer.parseInt( key ) ) out.println( "selected" ); %>
- ><%= (String)hash.get( key )%>
- <%
- }
- }
- %>
- </select>
- <input type="button" name="Submit" value="查询" class="file" onClick="queryProject(this.form)">
- </td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr align=left bgcolor="#fafafa">
- <td colspan="4" height="30">
- <input type="button" style="width:60px" name="Submit222" value="新建项目" class="file" onClick="location='/mainctrl/projectmanagement/createselect'">
- </td>
- </tr>
- <tr align=middle>
- <td width="23%" height="2"><font class="strong">项目名称</font></td>
- <td width="15%" height="2"><font class="strong">计划开始时间</font></td>
- <td width="15%" height="2"><font class="strong">计划结束时间</font></td>
- <td width="7%" height="2"><font class="strong">项目状态</font></td>
- </tr>
- <vnex_workflow:projectList condition="<%= condition %>">
- <vnex:pagingItems>
- <tr bgcolor="<vnex:itemsColor />">
- <td width="23%" align="left" height="19"><font size="2" face="宋体">
- <p align="center"><a href="/mainctrl/projectmanagement/projectdetail?workflowId=<vnex_workflow:projectAttribute attribute="workflow_id"/><%= start %>"><vnex_workflow:projectAttribute attribute="title" /></a>
- </font> </td>
- <td width="15%" align="left" height="19"><font size="2" face="宋体">
- <p align="center"><vnex_workflow:projectAttribute attribute="begin_date" /></a>
- </font> </td>
- <td width="15%" align="left" height="19"><font size="2" face="宋体">
- <p align="center"><vnex_workflow:projectAttribute attribute="end_date" /></a>
- </font> </td>
- <td width="7%" align="left" height="19"><font size="2" face="宋体">
- <p align="center"><vnex_workflow:projectAttribute attribute="status" /></a>
- </font> </td>
- </tr>
- </vnex:pagingItems>
- <tr>
- <td colspan="6" align="left" bgcolor="#e0e0e0">
- <vnex:pagingTag pageName="/mainctrl/projectmanagement/projectlist?a=1" />
- </td>
- </tr>
- </vnex_workflow:projectList>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>