EditMoveFlowTemplet.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:5k
源码类别:
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 checkEditMoveFlowTemplet()
- {
- if(document.EditMoveFlowTemplet.FlowName.value == "")
- {
- alert("请输入流转模板名称!");
- document.EditMoveFlowTemplet.FlowName.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>
- <table width="90%" border="0" align="center" cellspacing="0">
- <tr>
- <td width="30%">
- </td>
- <td align="left">
- <font color="#000000"><strong>流转模板管理--流转模板信息修改</strong></font>
- </td>
- </tr>
- <tr>
- <td>
-
- </td>
- </tr>
- </table>
- <%
- Request m_request = new Request(request);
- int iUserID = m_session.GetInt("UserID");
- int iMoveFlowTempletID = m_request.GetInt("ID");
- if(iMoveFlowTempletID <1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("未知原因修改失败,请与管理员联系!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = MoveFlowTempletManager.getRecordByID(iMoveFlowTempletID);
- if(vt.size()==1)
- {
- %>
- <form name="EditMoveFlowTemplet" action="EditMoveFlowTempletAction.jsp" method="post" onSubmit="javascript:return checkEditMoveFlowTemplet();">
- <table border="1" cellpadding="0" cellspacing="3" width="90%">
- <tr>
- <td align="center" valign="middle"><font color="#0A0A0A">流转模板名称:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="FlowName" type="text" maxlength="60" size="60" 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="center" valign="middle"><font color="#0A0A0A">可写用户姓名:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="WritableUserNames" cols="60" rows="4" readonly="true" ondblclick="GetUserIDAndNames(document.EditMoveFlowTemplet.WritableUserIDs, this);"><%=UserManager.getPersonnelNamesByUserIDs(((Vector)vt.get(0)).get(5).toString())%></textarea>
- <input name="WritableUserIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(5).toString()%>"><a href="" onclick="GetUserIDAndNames(document.EditMoveFlowTemplet.WritableUserIDs, document.EditMoveFlowTemplet.WritableUserNames);return false;" title="选择员工名称"><img src="/images/couple.gif" border="0"></a><td align="left" valign="middle" nowrap>
- </tr>
- <tr>
- <td align="center" valign="middle"><font color="#0A0A0A">可写部门名称:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="WritableDepartNames" cols="60" rows="4" readonly="true" ondblclick="GetDepartIDAndNames(document.EditMoveFlowTemplet.WritableDepartIDs, this);"><%=DepartmentManager.getDepartNamesByIDs(((Vector)vt.get(0)).get(6).toString())%></textarea>
- <input name="WritableDepartIDs" type="hidden" value="<%=((Vector)vt.get(0)).get(6).toString()%>"><a href="" onclick="GetDepartIDAndNames(document.EditMoveFlowTemplet.WritableDepartIDs, document.EditMoveFlowTemplet.WritableDepartNames);return false;" title="选择部门"><img src="/images/couple.gif" border="0"></a>
- </tr>
- <tr>
- <td align="center" valign="middle"><font color="#0A0A0A">流转模板描述:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="FlowContent" cols="60" rows="4"><%=((Vector)vt.get(0)).get(4).toString()%></textarea>
- </tr>
- <table width="90%" border="0" align="center" cellspacing="0">
- <tr>
- <td width="30%">
-
- </td>
- <td width="70%">
-
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td 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='MoveFlowTempletManage.jsp';">
- </td>
- </tr>
- </table>
- </table>
- </form>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>