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

电子政务应用

开发平台:

Java

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