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

电子政务应用

开发平台:

Java

  1. <HTML>
  2. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  3. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  4. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  5. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  6. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  7. <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
  8. <script language="javascript" src="/vnex/util/strUtil.js"></script>
  9. <script language="javascript" src="/vnex/validate.js"></script>
  10. <script language=javascript>
  11. function createArchive(form)
  12. {
  13.   if(checkIt(form))
  14.   {
  15.     form.buildDate.value=form.buildDate.value.replace("-","");
  16.     form.buildDate.value=form.buildDate.value.replace("-","");
  17.     form.buildYear.value=form.buildYear.value.replace("-","");
  18.     form.buildYear.value=form.buildYear.value.replace("-","");
  19.     form.action="/mainctrl/tecCreateProcess";
  20. form.encoding="multipart/form-data";
  21. form.submit();
  22.   }  
  23. }
  24. function checkIt(form)
  25. {
  26.   if(isEmpty(form.docName.value))
  27.   {
  28.       alert("请输入案卷号!");
  29.   form.docName.focus();
  30.       return false;
  31.   }
  32.   if(isEmpty(form.title.value))
  33.   {
  34.       alert("请输入内容摘要!");
  35.   form.title.focus();
  36.       return false;
  37.   }
  38.   if(isEmpty(form.buildDate.value))
  39.   {
  40.       alert("请选择形成日期!");
  41.   form.buildDate.focus();
  42.       return false;
  43.   }
  44.   if(isEmpty(form.buildYear.value))
  45.   {
  46.       alert("请选择归档时间!");
  47.   form.buildYear.focus();
  48.       return false;
  49.   }
  50.   if(!isEmpty(form.fileNum.value))
  51.   {
  52.      if(!isInteger(form.fileNum.value))
  53.      {
  54.         alert("蓝图只能是数字!");
  55. form.fileNum.focus();
  56.         return false;
  57.      }
  58.   }  
  59.   if(!isEmpty(form.topName.value))
  60.   {
  61.      if(!isInteger(form.topName.value))
  62.      {
  63.         alert("文字只能是数字!");
  64. form.topName.focus();
  65.         return false;
  66.      }
  67.   }  
  68.   return true;
  69. }
  70. </script>
  71. <DIV align=center>
  72. <form name="form1" method="post" >
  73.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  74.     <TBODY> 
  75.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  76.       <TR> 
  77.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  78.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  79.             <tr valign="top"> 
  80.               <td bgcolor="#fafafa" > 
  81.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  82.                   <tr valign="top" bgcolor="#cccccc"> 
  83.                     <td> 
  84.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  85.                         <tr bgcolor="#666666"> 
  86.                             
  87.                           <td><font class="strongw"> <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt; 
  88.                             <a href="/mainctrl/archive/todayArchives"><font color="#ffffff">档案管理</font></a>&gt;&gt;<a href="/mainctrl/tecIndex"><font color="#ffffff">科技档案</font></a>&gt;&gt;新建科技档案</font> 
  89.                           </td>
  90.                         </tr>
  91.                       </table>
  92.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  93.                   <tr bgcolor="#e0e0e0"> 
  94.                           <td colspan="4"> 
  95.                             <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  96.                               <tr bgcolor="#e0e0e0"> 
  97.                                 <td width="24%"><strong>案卷号</strong>:</td>
  98.                                 <td width="76%"> 
  99.                                   <input type="hidden" name="archiveId">
  100.                                   <input type="text" name="docName" size="30" class="text" maxlength="30">
  101.                                   &nbsp;*(注:带*为必填内容) </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" maxlength="30">
  107.                                 </td>
  108.                               </tr>
  109.                               <tr bgcolor="#e0e0e0"> 
  110.                                 <td width="24%"><strong>内容摘要:</strong></td>
  111.                                 <td width="76%"> 
  112.                                   <input type="text" name="title" size="30" class="text" maxlength="30">
  113.                                   * </td>
  114.                               </tr>
  115.                               <tr bgcolor="#fafafa"> 
  116.                                 <td width="24%"><strong>形成单位:</strong></td>
  117.                                 <td width="76%"> 
  118.                                   <input type="text" name="dep" size="30" class="text" maxlength="30">
  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%" bgcolor="#e0e0e0"> 
  126.                                   <div align="left"> 
  127.                                     <input type="text" name="shelf" size="30" class="text" maxlength="30">
  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" maxlength="30">
  135.                                 </td>
  136.                               </tr>
  137.                               <tr bgcolor="#e0e0e0"> 
  138.                                 <td width="24%"><strong>卷数:</strong></td>
  139.                                 <td width="76%"> 
  140.                                   <input type="text" name="buildMan" size="30" class="text" maxlength="30">
  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">一般</option>
  150.                                     <option value="2">秘密</option>
  151.                                     <option value="3">机密</option>
  152.                                     <option value="4">绝密</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="text" name="topName" size="5" class="text" maxlength="5">
  163.                                   </div>
  164.                                 </td>
  165.                               </tr>
  166.                               <tr bgcolor="#fafafa"> 
  167.                                 <td width="24%"><strong>蓝图(张):</strong></td>
  168.                                 <td width="76%" bgcolor="#fafafa"> 
  169.                                   <input type="text" name="fileNum" size="5" class="text" maxlength="5">
  170.                                 </td>
  171.                               </tr>
  172.                               <tr bgcolor="#e0e0e0"> 
  173.                                 <td width="24%"><strong>保管期限:</strong></td>
  174.                                 <td width="76%"> 
  175.                                   <select name="saveDate" size="1">
  176.                                     <option value="1">短期</option>
  177.                                     <option value="2">长期</option>
  178.                                     <option value="3">永久</option>
  179.                                   </select>
  180.                                 </td>
  181.                               </tr>
  182.                               <tr bgcolor="#fafafa"> 
  183.                                 <td width="24%"> 
  184.                                   <div align="left"><strong>形成日期:</strong></div>
  185.                                 </td>
  186.                                 <td width="76%"> 
  187.                                   <div align="left"> 
  188.                                     <input type="text" name="buildDate" readonly size="10" class="text">
  189.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDate);return false"> 
  190.                                     * </div>
  191.                                 </td>
  192.                               </tr>
  193.                               <tr bgcolor="#e0e0e0"> 
  194.                                 <td width="24%"> 
  195.                                   <div align="left"><strong>归档日期:</strong></div>
  196.                                 </td>
  197.                                 <td width="76%" bgcolor="#e0e0e0"> 
  198.                                   <input type="text" name="buildYear" readonly size="10" class="text">
  199.                                   &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildYear);return false"> 
  200.                                   * </td>
  201.                               </tr>
  202.                               <tr bgcolor="#fafafa"> 
  203.                                 <td width="24%"><strong>附件:</strong></td>
  204.                                 <td width="76%"> 
  205.                                   <input type="file" name="attachment" class="text">
  206.                                 </td>
  207.                               </tr>
  208.                               <tr bgcolor="#e0e0e0"> 
  209.                                 <td width="24%"> 
  210.                                   <div align="left"><strong>备注:</strong></div>
  211.                                 </td>
  212.                                 <td width="76%"> 
  213.                                   <div align="left"> 
  214.                                     <input type="text" class="text" name="remark" size="10" value="" maxlength="10">
  215.                                   </div>
  216.                                 </td>
  217.                               </tr>
  218.                               <tr bgcolor="#fafafa"> 
  219.                                 <td colspan="2" align="center" height="30"> 
  220.                                   <input onClick="createArchive(this.form)" type="button" value="保存"  class="text">
  221.                                   &nbsp;&nbsp; 
  222.                                   <input type="reset" value="重置"  class="text">
  223.                                   &nbsp;&nbsp; 
  224.                                   <input type="button" value="放弃"  class="text" onClick="history.back()">
  225.                                 </td>
  226.                               </tr>
  227.                             </table>
  228.                </td>
  229.                   </tr>
  230.                      
  231.                 </table>
  232.                     </td>
  233.                     </tr>
  234.                   </table>
  235.                 </td>
  236.              </tr>
  237.           </table>
  238.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  239.        </TD>
  240.      </TR>
  241.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  242.     </TBODY> 
  243.   </TABLE>
  244.     <BR>
  245.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  246. </form>
  247. </DIV>
  248. </BODY>
  249. </HTML>