borrow_archive_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:8k
源码类别:
电子政务应用
开发平台:
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/strUtil.js"></script>
- <script language=javascript>
- function returnIt(form)
- {
- form.action="/mainctrl/archive/returnArchiveRegister?borrowId=<%=borrowId%>&displayId=<%=displayId%>";
- form.submit();
- }
- function modifyIt(form)
- {
- if(checkIt(form))
- {
- form.action="/mainctrl/archive/modifyBorrowArchive?borrowId=<%=borrowId%>";
- form.submit();
- }
- }
- function deleteIt(form)
- {
- if(confirm("是否删除本记录?"))
- {
- 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>
- <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">
- <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="#e0e0e0">
- <td width="14%">
- <div align="left"><strong> 借阅编号:</strong></div>
- </td>
- <td width="86%">
- <div align="left"><%=brvb.getBorrowId()%>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="14%">
- <div align="left"><strong> 借阅日期:</strong></div>
- </td>
- <td width="86%">
- <div align="left"><%=TimeStamp.formatCalendar(TimeStamp.YMD, brvb.getBorrowDate())%>
- </div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="14%">
- <div align="left"><strong> 档案编号:</strong></div>
- </td>
- <td width="86%">
- <div align="left"><%=displayId%>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="14%">
- <div align="left"><strong> 档案标题:</strong></div>
- </td>
- <td width="86%">
- <div align="left"><%=displayTitle%>
- </div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="14%">
- <div align="left"><strong> 借阅人:</strong></div>
- </td>
- <td width="86%">
- <div align="left"><%=brvb.getBorrower()%>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="14%">
- <div align="left"><strong> 归还期限:</strong></div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="text" name="returnDate" readonly size="30" class="text" value="<%=returnDate%>">
- <%
- if(request.getParameter("history") != null && request.getParameter("history").equals("no"))
- {
- %>
- <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(returnDate);return false">
- <% }%>
- </div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="14%">
- <div align="left"><strong> 保密级别:</strong></div>
- </td>
- <td width="86%">
- <div align="left"><%=safetyLevel%>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" align="center" height="30">
- <%
- if(request.getParameter("history") != null && request.getParameter("history").equals("no"))
- {
- %>
- <input type="button" value="归还" name="B251" class="text" onclick="returnIt(this.form)">
-
- <input type="button" value="保存" name="B252" class="text" onclick="modifyIt(this.form)">
-
- <%
- }
- else
- {
- %>
- <input type="button" value="删除" name="B254" class="text" onclick="deleteIt(this.form)">
-
- <% }%>
- <input type="button" value="返回" name="B253" class="text" onclick="history.back()">
- </td>
- </tr>
- </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>