Project_Details.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:11k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.util.*" %>
- <%@ page import="com.vnex.intranet.util.*" %>
- <%@ page import="com.vnex.intranet.system.loader.*"%>
- <%@ page import="com.vnex.intranet.upload.*"%>
- <%@ page import="com.vnex.intranet.workflow.pub.value.*"%>
- <%@ page import="com.vnex.intranet.workflow.util.*"%>
- <%@ page import="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean"%>
- <%@ page import="com.vnex.intranet.workflow.loader.WorkflowLoader" %>
- <jsp:useBean id="pvb" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean"/>
- <jsp:useBean id="routeValueBean" scope="page" class="com.vnex.intranet.workflow.pub.value.RouteValueBean"/>
- <jsp:useBean id="pmProxy" scope="application" class="com.vnex.intranet.workflow.projectmanagement.proxy.PmProxyBean" />
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%
- java.sql.Timestamp current = new java.sql.Timestamp(System.currentTimeMillis());
- boolean isDelay = false;
- if( request.getParameter("return") != null && request.getParameter("return").equals( "true" ))
- {
- pvb = ( PmValueBean )session.getAttribute( "pvb" );
- }
- else
- {
- pvb = pmProxy.getProjectDetail(Integer.parseInt(request.getParameter("workflowId")));
- session.setAttribute("pvb",pvb);
- }
- routeValueBean = pvb.getRoute();
- session.setAttribute( "subtasks", routeValueBean );
- ArrayList subtasks = routeValueBean.getSubtaskList();
- %>
- <!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" src="/vnex/validate.js"></script>
- <script language=JavaScript>
- function updateDoc(form)
- {
- form.action="/mainctrl/projectmanagement/modifyproject";
- form.submit();
- }
- function sendDoc(form)
- {
- form.action="/mainctrl/projectmanagement/startproject";
- form.submit();
- }
- function getBack(form)
- {
- form.action="/mainctrl/projectmanagement/getbackproject";
- form.submit();
- }
- function deleteDoc(form)
- {
- if( confirm( "确定要删除该项目?" ) )
- {
- form.action="/mainctrl/projectmanagement/deleteproject";
- form.submit();
- }
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post">
- <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 class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr bgcolor="#666666">
- <td colspan="76" height="15"><font class="strongw"> <a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>><a href="/mainctrl/projectmanagement/projectlist"><font color="#FFFFFF">工程项目管理</font></a>>><font color="#FFFFFF">项目详细信息</font>
- </font></td>
- </tr>
- <tr>
- <td width="150" bgcolor="#fafafa"><font class="strong"> 项目名称:</font></td>
- <td colspan="6" bgcolor="#fafafa"><%= pvb.getTitle() %></td>
- </tr>
- <tr>
- <td width="150" bgcolor="#e0e0e0"><font class="strong"> 计划开始时间:</font></td>
- <td colspan="6" bgcolor="#e0e0e0"><%= pvb.getPlanBeginDateS() %></td>
- </tr>
- <tr>
- <td width="150" bgcolor="#fafafa"><font class="strong"> 计划结束时间:</font></td>
- <td colspan="6" bgcolor="#fafafa"><%= pvb.getPlanEndDateS() %></td>
- </tr>
- <tr>
- <td width="150" bgcolor="#e0e0e0"> <font class="strong"> 项目描述:</font>
- </td>
- <td colspan="6" bgcolor="#e0e0e0"><%= pvb.getDescription() %></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="150" bgcolor="#fafafa" ><font class="strong"> 文件附件:</font></td>
- <td colspan="6" bgcolor="#fafafa">
- <table border="0" cellspacing="0" cellpadding="2" width="100%" bgcolor="#cccccc" >
- <vnex_workflow:fileList collection="<%=pvb.getFiles() %>">
- <vnex_workflow:items>
- <tr>
- <td width="102" bgcolor="#fafafa"><a href="/<vnex_workflow:fileAttribute attribute="workflowfile_title" />" target="_blank">
- <vnex_workflow:fileAttribute attribute="workflowfile_name"/></a></td>
- </td>
- </tr>
- </vnex_workflow:items>
- </vnex_workflow:fileList>
- </table>
- </td>
- </tr>
- <tr>
- <td bgcolor="#e0e0e0" width="150" rowspan="<%=( routeValueBean.getSubtaskNum() + 1 ) %>"><font class="strong"> 执行顺序:</font></td>
- <td bgcolor="#e0e0e0" width="50" align="center"><font class="strong">顺序</font></td>
- <td bgcolor="#e0e0e0" width="145" align="center"><font class="strong">子任务</font></td>
- <td bgcolor="#e0e0e0" width="135" align="center"><font class="strong">执行者</font></td>
- <td bgcolor="#e0e0e0" width="94" align="center"><font class="strong">类型</font></td>
- <td bgcolor="#e0e0e0" width="95" align="center"><font class="strong">状态</font></td>
- <td bgcolor="#e0e0e0" width="95" align="center"><font class="strong">截止时间</font></td>
- </tr>
- <%
- for( int i = 0; i < subtasks.size(); i++ )
- {
- SubTaskValueBean sub = ( SubTaskValueBean )subtasks.get(i);
- if( i%2 == 0)
- {
- %>
- <tr bgcolor="#fafafa" align="center">
- <%}else{
- %>
- <tr bgcolor="#e0e0e0" align="center">
- <%}
- %>
- <td width="50"><%= sub.getSubStepNo() %></td>
- <td width="145"><a href="/mainctrl/projectmanagement/sentsubtaskdetail?subtaskId=<%= sub.getSubtaskId() %>&workflowId=<%=pvb.getWorkflowId() %>"><%= sub.getSubTitle() %></td>
- <td width="135">
- <%=sub.getSubExecutorName() %>
- </td>
- <td width="94">
- <%= WorkflowLoader.getSubtaskType( sub.getSubTypeId() ) %>
- </td>
- <td width="95">
- <%= WorkflowLoader.getSubtaskStatus( sub.getSubStatusId() ) %>
- </td>
- <td width="95">
- <%
- if( sub.getSubStatusId() == SubTaskStatus.PENDING && sub.getSubPlanEndTime() != null && sub.getSubPlanEndTime().before( current ) )
- { isDelay = true;
- %>
- <font color=red ><%= sub.getSubPlanEndTimeS() %></font></td></tr>
- <% }
- else
- {
- %>
- <%= sub.getSubPlanEndTimeS() %></td></tr>
- <% }
- }
- %>
- <tr bgcolor="#fafafa" align="center">
- <td colspan="7" height="30">
- <input type="hidden" name="workflowId" value="<%=pvb.getWorkflowId()%>" >
- <%
- if ( pvb.getStatusId() == WorkFlowStatus.CREATING )
- {
- %>
- <input type="button" name="Submitf" value="启动" class="file" onClick="sendDoc(this.form)">
- <input type="button" name="Submitx" value="修改" class="file" onClick="updateDoc(this.form)">
- <input type="button" name="Submitd" value="删除" class="file" onClick="deleteDoc(this.form)">
- <input type="button" name="Submitb" value="返回" class="file" onclick="location='/mainctrl/projectmanagement/projectlist?statusId=<%= WorkFlowStatus.CREATING %>'">
- <%
- }
- if ( pvb.getStatusId() == WorkFlowStatus.SENDBACK )
- {
- %>
- <input type="button" name="Submitf" value="发出" class="file" onClick="sendDoc(this.form)">
- <input type="button" name="Submitx" value="修改" class="file" onClick="updateDoc(this.form)">
- <input type="button" name="Submitd" value="删除" class="file" onClick="deleteDoc(this.form)">
- <input type="button" name="Submitb" value="返回" class="file" onclick="location='/mainctrl/projectmanagement/projectlist?statusId=<%= WorkFlowStatus.SENDBACK %>'">
- <%
- }
- if ( pvb.getStatusId() == WorkFlowStatus.DONE )
- {
- %>
- <input type="button" name="Submitd" value="删除" class="file" onClick="deleteDoc(this.form)">
- <input type="button" name="Submitb" value="返回" class="file" onclick="location='/mainctrl/projectmanagement/projectlist?statusId=<%= WorkFlowStatus.DONE %>'">
- <%
- }
- if ( pvb.getStatusId() == WorkFlowStatus.EXECUTING )
- {
- if( true/*isDelay*/ )
- {
- %>
- <input type="button" name="Submitg" value="撤回" class="file" onClick="getBack(this.form)">
- <% } %>
- <input type="button" name="Submitb" value="返回" class="file" onclick="location='/mainctrl/projectmanagement/projectlist?statusId=<%= WorkFlowStatus.EXECUTING %>'">
- <%}
- %>
- </td>
- </tr>
- </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>