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

电子政务应用

开发平台:

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.WritValueBean"%>
  6. <%@ page import="com.vnex.intranet.util.*"%>
  7. <jsp:useBean id="elcProcess" scope="application" class="com.vnex.intranet.archives.process.ElcProcess" />
  8. <%
  9. int archiveId = Integer.parseInt(request.getParameter("archiveId"));
  10. WritValueBean writBean = elcProcess.selectArchiveRow(archiveId);
  11. %>
  12. <HTML>
  13. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  14. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  15. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  16. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  17. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  18. <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
  19. <script language="javascript" src="/vnex/util/strUtil.js"></script>
  20. <DIV align=center>
  21. <script language=javascript>
  22. function createArchive(form)
  23. {
  24.   if(checkIt(form))
  25.   {
  26.     form.buildDate.value=form.buildDate.value.replace("-","");
  27.     form.buildDate.value=form.buildDate.value.replace("-","");
  28.     form.action="/mainctrl/elcModifyProcess";
  29.     form.encoding="multipart/form-data";
  30. form.submit();
  31.   }  
  32. }
  33. function checkIt(form)
  34. {
  35.   if(isEmpty(form.docName.value))
  36.   {
  37.       alert("请输入所属卷号!");
  38.   form.docName.focus();
  39.       return false;
  40.   }
  41.   if(isEmpty(form.title.value))
  42.   {
  43.       alert("请输入内容摘要!");
  44.   form.title.focus();
  45.       return false;
  46.   }
  47.   if(isEmpty(form.buildDate.value))
  48.   {
  49.       alert("请选择文件日期!");
  50.   form.buildDate.focus();
  51.       return false;
  52.   }
  53.   if(!isEmpty(form.remark.value))
  54.   {
  55.      if(isInvalidateLen(form.remark.value, 400))
  56.      {
  57.         alert("内容概要不要超过250个汉字或1000个英文字符!");
  58. form.remark.focus();
  59.         return false;
  60.      }
  61.   }
  62.   return true;
  63. }
  64. </script>
  65. <form name="form1" method="post">
  66.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  67.     <TBODY> 
  68.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  69.       <TR> 
  70.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  71.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  72.             <tr valign="top"> 
  73.               <td bgcolor="#fafafa" > 
  74.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  75.                   <tr valign="top" bgcolor="#cccccc"> 
  76.                     <td> 
  77.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  78.                         <tr bgcolor="#666666"> 
  79.                             
  80.                           <td><font class="strongw"> <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt; 
  81.                             <a href="/mainctrl/archiveFileIn"><font color="#ffffff">档案管理</font></a>&gt;&gt;<a href="/mainctrl/elcIndex"><font color="#ffffff">电子档案</font></a>&gt;&gt;修改电子档案</font> 
  82.                           </td>
  83.                         </tr>
  84.                       </table>
  85.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  86.                   <tr bgcolor="#e0e0e0"> 
  87.                           <td colspan="4"> 
  88.                             <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  89.                               <!--
  90.   <tr bgcolor="#fafafa"> 
  91.                                 <td width="24%" > 
  92.                                   <div align="left"><strong>全综号:</strong></div>
  93.                                 </td>
  94.                                 <td width="76%" > 
  95.                                   <div align="left"> 
  96.                                     <input type="text" name="topName" size="30" class="text" value="<%=writBean.getTopName()%>">
  97.                                     *&nbsp;(注:带*为必填内容) </div>
  98.                                 </td>
  99.                               </tr>
  100.   -->
  101.                               <tr bgcolor="#e0e0e0"> 
  102.                                 <input type="hidden" name="topName" size="30" class="text" value="<%=writBean.getTopName()%>">
  103.                                 <input type="hidden" name="archiveId" value="<%=writBean.getArchiveId()%>">
  104.                                 <td width="24%"><strong>案卷号</strong>:</td>
  105.                                 <td width="76%" bgcolor="#e0e0e0"> 
  106.                                   <input type="text" name="docName" size="30" class="text" value="<%=writBean.getDocName()%>">
  107.                                   * (注:带*为必填内容) </td>
  108.                               </tr>
  109.                               <tr bgcolor="#fafafa"> 
  110.                                 <td width="24%"><strong>电子文档类型:</strong></td>
  111.                                 <td width="76%"> 
  112.                                   <input type="text" name="fileBef" size="30" class="text" value="<%=writBean.getFileBef()%>">
  113.                                 </td>
  114.                               </tr>
  115.                               <tr bgcolor="#e0e0e0"> 
  116.                                 <td width="24%"><strong>原电子档案:</strong></td>
  117.                                 <td width="76%"> 
  118.                                   <%
  119.   String str = writBean.getAttachment();
  120.   int s = str.lastIndexOf(SubPathGenerater.getSeperator());
  121.   String filename = str.substring(s+1);
  122.   String UTFurl = str.substring(0,s+1)+StringUtil.encode(filename);
  123.   out.println("<a href=""+UTFurl+"" target="_blank">");
  124.   out.println(filename);
  125.   out.println("</a>");
  126. %>
  127.                                   <input type="hidden" name="oldURL" value="<%=writBean.getAttachment()%>">
  128.                                 </td>
  129.                               </tr>
  130.                               <tr bgcolor="#fafafa"> 
  131.                                 <td width="24%"><strong>上载新电子档案:</strong></td>
  132.                                 <td width="76%"> 
  133.                                   <input type="file" name="attachment" class="text">
  134.                                 </td>
  135.                               </tr>
  136.                               <tr bgcolor="#e0e0e0"> 
  137.                                 <td width="24%"><strong>电子文档标题:</strong></td>
  138.                                 <td width="76%"> 
  139.                                   <input type="text" name="title" size="30" class="text" value="<%=writBean.getTitle()%>">
  140.                                   * </td>
  141.                               </tr>
  142.                               <tr bgcolor="#fafafa"> 
  143.                                 <td width="24%"><strong>文件作者:</strong></td>
  144.                                 <td width="76%"> 
  145.                                   <input type="text" name="dep" size="30" class="text" value="<%=writBean.getDep()%>">
  146.                                 </td>
  147.                               </tr>
  148.                               <tr bgcolor="#e0e0e0"> 
  149.                                 <td width="24%"> 
  150.                                   <div align="left"><strong>文件日期:</strong></div>
  151.                                 </td>
  152.                                 <td width="76%"> 
  153.                                   <div align="left"> 
  154.                                     <input type="text" name="buildDate" value=<%=StringUtil.changeIntToString(writBean.getBuildDate())%>  readonly size="10" class="text">
  155.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDate);return false"> 
  156.                                     * </div>
  157.                                 </td>
  158.                               </tr>
  159.                               <tr bgcolor="#fafafa"> 
  160.                                 <td width="24%"><strong>保管期限:</strong></td>
  161.                                 <td width="76%"> 
  162.                                   <select name="saveDate" size="1">
  163.                                     <option value="1" <%if(writBean.getSaveDate()==1) out.println("selected");%>>短期</option>
  164.                                     <option value="2" <%if(writBean.getSaveDate()==2) out.println("selected");%>>长期</option>
  165.                                     <option value="3" <%if(writBean.getSaveDate()==3) out.println("selected");%>>永久</option>
  166.                                   </select>
  167.                                 </td>
  168.                               </tr>
  169.                               <tr bgcolor="#e0e0e0"> 
  170.                                 <td width="24%"> 
  171.                                   <div align="left"><strong>密级:</strong></div>
  172.                                 </td>
  173.                                 <td width="76%"> 
  174.                                   <select name="secret" size="1">
  175.                                     <option value="1" <%if(writBean.getSecret()==1) out.println("selected");%>>一般</option>
  176.                                     <option value="2" <%if(writBean.getSecret()==2) out.println("selected");%>>秘密</option>
  177.                                     <option value="3" <%if(writBean.getSecret()==3) out.println("selected");%>>机密</option>
  178.                                     <option value="4" <%if(writBean.getSecret()==4) out.println("selected");%>>绝密</option>
  179.                                   </select>
  180.                                 </td>
  181.                               </tr>
  182.                               <tr bgcolor="#fafafa"> 
  183.                                 <td width="24%"><strong>主题词:</strong></td>
  184.                                 <td width="76%"> 
  185.                                   <input type="text" name="wordKey" size="30" class="text" value="<%=writBean.getWordKey()%>">
  186.                                 </td>
  187.                               </tr>
  188.                               <tr bgcolor="#e0e0e0"> 
  189.                                 <td width="24%"> 
  190.                                   <div align="left"><strong>年度:</strong></div>
  191.                                 </td>
  192.                                 <td width="76%"> 
  193.                                   <select style="WIDTH: 65px" name="buildYear" class="button">
  194.                                     <%
  195. for(int i=1996; i<2050; i++)
  196. {
  197.  if(writBean.getBuildYear()==i)
  198.      out.println("<option value="+i+" selected><b>"+i+"</b></option>");
  199.  else
  200.      out.println("<option value="+i+" ><b>"+i+"</b></option>");
  201. }
  202. %>
  203.                                   </select>
  204.                                   年 </td>
  205.                               </tr>
  206.                               <tr bgcolor="#fafafa"> 
  207.                                 <td width="24%"> 
  208.                                   <div align="left"><strong>备注:</strong></div>
  209.                                 </td>
  210.                                 <td width="76%"> 
  211.                                   <div align="left"> 
  212.                                     <input type="text" class="text" name="remark" size="10" value="<%=writBean.getRemark()%>" maxlength="10">
  213.                                   </div>
  214.                                 </td>
  215.                               </tr>
  216.                               <tr bgcolor="#fafafa"> 
  217.                                 <td colspan="2" align="center" height="30"> 
  218.                                   <input type="button"  onClick="createArchive(this.form)" value="保存"  class="text">
  219.                                   &nbsp;&nbsp; 
  220.                                   <input type="reset" value="重置"  class="text">
  221.                                   &nbsp;&nbsp; 
  222.                                   <input type="button" value="放弃"  class="text" onClick="history.back()">
  223.                                 </td>
  224.                               </tr>
  225.                             </table>
  226.                   </tr>
  227.                      
  228.                 </table>
  229.                     </td>
  230.                     </tr>
  231.                   </table>
  232.                 </td>
  233.              </tr>
  234.           </table>
  235.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  236.        </TD>
  237.      </TR>
  238.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  239.     </TBODY> 
  240.   </TABLE>
  241.     <BR>
  242.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  243. </form>
  244. </DIV>
  245. </BODY>
  246. </HTML>