EditDocumentTemplet.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:9k
源码类别:
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" type="text/javascript">
- function checkEditDocumentTemplet()
- {
- if(document.EditDocumentTemplet.TempletName.value == "")
- {
- alert("请输入公文模板名称!");
- document.EditDocumentTemplet.TempletName.focus();
- return false;
- }
- if(document.EditDocumentTemplet.TempletNumber.value == "")
- {
- alert("请输入公文模板编号!");
- document.EditDocumentTemplet.TempletNumber.focus();
- return false;
- }
- if(document.EditDocumentTemplet.EnglishAb.value == "")
- {
- alert("请输入公文模板英文名称!");
- document.EditDocumentTemplet.EnglishAb.focus();
- return false;
- }
- }
- </script>
- <style type="text/css"></style>
- </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"><p> </p>
- <table width="90%" border="0" align="center" cellspacing="0">
- <tr>
- <td width="30%">
- </td>
- <td align="left">
- <font color="#000000"><strong>公文模板管理--公文模板信息修改</strong></font>
- </td>
- </tr>
- <tr>
- <td>
-
- </td>
- </tr>
- </table>
- <%
- Request m_request = new Request(request);
- int iUserID = m_session.GetInt("UserID");
- int iSysDirID = m_request.GetInt("SysDirID");
- int iDocumentTempletID = m_request.GetInt("ID");
- if(iDocumentTempletID <1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("未知原因修改失败,请与管理员联系!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = DocumentTempletManager.getRecordByID(iDocumentTempletID);
- if(vt.size()==1)
- {
- %>
- <form name="EditDocumentTemplet" action="EditDocumentTempletAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditDocumentTemplet();">
- <table border="1" cellpadding="0" cellspacing="1" 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" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
- <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
- </td>
- </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" value="<%=((Vector)vt.get(0)).get(4).toString()%>">
- <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" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
- </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" <%=((Vector)vt.get(0)).get(12).toString().equalsIgnoreCase("true")?" checked":""%>> 自动生成
- <input type="radio" name="IsAutoBuild" value="0"<%=((Vector)vt.get(0)).get(12).toString().equalsIgnoreCase("false")?" 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.EditDocumentTemplet.WritableUserIDs, this);"><%=UserManager.getPersonnelNamesByUserIDs(((Vector)vt.get(0)).get(6).toString())%></textarea>
- <input name="WritableUserIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(6).toString()%>"><a href="" onclick="GetUserIDAndNames(document.EditDocumentTemplet.WritableUserIDs, document.EditDocumentTemplet.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.EditDocumentTemplet.WritableDepartIDs, this);"><%=DepartmentManager.getDepartNamesByIDs(((Vector)vt.get(0)).get(7).toString())%></textarea>
- <input name="WritableDepartIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(7).toString()%>"><a href="" onclick="GetDepartIDAndNames(document.EditDocumentTemplet.WritableDepartIDs, document.EditDocumentTemplet.WritableDepartNames);return false;" title="选择部门"><img src="/images/couple.gif" border="0"></a>
- </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.EditDocumentTemplet.ReadOnlyUserIDs, this);"><%=UserManager.getPersonnelNamesByUserIDs(((Vector)vt.get(0)).get(8).toString())%></textarea>
- <input name="ReadOnlyUserIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(8).toString()%>"><a href="" onclick="GetUserIDAndNames(document.EditDocumentTemplet.ReadOnlyUserIDs, document.EditDocumentTemplet.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.EditDocumentTemplet.ReadOnlyDepartIDs, this);"><%=DepartmentManager.getDepartNamesByIDs(((Vector)vt.get(0)).get(9).toString())%></textarea>
- <input name="ReadOnlyDepartIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(9).toString()%>"><a href="" onclick="GetDepartIDAndNames(document.EditDocumentTemplet.ReadOnlyDepartIDs, document.EditDocumentTemplet.ReadOnlyDepartNames);return false;" title="选择部门"><img src="/images/couple.gif" border="0"></a>
- </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"><%=((Vector)vt.get(0)).get(14).toString()%></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"><%=((Vector)vt.get(0)).get(10).toString()%></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"><%=((Vector)vt.get(0)).get(13).toString()%></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"><%=((Vector)vt.get(0)).get(15).toString()%></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>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>