AddDocumentTemplet.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:10k
源码类别:
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); %>
- <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" type="text/javascript">
- function checkAddDocumentTemplet()
- {
- if(document.AddDocumentTemplet.TempletName.value == "")
- {
- alert("请输入公文模板名称!");
- document.AddDocumentTemplet.TempletName.focus();
- return false;
- }
- if(document.AddDocumentTemplet.TempletNumber.value == "")
- {
- alert("请输入公文模板编号!");
- document.AddDocumentTemplet.TempletNumber.focus();
- return false;
- }
- if(document.AddDocumentTemplet.EnglishAb.value == "")
- {
- alert("请输入公文模板英文名称!");
- document.AddDocumentTemplet.EnglishAb.focus();
- return false;
- }
- }
- </script>
- <style type="text/css"></style>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0" onload="document.AddDocumentTemplet.TempletName.focus();">
- <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>
- <%
- Request m_request = new Request(request);
- int iUserID = m_session.GetInt("UserID");
- int iSysDirID = m_request.GetInt("SysDirID");
- %>
- <form name="AddDocumentTemplet" action="AddDocumentTempletAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkAddDocumentTemplet();">
- <table border="1" cellpadding="0" cellspacing="2" width="90%">
- <tr>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">模板名称:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="TempletName" type="text" maxlength="71" size="77">
- </tr>
- <tr>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">模板编号:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <input name="TempletNumber" type="text" maxlength="71" size="35">
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">英文名称:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <input name="EnglishAb" type="text" maxlength="71" size="35">
- </tr>
- <tr>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">生成方式:</font></td>
- <td colspan="4" align="left" valign="middle" nowrap>
- <input type="radio" name="IsAutoBuild" value="1"> 自动生成
- <input type="radio" name="IsAutoBuild" value="0" checked>手动发放
- </tr>
- <tr>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">可写用户:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <textarea name="WritableUserNames" cols="30" rows="3" readonly="true" ondblclick="GetUserIDAndNames(document.AddDocumentTemplet.WritableUserIDs, this);"></textarea>
- <input name="WritableUserIDs" type="hidden" value=""><a href="" onclick="GetUserIDAndNames(document.AddDocumentTemplet.WritableUserIDs, document.AddDocumentTemplet.WritableUserNames);return false;" title="选择员工名称"><img src="/images/couple.gif" border="0"></a>
- </td>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">可写部门:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <textarea name="WritableDepartNames" cols="30" rows="3" readonly="true" ondblclick="GetDepartIDAndNames(document.AddDocumentTemplet.WritableDepartIDs, this);"></textarea>
- <input name="WritableDepartIDs" type="hidden" value=""><a href="" onclick="GetDepartIDAndNames(document.AddDocumentTemplet.WritableDepartIDs, document.AddDocumentTemplet.WritableDepartNames);return false;" title="选择部门"><img src="/images/couple.gif" border="0"></a>
- </td>
- </tr>
- <tr>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">只读用户:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <textarea name="ReadOnlyUserNames" cols="30" rows="3" readonly="true" ondblclick="GetUserIDAndNames(document.AddDocumentTemplet.ReadOnlyUserIDs, this);"></textarea>
- <input name="ReadOnlyUserIDs" type="hidden" value=""><a href="" onclick="GetUserIDAndNames(document.AddDocumentTemplet.ReadOnlyUserIDs, document.AddDocumentTemplet.ReadOnlyUserNames);return false;" title="选择员工名称"><img src="/images/couple.gif" border="0"></a>
- </td>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">只读部门:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <textarea name="ReadOnlyDepartNames" cols="30" rows="3" readonly="true" ondblclick="GetDepartIDAndNames(document.AddDocumentTemplet.ReadOnlyDeprtIDs, this);"></textarea>
- <input name="ReadOnlyDeprtIDs" type="hidden" value=""><a href="" onclick="GetDepartIDAndNames(document.AddDocumentTemplet.ReadOnlyDeprtIDs, document.AddDocumentTemplet.ReadOnlyDepartNames);return false;" title="选择部门"><img src="/images/couple.gif" border="0"></a>
- </td>
- </tr>
- <tr>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">表单激活<br> 事件:</font></td>
- <td colspan="4" align="left" valign="middle" nowrap>
- <textarea name="FormEvent" cols="80" rows="4"></textarea>
- </tr>
- <tr>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">打印HTML<br> 代码:</font></td>
- <td colspan="4" align="left" valign="middle" nowrap>
- <textarea name="PrintHTMLCode" cols="80" rows="4"></textarea>
- </tr>
- <tr>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">排版格式HTML:</font></td>
- <td colspan="4" align="left" valign="middle" nowrap>
- <textarea name="TypesetHTMLCode" cols="80" rows="4"></textarea>
- </tr>
- <tr>
- <td align="center" valign="middle" width="14%"><font color="#0A0A0A">嵌套JavaScript<br> 代码:</font></td>
- <td colspan="4" align="left" valign="middle" nowrap>
- <textarea name="JavaScriptCode" cols="80" rows="4"></textarea>
- </tr>
- <table width="90%" border="0" align="center" cellspacing="0">
- <tr>
- <td width="30%">
-
- </td>
- <td width="70%">
-
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input type="hidden" name="BuildUserID" value="<%=iUserID%>">
- <%java.util.Date t_Date = new java.util.Date();%>
- <input name="BuildTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
- <input type="submit" value="确定">
- <input type="reset" value="重填">
- <input type="button" value="返回" onclick="window.location='DocumentTempletManage.jsp?SysDirID=<%=iSysDirID%>';">
- </td>
- </tr>
- </table>
- </table>
- </form>
- </table>
- </body>
- </html>