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

电子政务应用

开发平台:

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> </td>
  73.                         </tr>
  74.                       </table>
  75.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  76.                   <tr bgcolor="#e0e0e0"> 
  77.                           <td colspan="4"> 
  78.                             <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  79.                               <tr bgcolor="#e0e0e0"> 
  80.                                 <td width="24%"><strong>流水号:</strong></td>
  81.                                 <td width="76%"> <%=lendValue.getLendId()%> 
  82.                                   <input type="hidden" name="lendId" value="<%=lendValue.getLendId()%>">
  83. </td>
  84.                               </tr>
  85.                               <tr bgcolor="#fafafa"> 
  86.                                 <td width="24%"><strong>类型:</strong></td>
  87.                                 <td width="76%"> 
  88.                                   <input type="hidden" name="type" value="<%=lendValue.getType()%>">
  89.                                   <%
  90. if (lendValue.getType()==1)
  91.     out.println("文书档案");
  92. else if(lendValue.getType()==2)
  93.     out.println("科技档案");
  94. else if(lendValue.getType()==3)
  95.     out.println("实物档案");
  96. else
  97.     out.println("电子档案");
  98. %>
  99.                                 </td>
  100.                               </tr>
  101.                               <tr bgcolor="#e0e0e0"> 
  102.                                 <td width="24%"><strong>内容摘要:</strong></td>
  103.                                 <td width="76%"> <%=lendValue.getTitle()%> 
  104.                                   <input type="hidden" name="title" value="<%=lendValue.getTitle()%>">
  105.                                 </td>
  106.                               </tr>
  107.                               <tr bgcolor="#fafafa"> 
  108.                                 <td width="24%"> 
  109.                                   <input type="hidden" name="archiveId" value="<%=lendValue.getArchiveId()%>">
  110.                                   <div align="left"><strong>借出日期:</strong></div>
  111.                                 </td>
  112.                                 <td width="76%" bgcolor="#fafafa"> 
  113.                                   <div align="left"> <%=inTime%></div>
  114.                                 </td>
  115.                               </tr>
  116.                               <tr bgcolor="#e0e0e0"> 
  117.                                 <td width="24%"> 
  118.                                   <div align="left"><strong>偿还日期:</strong></div>
  119.                                 </td>
  120.                                 <td width="76%" bgcolor="#e0e0e0"> 
  121.                                   <div align="left"> 
  122.                                     <input type="text" value="<%=outTime%>" name="returnTime" readonly size="10" class="text">
  123.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(returnTime);return false"> 
  124.                                     * (注:带*为必填内容) </div>
  125.                                 </td>
  126.                               </tr>
  127.                               <tr bgcolor="#fafafa"> 
  128.                                 <td width="24%"> 
  129.                                   <div align="left"><strong>借阅人:</strong></div>
  130.                                 </td>
  131.                                 <td width="76%" bgcolor="#fafafa"> 
  132.                                   <div align="left"> 
  133.                                     <input type="text" name="lendMan" size="30" class="text" value="<%=lendValue.getLendMan()%>">
  134.                                   </div>
  135.                                 </td>
  136.                               </tr>
  137.                               <tr bgcolor="#e0e0e0"> 
  138.                                 <td width="24%"> 
  139.                                   <div align="left"><strong>备注:</strong></div>
  140.                                 </td>
  141.                                 <td width="76%" bgcolor="#e0e0e0"> 
  142.                                   <div align="left"> 
  143.                                     <textarea name="remark" cols="40" class="text" rows="4"><%=lendValue.getRemark()%></textarea>
  144.                                   </div>
  145.                                 </td>
  146.                               </tr>
  147.                               <tr bgcolor="#fafafa"> 
  148.                                 <td colspan="2" align="center" height="30"> 
  149.                                   <input onClick="createArchive(this.form)" type="button" value="保存"  class="text">
  150.                                   &nbsp;&nbsp; 
  151.                                   <input type="reset" value="重置"  class="text">
  152.                                   &nbsp;&nbsp; 
  153.                                   <input type="button" value="归还"  class="text" onClick="location='/mainctrl/borrowSearch?lendId=<%=lendValue.getLendId()%>'">
  154.                                   &nbsp;&nbsp; 
  155.                                   <input type="button" value="放弃"  class="text" onClick="history.back()">
  156.                                 </td>
  157.                               </tr>
  158.                             </table>
  159.                             </td>
  160.                   </tr>
  161.                 </table>
  162.                     </td>
  163.                     </tr>
  164.                   </table>
  165.                 </td>
  166.              </tr>
  167.           </table>
  168.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  169.        </TD>
  170.      </TR>
  171.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  172.     </TBODY> 
  173.   </TABLE>
  174.     <BR>
  175.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  176. </form>
  177. </DIV>
  178. </BODY>
  179. </HTML>