EditDocTempletFields.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:11k
源码类别:
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 checkEditFields()
- {
- if(document.EditDocTempletFields.FieldName.value=="")
- {
- alert("请输入字段名称!");
- document.EditDocTempletFields.FieldName.focus();
- return false;
- }
- if(document.EditDocTempletFields.EnglishAb.value=="")
- {
- alert("请输入字段的英文缩写!");
- document.EditDocTempletFields.EnglishAb.focus();
- return false;
- }
- }
- </script>
- <%
- Request m_request = new Request(request);
- int intDocTempletFieldsID = m_request.GetInt("ID");
- String strTFID;
- int intDocTempletID = m_request.GetInt("TempletID");
- int iSysDirID = m_request.GetInt("SysDirID");
- if(intDocTempletFieldsID <1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的字段,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- strTFID = intDocTempletFieldsID+"";
- Vector vt = DocTempletFieldsManager.getRecordBySearch(strTFID);
- if(vt.size()==1)
- {
- %>
- </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 align="center">
- <font color="#000000"><strong>公文模版管理--字段信息修改</strong></font>
- </td>
- </tr>
- <tr>
- <td>
-
- </td>
- </tr>
- </table>
- <form name="EditDocTempletFields" action="EditDocTempletFieldsAction.jsp?SysDirID=<%=iSysDirID%>&TempletID=<%=intDocTempletID%>" method="post" onSubmit="javascript:return checkEditFields();">
- <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" Value="<%=((Vector)vt.get(0)).get(1).toString()%>"></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" value="<%=((Vector)vt.get(0)).get(3).toString()%>"></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" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("String"))?" checked":""%>>文本类型
- <input type="radio" name="FieldType" value="Date" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("Date"))?" checked":""%>>日期类型
- <input type="radio" name="FieldType" value="Numeric" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("Numeric"))?" checked":""%>>数值类型
- <input type="radio" name="FieldType" value="Text" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("Text"))?" checked":""%>>大文本类型
- <input type="radio" name="FieldType" value="Radio"<%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("Radio"))?" checked":""%>>单选类型
- <input type="radio" name="FieldType" value="Checkbox" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("Checkbox"))?" checked":""%>>多选类型
- <br>
- <input type="radio" name="FieldType" value="Select" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("Select"))?" checked":""%>>下拉单选型
- <input type="radio" name="FieldType" value="List" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("List"))?" checked":""%>>下拉多选型
- <input type="radio" name="FieldType" value="Read" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("Read"))?" checked":""%>>只读文本型
- <input type="radio" name="FieldType" value="ACC" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("ACC"))?" checked":""%>>附件类型
- <input type="radio" name="FieldType" value="Name" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("Name"))?" checked":""%>>操作用户姓名
- <input type="radio" name="FieldType" value="Optime" <%=(((Vector)vt.get(0)).get(2).toString().equalsIgnoreCase("Optime"))?" checked":""%>>用户操作时间
- </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"><%=((Vector)vt.get(0)).get(6).toString()%></textarea> </td>
- <td>
- <font color="#0A0A0A"> 选项表述与选项值之间使用<a href="" onclick="document.EditDocTempletFields.Options.insertAdjacentText('beforeEnd','《¥》');return false;"><font color="#FF0000">《¥》</font></a>间隔<br>
- 不同选项之间使用<a href="" onclick="document.EditDocTempletFields.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"><%=((Vector)vt.get(0)).get(16).toString()%></textarea>
- <input name="TempletID" type="hidden" Value="<%=intDocTempletID%>">
- <input name="ID" type="hidden" Value="<%=intDocTempletFieldsID%>">
- </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"><%=((Vector)vt.get(0)).get(7).toString()%></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" Value="<%=((Vector)vt.get(0)).get(4)%>">
- <font color="#0A0A0A">字段长度:</font><input name="MaxLength" type="text" maxlength="10" size="7" Value="<%=((Vector)vt.get(0)).get(15)%>"></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 <%=((Vector)vt.get(0)).get(8).toString().equalsIgnoreCase("true")?"checked":""%>>必须填写
- <input type="radio" name="IsMustFill" value=0 <%=((Vector)vt.get(0)).get(8).toString().equalsIgnoreCase("false")?"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.EditDocTempletFields.ReadableUserIDs,this);"><%=UserManager.getPersonnelNamesByUserIDs(((Vector)vt.get(0)).get(10).toString())%></textarea>
- <input name="ReadableUserIDs" type="hidden" Value="<%=((Vector)vt.get(0)).get(10).toString()%>"><a href="" onclick="GetUserIDAndNames(document.EditDocTempletFields.ReadableUserIDs, document.EditDocTempletFields.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.EditDocTempletFields.WritableUserIDs,this);"><%=UserManager.getPersonnelNamesByUserIDs(((Vector)vt.get(0)).get(9).toString())%></textarea>
- <input name="WritableUserIDs" type="hidden" Value="<%=((Vector)vt.get(0)).get(9).toString()%>"><a href="" onclick="GetUserIDAndNames(document.EditDocTempletFields.WritableUserIDs, document.EditDocTempletFields.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"><%=((Vector)vt.get(0)).get(5).toString()%></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" <%=((Vector)vt.get(0)).get(11).toString().equalsIgnoreCase("true")?"checked":""%>>可用
- <input type="radio" name="IsUseful" value="0" <%=((Vector)vt.get(0)).get(11).toString().equalsIgnoreCase("false")?"checked":""%>>不可用
- </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 value=">" <%=((Vector)vt.get(0)).get(12).toString().equalsIgnoreCase(">")?"selected":""%>>></option>
- <option value="<" <%=((Vector)vt.get(0)).get(12).toString().equalsIgnoreCase("<")?"selected":""%>><</option>
- <option value="包含" <%=((Vector)vt.get(0)).get(12).toString().equalsIgnoreCase("包含")?"selected":""%>>包含</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" Value="<%=((Vector)vt.get(0)).get(13).toString()%>"></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=<%=intDocTempletID%>';">
- </td>
- </tr>
- </table>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>