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

电子政务应用

开发平台:

Java

  1. <%@ page language="java" %>
  2.             
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="java.lang.*"%>
  5. <HTML>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  8. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  9. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  10. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  11. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>    
  12. <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
  13. <script language="javascript" src="/vnex/validate.js"></script>
  14. <DIV align=center>
  15. <script language=javascript>
  16. function searchArchive(form)
  17. {
  18.   if(checkIt(form))
  19.   {
  20.     modParameter(form);
  21.     form.action="/mainctrl/tecSearchResult";
  22.     form.submit();
  23.   }  
  24. }
  25. function modParameter(form)
  26. {
  27.    if(!isEmpty(form.buildDate.value))
  28.    {
  29.     form.buildDate.value=form.buildDate.value.replace("-","");
  30.     form.buildDate.value=form.buildDate.value.replace("-","");
  31.    }
  32.    else
  33.    {
  34.     form.buildDate.value=0;
  35.    }
  36.    if(!isEmpty(form.buildDateEnd.value))
  37.    {
  38.     form.buildDateEnd.value=form.buildDateEnd.value.replace("-","");
  39.     form.buildDateEnd.value=form.buildDateEnd.value.replace("-","");
  40.    }
  41.    else
  42.    {
  43.     form.buildDateEnd.value=30000000;
  44.    }
  45.    if(!isEmpty(form.buildYear.value))
  46.    {
  47.     form.buildYear.value=form.buildYear.value.replace("-","");
  48.     form.buildYear.value=form.buildYear.value.replace("-","");
  49.    }
  50.    else
  51.    {
  52.     form.buildYear.value=0;
  53.    }
  54.    if(!isEmpty(form.buildYearEnd.value))
  55.    {
  56.     form.buildYearEnd.value=form.buildYearEnd.value.replace("-","");
  57.     form.buildYearEnd.value=form.buildYearEnd.value.replace("-","");
  58.    }
  59.    else
  60.    {
  61.     form.buildYearEnd.value=30000000;
  62.    }
  63.    //if(isEmpty(form.fileNum.value))
  64.    //    form.fileNum.value=0;
  65.    //if(isEmpty(form.fileNumEnd.value))
  66.    //    form.fileNumEnd.value=999999;
  67.    if(isEmpty(form.buildYear.value))
  68.        form.buildYear.value=0;
  69.    if(isEmpty(form.buildYearEnd.value))
  70.        form.buildYearEnd.value=3000;
  71. }
  72. function checkIt(form)
  73. {
  74.    if((!isEmpty(form.buildDate.value))&&(!isEmpty(form.buildDateEnd.value)))
  75.    {
  76.       var start = form.buildDate.value;
  77.       var end = form.buildDateEnd.value;
  78.       if(start>end)
  79.       {
  80.            alert("形成日期的结束时间不能小于开始时间!");
  81.            return false;
  82.       }   
  83.    }
  84.    if((!isEmpty(form.buildYear.value))&&(!isEmpty(form.buildYearEnd.value)))
  85.    {
  86.       var startb = form.buildYear.value;
  87.       var endb = form.buildYearEnd.value;
  88.       if(startb>endb)
  89.       {
  90.            alert("归档日期的结束时间不能小于开始时间!");
  91.            return false;
  92.       }   
  93.    }
  94.    if(!isEmpty(form.fileNum.value))
  95.   {
  96.      if(!isInteger(form.fileNum.value))
  97.      {
  98.         alert("卷内份数只能是数字!");
  99. form.fileNum.focus();
  100.         return false;
  101.      }
  102.   }  
  103.   if(!isEmpty(form.buildYear.value))
  104.   {
  105.      if(!isInteger(form.buildYear.value))
  106.      {
  107.         alert("年度只能是数字!");
  108. form.buildYear.focus();
  109.         return false;
  110.      }
  111.   }  
  112.    if(!isEmpty(form.buildYearEnd.value))
  113.   {
  114.      if(!isInteger(form.buildYearEnd.value))
  115.      {
  116.         alert("年度只能是数字!");
  117. form.buildYearEnd.focus();
  118.         return false;
  119.      }
  120.   }  
  121.    if((!isEmpty(form.buildYear.value))&&(!isEmpty(form.buildYearEnd.value)))
  122.   {
  123.      if(form.buildYear.value>form.buildYearEnd.value)
  124.      {
  125.         alert("年度的前一个数字应该小于后一个数字!");
  126. form.buildYear.focus();
  127.         return false;
  128.      }
  129.   }  
  130.   return true;
  131. }
  132. </script>
  133. <form name="form1" method="post">
  134.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  135.     <TBODY> 
  136.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  137.       <TR> 
  138.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  139.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  140.             <tr valign="top"> 
  141.               <td bgcolor="#fafafa" > 
  142.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  143.                   <tr valign="top" bgcolor="#cccccc"> 
  144.                     <td> 
  145.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  146.                         <tr bgcolor="#666666"> 
  147.                             
  148.                           <td><font class="strongw"> <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;<a href="/mainctrl/archiveFileIn"><font color="#ffffff">档案管理</font></a>&gt;&gt;<a href="/mainctrl/tecIndex"><font color="#ffffff">科技档案</font></a>&gt;&gt; 
  149.                             科技档案查询</font> </td>
  150.                         </tr>
  151.                       </table>
  152.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  153.                   <tr bgcolor="#e0e0e0"> 
  154.                           <td colspan="4"> 
  155.                             <table border=0 cellpadding=2 cellspacing=1 class=title width=600>
  156.                               <tr bgcolor=#e0e0e0> 
  157.                                 <td colspan="3"><strong>请选择查询条件:</strong><br>
  158.                                   <strong>(缺省查询条件为“与”关系,若选中单选框则为‘或’关系)</strong></td>
  159.                               </tr>
  160.                               <tbody> 
  161.                               <!--
  162.                               <tr bgcolor=#fafafa> 
  163.                                 <td width="12%"> 
  164.                                   <div align=left><strong>&nbsp;</strong></div>
  165.                                 </td>
  166.                                 <td width="22%"> 
  167.                                   <div align=left><strong>&nbsp;全宗号:</strong></div>
  168.                                 </td>
  169.                                 <td width="66%"> 
  170.                                   <div align=left> 
  171.                                   </div>
  172.                                 </td>
  173.                               </tr>
  174.   -->
  175.                               <tr bgcolor=#e0e0e0> 
  176.                                 <td width="12%" bgcolor="#e0e0e0"> 
  177.                                   <div align="center"> 
  178.                                     <input type="hidden" name="topName" size="30" class="text" value="铁通总公司" maxlength="40">
  179.                                   </div>
  180.                                 </td>
  181.                                 <td width="22%"> 
  182.                                   <div align=left><strong>&nbsp;案卷号:</strong></div>
  183.                                 </td>
  184.                                 <td width="66%"> 
  185.                                   <div align=left> 
  186.                                     <input type="text" name="docName" size="30" class="text" maxlength="40">
  187.                                   </div>
  188.                                 </td>
  189.                               </tr>
  190.                               <tr bgcolor=#fafafa> 
  191.                                 <td width="12%"> 
  192.                                   <div align="center"> 
  193.                                     <input type="checkbox" name="fileBefTag" value="1">
  194.                                   </div>
  195.                                 </td>
  196.                                 <td width="22%"> 
  197.                                   <div align=left><strong>&nbsp;图号:</strong></div>
  198.                                 </td>
  199.                                 <td width="66%"> 
  200.                                   <div align=left> 
  201.                                     <input type="text" name="fileName" size="30" class="text" maxlength="40">
  202.                                   </div>
  203.                                 </td>
  204.                               </tr>
  205.                               <tr bgcolor=#e0e0e0> 
  206.                                 <td width="12%"> 
  207.                                   <div align="center"> 
  208.                                     <input type="checkbox" name="titleTag" value="1">
  209.                                   </div>
  210.                                 </td>
  211.                                 <td width="22%"> 
  212.                                   <div align=left><strong>&nbsp;内容摘要:</strong></div>
  213.                                 </td>
  214.                                 <td width="66%" bgcolor="#e0e0e0"> 
  215.                                   <div align=left> 
  216.                                     <input class=text name="title" size=30 maxlength="40">
  217.                                     &nbsp;</div>
  218.                                 </td>
  219.                               </tr>
  220.                               <tr bgcolor=#fafafa> 
  221.                                 <td width="12%"> 
  222.                                   <div align="center"> 
  223.                                     <input type="checkbox" name="depTag" value="1">
  224.                                   </div>
  225.                                 </td>
  226.                                 <td width="22%"><strong>&nbsp;形成单位:</strong></td>
  227.                                 <td width="66%" bgcolor="#fafafa"> 
  228.                                   <input class=text name="dep" size=30 maxlength="40">
  229.                                 </td>
  230.                               </tr>
  231.                               <tr bgcolor=#e0e0e0> 
  232.                                 <td width="12%"> 
  233.                                   <div align="center"> 
  234.                                     <input type="checkbox" name="shelfTag" value="1">
  235.                                   </div>
  236.                                 </td>
  237.                                 <td width="22%"><strong>&nbsp;排架:</strong></td>
  238.                                 <td width="66%"> 
  239.                                   <input class=text name=shelf size=30 maxlength="40">
  240.                                 </td>
  241.                               </tr>
  242.                               <tr bgcolor=#fafafa> 
  243.                                 <td width="12%"> 
  244.                                   <div align="center"> 
  245.                                     <input type="checkbox" name="wordKeyTag" value="1">
  246.                                   </div>
  247.                                 </td>
  248.                                 <td width="22%"> 
  249.                                   <div align=left><strong>&nbsp;图别:</strong></div>
  250.                                 </td>
  251.                                 <td width="66%"> 
  252.                                   <input class=text  maxlength=40 name="wordKey" size=15>
  253.                                 </td>
  254.                               </tr>
  255.                               <tr bgcolor=#e0e0e0> 
  256.                                 <td width="12%" bgcolor="#e0e0e0"> 
  257.                                   <div align="center"> 
  258.                                     <input type="checkbox" name="buildManTag" value="1">
  259.                                   </div>
  260.                                 </td>
  261.                                 <td width="22%"><strong>卷数:</strong></td>
  262.                                 <td width="66%" bgcolor="#e0e0e0"> 
  263.                                   <input class=text name=buildMan size=30 maxlength="40">
  264.                                 </td>
  265.                               </tr>
  266.                               <tr bgcolor=#fafafa> 
  267.                                 <td width="12%"> 
  268.                                   <div align="center"> 
  269.                                     <input type="checkbox" name="secretTag" value="1">
  270.                                   </div>
  271.                                 </td>
  272.                                 <td width="22%"> 
  273.                                   <div align=left><strong>&nbsp;密级:</strong></div>
  274.                                 </td>
  275.                                 <td width="66%"><strong> 
  276.                                   <select name="secret" size=1>
  277.                                     <option value="-1" selected>-请选择-</option>
  278.                                     <option value="1">一般</option>
  279.                                     <option value="2">秘密</option>
  280.                                     <option value="3">机密</option>
  281.                                     <option value="4">绝密</option>
  282.                                   </select>
  283.                                   </strong></td>
  284.                               </tr>
  285.   <!--
  286.                               <tr bgcolor=#e0e0e0> 
  287.                                 <td width="12%"> 
  288.                                   <div align="center"> 
  289.                                     <input type="checkbox" name="fileNumTag" value="1">
  290.                                   </div>
  291.                                 </td>
  292.                                 <td width="22%"> 
  293.                                   <div align=left><strong>&nbsp;蓝图:</strong></div>
  294.                                 </td>
  295.                                 <td width="66%"> 
  296.                                   <div align=left> 从 
  297.                                     <input class=text  maxlength=5 name="fileNum" size=6>
  298.                                     到 
  299.                                     <input class=text  maxlength=5 name="fileNumEnd" size=6>
  300.                                   </div>
  301.                                 </td>
  302.                               </tr>
  303.   -->
  304.                               <tr bgcolor=#e0e0e0> 
  305.                                 <td width="12%"> 
  306.                                   <div align="center"> 
  307.                                     <input type="hidden" name="fileNumTag" value="0">
  308.                                     <input type="hidden" class=text  maxlength=5 name="fileNum" size=6 value="0">
  309.                                     <input type="hidden" class=text  maxlength=5 name="fileNumEnd" value="999999" size=6>
  310.                                     <input type="checkbox" name="saveDateTag" value="1">
  311.                                   </div>
  312.                                 </td>
  313.                                 <td width="22%"> 
  314.                                   <div align=left><strong>&nbsp;保管期限:</strong></div>
  315.                                 </td>
  316.                                 <td width="66%" bgcolor="#e0e0e0"> 
  317.                                   <div align=left> <strong> 
  318.                                     <select name="saveDate" size=1>
  319.                                       <option value="-1" selected>-请选择-</option>
  320.                                       <option value="1">短期</option>
  321.                                       <option value="2">长期</option>
  322.                                       <option value="3">永久</option>
  323.                                     </select>
  324.                                     </strong></div>
  325.                                 </td>
  326.                               </tr>
  327.                               <tr bgcolor=#fafafa> 
  328.                                 <td width="12%" height="9"> 
  329.                                   <div align="center"> 
  330.                                     <input type="checkbox" name="buildDateTag" value="1">
  331.                                   </div>
  332.                                 </td>
  333.                                 <td width="22%" height="9"> 
  334.                                   <div align=left><strong>&nbsp;形成日期:</strong></div>
  335.                                 </td>
  336.                                 <td width="66%" height="9"> 
  337.                                   <div align=left> 从 
  338.                                     <input type="text" name="buildDate" readonly size="10" class="text">
  339.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDate);return false"> 
  340.                                     到 
  341.                                     <input type="text" name="buildDateEnd" readonly size="10" class="text">
  342.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDateEnd);return false"> 
  343.                                   </div>
  344.                                 </td>
  345.                               </tr>
  346.                               <tr bgcolor=#e0e0e0> 
  347.                                 <td width="12%"> 
  348.                                   <div align="center"> 
  349.                                     <input type="checkbox" name="buildYearTag" value="1">
  350.                                   </div>
  351.                                 </td>
  352.                                 <td width="22%"><strong>&nbsp;归档日期:</strong></td>
  353.                                 <td width="66%"> 从 
  354.                                   <input type="text" name="buildYear" readonly size="10" class="text">
  355.                                   &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildYear);return false"> 
  356.                                   到 
  357.                                   <input type="text" name="buildYearEnd" readonly size="10" class="text">
  358.                                   &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildYearEnd);return false"> 
  359.                                 </td>
  360.                               </tr>
  361.                               <tr bgcolor=#fafafa> 
  362.                                 <td align=middle height=30 colspan="3"> 
  363.                                   <div align="center"> 
  364.                                     <input class=text onclick=searchArchive(this.form)  type=button value=查询>
  365.                                     &nbsp;&nbsp; 
  366.                                     <input class=text  type=reset value=返回 onClick=history.back() >
  367.                                     &nbsp;&nbsp; </div>
  368.                                 </td>
  369.                               </tr>
  370.                               </tbody> 
  371.                             </table>
  372.                            </td>
  373.                   </tr>
  374.                      
  375.                 </table>
  376.                     </td>
  377.                     </tr>
  378.                   </table>
  379.                 </td>
  380.              </tr>
  381.           </table>
  382.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  383.        </TD>
  384.      </TR>
  385.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  386.     </TBODY> 
  387.   </TABLE>
  388.     <BR>
  389.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  390. </form>
  391. </DIV>
  392. </BODY>
  393. </HTML>