archive_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:13k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ 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;
- %>
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language=JavaScript>
- function toDelete()
- {
- if(confirm("是否删除本档案?"))
- {
- myForm.action="/mainctrl/archive/deleteArchiveSuccess?archiveId=<%=request.getParameter("archiveId")%>";
- myForm.submit();
- }
- }
- function toModify()
- {
- myForm.action="modifyArchive?archiveId=<%=request.getParameter("archiveId")%>";
- myForm.submit();
- }
- function toAttch()
- {
- myForm.action="/mainctrl/archive/uploadArchive?archiveId=<%=request.getParameter("archiveId")%>";
- myForm.submit();
- }
- function toBorrow()
- {
- myForm.action="/mainctrl/archive/borrowArchiveRegister?archiveId=<%=request.getParameter("archiveId")%>";
- myForm.submit();
- }
- function toReturn()
- {
- myForm.action="/mainctrl/archive/returnArchiveRegister?archiveId=<%=request.getParameter("archiveId")%>";
- myForm.submit();
- }
- </script>
- <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_archives.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="myForm" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <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>
- <td align="center" bgcolor="#FFFFFF">
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="#666666">
- <td><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>><a href="/mainctrl/archive/todayArchives"><font color="#ffffff">档案管理</font></a>>>档案详细信息</font>
- </td>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 文件类型:</strong></div>
- </td>
- <td width="86%">
- <div align="left"><%= archiveInfo.getArchiveType()%></div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 存档日期:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= TimeStamp.formatCalendar(1,archiveInfo.getSaveArchiveDate())%></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 档案编号:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= archiveInfo.getArchiveDisplayId()%></div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 收件人:</strong></div>
- </td>
- <td width="86%">
- <div align="left"><%= archiveInfo.getReceiver()%></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%"><strong> 送存人:</strong></td>
- <td><%= archiveInfo.getSender()%></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 文件来源:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"> <%= fileSource%></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 发文日期:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= createDate%></div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 标题:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"> <%= archiveInfo.getArchiveTitle()%></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%"><strong> 主题词:</strong></td>
- <td width="86%" > <%= archiveInfo.getArchiveKeyword()%> </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 内容概要:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= archiveInfo.getContents()%></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 保密级别:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"> <%= archiveInfo.getSafetyLevel()%></div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 可否复制:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"> <%= (archiveInfo.getCopyPermission()==1)?("是"):("否") %></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 可复制份数:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= archiveInfo.getCopyNum()%></div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 可否打印:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= (archiveInfo.getPrintPermission()==1)?("是"):("否") %></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 可打印份数:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= archiveInfo.getPrintNum()%></div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 可否借阅:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= (archiveInfo.getLendPermission()==1)?("是"):("否") %></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 已经传阅:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= (archiveInfo.getSendViewFlag()==1)?("是"):("否") %></div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%" valign="top">
- <div align="left"><strong> 领导批示:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"><%= archiveInfo.getLeaderNotes()%></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 电子文档:</strong></div>
- </td>
- <td width="86%" >
- <div align="left"> </div>
- </td>
- </tr>
- <archive:attachmentList archiveId="<%=(new Integer(str)).intValue()%>" >
- <tr bgcolor="#fafafa">
- <td colspan="2">
- <table width="100%" border="0" cellspacing="1" cellpadding="2" class="title">
- <tr bgcolor="#cccccc" align="center">
- <td width="20%">
- <div align="center"><font class="strong">文件名</font></div>
- </td>
- <td width="20%"><font class="strong">标题</font></td>
- <td width="40%"><font class="strong">概要</font></td>
- <td width="20%"><font class="strong">上传日期</font></td>
- </tr>
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />" align="center">
- <td width="20%"><a href="<archive:attachmentAttribute attribute="file_path"/>" target="_blank"><archive:attachmentAttribute attribute="file_name"/></a></td>
- <td width="20%"><a href="/mainctrl/archive/modifyUploadFile?fileId=<archive:attachmentAttribute attribute="file_id"/>"><archive:attachmentAttribute attribute="file_title"/></a></td>
- <td width="40%"><archive:attachmentAttribute attribute="file_summary"/></td>
- <td width="2%"><archive:attachmentAttribute attribute="send_date"/></td>
- </tr>
- </vnex:items>
- <tr bgcolor="#e0e0e0">
- <td colspan="4"> <vnex:pagingTag pageName="<%=pageTo%>" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </archive:attachmentList>
- <tr bgcolor="#fafafa">
- <td colspan="3" align="center" height="30">
- <input onClick = toModify() type="button" value="修改" name="B21" class="text">
-
- <%
- if(archiveInfo.getLendPermission() == 1 && archiveInfo.getIsBorrowed() != 1)
- {
- %>
- <input onClick = toDelete() type="button" value="删除" name="del" class="text">
-
- <% }%>
- <input onClick = toAttch() type="button" value="附件" name="del" class="text">
-
- <% if (archiveInfo.getLendPermission() == 1 && archiveInfo.getIsBorrowed() != 1)
- {
- %>
- <input onClick= toBorrow() type="button" value="借阅" name="B21" class="text">
- <%}
- if(archiveInfo.getLendPermission() == 1 && archiveInfo.getIsBorrowed() == 1)
- {%>
- <input onClick= toReturn() type="button" value="归还" name="B212" class="text">
- <%}%>
- </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" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>