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

电子政务应用

开发平台:

Java

  1. <%@ page import="java.lang.*"%>
  2. <%@ page import="java.sql.*"%>
  3. <%@ page import="java.util.*"%>
  4. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  5. <%@ page import="com.vnex.intranet.archives.value.LendValueBean"%>
  6. <%@ page import="com.vnex.intranet.util.*"%>
  7. <jsp:useBean id="LendProcess" scope="application" class="com.vnex.intranet.archives.process.LendProcess" />
  8. <%
  9.     int lendId = Integer.parseInt(request.getParameter("lendId"));
  10.     LendValueBean lendValue= new LendValueBean();
  11. lendValue = LendProcess.selectOneRow(lendId);
  12.     String inTime = StringUtil.changeIntToString(lendValue.getStartTime());
  13.     String outTime = StringUtil.changeIntToString(lendValue.getReturnTime());
  14. %> 
  15. <HTML>
  16. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  17. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  18. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  19. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  20. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  21. <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
  22. <script language="javascript" src="/vnex/util/strUtil.js"></script>
  23. <script language="javascript" src="/vnex/validate.js"></script>
  24. <script language=javascript>
  25. function createArchive(form)
  26. {
  27.   if(checkIt(form))
  28.   {
  29.     form.returnTime.value=form.returnTime.value.replace("-","");
  30.     form.returnTime.value=form.returnTime.value.replace("-","");
  31.     form.action="/mainctrl/borrowModifyProcess";
  32.     form.submit();
  33.   }  
  34. }
  35. function checkIt(form)
  36. {
  37.   if(isEmpty(form.returnTime.value))
  38.   {
  39.       alert("请选择偿还日期!");
  40.   form.returnTime.focus();
  41.       return false;
  42.   }
  43.   if(!isEmpty(form.remark.value))
  44.   {
  45.      if(isInvalidateLen(form.remark.value, 400))
  46.      {
  47.         alert("内容概要不要超过250个汉字或1000个英文字符!");
  48. form.remark.focus();
  49.         return false;
  50.      }
  51.   }
  52.   return true;
  53. }
  54. </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" class="iframestyle" valign="top"><br>
  62.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  63.             <tr valign="top"> 
  64.               <td bgcolor="#fafafa" > 
  65.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  66.                   <tr valign="top" bgcolor="#cccccc"> 
  67.                     <td> 
  68.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  69.                         <tr bgcolor="#666666"> 
  70.                             
  71.                           <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; 
  72.                             借阅记录</font> <font class="strongw">&gt;&gt; 详细信息</font> 
  73.                           </td>
  74.                         </tr>
  75.                       </table>
  76.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  77.                   <tr bgcolor="#e0e0e0"> 
  78.                           <td colspan="4"> 
  79.                             <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  80.                               <tr bgcolor="#e0e0e0"> 
  81.                                 <td width="24%"><strong>流水号:</strong></td>
  82.                                 <td width="76%"> <%=lendValue.getLendId()%> 
  83.                                   <input type="hidden" name="lendId" value="<%=lendValue.getLendId()%>">
  84. </td>
  85.                               </tr>
  86.                               <tr bgcolor="#fafafa"> 
  87.                                 <td width="24%"><strong>类型:</strong></td>
  88.                                 <td width="76%"> 
  89.                                   <input type="hidden" name="type" value="<%=lendValue.getType()%>">
  90.                                   <%
  91. if (lendValue.getType()==1)
  92.     out.println("文书档案");
  93. else if(lendValue.getType()==2)
  94.     out.println("科技档案");
  95. else if(lendValue.getType()==3)
  96.     out.println("实物档案");
  97. else
  98.     out.println("电子档案");
  99. %>
  100.                                 </td>
  101.                               </tr>
  102.                               <tr bgcolor="#e0e0e0"> 
  103.                                 <td width="24%"><strong>内容摘要:</strong></td>
  104.                                 <td width="76%"> <%=lendValue.getTitle()%> 
  105.                                   <input type="hidden" name="title" value="<%=lendValue.getTitle()%>">
  106.                                 </td>
  107.                               </tr>
  108.                               <tr bgcolor="#fafafa"> 
  109.                                 <td width="24%"> 
  110.                                   <input type="hidden" name="archiveId" value="<%=lendValue.getArchiveId()%>">
  111.                                   <div align="left"><strong>借出日期:</strong></div>
  112.                                 </td>
  113.                                 <td width="76%" bgcolor="#fafafa"> 
  114.                                   <div align="left"> <%=inTime%></div>
  115.                                 </td>
  116.                               </tr>
  117.                               <tr bgcolor="#e0e0e0"> 
  118.                                 <td width="24%"> 
  119.                                   <div align="left"><strong>偿还日期:</strong></div>
  120.                                 </td>
  121.                                 <td width="76%" bgcolor="#e0e0e0"> 
  122.                                   <div align="left"> <%=outTime%></div>
  123.                                 </td>
  124.                               </tr>
  125.                               <tr bgcolor="#fafafa"> 
  126.                                 <td width="24%"> 
  127.                                   <div align="left"><strong>借阅人:</strong></div>
  128.                                 </td>
  129.                                 <td width="76%" bgcolor="#fafafa"> 
  130.                                   <div align="left"><%=lendValue.getLendMan()%>
  131.                                   </div>
  132.                                 </td>
  133.                               </tr>
  134.                               <tr bgcolor="#e0e0e0"> 
  135.                                 <td width="24%"> 
  136.                                   <div align="left"><strong>备注:</strong></div>
  137.                                 </td>
  138.                                 <td width="76%" bgcolor="#e0e0e0"> 
  139.                                   <div align="left"><%=lendValue.getRemark()%>
  140.                                   </div>
  141.                                 </td>
  142.                               </tr>
  143.                               <tr bgcolor="#fafafa"> 
  144.                                 <td colspan="2" align="center" height="30"> &nbsp; 
  145.                                   &nbsp; 
  146.                                   <input type="button" value="返回"  class="text" onClick="history.back()">
  147.                                 </td>
  148.                               </tr>
  149.                             </table>
  150.                             </td>
  151.                   </tr>
  152.                 </table>
  153.                     </td>
  154.                     </tr>
  155.                   </table>
  156.                 </td>
  157.              </tr>
  158.           </table>
  159.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  160.        </TD>
  161.      </TR>
  162.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  163.     </TBODY> 
  164.   </TABLE>
  165.     <BR>
  166.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  167. </form>
  168. </DIV>
  169. </BODY>
  170. </HTML>