DocumentList_Search.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:7k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/>
  4. <%
  5. Session m_session = new Session(session);
  6. Request m_request = new Request(request);
  7. int iSysDirID = m_request.GetInt("SysDirID");
  8. %>
  9. <html>
  10.   <head>
  11.     <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  12.     <title>下属公文查看列表搜索管理 -- GForce OA 2.0</title>
  13.     <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  14.     <script language="JavaScript" src="/js/changestyle.js"></script>
  15.     <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  16.     <script language="javascript">
  17.     function checktempletsearch(objform)
  18.     {
  19.       with(objform)
  20.       {
  21.         if(BuildTimeFrom.value!="")
  22.         {
  23.           if(!isDate(BuildTimeFrom.value))
  24.           {
  25.             alert("日期格式错误,请参照“2002-02-18”格式重新输入!");
  26.             BuildTimeFrom.focus();
  27.             return false;
  28.           }
  29.         }
  30.         if(BuildTimeTo.value!="")
  31.         {
  32.           if(!isDate(BuildTimeTo.value))
  33.           {
  34.             alert("日期格式错误,请参照“2002-02-18”格式重新输入!");
  35.             BuildTimeTo.focus();
  36.             return false;
  37.           }
  38.         }
  39.         if(BuildTimeFrom.value!="" && BuildTimeTo.value!="" && BuildTimeFrom.value>BuildTimeTo.value)
  40.         {
  41.           alert("开始日期不能大于结束日期!");
  42.           BuildTimeFrom.focus();
  43.           return false;
  44.         }
  45.       }
  46.     }
  47.     function PopUpSelectUser(UserName)
  48.     {
  49.       showx = event.screenX - event.offsetX;    // + deltaX;
  50.       showy = event.screenY - event.offsetY+18; // + deltaY;
  51.       var retval = window.showModalDialog("/SelectUser1.jsp", "","dialogWidth:250px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:yes;scrollbars:yes;Resizable=yes; ");
  52.       if(retval!=null)
  53.       {
  54.         if(retval.indexOf("|!|")>0)
  55.      {
  56.           var strtemp = retval.split("|!|");
  57.           UserName.value=strtemp[1];
  58.         }
  59.       }
  60.     }
  61.     </script>
  62.   </head>
  63.   <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  64.      <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  65.     <tr>
  66.     <td align="center" valign="top">
  67.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  68.         <tr>
  69.           <td height="50" valign="top" background="../images/dy-back.gif">
  70.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  71.               <tr valign="middle">
  72.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  73.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">下属公文搜索</font></strong></td>
  74.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  75.                    <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  76.                  <!--<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59">&nbsp;-->
  77.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  78.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  79.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  80.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  81.                 </td>
  82.               </tr>
  83.             </table>
  84.           </td>
  85.         </tr>
  86.       </table>
  87.     <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  88.       <tr>
  89.         <td align="center" valign="top"><p>&nbsp</p>
  90.           <form action="DocumentList.jsp?SysDirID=<%=iSysDirID%>" method="post" name="DocumentList_Search" onsubmit="return checktempletsearch(this)">
  91.               <table width="90%" border="1" cellpadding="1" cellspacing="1" style="CURSOR: hand">
  92.               <tr>
  93.                 <td align="right" width="17%">公文名称:&nbsp;</td>
  94.                 <td align="left" width="81%">&nbsp;&nbsp;<input type="text" name="DocumentName" size="35"></td>
  95.               </tr>
  96.               <tr>
  97.                 <td align="right" width="17%">生成时间:&nbsp;</td>
  98.                 <td align="left" width="81%">
  99.                   &nbsp;&nbsp;从&nbsp;<input type="text" name="BuildTimeFrom" size="12" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">&nbsp;到&nbsp;<input type="text" name="BuildTimeTo" size="12"  onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);"></td>
  100.               </tr>
  101.               <tr>
  102.                 <td align="right" width="17%">生成用户姓名:&nbsp;</td>
  103.                 <td align="left" width="81%">&nbsp;&nbsp;<input type="text" name="BuildUserName" size="28"></td>
  104.               </tr>
  105.               <tr>
  106.                 <td align="right" width="17%">填表用户姓名:&nbsp;</td>
  107.                 <td align="left" width="81%">&nbsp;&nbsp;<input type="text" name="FillUserName" size="28"><A href="" onclick="PopUpSelectUser(document.DocumentList_Search.FillUserName);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
  108.               </tr>
  109.               <tr>
  110.                 <td align="right" width="17%">当前环节名称:&nbsp;</td>
  111.                 <td align="left" width="81%">&nbsp;&nbsp;<input type="text" name="TacheName" size="28"></td>
  112.               </tr>
  113.               <tr>
  114.                 <th align="center" valign="top" colspan="2">
  115.                   <input type="submit" value="搜 索" name="Search" style="background-color: #FFFFFF; border: 1 solid #000000">&nbsp;&nbsp;&nbsp;
  116.                   <input type="reset" value="重 置" name="Reset" style="background-color: #FFFFFF; border: 1 solid #000000">&nbsp;&nbsp;&nbsp;
  117.                   <input type="button" value="返 回" name="B2" onclick="javascript:self.location='DocumentList.jsp?SysDirID=<%=iSysDirID%>'" style="background-color: #FFFFFF; border: 1 solid #000000">
  118.                 </th>
  119.               </tr>
  120.             </table>
  121.           </form>
  122.         </td>
  123.       </tr>
  124.     </table>
  125.   </body>
  126. </html>