Office_Document_Sent_Details.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:12k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.util.Iterator" %>
- <%@ page import="com.vnex.intranet.util.TimeStamp" %>
- <%@ page import="com.vnex.intranet.workflow.util.*" %>
- <%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
- <%@ page import="com.vnex.intranet.workflow.document.value.SecurityType" %>
- <%@ page import="com.vnex.intranet.workflow.document.value.InstancyType" %>
- <%@ page import="com.vnex.intranet.workflow.document.value.*" %>
- <%@ page import="com.vnex.intranet.workflow.loader.WorkflowLoader" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <jsp:useBean id="persondocbean" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
- <jsp:useBean id="documentProxy" scope="application" class="com.vnex.intranet.workflow.document.proxy.DocumentProxyBean" />
- <jsp:useBean id="routeInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
- <jsp:include page="/vnex/head.jsp"/>
- <%
- java.sql.Timestamp current = new java.sql.Timestamp(System.currentTimeMillis());
- boolean isDelay = false;
- if( request.getParameter("return") != null && request.getParameter("return").equals( "true" ))
- {
- persondocbean = ( DocumentSendValueBean )session.getAttribute( "persondocument" );
- }
- else
- {
- String sId = request.getParameter("id");
- persondocbean = documentProxy.getSentDocDetail( Integer.parseInt( sId ) );
- }
- routeInfo = persondocbean.getRoute();
- session.setAttribute( "subtasks", routeInfo );
- ArrayList subtasks = routeInfo.getSubtaskList();
- %>
- <script language="JavaScript" src="/vnex/validate.js"></script>
- <script language=JavaScript>
- function updateDoc(form)
- {
- form.action="/mainctrl/personal/document/sentupdate";
- form.submit();
- }
- function sendDoc(form)
- {
- form.action="/mainctrl/personal/document/sentupdateok?flag=send";
- form.submit();
- }
- function getBack(form)
- {
- form.action="/mainctrl/personal/document/getbacksentdoc";
- form.submit();
- }
- function deleteDoc(form)
- {
- if( confirm( "确定要删除该发文?" ) )
- {
- form.action="/mainctrl/personal/document/sentdeleteok";
- form.submit();
- }
- }
- </script>
- <!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>
- window.onload=init
- </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="7" 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/personal/document/sentlist"><font color="#FFFFFF">发文管理</font></a>>>发文详细信息
- </font></td>
- </tr>
- <tr>
- <td width="100" bgcolor="#e0e0e0"><font class="strong"> 标题:</font></td>
- <td colspan="6" bgcolor="#e0e0e0"><%= FieldUtil.filterScriptTag( persondocbean.getTitle() )%></td>
- </tr>
- <tr>
- <td width="100" bgcolor="#fafafa"> <font class="strong"> 主题词:</font>
- </td>
- <td colspan="6" bgcolor="#fafafa"><%= FieldUtil.filterScriptTag( persondocbean.getKeyword() ) %></td>
- </tr>
- <tr>
- <td width="100" bgcolor="#e0e0e0"><font class="strong"> 紧急程度:</font></td>
- <td colspan="6" bgcolor="#e0e0e0"><%= persondocbean.getInstancyType() %></td>
- </tr>
- <tr>
- <td width="100" bgcolor="#fafafa"><font class="strong"> 秘密等级:</font></td>
- <td colspan="6" bgcolor="#fafafa"><%= persondocbean.getSecurityType() %></td>
- </tr>
- <tr>
- <td width="100" bgcolor="#e0e0e0"> <font class="strong"> 发件摘要:</font>
- </td>
- <td colspan="6" bgcolor="#e0e0e0"><%= FieldUtil.filterScriptTag( persondocbean.getDescription() ) %></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100" 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="<%=persondocbean.getFiles() %>">
- <vnex_workflow:items>
- <tr bgcolor="<vnex:itemsColor />">
- <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 class="table_row_title">
- <td bgcolor="#e0e0e0" rowspan="<%=( routeInfo.getSubtaskNum() + 1 ) %>"><font class="strong"> 执行顺序:</font></td>
- <td width="50" align="center"><font class="strong">顺序</font></td>
- <td width="145" align="center"><font class="strong">子任务</font></td>
- <td width="135" align="center"><font class="strong">执行者</font></td>
- <td width="94" align="center"><font class="strong">类型</font></td>
- <td width="95" align="center"><font class="strong">状态</font></td>
- <td 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/personal/document/sentsubtaskdetail?subtaskId=<%= sub.getSubtaskId()%>&workflowId=<%=persondocbean.getWorkflowId()%>"><%= FieldUtil.filterScriptTag( sub.getSubTitle() )%></a></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">
- <% java.util.Date cur = new java.util.Date( current.getYear(), current.getMonth(), current.getDate() );
- java.util.Date et = null;
- if( sub.getSubEndTime() != null )
- et = new java.util.Date( sub.getSubEndTime().getYear(), sub.getSubEndTime().getMonth(), sub.getSubEndTime().getDate() );
- if( sub.getSubStatusId() == SubTaskStatus.PENDING && sub.getSubEndTime() != null && cur.after( et ) )
- { 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="id" value="<%=persondocbean.getWorkflowId()%>" >
- <%
- if ( persondocbean.getStatusId() == WorkFlowStatus.CREATING )
- {
- %>
- <input type="button" name="Submit" value="发出" class="file" onClick="sendDoc(this.form)">
- <input type="button" name="Submit" value="修改" class="file" onClick="updateDoc(this.form)">
- <input type="button" name="Submit" value="删除" class="file" onClick="deleteDoc(this.form)">
- <input type="reset" name="Submit2" value="返回" class="file" onclick="location='/mainctrl/personal/document/sentlist'">
- <%
- }
- if ( persondocbean.getStatusId() == WorkFlowStatus.SENDBACK )
- {
- %>
- <input type="button" name="Submit" value="发出" class="file" onClick="sendDoc(this.form)">
- <input type="button" name="Submit" value="修改" class="file" onClick="updateDoc(this.form)">
- <input type="button" name="Submit" value="删除" class="file" onClick="deleteDoc(this.form)">
- <input type="reset" name="Submit2" value="返回" class="file" onclick="location='/mainctrl/personal/document/sentlist'">
- <%
- }
- if ( persondocbean.getStatusId() == WorkFlowStatus.DONE )
- {
- %>
- <input type="button" name="Submit" value="修改" class="file" onClick="updateDoc(this.form)">
- <input type="button" name="Submit" value="删除" class="file" onClick="deleteDoc(this.form)">
- <input type="reset" name="Submit2" value="返回" class="file" onclick="location='/mainctrl/personal/document/sentlist'">
- <%
- }
- if ( persondocbean.getStatusId() == WorkFlowStatus.EXECUTING )
- {if( true /*isDelay*/ )
- {
- %>
- <input type="button" name="Submitg" value="撤回" class="file" onClick="getBack(this.form)">
- <% } %>
- <input type="reset" name="Submit2" value="返回" class="file" onclick="location='/mainctrl/personal/document/sentlist'">
- <%
- }
- %>
- </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>