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

电子政务应用

开发平台:

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="com.vnex.intranet.util.TimeStamp" %>
  5. <%@ page import="java.lang.*" %>
  6. <%@ page import="java.sql.*" %>
  7. <%@ page import="java.util.*" %>
  8. <jsp:useBean id="archiveCondition" class="com.vnex.intranet.archives.value.ArchiveValueBean" scope="session" /> 
  9. <jsp:useBean id="archiveProxy" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" scope="session" /> 
  10. <jsp:setProperty name="archiveCondition" property="*" />
  11. <%!
  12. Calendar cal;
  13. String str;
  14. Timestamp ts;
  15. String saveDate;
  16. String saveEndDate;
  17. String createDate;
  18. String createEndDate;
  19. String pageTo;
  20. String toDelete;
  21. %>
  22. <%
  23. archiveCondition.setArchiveDisplayId(request.getParameter("archiveDisplayId"));
  24. if (! (archiveCondition.getSaveTime().equals("")))
  25. {
  26. str = archiveCondition.getSaveTime() + " 00:00:00";
  27. System.out.println("1" + str);
  28. ts = TimeStamp.toTimestamp(str);
  29. archiveCondition.setSaveArchiveDate(TimeStamp.convertTimestampToCalendar(ts));
  30. }
  31. if (! (archiveCondition.getSaveEndTime().equals("")))
  32. {
  33. str = archiveCondition.getSaveEndTime() + " 00:00:00";
  34. System.out.println("2" + str);
  35. ts = TimeStamp.toTimestamp(str);
  36. archiveCondition.setSaveArchiveDateEnd(TimeStamp.convertTimestampToCalendar(ts));
  37. }
  38. if (! (archiveCondition.getCreateTime().equals("")))
  39. {
  40. str = archiveCondition.getCreateTime() + " 00:00:00";
  41. System.out.println("3" + str);
  42. ts = TimeStamp.toTimestamp(str);
  43. archiveCondition.setCreateDate(TimeStamp.convertTimestampToCalendar(ts));
  44. }
  45. if (! (archiveCondition.getCreateEndTime().equals("")))
  46. {
  47. str = archiveCondition.getCreateEndTime() + " 00:00:00";
  48. System.out.println("4" + str);
  49. ts = TimeStamp.toTimestamp(str);
  50. archiveCondition.setCreateDateEnd(TimeStamp.convertTimestampToCalendar(ts));
  51. }
  52. //str = request.getParameter("safetyLevel");
  53. Collection col= archiveProxy.selectArchives(archiveCondition);
  54. saveDate = request.getParameter("saveDate");
  55. saveEndDate = request.getParameter("saveEndDate");
  56. createDate = request.getParameter("createDate");
  57. createEndDate = request.getParameter("createEndDate");
  58. pageTo = "/mainctrl/archive/personalArchivesSearchResult?a";
  59. toDelete = "/mainctrl/archive/deleteSearchArchives";
  60. %> 
  61. <script language=javascript>
  62.  
  63. function toSearch(form)
  64. {
  65. form.action = "/mainctrl/archive/personalSearchArchives";
  66. form.submit();
  67. }
  68. </script>
  69.     <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  70.       <tr bgcolor="#e0e0e0" align="center">       
  71.          <td> 
  72.          <font class="strong">档案编号</font>
  73.         </td>
  74.         <td><font class="strong">存档日期</font></td>
  75.         <td><font class="strong">标题</font></td>
  76.         <td><font class="strong">发文日期</font></td> 
  77.         <td><font class="strong">文件来源</font></td>
  78.         <td><font class="strong">是否在库</font></td>        
  79.       </tr>
  80. <archive:ArchiveList archiveCondition="<%= archiveCondition %>" >  
  81. <vnex:items paging="true">    
  82.       <tr bgcolor="<vnex:itemsColor />" align="center">                
  83.         <td><archive:ArchiveAttribute attribute = "archive_display_id"/></td>
  84.         <td><archive:ArchiveAttribute attribute = "save_archive_date"/></td>
  85.         <td><a href=/mainctrl/archive/personalArchiveDetail?archiveId=<archive:ArchiveAttribute attribute = "archive_id"/>&isToday=0><archive:ArchiveAttribute attribute = "archive_title"/></a></td>
  86.         <td><archive:ArchiveAttribute attribute = "create_date"/></td>        
  87.         <td><archive:ArchiveAttribute attribute = "file_source"/></td>
  88.         <td><archive:ArchiveAttribute attribute = "is_borrowed"/></td>
  89.       </tr>
  90. </vnex:items> 
  91. <tr bgcolor="#e0e0e0">
  92.          <td colspan="6">&nbsp;<vnex:pagingTag pageName="<%=pageTo%>"/></td>
  93.     </tr>   
  94. </archive:ArchiveList>     
  95. <tr bgcolor="#fafafa" height="30">
  96.    <td colspan="6" align="center">
  97.            <input onClick=toSearch(form1) type="button" value="返回" name="B22" class="text">
  98.        </td>
  99.     </tr>       
  100.     </table>
  101.