borrow_archive.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.util.*" %>
- <jsp:useBean id="borrowProxy" scope="application" class="com.vnex.intranet.archives.proxy.BorrowProxyBean" />
- <jsp:useBean id="brvb" scope="request" class="com.vnex.intranet.archives.value.BorrowRecordValueBean" />
- <jsp:setProperty name="brvb" property="*" />
- <%
- String returnDate = request.getParameter("returnDate")+" 00:00:00";
- brvb.setNeedReturnDate(TimeStamp.convertTimestampToCalendar(TimeStamp.toTimestamp(returnDate)));
- brvb.setArchiveId(Integer.parseInt(request.getParameter("archiveId")));
- int status = borrowProxy.registerBorrowArchive(brvb);
- if(status == 0)
- {
- out.println("<script language="JavaScript">");
- out.println("alert("本档案已被借阅,不能再被借阅了")");
- out.println("</script>");
- }
- %>
- <html>
- <head>
- <script language=javascript>
- function forward()
- {
- document.location = "/mainctrl/archive/borrowArchiveList";
- }
- </script>
- </head>
- <body onload="javascript:forward()">
- </body>
- <html>