archives_search_result.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
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 (! (request.getParameter("saveDate").equals("")))
- {
- str = request.getParameter("saveDate") + " 00:00:00";
- ts = TimeStamp.toTimestamp(str);
- archiveCondition.setSaveArchiveDate(TimeStamp.convertTimestampToCalendar(ts));
- }
- if (! (request.getParameter("saveEndDate").equals("")))
- {
- str = request.getParameter("saveEndDate") + " 00:00:00";
- ts = TimeStamp.toTimestamp(str);
- archiveCondition.setSaveArchiveDateEnd(TimeStamp.convertTimestampToCalendar(ts));
- }
- if (! (request.getParameter("createDate").equals("")))
- {
- str = request.getParameter("createDate") + " 00:00:00";
- ts = TimeStamp.toTimestamp(str);
- archiveCondition.setCreateDate(TimeStamp.convertTimestampToCalendar(ts));
- }
- if (! (request.getParameter("createEndDate").equals("")))
- {
- str = request.getParameter("createEndDate") + " 00:00:00";
- 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?saveDate=" + saveDate + "&saveEndDate=" + saveEndDate +
- "&createDate=" + createDate + "&createEndDate=" + createEndDate;
- toDelete = "/mainctrl/archive/deleteSearchArchives?saveDate=" + saveDate + "&saveEndDate=" + saveEndDate +
- "&createDate=" + createDate + "&createEndDate=" + createEndDate;
- %>
- <script language=javascript>
- function checkAll(checkbox_select,checkbox_names)
- {
- var items=checkbox_names.length;
- if(items>1)
- {
- for(i=0;i<items;i++)
- if(!checkbox_names[i].disabled)
- checkbox_names[i].checked=checkbox_select.checked;
- }
- else
- {
- if(!checkbox_names.disabled)
- checkbox_names.checked=checkbox_select.checked;
- }
- }
- function toDelete(form)
- {
- if(form.check1 == null)
- {
- alert("目前尚未有任何数据可供删除");
- return;
- }
- 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)
- {
- if(confirm("是否删除所选数据?"))
- {
- form.action="<%= toDelete%>" ;
- form.submit();
- }
- }
- }
- </script>
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="form1" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td align="center" colspan="2" bgcolor="#FFFFFF">
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="#666666">
- <td><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>><a href="/mainctrl/archives/main"><font color="#ffffff">档案管理</font></a>>>查询结果</font>
- </td>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#fafafa">
- <td colspan="7" height="30">
- <input onClick=toDelete(form1) type="button" value="删除" name="B21" class="text">
- </td>
- </tr>
- <tr 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>
- <td><font class="strong">是否在库</font></td>
- </tr>
- <archive:ArchiveList archiveCondition="<%= archiveCondition %>" >
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />" align="center">
- <td>
- <input type="checkbox" name="check1" value="<archive:ArchiveAttribute attribute = "archive_id"/>" <archive:ArchiveAttribute attribute = "is_disabled" />>
- </td>
- <td><archive:ArchiveAttribute attribute = "file_source"/></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"/>><archive:ArchiveAttribute attribute = "archive_title"/></a></td>
- <td><archive:ArchiveAttribute attribute = "create_date"/></td>
- <td><archive:ArchiveAttribute attribute = "is_borrowed"/></td>
- </tr>
- </vnex:items>
- <tr bgcolor="#fafafa">
- <td width="7%" align="center">
- <input type="checkbox" name="selectAll" value="checkbox" onClick= checkAll(selectAll,check1)>
- </td>
- <td colspan="6"> 全选</td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td colspan="7"> <vnex:pagingTag pageName="<%=pageTo%>"/></td>
- </tr>
- </archive:ArchiveList>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>