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

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" type="text/javascript">
  12.         function checkEditMoveFlowTemplet()
  13.         {
  14.     if(document.EditMoveFlowTemplet.FlowName.value == "")
  15.     {
  16.         alert("请输入流转模板名称!");
  17.         document.EditMoveFlowTemplet.FlowName.focus();
  18.         return false;
  19.     }
  20.         }
  21.         </script>
  22.   <style type="text/css"></style>
  23. </head>
  24. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  25. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  26.     <tr>
  27.         <td align="center" valign="top"><p>&nbsp;</p>
  28.           <table width="90%" border="0" align="center" cellspacing="0">
  29.             <tr>
  30.               <td width="30%">
  31.               </td>
  32.               <td align="left">
  33.                 <font color="#000000"><strong>流转模板管理--流转模板信息修改</strong></font>
  34.               </td>
  35.             </tr>
  36.             <tr>
  37.               <td>
  38.                 &nbsp;
  39.               </td>
  40.             </tr>
  41.           </table>
  42. <%
  43. Request m_request = new Request(request);
  44. int iUserID = m_session.GetInt("UserID");
  45. int iMoveFlowTempletID = m_request.GetInt("ID");
  46. if(iMoveFlowTempletID <1)
  47. {
  48. %>
  49. <script language="JavaScript" type="text/JavaScript">
  50. alert("未知原因修改失败,请与管理员联系!");
  51. history.back();
  52. </script>
  53. <%
  54. }
  55. else
  56. {
  57. Vector vt = MoveFlowTempletManager.getRecordByID(iMoveFlowTempletID);
  58. if(vt.size()==1)
  59. {
  60. %>
  61. <form name="EditMoveFlowTemplet" action="EditMoveFlowTempletAction.jsp" method="post" onSubmit="javascript:return checkEditMoveFlowTemplet();">
  62. <table border="1" cellpadding="0" cellspacing="3" width="90%">
  63.     <tr>
  64.       <td align="center" valign="middle"><font color="#0A0A0A">流转模板名称:</font></td>
  65.       <td colspan="3" align="left" valign="middle" nowrap>
  66.         &nbsp;<input name="FlowName" type="text" maxlength="60" size="60" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
  67.         <input name="ID" type="hidden"  value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  68.       </td>
  69.     </tr>
  70.     <tr>
  71.       <td align="center" valign="middle"><font color="#0A0A0A">可写用户姓名:</font></td>
  72.       <td colspan="3" align="left" valign="middle" nowrap>
  73.       &nbsp;<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>
  74.           <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>
  75.         </tr>
  76.     <tr>
  77.       <td align="center" valign="middle"><font color="#0A0A0A">可写部门名称:</font></td>
  78.       <td colspan="3" align="left" valign="middle" nowrap>
  79.       &nbsp;<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>
  80.       <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>
  81.         </tr>
  82.     <tr>
  83.       <td align="center" valign="middle"><font color="#0A0A0A">流转模板描述:</font></td>
  84.       <td colspan="3" align="left" valign="middle" nowrap>
  85.       &nbsp;<textarea name="FlowContent" cols="60" rows="4"><%=((Vector)vt.get(0)).get(4).toString()%></textarea>
  86.     </tr>
  87.           <table width="90%" border="0" align="center" cellspacing="0">
  88.             <tr>
  89.               <td width="30%">
  90.                 &nbsp;
  91.               </td>
  92.               <td width="70%">
  93.                 &nbsp;
  94.               </td>
  95.             </tr>
  96.     <tr>
  97.       <td  align="right" valign="middle">&nbsp;</td>
  98.       <td  align="left" valign="middle" nowrap>
  99.                                 <input type="hidden" name="BuildUserID" value="<%=iUserID%>">
  100.         <%java.util.Date t_Date = new java.util.Date();%>
  101.         <input name="BuildTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
  102.         <input type="submit" value="确定">
  103.         &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  104.         <input type="button" value="返回" onclick="window.location='MoveFlowTempletManage.jsp';">
  105.       </td>
  106.     </tr>
  107.           </table>
  108. </table>
  109. </form>
  110. </table>
  111. </body>
  112. </html>
  113. <%
  114. }
  115. else
  116. {
  117. %>
  118. <script language="JavaScript" type="text/JavaScript">
  119. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  120. history.back();
  121. </script>
  122. <%
  123. }
  124. }
  125. %>