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

电子政务应用

开发平台:

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.TecValueBean"%>
  6. <%@ page import="com.vnex.intranet.util.*"%>
  7. <jsp:useBean id="tecProcess" scope="application" class="com.vnex.intranet.archives.process.TecProcess" />
  8. <%
  9. int archiveId = Integer.parseInt(request.getParameter("archiveId"));
  10. TecValueBean writBean = tecProcess.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.buildYear.value=form.buildYear.value.replace("-","");
  29.     form.buildYear.value=form.buildYear.value.replace("-","");
  30.     form.action="/mainctrl/tecModifyProcess";
  31. form.encoding="multipart/form-data";
  32.     form.submit();
  33.   }  
  34. }
  35. function checkIt(form)
  36. {
  37.   if(isEmpty(form.docName.value))
  38.   {
  39.       alert("请输入案卷号!");
  40.   form.docName.focus();
  41.       return false;
  42.   }
  43.   if(isEmpty(form.title.value))
  44.   {
  45.       alert("请输入标题!");
  46.   form.title.focus();
  47.       return false;
  48.   }
  49.   if(isEmpty(form.buildDate.value))
  50.   {
  51.       alert("请选择形成日期!");
  52.   form.buildDate.focus();
  53.       return false;
  54.   }
  55.   if(isEmpty(form.buildYear.value))
  56.   {
  57.       alert("请选择归档日期!");
  58.   form.buildYear.focus();
  59.       return false;
  60.   }
  61.   if(!isEmpty(form.remark.value))
  62.   {
  63.      if(isInvalidateLen(form.remark.value, 400))
  64.      {
  65.         alert("内容概要不要超过250个汉字或1000个英文字符!");
  66. form.remark.focus();
  67.         return false;
  68.      }
  69.   }
  70.   return true;
  71. }
  72. </script>
  73. <form name="form1" method="post" >
  74.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  75.     <TBODY> 
  76.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  77.       <TR> 
  78.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  79.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  80.             <tr valign="top"> 
  81.               <td bgcolor="#fafafa" > 
  82.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  83.                   <tr valign="top" bgcolor="#cccccc"> 
  84.                     <td> 
  85.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  86.                         <tr bgcolor="#666666"> 
  87.                             
  88.                           <td><font class="strongw"> <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt; 
  89.                             <a href="/mainctrl/archiveFileIn"><font color="#ffffff">档案管理</font></a>&gt;&gt;<a href="/mainctrl/tecIndex"><font color="#ffffff">科技档案</font></a>&gt;&gt; 
  90.                             修改科技档案</font> </td>
  91.                         </tr>
  92.                       </table>
  93.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  94.                   <tr bgcolor="#e0e0e0"> 
  95.                           <td colspan="4"> 
  96.                             <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  97.                               <tr bgcolor="#e0e0e0"> 
  98.                                 <td width="24%"><strong>案卷号</strong>:</td>
  99.                                 <td width="76%"> 
  100.                                   <input type="text" name="docName" size="30" class="text" value="<%=writBean.getDocName()%>">
  101.                                   * </td>
  102.                               </tr>
  103.                               <tr bgcolor="#fafafa"> 
  104.                                 <td width="24%"><strong>图号:</strong></td>
  105.                                 <td width="76%"> 
  106.                                   <input type="text" name="fileBef" size="30" class="text" value="<%=writBean.getFileBef()%>">
  107.                                 </td>
  108.                               </tr>
  109.                               <tr bgcolor="#e0e0e0"> 
  110.                                 <td width="24%"><strong>内容摘要:</strong></td>
  111.                                 <td width="76%" bgcolor="#e0e0e0"> 
  112.                                   <input type="text" name="title" size="30" class="text" value="<%=writBean.getTitle()%>">
  113.                                   * </td>
  114.                               </tr>
  115.                               <tr bgcolor="#fafafa"> 
  116.                                 <td width="24%"><strong>形成单位:</strong></td>
  117.                                 <td width="76%" bgcolor="#fafafa"> 
  118.                                   <input type="text" name="dep" size="30" class="text" value="<%=writBean.getDep()%>">
  119.                                 </td>
  120.                               </tr>
  121.                               <tr bgcolor="#e0e0e0"> 
  122.                                 <td width="24%"> 
  123.                                   <div align="left"><strong>排架:</strong></div>
  124.                                 </td>
  125.                                 <td width="76%"> 
  126.                                   <div align="left"> 
  127.                                     <input type="text" name="shelf" size="30" class="text" value="<%=writBean.getShelf()%>">
  128.                                   </div>
  129.                                 </td>
  130.                               </tr>
  131.                               <tr bgcolor="#fafafa"> 
  132.                                 <td width="24%"><strong>图别:</strong></td>
  133.                                 <td width="76%"> 
  134.                                   <input type="text" name="wordKey" size="30" class="text" value="<%=writBean.getWordKey()%>">
  135.                                 </td>
  136.                               </tr>
  137.                               <tr bgcolor="#e0e0e0"> 
  138.                                 <td width="24%"><strong>卷数:</strong></td>
  139.                                 <td width="76%" bgcolor="#e0e0e0"> 
  140.                                   <input type="text" name="buildMan" size="30" class="text" value="<%=writBean.getBuildMan()%>">
  141.                                 </td>
  142.                               </tr>
  143.                               <tr bgcolor="#fafafa"> 
  144.                                 <td width="24%"> 
  145.                                   <div align="left"><strong>密级:</strong></div>
  146.                                 </td>
  147.                                 <td width="76%"> 
  148.                                   <select name="secret" size="1">
  149.                                     <option value="1" <%if(writBean.getSecret()==1) out.println("selected");%>>一般</option>
  150.                                     <option value="2" <%if(writBean.getSecret()==2) out.println("selected");%>>秘密</option>
  151.                                     <option value="3" <%if(writBean.getSecret()==3) out.println("selected");%>>机密</option>
  152.                                     <option value="4" <%if(writBean.getSecret()==4) out.println("selected");%>>绝密</option>
  153.                                   </select>
  154.                                 </td>
  155.                               </tr>
  156.                               <tr bgcolor="#e0e0e0"> 
  157.                                 <td width="24%" > 
  158.                                   <div align="left"><strong>文字(本):</strong></div>
  159.                                 </td>
  160.                                 <td width="76%" > 
  161.                                   <div align="left"> 
  162.                                     <input type="hidden" name="archiveId" value="<%=writBean.getArchiveId()%>">
  163.                                     <input type="text" name="topName" size="10" class="text" value="<%=writBean.getTopName()%>" maxlength="5">
  164.                                   </div>
  165.                                 </td>
  166.                               </tr>
  167.                               <tr bgcolor="#fafafa"> 
  168.                                 <td width="24%"><strong>蓝图(张):</strong></td>
  169.                                 <td width="76%"> 
  170.                                   <%
  171. String www="";
  172. if(writBean.getFileNum()!=0)
  173. {
  174.  www=Integer.toString(writBean.getFileNum());
  175. }
  176. %>
  177.                                   <input type="text" name="fileNum" size="10" class="text" value="<%=www%>" maxlength="5">
  178.                                 </td>
  179.                               </tr>
  180.                               <tr bgcolor="#e0e0e0"> 
  181.                                 <td width="24%"><strong>保管期限:</strong></td>
  182.                                 <td width="76%"> 
  183.                                   <select name="saveDate" size="1">
  184.                                     <option value="1" <%if(writBean.getSaveDate()==1) out.println("selected");%>>短期</option>
  185.                                     <option value="2" <%if(writBean.getSaveDate()==2) out.println("selected");%>>长期</option>
  186.                                     <option value="3" <%if(writBean.getSaveDate()==3) out.println("selected");%>>永久</option>
  187.                                   </select>
  188.                                 </td>
  189.                               </tr>
  190.                               <tr bgcolor="#fafafa"> 
  191.                                 <td width="24%"> 
  192.                                   <div align="left"><strong>形成日期:</strong></div>
  193.                                 </td>
  194.                                 <td width="76%"> 
  195.                                   <div align="left"> 
  196.                                     <input type="text" name="buildDate" value=<%=StringUtil.changeIntToString(writBean.getBuildDate())%>  readonly size="10" class="text">
  197.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDate);return false"> 
  198.                                     * </div>
  199.                                 </td>
  200.                               </tr>
  201.                               <tr bgcolor="#e0e0e0"> 
  202.                                 <td width="24%" bgcolor="#e0e0e0"> 
  203.                                   <div align="left"><strong>归档日期:</strong></div>
  204.                                 </td>
  205.                                 <td width="76%"> 
  206.                                   <input type="text" name="buildYear" value=<%=StringUtil.changeIntToString(writBean.getBuildYear())%>  readonly size="10" class="text">
  207.                                   &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildYear);return false"> 
  208.                                   * </td>
  209.                               </tr>
  210.                               <tr bgcolor="#fafafa"> 
  211.                                 <td width="24%"><strong>原附件:</strong></td>
  212.                                 <td width="76%" > 
  213.                                   <%
  214.   String str = writBean.getAttachment();
  215.   int s = str.lastIndexOf(SubPathGenerater.getSeperator());
  216.   String filename = str.substring(s+1);
  217.   String UTFurl = str.substring(0,s+1)+StringUtil.encode(filename);
  218.   out.println("<a href=""+UTFurl+"" target="_blank">");
  219.   out.println(filename);
  220.   out.println("</a>");
  221. %>
  222.                                   <input type="hidden" name="oldURL" value="<%=writBean.getAttachment()%>">
  223.                                 </td>
  224.                               </tr>
  225.                               <tr bgcolor="#e0e0e0"> 
  226.                                 <td width="24%"><strong>附件:</strong></td>
  227.                                 <td width="76%"> 
  228.                                   <input type="file" name="attachment" class="text">
  229.                                 </td>
  230.                               </tr>
  231.                               <tr bgcolor="#fafafa"> 
  232.                                 <td width="24%" > 
  233.                                   <div align="left"><strong>备注:</strong></div>
  234.                                 </td>
  235.                                 <td width="76%" > 
  236.                                   <div align="left"> 
  237.                                     <input type="text" name="remark" class="text"  size="10" value="<%=writBean.getRemark()%>" maxlength="10">
  238.                                   </div>
  239.                                 </td>
  240.                               </tr>
  241.                               <tr bgcolor="#fafafa"> 
  242.                                 <td colspan="2" align="center" height="30"> 
  243.                                   <input type="button"  onClick="createArchive(this.form)" value="保存"  class="text">
  244.                                   &nbsp;&nbsp; 
  245.                                   <input type="reset" value="重置"  class="text">
  246.                                   &nbsp;&nbsp; 
  247.                                   <input type="button" value="放弃"  class="text" onClick="history.back()">
  248.                                 </td>
  249.                               </tr>
  250.                             </table>
  251.                   </tr>
  252.                      
  253.                 </table>
  254.                     </td>
  255.                     </tr>
  256.                   </table>
  257.                 </td>
  258.              </tr>
  259.           </table>
  260.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  261.        </TD>
  262.      </TR>
  263.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  264.     </TBODY> 
  265.   </TABLE>
  266.     <BR>
  267.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  268. </form>
  269. </DIV>
  270. </BODY>
  271. </HTML>