archive_detail.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:13k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  3. <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
  4. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  5. <%@ page import="java.lang.*"%>
  6. <%@ page import="java.sql.Timestamp"%>
  7. <%@ page import="com.vnex.intranet.util.*"%>
  8. <%@ page import="com.vnex.intranet.system.loader.*"%>
  9. <%@ page import="com.vnex.intranet.system.value.*"%>
  10. <%@ page import="com.vnex.intranet.archives.value.ArchiveValueBean"%>
  11. <jsp:useBean id="archiveProxy" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" scope="session" /> 
  12. <%
  13. String str = request.getParameter("archiveId");
  14. ArchiveValueBean archiveInfo = archiveProxy.selectArchive((new Integer(str)).intValue());
  15. System.out.println("" + archiveInfo.getArchiveId());
  16. CategoryLoader cl = new CategoryLoader();
  17. CategoryValueBean[] cvb = cl.getByNameWithChildren("文件来源单位");
  18. System.out.println("OK1 " + archiveInfo.getFileSourceId());
  19. String fileSource = "";
  20. for (int i=0;i<cvb.length;i++)
  21. {
  22. if (cvb[i].getId() == archiveInfo.getFileSourceId())
  23. {
  24. fileSource = cvb[i].getName();
  25. break;
  26. }
  27. }
  28. System.out.println(archiveInfo.getFileSourceId() + fileSource);
  29. String createDate = "";
  30. if (archiveInfo.getCreateDate() != null)
  31. createDate = TimeStamp.formatCalendar(1,archiveInfo.getCreateDate());
  32. String pageTo = "/mainctrl/archive/archiveDetail?archiveId="+str;
  33. %>
  34. <HTML>
  35. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  36. <script language=JavaScript>
  37. function toDelete()
  38. {
  39.    if(confirm("是否删除本档案?"))
  40.    {
  41. myForm.action="/mainctrl/archive/deleteArchiveSuccess?archiveId=<%=request.getParameter("archiveId")%>";
  42. myForm.submit();
  43.    }
  44. }
  45. function toModify()
  46. {
  47. myForm.action="modifyArchive?archiveId=<%=request.getParameter("archiveId")%>";
  48. myForm.submit();
  49. }
  50. function toAttch()
  51. {
  52. myForm.action="/mainctrl/archive/uploadArchive?archiveId=<%=request.getParameter("archiveId")%>";
  53. myForm.submit();
  54. }
  55. function toBorrow()
  56. {
  57. myForm.action="/mainctrl/archive/borrowArchiveRegister?archiveId=<%=request.getParameter("archiveId")%>";
  58. myForm.submit();
  59. }
  60. function toReturn()
  61. {
  62. myForm.action="/mainctrl/archive/returnArchiveRegister?archiveId=<%=request.getParameter("archiveId")%>";
  63. myForm.submit();
  64. }
  65. </script>
  66. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  67. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  68. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  69. <DIV align=center>
  70. <form name="myForm" method="post" action="">
  71.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  72.       <TBODY>
  73.   <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  74.       <TR> 
  75.         <TD colSpan=3 align="center"><br>
  76.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  77.             <tr> 
  78.               <td align="center"  bgcolor="#FFFFFF"> 
  79.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  80.                   <tr bgcolor="#666666"> 
  81.                       <td><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;<a href="/mainctrl/archive/todayArchives"><font color="#ffffff">档案管理</font></a>&gt;&gt;档案详细信息</font>
  82.                       </td>
  83.                   </tr>
  84.                 </table>
  85.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  86.               <tr bgcolor="#e0e0e0"> 
  87.                 <td width="18%"> 
  88.                   <div align="left"><strong>&nbsp;文件类型:</strong></div>
  89.                 </td>
  90.                 <td width="86%"> 
  91.                   <div align="left"><%= archiveInfo.getArchiveType()%></div>
  92.                 </td>
  93.               </tr>
  94.               <tr bgcolor="#fafafa"> 
  95.                 <td width="18%"> 
  96.                   <div align="left"><strong>&nbsp;存档日期:</strong></div>
  97.                 </td>
  98.                 <td width="86%"  > 
  99.                   <div align="left"><%= TimeStamp.formatCalendar(1,archiveInfo.getSaveArchiveDate())%></div>
  100.                 </td>
  101.               </tr>
  102.               <tr bgcolor="#e0e0e0"> 
  103.                 <td width="18%"> 
  104.                   <div align="left"><strong>&nbsp;档案编号:</strong></div>
  105.                 </td>
  106.                 <td width="86%"  > 
  107.                   <div align="left"><%= archiveInfo.getArchiveDisplayId()%></div>
  108.                 </td>
  109.               </tr>
  110.               <tr bgcolor="#fafafa"> 
  111.                 <td width="18%"> 
  112.                   <div align="left"><strong>&nbsp;收件人:</strong></div>
  113.                 </td>
  114.                 <td width="86%"> 
  115.                   <div align="left"><%= archiveInfo.getReceiver()%></div>
  116.                 </td>
  117.               </tr>
  118.               <tr bgcolor="#e0e0e0">  
  119.                 <td width="18%"><strong>&nbsp;送存人:</strong></td>
  120.                 <td><%= archiveInfo.getSender()%></td>
  121.               </tr>
  122.               <tr bgcolor="#fafafa"> 
  123.                 <td width="18%"> 
  124.                   <div align="left"><strong>&nbsp;文件来源:</strong></div>
  125.                 </td>
  126.                 <td width="86%"  > 
  127.                   <div align="left"> <%= fileSource%></div>
  128.                 </td>
  129.               </tr>
  130.               <tr bgcolor="#e0e0e0"> 
  131.                 <td width="18%"> 
  132.                   <div align="left"><strong>&nbsp;发文日期:</strong></div>
  133.                 </td>
  134.                 <td width="86%"  > 
  135.                   <div align="left"><%= createDate%></div>
  136.                 </td>
  137.               </tr>
  138.               <tr bgcolor="#fafafa"> 
  139.                 <td width="18%"> 
  140.                   <div align="left"><strong>&nbsp;标题:</strong></div>
  141.                 </td>
  142.                 <td width="86%"  > 
  143.                   <div align="left"> <%= archiveInfo.getArchiveTitle()%></div>
  144.                 </td>
  145.               </tr>
  146.               <tr bgcolor="#e0e0e0"> 
  147.                 <td width="18%"><strong>&nbsp;主题词:</strong></td>
  148.                 <td width="86%" > <%= archiveInfo.getArchiveKeyword()%> </td>
  149.               </tr>
  150.               <tr bgcolor="#fafafa"> 
  151.                 <td width="18%"> 
  152.                   <div align="left"><strong>&nbsp;内容概要:</strong></div>
  153.                 </td>
  154.                 <td width="86%"  > 
  155.                   <div align="left"><%= archiveInfo.getContents()%></div>
  156.                 </td>
  157.               </tr>
  158.               <tr bgcolor="#e0e0e0"> 
  159.                 <td width="18%"> 
  160.                   <div align="left"><strong>&nbsp;保密级别:</strong></div>
  161.                 </td>
  162.                 <td width="86%"  > 
  163.                   <div align="left"> <%= archiveInfo.getSafetyLevel()%></div>
  164.                 </td>
  165.               </tr>
  166.               <tr bgcolor="#fafafa"> 
  167.                 <td width="18%"> 
  168.                   <div align="left"><strong>&nbsp;可否复制:</strong></div>
  169.                 </td>
  170.                 <td width="86%"  > 
  171.                   <div align="left"> <%= (archiveInfo.getCopyPermission()==1)?("是"):("否") %></div>
  172.                 </td>
  173.               </tr>
  174.               <tr bgcolor="#e0e0e0">  
  175.                 <td width="18%"> 
  176.                   <div align="left"><strong>&nbsp;可复制份数:</strong></div>
  177.                 </td>
  178.                 <td width="86%"  > 
  179.                   <div align="left"><%= archiveInfo.getCopyNum()%></div>
  180.                 </td>
  181.               </tr>
  182.               <tr bgcolor="#fafafa"> 
  183.                 <td width="18%"> 
  184.                   <div align="left"><strong>&nbsp;可否打印:</strong></div>
  185.                 </td>
  186.                 <td width="86%"  > 
  187.                   <div align="left"><%= (archiveInfo.getPrintPermission()==1)?("是"):("否") %></div>
  188.                 </td>
  189.               </tr>
  190.               <tr bgcolor="#e0e0e0"> 
  191.                 <td width="18%"> 
  192.                   <div align="left"><strong>&nbsp;可打印份数:</strong></div>
  193.                 </td>
  194.                 <td width="86%"  > 
  195.                   <div align="left"><%= archiveInfo.getPrintNum()%></div>
  196.                 </td>
  197.               </tr>
  198.               <tr bgcolor="#fafafa"> 
  199.                 <td width="18%"> 
  200.                   <div align="left"><strong>&nbsp;可否借阅:</strong></div>
  201.                 </td>
  202.                 <td width="86%"  > 
  203.                   <div align="left"><%= (archiveInfo.getLendPermission()==1)?("是"):("否") %></div>
  204.                 </td>
  205.               </tr>
  206.               <tr bgcolor="#e0e0e0"> 
  207.                 <td width="18%"> 
  208.                   <div align="left"><strong>&nbsp;已经传阅:</strong></div>
  209.                 </td>
  210.                 <td width="86%"  > 
  211.                   <div align="left"><%= (archiveInfo.getSendViewFlag()==1)?("是"):("否") %></div>
  212.                 </td>
  213.               </tr>
  214.               <tr bgcolor="#fafafa"> 
  215.                 <td width="18%" valign="top"> 
  216.                   <div align="left"><strong>&nbsp;领导批示:</strong></div>
  217.                 </td>
  218.                 <td width="86%"  > 
  219.                   <div align="left"><%= archiveInfo.getLeaderNotes()%></div>
  220.                 </td>
  221.               </tr>
  222.               <tr bgcolor="#e0e0e0"> 
  223.                 <td width="18%"> 
  224.                   <div align="left"><strong>&nbsp;电子文档:</strong></div>
  225.                 </td>
  226.                 <td width="86%"  > 
  227.                   <div align="left"> </div>
  228.                 </td>
  229.               </tr>
  230. <archive:attachmentList archiveId="<%=(new Integer(str)).intValue()%>" >  
  231.               <tr bgcolor="#fafafa"> 
  232.                 <td colspan="2"> 
  233.                   <table width="100%" border="0" cellspacing="1" cellpadding="2" class="title">
  234.                     <tr bgcolor="#cccccc" align="center"> 
  235.                       <td width="20%"> 
  236.                         <div align="center"><font class="strong">文件名</font></div>
  237.                       </td>
  238.                       <td width="20%"><font class="strong">标题</font></td>
  239.                       <td width="40%"><font class="strong">概要</font></td>
  240.                       <td width="20%"><font class="strong">上传日期</font></td>                      
  241.                     </tr>                  
  242. <vnex:items paging="true">
  243.                     <tr bgcolor="<vnex:itemsColor />" align="center"> 
  244.                       <td width="20%"><a href="<archive:attachmentAttribute attribute="file_path"/>" target="_blank"><archive:attachmentAttribute attribute="file_name"/></a></td>
  245.                       <td width="20%"><a href="/mainctrl/archive/modifyUploadFile?fileId=<archive:attachmentAttribute attribute="file_id"/>"><archive:attachmentAttribute attribute="file_title"/></a></td>
  246.                       <td width="40%"><archive:attachmentAttribute attribute="file_summary"/></td>
  247.                       <td width="2%"><archive:attachmentAttribute attribute="send_date"/></td>                      
  248.                     </tr>
  249. </vnex:items>                  
  250.                    <tr bgcolor="#e0e0e0">
  251.          <td colspan="4">&nbsp;&nbsp;<vnex:pagingTag pageName="<%=pageTo%>" />
  252.          </td>
  253.       </tr>
  254.                   </table>     
  255.                 </td>
  256.               </tr>
  257. </archive:attachmentList> 
  258.               <tr bgcolor="#fafafa">
  259.                  <td colspan="3" align="center" height="30">
  260.             <input onClick = toModify() type="button" value="修改" name="B21" class="text">
  261.             &nbsp;&nbsp;
  262. <%
  263.           if(archiveInfo.getLendPermission() == 1 && archiveInfo.getIsBorrowed() != 1)
  264.           {             
  265. %>          
  266.             <input onClick = toDelete() type="button" value="删除" name="del" class="text">
  267.             &nbsp;&nbsp;
  268. <%        }%>             
  269.             <input onClick = toAttch() type="button" value="附件" name="del" class="text">
  270.             &nbsp;&nbsp;
  271. <% if (archiveInfo.getLendPermission() == 1 && archiveInfo.getIsBorrowed() != 1)
  272. {
  273.  %>
  274.             <input onClick= toBorrow() type="button" value="借阅" name="B21" class="text">
  275.             <%}
  276.             if(archiveInfo.getLendPermission() == 1 && archiveInfo.getIsBorrowed() == 1)
  277.             {%>
  278.             <input onClick= toReturn() type="button" value="归还" name="B212" class="text">                        
  279.             <%}%>
  280.          </td>
  281.       </tr>   
  282.             </table>
  283.             </td>
  284.             </tr>
  285.             </table>
  286.             <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  287.         </TD>
  288.      </TR> 
  289.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />    
  290.     </TBODY> 
  291.   </TABLE>
  292.   <BR>
  293.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  294. </form>
  295. </DIV>
  296. </BODY>
  297. </HTML>