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>
- <%
- 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="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">模板名称:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="TempletName" type="text" maxlength="71" size="71" 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="right" valign="middle"><font color="#0A0A0A">模板编号:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="TempletNumber" type="text" maxlength="71" size="71" value="<%=((Vector)vt.get(0)).get(4).toString()%>">
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">英文名称:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="EnglishAb" type="text" maxlength="71" size="71" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">可写用户:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="WritableUserNames" cols="60" 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 align="left" valign="middle" nowrap>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">可写部门:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="WritableDepartNames" cols="60" 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="right" valign="middle"><font color="#0A0A0A">只读用户:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="ReadOnlyUserNames" cols="60" 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 align="left" valign="middle" nowrap>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">只读部门:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="ReadOnlyDepartNames" cols="60" 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="right" valign="middle"><font color="#0A0A0A">表单激活事件:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="FormEvent" type="text" maxlength="71" size="71" value="<%=((Vector)vt.get(0)).get(10).toString()%>">
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">打印HTML代码:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="PrintHTMLCode" cols="60" rows="4" ><%=((Vector)vt.get(0)).get(12).toString()%></textarea>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">排版格式HTML:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="TypesetHTMLCode" cols="60" rows="4"><%=((Vector)vt.get(0)).get(13).toString()%></textarea>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">嵌套JScript代码:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="JavaScriptCode" cols="60" rows="4"><%=((Vector)vt.get(0)).get(14).toString()%></textarea>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">是否自动生成:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <%
- if (((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("true"))
- {
- %>
- <input type="radio" name="IsAutoBuild" value="1" checked>是
- <input type="radio" name="IsAutoBuild" value="0">否
- <%
- }
- else
- {
- %>
- <input type="radio" name="IsAutoBuild" value="1">是
- <input type="radio" name="IsAutoBuild" value="0" checked>否
- <%
- }
- %>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> </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>
- </form>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>