SearchDocumentTemplet.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:8k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/>
- <%
- Session m_session = new Session(session);
- Request m_request = new Request(request);
- String strCurrentPageURL = request.getRequestURI();
- int iSysDirID = m_request.GetInt("SysDirID");
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>公文模板管理-- GForce OA 2.0</title>
- <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="javascript">
- function checktempletsearch(objform)
- {
- with(objform)
- {
- if(BuildTimeFrom.value!="")
- {
- if(!isDate(BuildTimeFrom.value))
- {
- alert("日期格式错误,请参照“2002-02-18”格式重新输入!");
- BuildTimeFrom.focus();
- return false;
- }
- }
- if(BuildTimeTo.value!="")
- {
- if(!isDate(BuildTimeTo.value))
- {
- alert("日期格式错误,请参照“2002-02-18”格式重新输入!");
- BuildTimeTo.focus();
- return false;
- }
- }
- if(BuildTimeFrom.value!="" && BuildTimeTo.value!="" && BuildTimeFrom.value>BuildTimeTo.value)
- {
- alert("开始日期不能大于结束日期!");
- BuildTimeFrom.focus();
- return false;
- }
- }
- }
- function PopUpSelectUser(UserName)
- {
- showx = event.screenX - event.offsetX; // + deltaX;
- showy = event.screenY - event.offsetY+18; // + deltaY;
- 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; ");
- if(retval!=null)
- {
- if(retval.indexOf("|!|")>0)
- {
- var strtemp = retval.split("|!|");
- UserName.value=strtemp[1];
- }
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="50" valign="top" background="../images/dy-back.gif">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="middle">
- <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
- <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">公文模板查询</font></strong></td>
- <td align="right" nowrap="nowrap" valign="bottom">
- <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59"> -->
- <!-- <img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"> -->
- <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59"> -->
- <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59"> -->
- <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59"> -->
- <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79"> -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form action="DocumentTempletManage.jsp?SysDirID=<%=iSysDirID%>" method="post" name="SearchDocumentTemplet" onsubmit="return checktempletsearch(this)">
- <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
- <tr>
- <td align="right" width="17%">
- 公文模板名称:
- </td>
- <td align="left" width="81%">
- <input type="text" name="TempletName" size="28"></td>
- </tr>
- <tr>
- <td align="right" width="17%">
- 公文模板编号:
- </td>
- <td align="left" width="81%">
- <input type="text" name="TempletNumber" size="28"></td>
- </tr>
- <tr>
- <td align="right" width="17%">
- 公文模板英文名称:
- </td>
- <td align="left" width="81%">
- <input type="text" name="EnglishAb" size="28"></td>
- </tr>
- <tr>
- <td align="right" width="17%">
- 建立日期:</td>
- <td align="left" width="81%">
- 从<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>
- </tr>
- <tr>
- <td align="right" width="17%">
- 建立用户:</td>
- <td align="left" width="81%">
- <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>
- </tr>
- <tr>
- <td align="right" width="17%">
- 可写用户姓名:</td>
- <td align="left" width="81%">
- <textarea name="WritableUserNames" cols="30" rows="3" readonly="true" ondblclick="GetUserIDAndNames(document.SearchDocumentTemplet.WritableUserIDs, this);"></textarea>
- <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>
- </td>
- </tr>
- <tr>
- <td align="right" width="17%">
- 可写部门名称:</td>
- <td align="left" width="81%">
- <textarea name="WritableDepartNames" cols="30" rows="3" readonly="true" ondblclick="GetDepartIDAndNames(document.SearchDocumentTemplet.WritableDepartIDs, this);"></textarea>
- <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>
- </td>
- </tr>
- <tr>
- <th align="center" valign="top" colspan="2">
- <input type="submit" value="搜索" name="Search">
- <input type="reset" value="重置" name="Reset">
- <input type="button" value="返回" name="B2" onclick="javascript:self.location='DocumentTempletManage.jsp?SysDirID=<%=iSysDirID%>'">
- </th>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>