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

电子政务应用

开发平台:

Java

  1. <%@ page import="java.util.*" %>
  2. <%@ page import="com.vnex.intranet.util.*"%>
  3. <%@ page import="com.vnex.intranet.archives.value.*" %>
  4. <%@ page import="com.vnex.intranet.archives.process.*" %>
  5. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  6. <html>
  7. <head>
  8. <title>Net-Office</title>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  10. </head>
  11. <%
  12.     WritValueBean writBean = null;
  13.     WritValueBean writB = (WritValueBean)session.getAttribute("elcSession");
  14.     ElcProcess archiveProxy = new ElcProcess();
  15.     Collection coll = archiveProxy.selectArchiveRows(writB); 
  16. Iterator iter = coll.iterator();
  17. %>
  18. <body bgcolor="#FFFFFF" text="#000000" onload=doprint()>
  19. <div align="center">
  20.   <div align="center"><font size="4"><b><font size="5">铁通公司电子档案库</font></b></font> 
  21.   </div>
  22.   <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000">
  23.     <tr> 
  24.       <td width="100" > 
  25.         <div align="center"><font size="2"><b>案卷号</b></font></div>
  26.       </td>
  27.       <td width="140" > 
  28.         <div align="center"><font size="2"><b>电子文档类型</b></font></div>
  29.       </td>
  30.       <td width="300" > 
  31.         <div align="center"><font size="2"><b>电子文档标题</b></font></div>
  32.       </td>
  33.       <td width="120"> 
  34.         <div align="center"><font size="2"><b>文件作者</b></font></div>
  35.       </td>
  36.       <td width="121" > 
  37.         <div align="center"><font size="2"><b>文件日期</b></font></div>
  38.       </td>
  39.       <td width="80" > 
  40.         <div align="center"><font size="2"><b>保管期限</b></font></div>
  41.       </td>
  42.       <td width="40" > 
  43.         <div align="center"><font size="2"><b>密级</b></font></div>
  44.       </td>
  45.       <td width="80" > 
  46.         <div align="center"><font size="2"><b>年度</b></font></div>
  47.       </td>
  48.       <td width="100"> 
  49.         <div align="center"><font size="2"></font><font size="2"><b>备注</b></font></div>
  50.       </td>
  51.     </tr>
  52.     <%
  53.  while(iter.hasNext())
  54.  {
  55.      writBean =(WritValueBean)iter.next();
  56. %>
  57.     <tr> 
  58.       <td  > 
  59.         <div align="center"><font size="2"> <%=writBean.getDocName()%> </font></div>
  60.       </td>
  61.       <td > 
  62.         <div align="center"><font size="2"><%=writBean.getFileBef()%>&nbsp;</font></div>
  63.       </td>
  64.       <td > 
  65.         <div align="left"><font size="2"><%=writBean.getTitle()%>&nbsp;</font></div>
  66.       </td>
  67.       <td > 
  68.         <div align="center"><font size="2"><%=writBean.getDep()%>&nbsp;</font></div>
  69.       </td>
  70.       <td  > 
  71.         <div align="center"><font size="2"> 
  72.           <%
  73. int wDate=writBean.getBuildDate();
  74. out.println(StringUtil.changeIntToString(wDate));
  75. %>
  76.           </font></div>
  77.       </td>
  78.       <td  > 
  79.         <div align="center"><font size="2"> 
  80.           <%
  81. if (writBean.getSaveDate()==1)
  82.     out.println("短期");
  83. else if(writBean.getSaveDate()==2)
  84.     out.println("长期");
  85. else
  86.     out.println("永久");
  87. %>
  88.           </font></div>
  89.       </td>
  90.       <td  > 
  91.         <div align="center"><font size="2"> 
  92.           <%
  93. if (writBean.getSecret()==1)
  94.     out.println("一般");
  95. else if(writBean.getSecret()==2)
  96.     out.println("秘密");
  97. else if(writBean.getSecret()==3)
  98.     out.println("机密");
  99. else
  100.     out.println("绝密");
  101. %>
  102.           </font></div>
  103.       </td>
  104.       <td  > 
  105.         <div align="center"><%=writBean.getBuildYear()%></div>
  106.       </td>
  107.       <td  > 
  108.         <div align="center"><font size="2"><%=writBean.getRemark()%>&nbsp;</font></div>
  109.       </td>
  110.     </tr>
  111.     <%
  112.  }
  113.  %>
  114.   </table>
  115. </div>
  116. </body>
  117. </html>
  118. <script language="JavaScript">
  119. function doprint()
  120. {
  121. window.print();
  122. window.history.back();
  123. }
  124. </script>