archives_search_result_data.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:5k
源码类别:
电子政务应用
开发平台:
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/archivesSearchResult?a";
- toDelete = "/mainctrl/archive/deleteSearchArchives";
- %>
- <script language=javascript>
- function checkAll(checkbox_select,checkbox_names)
- {
- var items=checkbox_names.length;
- if(items>1)
- {
- for(i=0;i<items;i++) checkbox_names[i].checked=checkbox_select.checked;
- }
- else
- {
- checkbox_names.checked=checkbox_select.checked;
- }
- }
- function toDelete(form)
- {
- var items=form.check1.length;
- var j = -1;
- var sign = 1;
- if (items>1)
- {
- for (i=0;i < items;i++)
- {
- if (form.check1[i].checked)
- j = i;
- }
- if (j == -1)
- {
- alert ("没有可供删除的选项!" );
- sign = 0;
- }
- }
- else
- {
- if (form.check1.checked)
- sign = 1;
- else
- {
- alert ("没有可供删除的选项!" );
- sign = 0
- }
- }
- if (sign == 1)
- {
- form.action="<%= toDelete%>" ;
- form.submit();
- }
- }
- function toSearch(form)
- {
- form.action = "/mainctrl/archive/searchArchives";
- form.submit();
- }
- </script>
- <table width="100%" border="0">
- <tr>
- <td colspan="6" bgcolor="#666666"><div align="center"><font class="strongw">查询结果</font></div></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td><font class="strong">选择</font></td>
- <td>
- <div align="right"></div>
- <div align="left"><font class="strong">档案编号</font></div>
- </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 />">
- <td>
- <input type="checkbox" name="check1" value=<archive:ArchiveAttribute attribute = "archive_id"/>><br>
- </td>
- <td><archive:ArchiveAttribute attribute = "archive_display_id"/></td>
- <td><archive:ArchiveAttribute attribute = "save_archive_date"/></td>
- <td><a href=/mainctrl/archive/archiveDetail?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>
- </tr>
- </vnex:items>
- <tr>
- <td colspan = "5">
- <div align="left">
- <input type="checkbox" name="selectAll" value="checkbox" onClick= checkAll(selectAll,check1)>
- 全选</div>
- </td>
- </tr>
- <tr bgcolor="#cccccc">
- <td colspan="5"> <vnex:pagingTag pageName="<%=pageTo%>"/></td>
- </tr>
- </archive:ArchiveList>
- </table>