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

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. <% Session m_session = new Session(session); %>
  5. <html>
  6. <head>
  7.   <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  8.   <title>公文管理 -- GForce OA 2.0</title>
  9.   <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  10.   <script language="JavaScript" src="/js/changestyle.js"></script>
  11.   <script language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></script>
  12.   <script language="JavaScript" type="text/javascript">
  13.   function checkAddDocumentTemplet()
  14.   {
  15.     if(document.AddDocumentTemplet.TempletName.value == "")
  16.     {
  17.         alert("请输入公文模板名称!");
  18.         document.AddDocumentTemplet.TempletName.focus();
  19.         return false;
  20.     }
  21.     if(document.AddDocumentTemplet.TempletNumber.value == "")
  22.     {
  23.         alert("请输入公文模板编号!");
  24.         document.AddDocumentTemplet.TempletNumber.focus();
  25.         return false;
  26.     }
  27.     if(document.AddDocumentTemplet.EnglishAb.value == "")
  28.     {
  29.         alert("请输入公文模板英文名称!");
  30.         document.AddDocumentTemplet.EnglishAb.focus();
  31.         return false;
  32.     }
  33.   }
  34.   </script>
  35.   <style type="text/css"></style>
  36. </head>
  37. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0" onload="document.AddDocumentTemplet.TempletName.focus();">
  38.   <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  39.     <tr>
  40.     <td align="center" valign="top">
  41.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  42.         <tr>
  43.           <td height="50" valign="top" background="../images/dy-back.gif">
  44.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  45.               <tr valign="middle">
  46.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  47.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">公文模板管理--新增公文模板</font></strong></td>
  48.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  49.                    <!-- 群增<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;-->
  50.                 <!-- <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;-->
  51.                   <!-- 修改<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;-->
  52.                   <!-- 删除<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;-->
  53.                   <!-- 查看<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;-->
  54.                   <!-- 组合查询<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;-->
  55.                 </td>
  56.               </tr>
  57.             </table>
  58.           </td>
  59.         </tr>
  60.       </table>
  61. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  62.     <tr>
  63.         <td align="center" valign="top"><p>&nbsp;</p>
  64. <%
  65. Request m_request = new Request(request);
  66. int iUserID = m_session.GetInt("UserID");
  67. int iSysDirID = m_request.GetInt("SysDirID");
  68. %>
  69. <form name="AddDocumentTemplet" action="AddDocumentTempletAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkAddDocumentTemplet();">
  70.   <table border="1" cellpadding="0" cellspacing="2" width="90%">
  71.     <tr>
  72.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">模板名称:</font></td>
  73.       <td colspan="3" align="left" valign="middle" nowrap>
  74.       &nbsp;<input name="TempletName" type="text" maxlength="71" size="77">
  75.     </tr>
  76.     <tr>
  77.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">模板编号:</font></td>
  78.       <td colspan="1" align="left" valign="middle" nowrap>
  79.       &nbsp;<input name="TempletNumber" type="text" maxlength="71" size="35">
  80.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">英文名称:</font></td>
  81.       <td colspan="1" align="left" valign="middle" nowrap>
  82.       &nbsp;<input name="EnglishAb" type="text" maxlength="71" size="35">
  83.     </tr>
  84.     <tr>
  85.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">生成方式:</font></td>
  86.       <td colspan="4" align="left" valign="middle" nowrap>
  87.         &nbsp;<input type="radio" name="IsAutoBuild" value="1">&nbsp;自动生成
  88.         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="IsAutoBuild" value="0" checked>手动发放
  89.     </tr>
  90.     <tr>
  91.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">可写用户:</font></td>
  92.       <td colspan="1" align="left" valign="middle" nowrap>
  93.     &nbsp;<textarea name="WritableUserNames" cols="30" rows="3" readonly="true" ondblclick="GetUserIDAndNames(document.AddDocumentTemplet.WritableUserIDs, this);"></textarea>
  94.         <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>
  95.       </td>
  96.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">可写部门:</font></td>
  97.       <td colspan="1" align="left" valign="middle" nowrap>
  98.         &nbsp;<textarea name="WritableDepartNames" cols="30" rows="3" readonly="true" ondblclick="GetDepartIDAndNames(document.AddDocumentTemplet.WritableDepartIDs, this);"></textarea>
  99.         <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>
  100.       </td>
  101.     </tr>
  102.     <tr>
  103.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">只读用户:</font></td>
  104.       <td colspan="1" align="left" valign="middle" nowrap>
  105.         &nbsp;<textarea name="ReadOnlyUserNames" cols="30" rows="3" readonly="true" ondblclick="GetUserIDAndNames(document.AddDocumentTemplet.ReadOnlyUserIDs, this);"></textarea>
  106.         <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>
  107.       </td>
  108.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">只读部门:</font></td>
  109.       <td colspan="1" align="left" valign="middle" nowrap>
  110.         &nbsp;<textarea name="ReadOnlyDepartNames" cols="30" rows="3" readonly="true" ondblclick="GetDepartIDAndNames(document.AddDocumentTemplet.ReadOnlyDeprtIDs, this);"></textarea>
  111.         <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>
  112.       </td>
  113.     </tr>
  114.     <tr>
  115.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">表单激活<br>&nbsp;&nbsp;事件:</font></td>
  116.       <td colspan="4" align="left" valign="middle" nowrap>
  117.       &nbsp;<textarea name="FormEvent" cols="80" rows="4"></textarea>
  118.     </tr>
  119.     <tr>
  120.      <td align="center" valign="middle" width="14%"><font color="#0A0A0A">打印HTML<br>&nbsp;&nbsp;代码:</font></td>
  121.       <td colspan="4" align="left" valign="middle" nowrap>
  122.       &nbsp;<textarea name="PrintHTMLCode" cols="80" rows="4"></textarea>
  123.     </tr>
  124.     <tr>
  125.       <td align="center" valign="middle" width="14%"><font color="#0A0A0A">排版格式HTML:</font></td>
  126.       <td colspan="4" align="left" valign="middle" nowrap>
  127.       &nbsp;<textarea name="TypesetHTMLCode" cols="80" rows="4"></textarea>
  128.     </tr>
  129.     <tr>
  130.      <td align="center" valign="middle" width="14%"><font color="#0A0A0A">嵌套JavaScript<br>&nbsp;&nbsp;代码:</font></td>
  131.       <td colspan="4" align="left" valign="middle" nowrap>
  132.       &nbsp;<textarea name="JavaScriptCode" cols="80" rows="4"></textarea>
  133.     </tr>
  134.           <table width="90%" border="0" align="center" cellspacing="0">
  135.             <tr>
  136.               <td width="30%">
  137.                 &nbsp;
  138.               </td>
  139.               <td width="70%">
  140.                 &nbsp;
  141.               </td>
  142.             </tr>
  143.             <tr>
  144.                       <td align="right" valign="middle"> </td>
  145.                       <td colspan="3" align="left" valign="middle" nowrap>
  146.                 <input type="hidden" name="BuildUserID" value="<%=iUserID%>">
  147.                       <%java.util.Date t_Date = new java.util.Date();%>
  148.                       <input name="BuildTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
  149.                 <input type="submit" value="确定">
  150.                         &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  151.                         <input type="button" value="返回" onclick="window.location='DocumentTempletManage.jsp?SysDirID=<%=iSysDirID%>';">
  152.                       </td>
  153.             </tr>
  154.           </table>
  155.   </table>
  156. </form>
  157. </table>
  158. </body>
  159. </html>