borrow_archive_detail_data.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ page import="com.vnex.intranet.util.TimeStamp" %>
- <%@ page import="com.vnex.intranet.archives.value.*" %>
- <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:useBean id="archiveProxy" scope="application" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" />
- <%
- String borrowId = request.getParameter("borrowId");
- brvb = borrowProxy.getBorrowArchiveDetail(Integer.parseInt(borrowId));
- ArchiveValueBean avb = archiveProxy.selectArchive(brvb.getArchiveId());
- String displayId = avb.getArchiveDisplayId();
- String displayTitle = avb.getArchiveTitle();
- String safetyLevel = ""+avb.getSafetyLevel();
- String year = "";
- String month = "";
- String day = "";
- Calendar cal = brvb.getNeedReturnDate();
- year = ""+cal.get(Calendar.YEAR);
- int m = cal.get(Calendar.MONTH)+1;
- int d = cal.get(Calendar.DAY_OF_MONTH);
- month = m<10? "0"+m:""+m;
- day = d<10? "0"+d:""+d;
- String returnDate = year+"-"+month+"-"+day;
- %>
- <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
- <script language="JavaScript" src="/vnex/util/validate.js"></script>
- <script language=javascript>
- function returnIt(form)
- {
- form.action="/mainctrl/archive/returnArchiveRegister?borrowId=<%=borrowId%>";
- form.submit();
- }
- function modifyIt(form)
- {
- if(checkIt(form))
- {
- form.action="/mainctrl/archive/modifyBorrowArchive?borrowId=<%=borrowId%>";
- form.submit();
- }
- }
- function deleteIt(form)
- {
- form.action="/mainctrl/archive/deleteBorrowArchive?borrowId=<%=borrowId%>";
- form.submit();
- }
- function checkIt(form)
- {
- if(!isEmpty(form.returnDate.value))
- {
- if("<%=com.vnex.intranet.pub.BaseJdbcDAO.getDBSystemDate().toString()%>">form.returnDate.value)
- {
- alert("归还日期必须在本日之后");
- return false;
- }
- }
- else
- {
- alert("请选择归还日期");
- return false;
- }
- return true;
- }
- </script>
- <input type="hidden" name="borrowId" value="<%=borrowId%>">
- <table width="600" border="0" cellpadding="5" cellspacing="1" class="iframestyle">
- <tr>
- <td colspan="2" height="4" bgcolor="#ffffff"> <a href="/mainctrl/archive/todayArchives">档案管理</a>>><a href="/mainctrl/archive/borrowManager">借阅档案管理</a>>>借阅详情
- </td>
- </tr>
- <tr>
- <td colspan="2" height="4" bgcolor="#666666"><font class="strongw">借阅记录</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td align="center" colspan="2">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- <table width="100%" border="0">
- <tr>
- <td width="14%">
- <div align="left">借阅编号:</div>
- </td>
- <td width="86%">
- <div align="left"><%=brvb.getBorrowId()%>
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">借阅日期:</div>
- </td>
- <td width="86%">
- <div align="left"><%=TimeStamp.formatCalendar(TimeStamp.YMD, brvb.getBorrowDate())%>
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">档案编号:</div>
- </td>
- <td width="86%">
- <div align="left"><%=displayId%>
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">档案标题:</div>
- </td>
- <td width="86%">
- <div align="left"><%=displayTitle%>
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">借阅人:</div>
- </td>
- <td width="86%">
- <div align="left"><%=brvb.getBorrower()%>
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">归还期限:</div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="text" name="returnDate" readonly size="30" class="text" value="<%=returnDate%>">
- <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(returnDate);return false">
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">保密级别:</div>
- </td>
- <td width="86%">
- <div align="left"><%=safetyLevel%>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <p>
- <input type="button" value=" 归 还 " name="B251" class="button" onclick="returnIt(this.form)">
-
- <input type="button" value=" 修 改 " name="B252" class="button" onclick="modifyIt(this.form)">
-
- <input type="button" value=" 删 除 " name="B254" class="button" onclick="deleteIt(this.form)">
-
- <input type="button" value=" 返 回 " name="B253" class="button" onclick="history.back()">
-
- </p>