AddDocTempletFields.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 checkAddFields()
- {
- if(document.AddDocTempletFields.FieldName.value=="")
- {
- alert("请输入字段名称!");
- document.AddDocTempletFields.FieldName.focus();
- return false;
- }
- if(document.AddDocTempletFields.EnglishAb.value=="")
- {
- alert("请输入字段的英文缩写!");
- document.AddDocTempletFields.EnglishAb.focus();
- return false;
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0" onload="document.AddDocTempletFields.FieldName.focus();">
- <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 iSysDirID = m_request.GetInt("SysDirID");
- int intTempletID = m_request.GetInt("TempletID");
- Vector DocTemplet_vt = DocumentTempletManager.getRecordByID(intTempletID);
- %>
- <table width="90%" border="0" align="center" cellspacing="0">
- <tr>
- <td width="40%">
- </td>
- <td align="left">
- <font color="#000000"><strong>《<%=((Vector)DocTemplet_vt.get(0)).get(1).toString()%>》新增字段</strong></font>
- </td>
- </tr>
- <tr>
- <td>
-
- </td>
- </tr>
- </table>
- <form name="AddDocTempletFields" action="AddDocTempletFieldsAction.jsp?SysDirID=<%=iSysDirID%>&TempletID=<%=intTempletID%>" method="post" onSubmit="javascript:return checkAddFields();">
- <table border="1" cellpadding="0" cellspacing="1" width="90%">
- <tr>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">字段名称:</font></td>
- <td width="35%" align="left" valign="middle" nowrap> <input name="FieldName" type="text" maxlength="300" size="35"></td>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">英文缩写:</font></td>
- <td width="35%" align="left" valign="middle" nowrap> <input name="EnglishAb" type="text" maxlength="300" size="35"></td>
- </tr>
- <tr>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">字段类型:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <p>
- <input name="FieldType" type="radio" value="String" checked>文本类型
- <input type="radio" name="FieldType" value="Date">日期类型
- <input type="radio" name="FieldType" value="Numeric">数值类型
- <input type="radio" name="FieldType" value="Text">大文本类型
- <input type="radio" name="FieldType" value="Radio">单选类型
- <input type="radio" name="FieldType" value="Checkbox">多选类型
- <br>
- <input type="radio" name="FieldType" value="Select">下拉单选型
- <input type="radio" name="FieldType" value="List">下拉多选型
- <input type="radio" name="FieldType" value="Read">只读文本型
- <input type="radio" name="FieldType" value="ACC">附件类型
- <input type="radio" name="FieldType" value="Name">操作用户姓名
- <input type="radio" name="FieldType" value="Optime">用户操作时间
- </p>
- </td>
- </tr>
- <tr>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">选项内容:</font></td>
- <td align="left" valign="middle" nowrap colspan="2"> <textarea name="Options" cols="40" rows="4"></textarea></td>
- <td>
- <font color="#0A0A0A"> 选项表述与选项值之间使用<a href="" onclick="document.AddDocTempletFields.Options.insertAdjacentText('beforeEnd','《¥》');return false;"><font color="#FF0000">《¥》</font></a>间隔<br>
- 不同选项之间使用<a href="" onclick="document.AddDocTempletFields.Options.insertAdjacentText('beforeEnd','《,》');return false;"><font color="#FF0000">《,》</font></a>间隔<br> 例如:<br><font color="red"> 优秀
- 《¥》90《,》良好《¥》80《,》<br> 差《¥》40</font></font></td>
- </tr>
- <tr>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">默认值:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <textarea cols="30" rows="4" name="DefaultValue"></textarea>
- <input name="TempletID" type="hidden" Value="<%=intTempletID%>">
- </td>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">填写说明:</font></td>
- <td align="left" valign="middle" nowrap width="35%" colspan="1">
- <textarea name="FieldContent" cols="30" rows="4"></textarea></td>
- </tr>
- <tr>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">排序编号:</font></td>
- <td width="35%" colspan="1" align="left" valign="middle" nowrap> <input name="OrderNumber" type="text" maxlength="10" size="7">
- <font color="#0A0A0A">字段长度:</font><input name="MaxLength" type="text" maxlength="10" size="7"></td>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">填写要求:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <input name="IsMustFill" type="radio" value=1>必须填写
- <input type="radio" name="IsMustFill" value=0 checked>由用户选择是否填写
- </td>
- </tr>
- <tr>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">只读用户<br>姓名:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <textarea name="ReadableUserNames" cols="30" rows="3" readonly="true" onDblClick="GetUserIDAndNames(document.AddDocTempletFields.ReadableUserIDs,this);"></textarea>
- <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>
- </td>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">可写用户<br>姓名:</font></td>
- <td colspan="1" align="left" valign="middle" nowrap>
- <textarea name="WritableUserNames" cols="30" rows="3" readonly="true" onDblClick="GetUserIDAndNames(document.AddDocTempletFields.WritableUserIDs,this);"></textarea>
- <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>
- </td>
- </tr>
- <tr>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">激活事件:</font></td>
- <td colspan="4" align="left" valign="middle" nowrap> <textarea name="Event" cols="80" rows="4"></textarea></td>
- </tr>
- <tr>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A">字段状态:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="IsUseful" type="radio" value="1" checked>可用
- <input type="radio" name="IsUseful" value="0">不可用
- </td>
- </tr>
- <tr>
- <td width="14%" align="center" valign="middle"><font color="#0A0A0A"> 搜索条件<br>类型:</font></td>
- <td colspan="4" align="left" valign="middle" nowrap>
- <select name="SearchType">
- <option>></option>
- <option><</option>
- <option>包含</option>
- </select>
- </td>
- </tr>
- <tr>
- <td width="14%" align="center" valign="middle">搜索字段:</td>
- <td colspan="4" align="left" valign="middle" nowrap> <input name="SearchFieldsInForm" type="text" maxlength="10" size="37"></td>
- </tr>
- <table width="90%" border="0">
- <tr>
- <td width="40%"> </td><td width="60%"> </td>
- </tr>
- <tr>
- <td width="40%"> </td>
- <td align="left" valign="middle" nowrap>
- <input type="submit" value="确定">
- <input type="reset" value="重填">
- <input type="button" value="返回" onclick="window.location='DocTempletFieldsManage.jsp?SysDirID=<%=iSysDirID%>&ID=<%=intTempletID%>';">
- </td>
- </tr>
- </table>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>