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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.util.*" %>
  3. <jsp:useBean id="borrowProxy" scope="application" class="com.vnex.intranet.archives.proxy.BorrowProxyBean" />
  4. <jsp:useBean id="brvb" scope="request" class="com.vnex.intranet.archives.value.BorrowRecordValueBean" />
  5. <jsp:setProperty name="brvb" property="*" />
  6. <%
  7.     String returnDate = request.getParameter("returnDate")+" 00:00:00";
  8.     brvb.setNeedReturnDate(TimeStamp.convertTimestampToCalendar(TimeStamp.toTimestamp(returnDate)));
  9.     brvb.setArchiveId(Integer.parseInt(request.getParameter("archiveId")));
  10.     int status = borrowProxy.registerBorrowArchive(brvb);
  11.     if(status == 0)
  12.     {
  13.         out.println("<script language="JavaScript">");
  14.         out.println("alert("本档案已被借阅,不能再被借阅了")");
  15.         out.println("</script>");
  16.     }
  17. %>    
  18. <html>
  19. <head>
  20. <script language=javascript>
  21. function forward()
  22. {
  23. document.location = "/mainctrl/archive/borrowArchiveList";
  24. }
  25. </script>
  26. </head>
  27. <body onload="javascript:forward()">
  28. </body>
  29. <html>