personal_archives_search_result_data.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:4k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.util.TimeStamp" %>
- <%@ page import="java.lang.*" %>
- <%@ page import="java.sql.*" %>
- <%@ page import="java.util.*" %>
- <jsp:useBean id="archiveCondition" class="com.vnex.intranet.archives.value.ArchiveValueBean" scope="session" />
- <jsp:useBean id="archiveProxy" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" scope="session" />
- <jsp:setProperty name="archiveCondition" property="*" />
- <%!
- Calendar cal;
- String str;
- Timestamp ts;
- String saveDate;
- String saveEndDate;
- String createDate;
- String createEndDate;
- String pageTo;
- String toDelete;
- %>
- <%
- archiveCondition.setArchiveDisplayId(request.getParameter("archiveDisplayId"));
- if (! (archiveCondition.getSaveTime().equals("")))
- {
- str = archiveCondition.getSaveTime() + " 00:00:00";
- System.out.println("1" + str);
- ts = TimeStamp.toTimestamp(str);
- archiveCondition.setSaveArchiveDate(TimeStamp.convertTimestampToCalendar(ts));
- }
- if (! (archiveCondition.getSaveEndTime().equals("")))
- {
- str = archiveCondition.getSaveEndTime() + " 00:00:00";
- System.out.println("2" + str);
- ts = TimeStamp.toTimestamp(str);
- archiveCondition.setSaveArchiveDateEnd(TimeStamp.convertTimestampToCalendar(ts));
- }
- if (! (archiveCondition.getCreateTime().equals("")))
- {
- str = archiveCondition.getCreateTime() + " 00:00:00";
- System.out.println("3" + str);
- ts = TimeStamp.toTimestamp(str);
- archiveCondition.setCreateDate(TimeStamp.convertTimestampToCalendar(ts));
- }
- if (! (archiveCondition.getCreateEndTime().equals("")))
- {
- str = archiveCondition.getCreateEndTime() + " 00:00:00";
- System.out.println("4" + str);
- ts = TimeStamp.toTimestamp(str);
- archiveCondition.setCreateDateEnd(TimeStamp.convertTimestampToCalendar(ts));
- }
- //str = request.getParameter("safetyLevel");
- Collection col= archiveProxy.selectArchives(archiveCondition);
- saveDate = request.getParameter("saveDate");
- saveEndDate = request.getParameter("saveEndDate");
- createDate = request.getParameter("createDate");
- createEndDate = request.getParameter("createEndDate");
- pageTo = "/mainctrl/archive/personalArchivesSearchResult?a";
- toDelete = "/mainctrl/archive/deleteSearchArchives";
- %>
- <script language=javascript>
- function toSearch(form)
- {
- form.action = "/mainctrl/archive/personalSearchArchives";
- form.submit();
- }
- </script>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#e0e0e0" align="center">
- <td>
- <font class="strong">档案编号</font>
- </td>
- <td><font class="strong">存档日期</font></td>
- <td><font class="strong">标题</font></td>
- <td><font class="strong">发文日期</font></td>
- <td><font class="strong">文件来源</font></td>
- <td><font class="strong">是否在库</font></td>
- </tr>
- <archive:ArchiveList archiveCondition="<%= archiveCondition %>" >
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />" align="center">
- <td><archive:ArchiveAttribute attribute = "archive_display_id"/></td>
- <td><archive:ArchiveAttribute attribute = "save_archive_date"/></td>
- <td><a href=/mainctrl/archive/personalArchiveDetail?archiveId=<archive:ArchiveAttribute attribute = "archive_id"/>&isToday=0><archive:ArchiveAttribute attribute = "archive_title"/></a></td>
- <td><archive:ArchiveAttribute attribute = "create_date"/></td>
- <td><archive:ArchiveAttribute attribute = "file_source"/></td>
- <td><archive:ArchiveAttribute attribute = "is_borrowed"/></td>
- </tr>
- </vnex:items>
- <tr bgcolor="#e0e0e0">
- <td colspan="6"> <vnex:pagingTag pageName="<%=pageTo%>"/></td>
- </tr>
- </archive:ArchiveList>
- <tr bgcolor="#fafafa" height="30">
- <td colspan="6" align="center">
- <input onClick=toSearch(form1) type="button" value="返回" name="B22" class="text">
- </td>
- </tr>
- </table>