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

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"/> <% Session m_session = new Session(session); %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>文档模板字段管理-- GForce OA 2.0</title>
  8. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js"></script>
  10. <script language="JavaScript" type="text/javascript">
  11. function checkAddFields()
  12. {
  13.     if(document.AddDocTempletFields.FieldName.value=="")
  14.     {
  15.       alert("请输入字段名称!");
  16.       document.AddDocTempletFields.FieldName.focus();
  17.       return false;
  18.     }
  19.     if(document.AddDocTempletFields.EnglishAb.value=="")
  20.     {
  21.       alert("请输入字段的英文缩写!");
  22.       document.AddDocTempletFields.EnglishAb.focus();
  23.       return false;
  24.     }
  25. }
  26. </script>
  27. </head>
  28. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0" onload="document.AddDocTempletFields.FieldName.focus();">
  29. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  30.   <tr>
  31.     <td  align="center" valign="top"><p>&nbsp;</p>
  32.       <%
  33.       Request m_request = new Request(request);
  34.       int iSysDirID = m_request.GetInt("SysDirID");
  35.       int intTempletID = m_request.GetInt("TempletID");
  36.       Vector DocTemplet_vt = DocumentTempletManager.getRecordByID(intTempletID);
  37.       %>
  38.           <table width="90%" border="0" align="center" cellspacing="0">
  39.             <tr>
  40.               <td width="40%">
  41.               </td>
  42.               <td align="left">
  43.                 <font color="#000000"><strong>《<%=((Vector)DocTemplet_vt.get(0)).get(1).toString()%>》新增字段</strong></font>
  44.               </td>
  45.             </tr>
  46.             <tr>
  47.               <td>
  48.                 &nbsp;
  49.               </td>
  50.             </tr>
  51.           </table>
  52.       <form name="AddDocTempletFields" action="AddDocTempletFieldsAction.jsp?SysDirID=<%=iSysDirID%>&TempletID=<%=intTempletID%>" method="post" onSubmit="javascript:return checkAddFields();">
  53.         <table  border="1" cellpadding="0" cellspacing="1" width="90%">
  54.           <tr>
  55.             <td width="14%" align="center" valign="middle"><font color="#0A0A0A">字段名称:</font></td>
  56.             <td width="35%" align="left" valign="middle" nowrap>&nbsp;<input name="FieldName" type="text" maxlength="300" size="35"></td>
  57.             <td width="14%" align="center" valign="middle"><font color="#0A0A0A">英文缩写:</font></td>
  58.             <td width="35%" align="left" valign="middle" nowrap>&nbsp;<input name="EnglishAb" type="text" maxlength="300" size="35"></td>
  59.           </tr>
  60.           <tr>
  61.             <td width="14%" align="center" valign="middle"><font color="#0A0A0A">字段类型:</font></td>
  62.             <td colspan="3" align="left" valign="middle" nowrap>
  63.             <p>
  64.               &nbsp;<input name="FieldType" type="radio" value="String" checked>文本类型
  65.               <input type="radio" name="FieldType" value="Date">日期类型
  66.               <input type="radio" name="FieldType" value="Numeric">数值类型
  67.               <input type="radio" name="FieldType" value="Text">大文本类型
  68.               <input type="radio" name="FieldType" value="Radio">单选类型
  69.               <input type="radio" name="FieldType" value="Checkbox">多选类型
  70.               <br>
  71.               &nbsp;<input type="radio" name="FieldType" value="Select">下拉单选型
  72.               <input type="radio" name="FieldType" value="List">下拉多选型
  73.               <input type="radio" name="FieldType" value="Read">只读文本型
  74.               <input type="radio" name="FieldType" value="ACC">附件类型
  75.               <input type="radio" name="FieldType" value="Name">操作用户姓名
  76.               <input type="radio" name="FieldType" value="Optime">用户操作时间
  77.             </p>
  78.             </td>
  79.         </tr>
  80.         <tr>
  81.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A">选项内容:</font></td>
  82.           <td align="left" valign="middle" nowrap colspan="2">&nbsp;<textarea name="Options" cols="40" rows="4"></textarea></td>
  83.           <td>
  84.           <font color="#0A0A0A">&nbsp;&nbsp;&nbsp;选项表述与选项值之间使用<a href="" onclick="document.AddDocTempletFields.Options.insertAdjacentText('beforeEnd','《¥》');return false;"><font color="#FF0000">《¥》</font></a>间隔<br>
  85.           &nbsp;不同选项之间使用<a href="" onclick="document.AddDocTempletFields.Options.insertAdjacentText('beforeEnd','《,》');return false;"><font color="#FF0000">《,》</font></a>间隔<br>&nbsp;例如:<br><font color="red">&nbsp;&nbsp;&nbsp;优秀
  86.          《¥》90《,》良好《¥》80《,》<br>&nbsp;差《¥》40</font></font></td>
  87.         </tr>
  88.         <tr>
  89.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A">默认值:</font></td>
  90.           <td colspan="1" align="left" valign="middle" nowrap>
  91.           &nbsp;<textarea cols="30" rows="4" name="DefaultValue"></textarea>
  92.             <input name="TempletID" type="hidden" Value="<%=intTempletID%>">
  93.           </td>
  94.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A">填写说明:</font></td>
  95.           <td align="left" valign="middle" nowrap width="35%" colspan="1">
  96.           &nbsp;<textarea name="FieldContent" cols="30" rows="4"></textarea></td>
  97.         </tr>
  98.         <tr>
  99.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A">排序编号:</font></td>
  100.           <td width="35%" colspan="1" align="left" valign="middle" nowrap>&nbsp;<input name="OrderNumber" type="text" maxlength="10" size="7">
  101.           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0A0A0A">字段长度:</font><input name="MaxLength" type="text" maxlength="10" size="7"></td>
  102.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A">填写要求:</font></td>
  103.           <td colspan="1" align="left" valign="middle" nowrap>
  104.             &nbsp;<input name="IsMustFill" type="radio" value=1>必须填写
  105.             &nbsp;&nbsp;<input type="radio" name="IsMustFill" value=0 checked>由用户选择是否填写
  106.           </td>
  107.         </tr>
  108.         <tr>
  109.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A">只读用户<br>姓名:</font></td>
  110.           <td colspan="1" align="left" valign="middle" nowrap>
  111.             &nbsp;<textarea name="ReadableUserNames" cols="30" rows="3" readonly="true" onDblClick="GetUserIDAndNames(document.AddDocTempletFields.ReadableUserIDs,this);"></textarea>
  112.             <input name="ReadableUserIDs" type="hidden" value=""><a href="" onclick="GetUserIDAndNames(document.AddDocTempletFields.ReadableUserIDs,document.AddDocTempletFields.ReadableUserNames);return false;" title="选择用户"><img src="/images/couple.gif" border="0"></a>
  113.           </td>
  114.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A">可写用户<br>姓名:</font></td>
  115.           <td colspan="1" align="left" valign="middle" nowrap>
  116.             &nbsp;<textarea name="WritableUserNames" cols="30" rows="3" readonly="true" onDblClick="GetUserIDAndNames(document.AddDocTempletFields.WritableUserIDs,this);"></textarea>
  117.             <input name="WritableUserIDs" type="hidden" value=""><a href="" onclick="GetUserIDAndNames(document.AddDocTempletFields.WritableUserIDs,document.AddDocTempletFields.WritableUserNames);return false;" title="选择用户"><img src="/images/couple.gif" border="0"></a>
  118.           </td>
  119.         </tr>
  120.         <tr>
  121.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A">激活事件:</font></td>
  122.           <td colspan="4" align="left" valign="middle" nowrap>&nbsp;<textarea name="Event" cols="80" rows="4"></textarea></td>
  123.         </tr>
  124.         <tr>
  125.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A">字段状态:</font></td>
  126.           <td colspan="3" align="left" valign="middle" nowrap>
  127.             &nbsp;<input name="IsUseful" type="radio" value="1" checked>可用
  128.             &nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="IsUseful" value="0">不可用
  129.           </td>
  130.         </tr>
  131.         <tr>
  132.           <td width="14%" align="center" valign="middle"><font color="#0A0A0A"> 搜索条件<br>类型:</font></td>
  133.           <td colspan="4" align="left" valign="middle" nowrap>
  134.             &nbsp;<select name="SearchType">
  135.               <option>&gt;</option>
  136.               <option>&lt;</option>
  137.               <option>包含</option>
  138.             </select>
  139.           </td>
  140.         </tr>
  141.         <tr>
  142.           <td width="14%" align="center" valign="middle">搜索字段:</td>
  143.           <td colspan="4" align="left" valign="middle" nowrap>&nbsp;<input name="SearchFieldsInForm" type="text" maxlength="10" size="37"></td>
  144.         </tr>
  145.              <table width="90%" border="0">
  146.                 <tr>
  147.                  <td width="40%">&nbsp;</td><td width="60%">&nbsp;</td>
  148.                </tr>
  149.                <tr>
  150.                  <td width="40%">&nbsp;</td>
  151.                  <td align="left" valign="middle" nowrap>
  152.             <input type="submit" value="确定">
  153.             &nbsp;&nbsp;&nbsp;<input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  154.             <input type="button" value="返回" onclick="window.location='DocTempletFieldsManage.jsp?SysDirID=<%=iSysDirID%>&ID=<%=intTempletID%>';">
  155.           </td>
  156.         </tr>
  157.         </table>
  158.         </table>
  159.       </form>
  160.     </td>
  161.   </tr>
  162. </table>
  163. </body>
  164. </html>