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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="java.lang.*"%>
  5. <%@ page import="java.sql.Timestamp"%>
  6. <%@ page import="com.vnex.intranet.util.*"%>
  7. <%@ page import="com.vnex.intranet.system.loader.*"%>
  8. <%@ page import="com.vnex.intranet.system.value.*"%>
  9. <%@ page import="com.vnex.intranet.archives.value.ArchiveValueBean"%>
  10. <jsp:useBean id="archiveProxy" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" scope="session" /> 
  11. <%
  12. String str = request.getParameter("archiveId");
  13. ArchiveValueBean archiveInfo = archiveProxy.selectArchive((new Integer(str)).intValue());
  14. System.out.println("" + archiveInfo.getArchiveId());
  15. CategoryLoader cl = new CategoryLoader();
  16. CategoryValueBean[] cvb = cl.getByNameWithChildren("文件来源单位");
  17. System.out.println("OK1 " + archiveInfo.getFileSourceId());
  18. String fileSource = "";
  19. for (int i=0;i<cvb.length;i++)
  20. {
  21. if (cvb[i].getId() == archiveInfo.getFileSourceId())
  22. {
  23. fileSource = cvb[i].getName();
  24. break;
  25. }
  26. }
  27. System.out.println(archiveInfo.getFileSourceId() + fileSource);
  28. String createDate = "";
  29. if (archiveInfo.getCreateDate() != null)
  30. createDate = TimeStamp.formatCalendar(1,archiveInfo.getCreateDate());
  31. String pageTo = "/mainctrl/archive/archiveDetail?archiveId="+str;
  32. %>
  33. <table width="600" border="0" cellpadding="5" cellspacing="1" class="iframestyle">
  34. <tr>
  35.   <td>
  36.      <table width="100%" bgcolor="#ffffff">
  37.        <tr>
  38.          <td colspan="2">&nbsp;&nbsp;<a href="/mainctrl/archive/todayArchives">档案管理</a>&gt;&gt;档案信息&nbsp;
  39.          </td>
  40.        </tr>
  41.      </table>
  42.   </td>
  43. </tr>
  44.    <tr> 
  45.       <td colspan="2" height="4" bgcolor="#666666" align="center"><font class="strongw">档案信息</font></td>
  46.    </tr>
  47.    <tr bgcolor="#FFFFFF"> 
  48.       <td align="center" colspan="2">
  49.          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  50.             <tr>
  51.                <td>
  52.                  
  53.             <table width="100%" border="0">
  54.               <tr> 
  55.                 <td width="14%"> 
  56.                   <div align="left">档案类型:</div>
  57.                 </td>
  58.                 <td width="86%" colspan="2"> 
  59.                   <div align="left"><%= archiveInfo.getArchiveType()%></div>
  60.                 </td>
  61.               </tr>
  62.               <tr> 
  63.                 <td width="14%"> 
  64.                   <div align="left">存档日期:</div>
  65.                 </td>
  66.                 <td width="86%" colspan="2"> 
  67.                   <div align="left"><%= TimeStamp.formatCalendar(1,archiveInfo.getSaveArchiveDate())%></div>
  68.                 </td>
  69.               </tr>
  70.               <tr> 
  71.                 <td width="14%"> 
  72.                   <div align="left">档案编号:</div>
  73.                 </td>
  74.                 <td width="86%" colspan="2"> 
  75.                   <div align="left"><%= archiveInfo.getArchiveDisplayId()%></div>
  76.                 </td>
  77.               </tr>
  78.               <tr> 
  79.                 <td width="14%"> 
  80.                   <div align="left">收件人:</div>
  81.                 </td>
  82.                 <td width="42%"> 
  83.                   <div align="left"><%= archiveInfo.getReceiver()%></div>
  84.                 </td>
  85.                 <td width="42%"> 送存人:<%= archiveInfo.getSender()%></td>
  86.               </tr>
  87.               <tr> 
  88.                 <td width="14%"> 
  89.                   <div align="left">文件来源:</div>
  90.                 </td>
  91.                 <td width="86%" colspan="2"> 
  92.                   <div align="left"> <%= fileSource%></div>
  93.                 </td>
  94.               </tr>
  95.               <tr> 
  96.                 <td width="14%"> 
  97.                   <div align="left">发文日期:</div>
  98.                 </td>
  99.                 <td width="86%" colspan="2"> 
  100.                   <div align="left"><%= createDate%></div>
  101.                 </td>
  102.               </tr>
  103.               <tr> 
  104.                 <td width="14%"> 
  105.                   <div align="left">标题:</div>
  106.                 </td>
  107.                 <td width="86%" colspan="2"> 
  108.                   <div align="left"> <%= archiveInfo.getArchiveTitle()%></div>
  109.                 </td>
  110.               </tr>
  111.               <tr> 
  112.                 <td>主题词:</td>
  113.                 <td colspan="2"> <%= archiveInfo.getArchiveKeyword()%> </td>
  114.               </tr>
  115.               <tr> 
  116.                 <td width="14%" valign="top"> 
  117.                   <div align="left">内容概要:</div>
  118.                 </td>
  119.                 <td width="86%" colspan="2"> 
  120.                   <div align="left"><%= archiveInfo.getContents()%></div>
  121.                 </td>
  122.               </tr>
  123.               <tr> 
  124.                 <td width="14%"> 
  125.                   <div align="left">保密级别:</div>
  126.                 </td>
  127.                 <td width="86%" colspan="2"> 
  128.                   <div align="left"> <%= archiveInfo.getSafetyLevel()%></div>
  129.                 </td>
  130.               </tr>
  131.               <tr> 
  132.                 <td width="14%"> 
  133.                   <div align="left">可否复制:</div>
  134.                 </td>
  135.                 <td width="86%" colspan="2"> 
  136.                   <div align="left"> <%= (archiveInfo.getCopyPermission()==1)?("是"):("否") %></div>
  137.                 </td>
  138.               </tr>
  139.               <tr> 
  140.                 <td width="14%"> 
  141.                   <div align="left">可复制份数:</div>
  142.                 </td>
  143.                 <td width="86%" colspan="2"> 
  144.                   <div align="left"><%= archiveInfo.getCopyNum()%></div>
  145.                 </td>
  146.               </tr>
  147.               <tr> 
  148.                 <td width="14%"> 
  149.                   <div align="left">可否打印:</div>
  150.                 </td>
  151.                 <td width="86%" colspan="2"> 
  152.                   <div align="left"><%= (archiveInfo.getPrintPermission()==1)?("是"):("否") %></div>
  153.                 </td>
  154.               </tr>
  155.               <tr> 
  156.                 <td width="14%"> 
  157.                   <div align="left">可打印份数:</div>
  158.                 </td>
  159.                 <td width="86%" colspan="2"> 
  160.                   <div align="left"><%= archiveInfo.getPrintNum()%></div>
  161.                 </td>
  162.               </tr>
  163.               <tr> 
  164.                 <td width="14%"> 
  165.                   <div align="left">可否借阅:</div>
  166.                 </td>
  167.                 <td width="86%" colspan="2"> 
  168.                   <div align="left"><%= (archiveInfo.getLendPermission()==1)?("是"):("否") %></div>
  169.                 </td>
  170.               </tr>
  171.               <tr> 
  172.                 <td width="14%"> 
  173.                   <div align="left">已经传阅:</div>
  174.                 </td>
  175.                 <td width="86%" colspan="2"> 
  176.                   <div align="left"><%= (archiveInfo.getSendViewFlag()==1)?("是"):("否") %></div>
  177.                 </td>
  178.               </tr>
  179.               <tr> 
  180.                 <td width="14%" valign="top"> 
  181.                   <div align="left">领导批示:</div>
  182.                 </td>
  183.                 <td width="86%" colspan="2"> 
  184.                   <div align="left"><%= archiveInfo.getLeaderNotes()%></div>
  185.                 </td>
  186.               </tr>
  187.                             <tr> 
  188.                 <td width="14%"> 
  189.                   <div align="left">电子文档:</div>
  190.                 </td>
  191.                 <td width="86%" colspan="2"> 
  192.                   <div align="left"> </div>
  193.                 </td>
  194.               </tr>
  195. <archive:attachmentList archiveId="<%=(new Integer(str)).intValue()%>" >  
  196.               <tr> 
  197.                 <td>               
  198.                 <td bgcolor="#CCCCCC" colspan="2"> 
  199.                   <table width="100%" border="0">
  200.                     <tr> 
  201.                       <td bgcolor="#e0e0e0" width="20%"> 
  202.                         <div align="center"><font class="strong">文件名</font></div>
  203.                       </td>
  204.                       <td width="20%" bgcolor="#e0e0e0"><font class="strong">标题</font></td>
  205.                       <td width="40%" bgcolor="#e0e0e0"><font class="strong">概要</font></td>
  206.                       <td width="20%" bgcolor="#e0e0e0"><font class="strong">上传日期</font></td>                      
  207.                     </tr>                  
  208. <vnex:items paging="true">
  209.                     <tr bgcolor="<vnex:itemsColor />"> 
  210.                       <td width="20%" bgcolor="#fafafa"><a href="<archive:attachmentAttribute attribute="file_path"/>" target="_blank"><archive:attachmentAttribute attribute="file_name"/></a></td>
  211.                       <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>
  212.                       <td width="40%" bgcolor="#fafafa"><archive:attachmentAttribute attribute="file_summary"/></td>
  213.                       <td width="2%" bgcolor="#fafafa"><archive:attachmentAttribute attribute="send_date"/></td>                      
  214.                     </tr>
  215. </vnex:items>                  
  216.                    <tr bgcolor="#cccccc">
  217.          <td colspan="4"> <vnex:pagingTag pageName="<%=pageTo%>" />
  218.          </td>
  219.       </tr>
  220.                   </table>     
  221.                 </td>
  222.               </tr>
  223. </archive:attachmentList> 
  224.             </table>
  225.                     </td>
  226.                   </tr>
  227.          </table>
  228.       </td>
  229.    </tr>
  230. </table>         
  231. <p> 
  232.             <input onClick = toModify() type="button" value="修 改" name="B21" class="button">
  233.             <input onClick = toDelete() type="button" value="删 除" name="del" class="button">            
  234.             <input onClick = toAttch() type="button" value="附 件" name="att" class="button">
  235.             &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </p> 
  236.             <p>
  237.             <input onClick = toList() type="button" value="返 回" name="list" class="button"> 
  238. <%if (archiveInfo.getLendPermission()==1)
  239.    {
  240. if (archiveInfo.getIsBorrowed() != 1)
  241. {
  242.  %>
  243.             <input onClick= toBorrow() type="button" value="借 阅" name="B21" class="button">
  244.             <%}
  245.             else
  246.             {%>
  247.             <input onClick= toReturn() type="button" value="归 还" name="B212" class="button">                        
  248.             <%}
  249.        }
  250.             %>
  251.             &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  252.             </p>