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

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 checktempletsearch(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.     <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  66.     <tr>
  67.     <td align="center" valign="top">
  68.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  69.         <tr>
  70.           <td height="50" valign="top" background="../images/dy-back.gif">
  71.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  72.               <tr valign="middle">
  73.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  74.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">公文模板查询</font></strong></td>
  75.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  76.                    <!-- 群增<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;-->
  77.                 <!-- <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;-->
  78.                   <!-- 修改<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;-->
  79.                   <!-- 删除<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;-->
  80.                   <!-- 查看<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;-->
  81.                   <!-- 组合查询<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;-->
  82.                 </td>
  83.               </tr>
  84.             </table>
  85.           </td>
  86.         </tr>
  87.       </table>
  88.     <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  89.       <tr>
  90.         <td align="center" valign="top"><p> </p>
  91.           <form action="DocumentTempletManage.jsp?SysDirID=<%=iSysDirID%>" method="post" name="SearchDocumentTemplet" onsubmit="return checktempletsearch(this)">
  92.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  93.               <tr>
  94.                 <td align="right" width="17%">
  95.                   公文模板名称:
  96.                 </td>
  97.                 <td align="left" width="81%">
  98.                 <input type="text" name="TempletName" size="28"></td>
  99.               </tr>
  100.                  <tr>
  101.                 <td align="right" width="17%">
  102.                   公文模板编号:
  103.                 </td>
  104.                 <td align="left" width="81%">
  105.                 <input type="text" name="TempletNumber" size="28"></td>
  106.               </tr>
  107.                <tr>
  108.                 <td align="right" width="17%">
  109.                   公文模板英文名称:
  110.                 </td>
  111.                 <td align="left" width="81%">
  112.                 <input type="text" name="EnglishAb" size="28"></td>
  113.               </tr>
  114.               <tr>
  115.                 <td align="right" width="17%">
  116.                   建立日期:</td>
  117.                 <td align="left" width="81%">
  118.                   从<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>
  119.               </tr>
  120.               <tr>
  121.                 <td align="right" width="17%">
  122.                   建立用户:</td>
  123.                 <td align="left" width="81%">
  124.                 <input type="text" name="BuildUserName" size="28"><A href="" onclick="PopUpSelectUser(document.SearchDocumentTemplet.BuildUserName);return false;"><img src="/images/couple.gif" border='0' title="点击选择用户"></a></td>
  125.               </tr>
  126.         <tr>
  127.           <td align="right" width="17%">
  128.                   可写用户姓名:</td>
  129.                 <td align="left" width="81%">
  130.                 <textarea name="WritableUserNames" cols="30" rows="3" readonly="true" ondblclick="GetUserIDAndNames(document.SearchDocumentTemplet.WritableUserIDs, this);"></textarea>
  131.                 <input name="WritableUserIDs" type="hidden" value=""><a href="" onclick="GetUserIDAndNames(document.SearchDocumentTemplet.WritableUserIDs, document.SearchDocumentTemplet.WritableUserNames);return false;" title="选择员工名称"><img src="/images/couple.gif" border="0"></a>
  132.         </td>
  133.         </tr>
  134.         <tr>
  135.           <td align="right" width="17%">
  136.                   可写部门名称:</td>
  137.                 <td align="left" width="81%">
  138.         <textarea name="WritableDepartNames" cols="30" rows="3" readonly="true" ondblclick="GetDepartIDAndNames(document.SearchDocumentTemplet.WritableDepartIDs, this);"></textarea>
  139.         <input name="WritableDepartIDs" type="hidden" value=""><a href="" onclick="GetDepartIDAndNames(document.SearchDocumentTemplet.WritableDepartIDs, document.SearchDocumentTemplet.WritableDepartNames);return false;" title="选择部门"><img src="/images/couple.gif" border="0"></a>
  140.         </td>
  141.         </tr>
  142.               <tr>
  143.                 <th align="center" valign="top" colspan="2">
  144.                   <input type="submit" value="搜索" name="Search">
  145.                   <input type="reset" value="重置" name="Reset">
  146.                   <input type="button" value="返回" name="B2" onclick="javascript:self.location='DocumentTempletManage.jsp?SysDirID=<%=iSysDirID%>'">
  147.                 </th>
  148.               </tr>
  149.             </table>
  150.           </form>
  151.         </td>
  152.       </tr>
  153.     </table>
  154.   </body>
  155. </html>