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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.archives.value.ArchiveValueBean" %>
  3. <%@ page import="com.vnex.intranet.util.*" %>
  4. <jsp:useBean id="returnProxy" scope="application" class="com.vnex.intranet.archives.proxy.ReturnProxyBean" />
  5. <jsp:useBean id="rrvb" scope="request" class="com.vnex.intranet.archives.value.ReturnRecordValueBean" />
  6. <jsp:useBean id="archiveProxy" scope="application" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" />
  7. <%
  8.     int returnId = Integer.parseInt(request.getParameter("returnId"));
  9.     rrvb = returnProxy.getReturnArchiveDetail(returnId);
  10.     ArchiveValueBean avb = archiveProxy.selectArchive(rrvb.getArchiveId());
  11. %>
  12. <script language=JavaScript>
  13. function modifyIt(form)
  14. {
  15.    if(form.description.value.length <250)
  16.    {
  17.       form.action="/mainctrl/archive/modifyReturnArchive?returnId=<%=request.getParameter("returnId")%>";
  18.       form.submit();
  19.    }
  20.    else
  21.       alert("归还说明不能超过250个汉字");   
  22. }
  23. function deleteIt(form)
  24. {
  25.    form.action="/mainctrl/archive/deleteReturnArchive?returnId=<%=returnId%>";
  26.    form.submit();
  27. }
  28. </script>
  29.     
  30. <table width="600" border="0" cellpadding="5" cellspacing="1" class="iframestyle">
  31.    <tr>
  32.       <td colspan="2" height="4" bgcolor="#ffffff">&nbsp;&nbsp;<a href="/mainctrl/archive/todayArchives">档案管理</a>&gt;&gt;<a href="/mainctrl/archive/borrowManager">借阅档案管理</a>&gt;&gt;归还详情
  33.       </td>
  34.    </tr>
  35.    <tr> 
  36.       <td colspan="2" height="4" bgcolor="#666666"><font class="strongw">归还记录</font></td>
  37.    </tr>
  38.    <tr bgcolor="#FFFFFF"> 
  39.       <td align="center" colspan="2">
  40.         <table width="100%" border="0" cellspacing="0" cellpadding="0">
  41.            <tr>
  42.               <td>
  43.                 <table width="100%" border="0">
  44.                   <tr> 
  45.                     <td width="14%"> 
  46.                       <div align="left">归还编号:</div>
  47.                     </td>
  48.                     <td width="86%"> 
  49.                       <div align="left"><%=returnId%> 
  50.                       </div>
  51.                     </td>
  52.                  </tr>
  53.                  <tr> 
  54.                     <td width="14%"> 
  55.                       <div align="left">借阅日期:</div>
  56.                     </td>
  57.                     <td width="86%"> 
  58.                       <div align="left"><%=TimeStamp.formatCalendar(TimeStamp.YMD, rrvb.getReturnDate())%> 
  59.                       </div>
  60.                     </td>
  61.                  </tr>
  62.                  <tr> 
  63.                     <td width="14%"> 
  64.                       <div align="left">档案编号:</div>
  65.                     </td>
  66.                     <td width="86%"> 
  67.                        <div align="left"><%=avb.getArchiveDisplayId()%> 
  68.                        </div>
  69.                     </td>
  70.                  </tr>
  71.                  <tr> 
  72.                     <td width="14%"> 
  73.                       <div align="left">档案标题:</div>
  74.                     </td>
  75.                     <td width="86%"> 
  76.                       <div align="left"><%=avb.getArchiveTitle()%>
  77.                       </div>
  78.                     </td>
  79.                  </tr>
  80.                  <tr> 
  81.                     <td width="14%"> 
  82.                       <div align="left">借阅人:</div>
  83.                     </td>
  84.                     <td width="86%"> 
  85.                       <div align="left"><%=rrvb.getBorrower()%> 
  86.                       </div>
  87.                     </td>
  88.                  </tr>
  89.                  <tr> 
  90.                     <td width="14%" valign="top"> 
  91.                       <div align="left">归还说明:</div>
  92.                     </td>
  93.                     <td width="86%"> 
  94.                       <div align="left">
  95.                          <textarea name="description" rows="4" cols="30" class="text"><%=rrvb.getDescription()%></textarea>
  96.                       </div>
  97.                     </td>
  98.                  </tr>
  99.                  <tr> 
  100.                     <td width="14%"> 
  101.                       <div align="left">归还办理人:</div>
  102.                     </td>
  103.                     <td width="86%"> 
  104.                       <div align="left"><%=rrvb.getReceiver()%> 
  105.                       </div>
  106.                     </td>
  107.                  </tr>
  108.           </table>
  109.          </td>
  110.        </tr>
  111.      </table>
  112.    </td>
  113.   </tr>
  114. </table>  
  115. <p> 
  116. <input type="button" value=" 修  改 " name="B252" class="button" onclick="modifyIt(this.form)">
  117. <input type="button" value=" 删  除 " name="B251" class="button" onclick="deleteIt(this.form)">
  118. <input type="button" value=" 返  回 " name="B253" class="button" onclick="history.back()">
  119. &nbsp;&nbsp;&nbsp; 
  120. </p>