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

电子政务应用

开发平台:

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/writSearchResult";
  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.fileNum.value))
  49.        form.fileNum.value=0;
  50.    if(isEmpty(form.fileNumEnd.value))
  51.        form.fileNumEnd.value=999999;
  52.    if(isEmpty(form.buildYear.value))
  53.        form.buildYear.value=0;
  54.    if(isEmpty(form.buildYearEnd.value))
  55.        form.buildYearEnd.value=3000;
  56. }
  57. function checkIt(form)
  58. {
  59.    if((!isEmpty(form.buildDate.value))&&(!isEmpty(form.buildDateEnd.value)))
  60.    {
  61.       var start = form.buildDate.value;
  62.       var end = form.buildDateEnd.value;
  63.       if(start>end)
  64.       {
  65.            alert("文件日期的结束时间不能小于开始时间!");
  66.            return false;
  67.       }   
  68.    }
  69.    if(!isEmpty(form.fileNum.value))
  70.   {
  71.      if(!isInteger(form.fileNum.value))
  72.      {
  73.         alert("卷内份数只能是数字!");
  74. form.fileNum.focus();
  75.         return false;
  76.      }
  77.   }  
  78.    if(!isEmpty(form.fileNumEnd.value))
  79.   {
  80.      if(!isInteger(form.fileNumEnd.value))
  81.      {
  82.         alert("卷内份数只能是数字!");
  83. form.fileNumEnd.focus();
  84.         return false;
  85.      }
  86.   }  
  87.    if((!isEmpty(form.fileNum.value))&&(!isEmpty(form.fileNumEnd.value)))
  88.   {
  89.      if(form.fileNum.value>form.fileNumEnd.value)
  90.      {
  91.         alert("卷内份数前一个数字应该小于后一个数字!");
  92. form.fileNum.focus();
  93.         return false;
  94.      }
  95.   }
  96.   if(!isEmpty(form.buildYear.value))
  97.   {
  98.      if(!isInteger(form.buildYear.value))
  99.      {
  100.         alert("年度只能是数字!");
  101. form.buildYear.focus();
  102.         return false;
  103.      }
  104.   }  
  105.    if(!isEmpty(form.buildYearEnd.value))
  106.   {
  107.      if(!isInteger(form.buildYearEnd.value))
  108.      {
  109.         alert("年度只能是数字!");
  110. form.buildYearEnd.focus();
  111.         return false;
  112.      }
  113.   }  
  114.    if((!isEmpty(form.buildYear.value))&&(!isEmpty(form.buildYearEnd.value)))
  115.   {
  116.      if(form.buildYear.value>form.buildYearEnd.value)
  117.      {
  118.         alert("年度的前一个数字应该小于后一个数字!");
  119. form.buildYear.focus();
  120.         return false;
  121.      }
  122.   }  
  123.   return true;
  124. }
  125. </script>
  126. <form name="form1" method="get">
  127.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  128.     <TBODY> 
  129.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  130.       <TR> 
  131.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  132.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  133.             <tr valign="top"> 
  134.               <td bgcolor="#fafafa" > 
  135.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  136.                   <tr valign="top" bgcolor="#cccccc"> 
  137.                     <td> 
  138.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  139.                         <tr bgcolor="#666666"> 
  140.                             
  141.                           <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/writIndex"><font color="#ffffff">文书档案</font></a>&gt;&gt; 
  142.                             文书档案查询</font> </td>
  143.                         </tr>
  144.                       </table>
  145.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  146.                   <tr bgcolor="#e0e0e0"> 
  147.                           <td colspan="4"> 
  148.                             <table border=0 cellpadding=2 cellspacing=1 class=title width=600>
  149.                               <tr bgcolor=#e0e0e0> 
  150.                                 <td colspan="3">
  151.                                   <p><strong>请选择查询条件:</strong><br><strong>(缺省查询条件为“与”关系,若选中单选框则为‘或’关系)</strong></p>
  152.                                 </td>
  153.                               </tr>
  154.                               <tbody> 
  155.   <!--
  156.                               <tr bgcolor=#fafafa> 
  157.                                 <td width="12%"> 
  158.                                   <div align=left><strong>&nbsp;</strong></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="topName" size="30" class="text" value="铁通总公司" maxlength="40">
  166.                                   </div>
  167.                                 </td>
  168.                               </tr>
  169.   -->
  170.                               <tr bgcolor=#e0e0e0> 
  171.                                 <td width="12%"> 
  172.                                 </td>
  173.                                 <td width="22%"> 
  174.                                     <input type="hidden" name="topName" size="30" class="text" value="铁通总公司" maxlength="40">
  175.                                   <div align=left><strong>&nbsp;所属卷号:</strong></div>
  176.                                 </td>
  177.                                 <td width="66%"> 
  178.                                   <div align=left> 
  179.                                     <input type="text" name="docName" size="30" class="text" maxlength="40">
  180.                                   </div>
  181.                                 </td>
  182.                               </tr>
  183.                               <tr bgcolor=#fafafa> 
  184.                                 <td width="12%"> 
  185.                                   <div align="center"> 
  186.                                     <input type="checkbox" name="fileBefTag" value="1">
  187.                                   </div>
  188.                                 </td>
  189.                                 <td width="22%"> 
  190.                                   <div align=left><strong>&nbsp;文件发文号:</strong></div>
  191.                                 </td>
  192.                                 <td width="66%"> 
  193.                                   <div align=left> 
  194.                                     <input type="text" name="fileName" size="30" class="text" maxlength="40">
  195.                                   </div>
  196.                                 </td>
  197.                               </tr>
  198.                               <tr bgcolor=#e0e0e0> 
  199.                                 <td width="12%"> 
  200.                                   <div align="center"> 
  201.                                     <input type="checkbox" name="titleTag" value="1">
  202.                                   </div>
  203.                                 </td>
  204.                                 <td width="22%"> 
  205.                                   <div align=left><strong>&nbsp;内容摘要:</strong></div>
  206.                                 </td>
  207.                                 <td width="66%"> 
  208.                                   <div align=left> 
  209.                                     <input class=text name="title" size=30 maxlength="40">
  210.                                     &nbsp;</div>
  211.                                 </td>
  212.                               </tr>
  213.                               <tr bgcolor=#fafafa> 
  214.                                 <td width="12%"> 
  215.                                   <div align="center"> 
  216.                                     <input type="checkbox" name="depTag" value="1">
  217.                                   </div>
  218.                                 </td>
  219.                                 <td width="22%"><strong>&nbsp;文件作者:</strong></td>
  220.                                 <td width="66%"> 
  221.                                   <input class=text name="dep" size=30 maxlength="40">
  222.                                 </td>
  223.                               </tr>
  224.                               <tr bgcolor=#e0e0e0> 
  225.                                 <td width="12%" height="9"> 
  226.                                   <div align="center"> 
  227.                                     <input type="checkbox" name="buildDateTag" value="1">
  228.                                   </div>
  229.                                 </td>
  230.                                 <td width="22%" height="9"> 
  231.                                   <div align=left><strong>&nbsp;文件日期:</strong></div>
  232.                                 </td>
  233.                                 <td width="66%" height="9"> 
  234.                                   <div align=left> 从 
  235.                                     <input type="text" name="buildDate" readonly size="10" class="text">
  236.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDate);return false"> 
  237.                                     到 
  238.                                     <input type="text" name="buildDateEnd" readonly size="10" class="text">
  239.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDateEnd);return false"> 
  240.                                   </div>
  241.                                 </td>
  242.                               </tr>
  243.                               <tr bgcolor=#fafafa> 
  244.                                 <td width="12%"> 
  245.                                   <div align="center"> 
  246.                                     <input type="checkbox" name="saveDateTag" value="1">
  247.                                   </div>
  248.                                 </td>
  249.                                 <td width="22%"> 
  250.                                   <div align=left><strong>&nbsp;保管期限:</strong></div>
  251.                                 </td>
  252.                                 <td width="66%"> 
  253.                                   <div align=left> <strong>
  254.                                     <select name="saveDate" size=1>
  255.                                       <option value="-1" selected>-请选择-</option>
  256.                                     <option value="1">短期</option>
  257.                                     <option value="2">长期</option>
  258.                                     <option value="3">永久</option>
  259.                                     </select>
  260.                                     </strong></div>
  261.                                 </td>
  262.                               </tr>
  263.                               <tr bgcolor=#e0e0e0> 
  264.                                 <td width="12%"> 
  265.                                   <div align="center"> 
  266.                                     <input type="checkbox" name="secretTag" value="1">
  267.                                   </div>
  268.                                 </td>
  269.                                 <td width="22%"> 
  270.                                   <div align=left><strong>&nbsp;密级:</strong></div>
  271.                                 </td>
  272.                                 <td width="66%"><strong> 
  273.                                   <select name="secret" size=1>
  274.                                     <option value="-1" selected>-请选择-</option>
  275.                                     <option value="1">一般</option>
  276. <option value="2">秘密</option>
  277.                                     <option value="3">机密</option>
  278.                                     <option value="4">绝密</option>
  279.                                   </select>
  280.                                   </strong></td>
  281.                               </tr>
  282.                               <tr bgcolor=#fafafa> 
  283.                                 <td width="12%"> 
  284.                                   <div align="center"> 
  285.                                     <input type="checkbox" name="fileNumTag" value="1">
  286.                                   </div>
  287.                                 </td>
  288.                                 <td width="22%"> 
  289.                                   <div align=left><strong>&nbsp;卷内份数:</strong></div>
  290.                                 </td>
  291.                                 <td width="66%"> 
  292.                                   <div align=left> 从
  293.                                     <input class=text  maxlength=5 name="fileNum" size=6>
  294.                                     到
  295.                                     <input class=text  maxlength=5 name="fileNumEnd" size=6>
  296.                                   </div>
  297.                                 </td>
  298.                               </tr>
  299.                               <tr bgcolor=#e0e0e0> 
  300.                                 <td width="12%"> 
  301.                                   <div align="center"> 
  302.                                     <input type="checkbox" name="wordKeyTag" value="1">
  303.                                   </div>
  304.                                 </td>
  305.                                 <td width="22%"> 
  306.                                   <div align=left><strong>&nbsp;主题词:</strong></div>
  307.                                 </td>
  308.                                 <td width="66%"> 
  309.                                   <input class=text  maxlength=40 name="wordKey" size=15>
  310.                                 </td>
  311.                               </tr>
  312.                               <tr bgcolor=#fafafa> 
  313.                                 <td width="12%"> 
  314.                                   <div align="center"> 
  315.                                     <input type="checkbox" name="buildYearTag" value="1">
  316.                                   </div>
  317.                                 </td>
  318.                                 <td width="22%"><strong>&nbsp;年度:</strong></td>
  319.                                 <td width="66%" bgcolor="#fafafa"> 从 
  320.                                   <input class=text  maxlength=5 name="buildYear" size=6>
  321.                                   年--到 
  322.                                   <input class=text  maxlength=5 name="buildYearEnd" size=6>
  323.                                   年</td>
  324.                               </tr>
  325.                               <tr bgcolor=#e0e0e0> 
  326.                                 <td width="12%"> 
  327.                                   <div align="center">
  328.                                     <input type="checkbox" name="shelfTag" value="1">
  329.                                   </div>
  330.                                 </td>
  331.                                 <td width="22%"><strong>&nbsp;排架:</strong></td>
  332.                                 <td width="66%" bgcolor="#e0e0e0"> 
  333.                                   <input class=text name=shelf size=30 maxlength="40">
  334.                                 </td>
  335.                               </tr>
  336.                               <tr bgcolor=#fafafa> 
  337.                                 <td align=middle height=30 colspan="3"> 
  338.                                   <div align="center"> 
  339.                                     <input class=text onclick=searchArchive(this.form)  type=button value=查询>
  340.                                     &nbsp;&nbsp; 
  341.                                     <input class=text  type=reset value=返回 onClick=history.back() >
  342.                                     &nbsp;&nbsp; </div>
  343.                                 </td>
  344.                               </tr>
  345.                               </tbody> 
  346.                             </table>
  347.                             </td>
  348.                   </tr>
  349.                      
  350.                 </table>
  351.                     </td>
  352.                     </tr>
  353.                   </table>
  354.                 </td>
  355.              </tr>
  356.           </table>
  357.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  358.        </TD>
  359.      </TR>
  360.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  361.     </TBODY> 
  362.   </TABLE>
  363.     <BR>
  364.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  365. </form>
  366. </DIV>
  367. </BODY>
  368. </HTML>