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

电子政务应用

开发平台:

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" src="/vnex/util/strUtil.js"></script>
  13. <script language=JavaScript>
  14. function checkIt(form)
  15. {
  16.   if(!isEmpty(form.description.value))
  17.   {
  18.      if(isInvalidateLen(form.description.value, 1000))
  19.      {
  20.         alert("归还说明最多只能放250个汉字或1000个英文字符");
  21.         form.description.focus();
  22.         return false;
  23.      }
  24.      if(isContainInvalidChar(form.description.value, "'"))
  25.      {
  26.         alert("请不要在说明中加入单引号");
  27.         form.description.focus();
  28.         return false;
  29.      }
  30.   }
  31.   return true;
  32. }  
  33. function modifyIt(form)
  34. {
  35.    if(checkIt(form))
  36.    {
  37.       form.action="/mainctrl/archive/modifyReturnArchive?returnId=<%=request.getParameter("returnId")%>";
  38.       form.submit();
  39.    }
  40. }
  41. function deleteIt(form)
  42. {
  43.    if(confirm("是否删除本记录?"))
  44.    {
  45.       form.action="/mainctrl/archive/deleteReturnArchive?returnId=<%=returnId%>";
  46.       form.submit();
  47.    }   
  48. }
  49. </script>
  50. <HTML>
  51. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  52. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  53. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  54. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  55. <DIV align=center>
  56. <form name="form1" method="post">
  57.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  58.     <TBODY> 
  59.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  60.     <TR> 
  61.         <TD colSpan=3 align="center"><br>
  62.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  63.             <tr> 
  64.               <td align="center" colspan="2" bgcolor="#FFFFFF"> 
  65.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  66.                   <tr bgcolor="#666666"> 
  67.                       <td><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;<a href="/mainctrl/archives/main"><font color="#ffffff">档案管理</font></a>&gt;&gt;<a href="/mainctrl/archive/returnArchiveList"><font color="#ffffff">归还记录</font></a>&gt;&gt;归还详情</font>
  68.                       </td>
  69.                   </tr>
  70.                 </table>
  71.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  72.                   <tr bgcolor="#e0e0e0"> 
  73.                     <td width="18%"> 
  74.                       <div align="left"><strong>&nbsp;归还编号:</strong></div>
  75.                     </td>
  76.                     <td width="86%"> 
  77.                       <div align="left"><%=returnId%> 
  78.                       </div>
  79.                     </td>
  80.                  </tr>
  81.                  <tr bgcolor="#fafafa"> 
  82.                     <td width="18%"> 
  83.                       <div align="left"><strong>&nbsp;借阅日期:</strong></div>
  84.                     </td>
  85.                     <td width="86%"> 
  86.                       <div align="left"><%=TimeStamp.formatCalendar(TimeStamp.YMD, rrvb.getReturnDate())%> 
  87.                       </div>
  88.                     </td>
  89.                  </tr>
  90.                  <tr bgcolor="#e0e0e0"> 
  91.                     <td width="18%"> 
  92.                       <div align="left"><strong>&nbsp;档案编号:</strong></div>
  93.                     </td>
  94.                     <td width="86%"> 
  95.                        <div align="left"><%=avb.getArchiveDisplayId()%> 
  96.                        </div>
  97.                     </td>
  98.                  </tr>
  99.                  <tr bgcolor="#fafafa"> 
  100.                     <td width="18%"> 
  101.                       <div align="left"><strong>&nbsp;档案标题:</strong></div>
  102.                     </td>
  103.                     <td width="86%"> 
  104.                       <div align="left"><%=avb.getArchiveTitle()%>
  105.                       </div>
  106.                     </td>
  107.                  </tr>
  108.                  <tr bgcolor="#e0e0e0"> 
  109.                     <td width="18%"> 
  110.                       <div align="left"><strong>&nbsp;借阅人:</strong></div>
  111.                     </td>
  112.                     <td width="86%"> 
  113.                       <div align="left"><%=rrvb.getBorrower()%> 
  114.                       </div>
  115.                     </td>
  116.                  </tr>
  117.                  <tr bgcolor="#fafafa"> 
  118.                     <td width="18%"> 
  119.                       <div align="left"><strong>&nbsp;归还说明:</strong></div>
  120.                     </td>
  121.                     <td width="86%"> 
  122.                       <div align="left">
  123.                          <textarea name="description" rows="5" cols="59" class="text"><%=rrvb.getDescription()%></textarea>
  124.                       </div>
  125.                     </td>
  126.                  </tr>
  127.                  <tr bgcolor="#e0e0e0"> 
  128.                     <td width="18%"> 
  129.                       <div align="left"><strong>&nbsp;归还办理人:</strong></div>
  130.                     </td>
  131.                     <td width="86%"> 
  132.                       <div align="left"><%=rrvb.getReceiver()%> 
  133.                       </div>
  134.                     </td>
  135.                  </tr>
  136.                  <tr bgcolor="#fafafa">
  137.                    <td colspan="2" align="center" height="30">
  138. <input type="button" value="保存" name="B252" class="text" onclick="modifyIt(this.form)">
  139. &nbsp;&nbsp;
  140. <input type="button" value="删除" name="B251" class="text" onclick="deleteIt(this.form)">
  141. &nbsp;&nbsp;
  142. <input type="reset" value="重置" name="B251" class="text">
  143. &nbsp;&nbsp;
  144. <input type="button" value="返回" name="B253" class="text" onclick="history.back()">
  145.    </td>
  146.  </tr>
  147.             </table>
  148.            </td>
  149.          </tr>
  150.        </table>
  151.        <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  152.        </TD>
  153.      </TR>
  154.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  155.     </TBODY> 
  156.   </TABLE>
  157.     <BR>
  158.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  159. </form>
  160. </DIV>
  161. </BODY>
  162. </HTML>