DocPigeonholedSearch.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. String strCurrentPageURL = request.getRequestURI();
  8. int iSysDirID = m_request.GetInt("SysDirID");
  9. %>
  10. <html>
  11.   <head>
  12.     <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  13.     <title>未归档公文查询 -- GForce OA 2.0</title>
  14.     <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  15.     <script language="JavaScript" src="/js/changestyle.js"></script>
  16.     <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  17.     <script language="javascript">
  18.     function checkpigeonholedsearch(objform)
  19.     {
  20.       with(objform)
  21.       {
  22.         if(BuildTimeFrom.value!="")
  23.         {
  24.           if(!isDate(BuildTimeFrom.value))
  25.           {
  26.             alert("日期格式错误,请参照“2002-02-18”格式重新输入!");
  27.             BuildTimeFrom.focus();
  28.             return false;
  29.           }
  30.         }
  31.         if(BuildTimeTo.value!="")
  32.         {
  33.           if(!isDate(BuildTimeTo.value))
  34.           {
  35.             alert("日期格式错误,请参照“2002-02-18”格式重新输入!");
  36.             BuildTimeTo.focus();
  37.             return false;
  38.           }
  39.         }
  40.         if(BuildTimeFrom.value!="" && BuildTimeTo.value!="" && BuildTimeFrom.value>BuildTimeTo.value)
  41.         {
  42.           alert("开始日期不能大于结束日期!");
  43.           BuildTimeFrom.focus();
  44.           return false;
  45.         }
  46.       }
  47.     }
  48.     function PopUpSelectUser(UserName)
  49.     {
  50.       showx = event.screenX - event.offsetX;    // + deltaX;
  51.       showy = event.screenY - event.offsetY+18; // + deltaY;
  52.       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; ");
  53.       if(retval!=null)
  54.       {
  55.         if(retval.indexOf("|!|")>0)
  56.       {
  57.           var strtemp = retval.split("|!|");
  58.           UserName.value=strtemp[1];
  59.         }
  60.       }
  61.     }
  62.     </script>
  63.   </head>
  64.   <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  65.     <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  66.   <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  67.     <tr>
  68.     <td align="center" valign="top">
  69.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  70.         <tr>
  71.           <td height="50" valign="top" background="../images/dy-back.gif">
  72.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  73.               <tr valign="middle">
  74.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  75.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">未归档公文搜索</font></strong></td>
  76.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  77.                    <!-- 群增<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;-->
  78.                  <!--<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;-->
  79.                   <!-- 修改<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;-->
  80.                   <!-- 删除<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;-->
  81.                   <!-- 查看<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;-->
  82.                   <!-- 组合查询<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;-->
  83.                 </td>
  84.               </tr>
  85.             </table>
  86.           </td>
  87.         </tr>
  88.       </table>
  89.     <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  90.       <tr>
  91.         <td align="center" valign="top"><p> </p>
  92.           <form action="DocPigeonholedManage.jsp?SysDirID=<%=iSysDirID%>" method="post" name="DocPigeonholedSearch" onsubmit="return checkpigeonholedsearch(this)">
  93.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  94.               <tr>
  95.                 <td align="right" width="17%">
  96.                   公文名称:
  97.                 </td>
  98.                 <td align="left" width="81%">
  99.                 <input type="text" name="DocumentName" size="28"></td>
  100.               </tr>
  101.                  <tr>
  102.                 <td align="right" width="17%">
  103.                   填写用户:
  104.                 </td>
  105.                 <td align="left" width="81%">
  106.                 <input type="text" name="FillUserName" size="28"><A href="" onclick="PopUpSelectUser(document.DocPigeonholedSearch.FillUserName);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
  107.               </tr>
  108.                <tr>
  109.                 <td align="right" width="17%">
  110.                   生成用户:
  111.                 </td>
  112.                 <td align="left" width="81%">
  113.                 <input type="text" name="BuildUserName" size="28"><A href="" onclick="PopUpSelectUser(document.DocPigeonholedSearch.BuildUserName);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
  114.               </tr>
  115.               <tr>
  116.                 <td align="right" width="17%">
  117.                   建立日期:</td>
  118.                 <td align="left" width="81%">
  119.                   从<input type="text" name="BuildTimeFrom" size="12" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);">到<input type="text" name="BuildTimeTo" size="12"  onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value);" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value);"></td>
  120.               </tr>
  121.                <tr>
  122.                 <td align="right" width="17%">
  123.                   当前环节:
  124.                 </td>
  125.                 <td align="left" width="81%">
  126.                 <input type="text" name="CurrentFlowTacheName" size="28"></td>
  127.               </tr>
  128.               <tr>
  129.                 <th align="center" valign="top" colspan="2">
  130.                   <input type="submit" value="搜索" name="Search">
  131.                   <input type="reset" value="重置" name="Reset">
  132.                   <input type="button" value="返回" name="B2" onclick="javascript:self.location='DocPigeonholedManage.jsp?SysDirID=<%=iSysDirID%>'">
  133.                 </th>
  134.               </tr>
  135.             </table>
  136.           </form>
  137.         </td>
  138.       </tr>
  139.     </table>
  140.   </body>
  141. </html>