archive_detail_data.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:10k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.lang.*"%>
- <%@ page import="java.sql.Timestamp"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="com.vnex.intranet.system.loader.*"%>
- <%@ page import="com.vnex.intranet.system.value.*"%>
- <%@ page import="com.vnex.intranet.archives.value.ArchiveValueBean"%>
- <jsp:useBean id="archiveProxy" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" scope="session" />
- <%
- String str = request.getParameter("archiveId");
- ArchiveValueBean archiveInfo = archiveProxy.selectArchive((new Integer(str)).intValue());
- System.out.println("" + archiveInfo.getArchiveId());
- CategoryLoader cl = new CategoryLoader();
- CategoryValueBean[] cvb = cl.getByNameWithChildren("文件来源单位");
- System.out.println("OK1 " + archiveInfo.getFileSourceId());
- String fileSource = "";
- for (int i=0;i<cvb.length;i++)
- {
- if (cvb[i].getId() == archiveInfo.getFileSourceId())
- {
- fileSource = cvb[i].getName();
- break;
- }
- }
- System.out.println(archiveInfo.getFileSourceId() + fileSource);
- String createDate = "";
- if (archiveInfo.getCreateDate() != null)
- createDate = TimeStamp.formatCalendar(1,archiveInfo.getCreateDate());
- String pageTo = "/mainctrl/archive/archiveDetail?archiveId="+str;
- %>
- <table width="600" border="0" cellpadding="5" cellspacing="1" class="iframestyle">
- <tr>
- <td>
- <table width="100%" bgcolor="#ffffff">
- <tr>
- <td colspan="2"> <a href="/mainctrl/archive/todayArchives">档案管理</a>>>档案信息
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" height="4" bgcolor="#666666" align="center"><font class="strongw">档案信息</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td align="center" colspan="2">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- <table width="100%" border="0">
- <tr>
- <td width="14%">
- <div align="left">档案类型:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= archiveInfo.getArchiveType()%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">存档日期:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= TimeStamp.formatCalendar(1,archiveInfo.getSaveArchiveDate())%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">档案编号:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= archiveInfo.getArchiveDisplayId()%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">收件人:</div>
- </td>
- <td width="42%">
- <div align="left"><%= archiveInfo.getReceiver()%></div>
- </td>
- <td width="42%"> 送存人:<%= archiveInfo.getSender()%></td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">文件来源:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"> <%= fileSource%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">发文日期:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= createDate%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">标题:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"> <%= archiveInfo.getArchiveTitle()%></div>
- </td>
- </tr>
- <tr>
- <td>主题词:</td>
- <td colspan="2"> <%= archiveInfo.getArchiveKeyword()%> </td>
- </tr>
- <tr>
- <td width="14%" valign="top">
- <div align="left">内容概要:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= archiveInfo.getContents()%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">保密级别:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"> <%= archiveInfo.getSafetyLevel()%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可否复制:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"> <%= (archiveInfo.getCopyPermission()==1)?("是"):("否") %></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可复制份数:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= archiveInfo.getCopyNum()%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可否打印:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= (archiveInfo.getPrintPermission()==1)?("是"):("否") %></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可打印份数:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= archiveInfo.getPrintNum()%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可否借阅:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= (archiveInfo.getLendPermission()==1)?("是"):("否") %></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">已经传阅:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= (archiveInfo.getSendViewFlag()==1)?("是"):("否") %></div>
- </td>
- </tr>
- <tr>
- <td width="14%" valign="top">
- <div align="left">领导批示:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"><%= archiveInfo.getLeaderNotes()%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">电子文档:</div>
- </td>
- <td width="86%" colspan="2">
- <div align="left"> </div>
- </td>
- </tr>
- <archive:attachmentList archiveId="<%=(new Integer(str)).intValue()%>" >
- <tr>
- <td>
- <td bgcolor="#CCCCCC" colspan="2">
- <table width="100%" border="0">
- <tr>
- <td bgcolor="#e0e0e0" width="20%">
- <div align="center"><font class="strong">文件名</font></div>
- </td>
- <td width="20%" bgcolor="#e0e0e0"><font class="strong">标题</font></td>
- <td width="40%" bgcolor="#e0e0e0"><font class="strong">概要</font></td>
- <td width="20%" bgcolor="#e0e0e0"><font class="strong">上传日期</font></td>
- </tr>
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />">
- <td width="20%" bgcolor="#fafafa"><a href="<archive:attachmentAttribute attribute="file_path"/>" target="_blank"><archive:attachmentAttribute attribute="file_name"/></a></td>
- <td width="20%" bgcolor="#fafafa"><a href="/mainctrl/archive/modifyUploadFile?fileId=<archive:attachmentAttribute attribute="file_id"/>&isToday=<%=request.getParameter("isToday")%>"><archive:attachmentAttribute attribute="file_title"/></a></td>
- <td width="40%" bgcolor="#fafafa"><archive:attachmentAttribute attribute="file_summary"/></td>
- <td width="2%" bgcolor="#fafafa"><archive:attachmentAttribute attribute="send_date"/></td>
- </tr>
- </vnex:items>
- <tr bgcolor="#cccccc">
- <td colspan="4"> <vnex:pagingTag pageName="<%=pageTo%>" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </archive:attachmentList>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <p>
- <input onClick = toModify() type="button" value="修 改" name="B21" class="button">
- <input onClick = toDelete() type="button" value="删 除" name="del" class="button">
- <input onClick = toAttch() type="button" value="附 件" name="att" class="button">
- </p>
- <p>
- <input onClick = toList() type="button" value="返 回" name="list" class="button">
- <%if (archiveInfo.getLendPermission()==1)
- {
- if (archiveInfo.getIsBorrowed() != 1)
- {
- %>
- <input onClick= toBorrow() type="button" value="借 阅" name="B21" class="button">
- <%}
- else
- {%>
- <input onClick= toReturn() type="button" value="归 还" name="B212" class="button">
- <%}
- }
- %>
-
- </p>