person_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/personWritSearchResult";
  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/personal/main"><font color="#ffffff">个人办公</font></a>&gt;&gt; 
  142.                             </font><font class="strongw">文书档案查询</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.                                   <div align="center"> 
  173.                                     <input type="checkbox" name="docNameTag" value="1">
  174.                                   </div>
  175.                                 </td>
  176.                                 <td width="22%"> 
  177.                                     <input type="hidden" name="topName" size="30" class="text" value="铁通总公司" maxlength="40">
  178.                                   <div align=left><strong>&nbsp;所属卷号:</strong></div>
  179.                                 </td>
  180.                                 <td width="66%"> 
  181.                                   <div align=left> 
  182.                                     <input type="text" name="docName" size="30" class="text" maxlength="40">
  183.                                   </div>
  184.                                 </td>
  185.                               </tr>
  186.                               <tr bgcolor=#fafafa> 
  187.                                 <td width="12%"> 
  188.                                   <div align="center"> 
  189.                                     <input type="checkbox" name="fileBefTag" value="1">
  190.                                   </div>
  191.                                 </td>
  192.                                 <td width="22%"> 
  193.                                   <div align=left><strong>&nbsp;文件发文号:</strong></div>
  194.                                 </td>
  195.                                 <td width="66%"> 
  196.                                   <div align=left> 
  197.                                     <input type="text" name="fileName" size="30" class="text" maxlength="40">
  198.                                   </div>
  199.                                 </td>
  200.                               </tr>
  201.                               <tr bgcolor=#e0e0e0> 
  202.                                 <td width="12%"> 
  203.                                   <div align="center"> 
  204.                                     <input type="checkbox" name="titleTag" value="1">
  205.                                   </div>
  206.                                 </td>
  207.                                 <td width="22%"> 
  208.                                   <div align=left><strong>&nbsp;内容摘要:</strong></div>
  209.                                 </td>
  210.                                 <td width="66%"> 
  211.                                   <div align=left> 
  212.                                     <input class=text name="title" size=30 maxlength="40">
  213.                                     &nbsp;</div>
  214.                                 </td>
  215.                               </tr>
  216.                               <tr bgcolor=#fafafa> 
  217.                                 <td width="12%"> 
  218.                                   <div align="center"> 
  219.                                     <input type="checkbox" name="depTag" value="1">
  220.                                   </div>
  221.                                 </td>
  222.                                 <td width="22%"><strong>&nbsp;文件作者:</strong></td>
  223.                                 <td width="66%"> 
  224.                                   <input class=text name="dep" size=30 maxlength="40">
  225.                                 </td>
  226.                               </tr>
  227.                               <tr bgcolor=#e0e0e0> 
  228.                                 <td width="12%" height="9"> 
  229.                                   <div align="center"> 
  230.                                     <input type="checkbox" name="buildDateTag" value="1">
  231.                                   </div>
  232.                                 </td>
  233.                                 <td width="22%" height="9"> 
  234.                                   <div align=left><strong>&nbsp;文件日期:</strong></div>
  235.                                 </td>
  236.                                 <td width="66%" height="9"> 
  237.                                   <div align=left> 从 
  238.                                     <input type="text" name="buildDate" readonly size="10" class="text">
  239.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDate);return false"> 
  240.                                     到 
  241.                                     <input type="text" name="buildDateEnd" readonly size="10" class="text">
  242.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDateEnd);return false"> 
  243.                                   </div>
  244.                                 </td>
  245.                               </tr>
  246.                               <tr bgcolor=#fafafa> 
  247.                                 <td width="12%"> 
  248.                                   <div align="center"> 
  249.                                     <input type="checkbox" name="saveDateTag" value="1">
  250.                                   </div>
  251.                                 </td>
  252.                                 <td width="22%"> 
  253.                                   <div align=left><strong>&nbsp;保管期限:</strong></div>
  254.                                 </td>
  255.                                 <td width="66%"> 
  256.                                   <div align=left> <strong>
  257.                                     <select name="saveDate" size=1>
  258.                                       <option value="-1" selected>-请选择-</option>
  259.                                     <option value="1">短期</option>
  260.                                     <option value="2">长期</option>
  261.                                     <option value="3">永久</option>
  262.                                     </select>
  263.                                     </strong></div>
  264.                                 </td>
  265.                               </tr>
  266.                               <tr bgcolor=#e0e0e0> 
  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.                               <tr bgcolor=#fafafa> 
  286.                                 <td width="12%"> 
  287.                                   <div align="center"> 
  288.                                     <input type="checkbox" name="fileNumTag" value="1">
  289.                                   </div>
  290.                                 </td>
  291.                                 <td width="22%"> 
  292.                                   <div align=left><strong>&nbsp;卷内份数:</strong></div>
  293.                                 </td>
  294.                                 <td width="66%"> 
  295.                                   <div align=left> 从
  296.                                     <input class=text  maxlength=5 name="fileNum" size=6>
  297.                                     到
  298.                                     <input class=text  maxlength=5 name="fileNumEnd" size=6>
  299.                                   </div>
  300.                                 </td>
  301.                               </tr>
  302.                               <tr bgcolor=#e0e0e0> 
  303.                                 <td width="12%"> 
  304.                                   <div align="center"> 
  305.                                     <input type="checkbox" name="wordKeyTag" value="1">
  306.                                   </div>
  307.                                 </td>
  308.                                 <td width="22%"> 
  309.                                   <div align=left><strong>&nbsp;主题词:</strong></div>
  310.                                 </td>
  311.                                 <td width="66%"> 
  312.                                   <input class=text  maxlength=40 name="wordKey" size=15>
  313.                                 </td>
  314.                               </tr>
  315.                               <tr bgcolor=#fafafa> 
  316.                                 <td width="12%"> 
  317.                                   <div align="center"> 
  318.                                     <input type="checkbox" name="buildYearTag" value="1">
  319.                                   </div>
  320.                                 </td>
  321.                                 <td width="22%"><strong>&nbsp;年度:</strong></td>
  322.                                 <td width="66%" bgcolor="#fafafa"> 从 
  323.                                   <input class=text  maxlength=5 name="buildYear" size=6>
  324.                                   年--到 
  325.                                   <input class=text  maxlength=5 name="buildYearEnd" size=6>
  326.                                   年</td>
  327.                               </tr>
  328.                               <tr bgcolor=#e0e0e0> 
  329.                                 <td width="12%"> 
  330.                                   <div align="center">
  331.                                     <input type="checkbox" name="shelfTag" value="1">
  332.                                   </div>
  333.                                 </td>
  334.                                 <td width="22%"><strong>&nbsp;排架:</strong></td>
  335.                                 <td width="66%" bgcolor="#e0e0e0"> 
  336.                                   <input class=text name=shelf size=30 maxlength="40">
  337.                                 </td>
  338.                               </tr>
  339.                               <tr bgcolor=#fafafa> 
  340.                                 <td align=middle height=30 colspan="3"> 
  341.                                   <div align="center"> 
  342.                                     <input class=text onclick=searchArchive(this.form)  type=button value=查询>
  343.                                     &nbsp;&nbsp; 
  344.                                     <input class=text  type=reset value=返回 onClick=history.back() >
  345.                                     &nbsp;&nbsp; </div>
  346.                                 </td>
  347.                               </tr>
  348.                               </tbody> 
  349.                             </table>
  350.                             </td>
  351.                   </tr>
  352.                      
  353.                 </table>
  354.                     </td>
  355.                     </tr>
  356.                   </table>
  357.                 </td>
  358.              </tr>
  359.           </table>
  360.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  361.        </TD>
  362.      </TR>
  363.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  364.     </TBODY> 
  365.   </TABLE>
  366.     <BR>
  367.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  368. </form>
  369. </DIV>
  370. </BODY>
  371. </HTML>