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

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. <%
  5. Request m_request = new Request(request);
  6. int intUserID = m_session.GetInt("UserID");
  7. int intFlowTacheID = m_request.GetInt("ID");
  8. String strIp = request.getRemoteAddr();
  9. String strTFID;
  10. String startmark = m_request.GetString("mark");
  11. int intMoveFlowID = m_request.GetInt("MoveFlowID");
  12. if(intFlowTacheID <1)
  13. {
  14. %>
  15. <script language="JavaScript" type="text/JavaScript">
  16. alert("请选择正确的环节,修改失败!");
  17. history.back();
  18. </script>
  19. <%
  20. }
  21. else
  22. {
  23. strTFID = intFlowTacheID+"";
  24. Vector vvt = FlowTacheInfoManager.getRecordBySearch(strTFID);
  25. Vector vt = FlowTacheInfoManager.getRecordBySearch("","","","","","","",intMoveFlowID+"","","","","","","","","","","");
  26. if(vvt.size()==1)
  27. {
  28. %>
  29. <html>
  30. <head>
  31. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  32. <title>流程环节信息管理-- GForce OA 2.0</title>
  33. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  34. <script language="JavaScript" src="/js/changestyle.js"></script>
  35. <script language="JavaScript" type="text/javascript">
  36. function checkEditFields()
  37. {
  38.     if(document.EditFlowTacheInfo.TacheName.value=="")
  39.     {
  40.         alert("请输入环节名称!");
  41.         document.EditFlowTacheInfo.TacheName.focus();
  42.         return false;
  43.     }
  44. }
  45. </script>
  46. </head>
  47. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  48. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  49.   <tr>
  50.      <td  align="center" valign="top"><p>&nbsp;</p>
  51.           <table width="90%" border="0" align="center" cellspacing="0">
  52.             <tr>
  53.               <td align="center">
  54.                 <font color="#000000"><strong>流程环节管理--环节信息修改</strong></font>
  55.               </td>
  56.             </tr>
  57.             <tr>
  58.               <td>
  59.                 &nbsp;
  60.               </td>
  61.             </tr>
  62.           </table>
  63.      <form name="EditFlowTacheInfo" action="EditFlowTacheInfoAction.jsp?MoveFlowID=<%=intMoveFlowID%>" method="post" onSubmit="javascript:return checkEditFields();">
  64.         <table  border="1" cellpadding="0" cellspacing="3" width="90%">
  65.          <tr>
  66.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">流程环节名称:</font></td>
  67.                <td colspan="3" align="left" valign="middle" nowrap>&nbsp;<input name="TacheName" type="text" maxlength="300" size="48" Value="<%=((Vector)vvt.get(0)).get(1).toString()%>"></td>
  68.        </tr>
  69.        <tr>
  70.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">环节位置属性:</font></td>
  71.                <td colspan="3" align="left" valign="middle" nowrap>
  72.          &nbsp;<select name="TacheStatus" onChange="if(this.options[this.selectedIndex].value=='S'){document.EditFlowTacheInfo.FromTacheID.selectedIndex=0;document.EditFlowTacheInfo.FromTacheID.disabled=true;}else{document.EditFlowTacheInfo.FromTacheID.disabled=false;}">
  73.          <%
  74.          if (startmark.equalsIgnoreCase("T")&&!(((Vector)vvt.get(0)).get(3).toString().equalsIgnoreCase("S")))
  75.          {}
  76.          else
  77.          out.println("<option value='S' " + (((Vector)vvt.get(0)).get(3).toString().equalsIgnoreCase("S")?"selected":"") + ">起始环节</option>");
  78.          out.println("<option value='M' " + (((Vector)vvt.get(0)).get(3).toString().equalsIgnoreCase("M")?"selected":"") + ">中间环节</option>");
  79.          out.println("<option value='E' " + (((Vector)vvt.get(0)).get(3).toString().equalsIgnoreCase("E")?"selected":"") + ">结束环节</option>");
  80.          %>
  81.          </select>
  82.          </td>
  83.        </tr>
  84.        <tr>
  85.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">上级环节名称:</font></td>
  86.                <td colspan="3" align="left" valign="middle" nowrap>
  87.          <%
  88.            out.println("&nbsp;<select name='FromTacheID'" + (((Vector)vvt.get(0)).get(3).toString().equalsIgnoreCase("S")?" disabled=true":"") + "><option value='' "+ (((Vector)vvt.get(0)).get(2).toString().equalsIgnoreCase("")?"selected":"") + ">无</option>");
  89.          for (int i=0;i<vt.size();i++)
  90.          {
  91.            if (!(((Vector)vt.get(i)).get(0).toString().equalsIgnoreCase(strTFID)))
  92.            {
  93.            if (!(((Vector)vt.get(i)).get(3).toString().equalsIgnoreCase("E")))
  94.              out.println("<option value="+ ((Vector)vt.get(i)).get(0).toString() + " " + (((Vector)vvt.get(0)).get(2).toString().equalsIgnoreCase(((Vector)vt.get(i)).get(0).toString())?"selected":"")+">" + ((Vector)vt.get(i)).get(1).toString() + "</option><");
  95.            }
  96.          }
  97.            out.println("</select>");
  98.          %>
  99.          </td>
  100.        </tr>
  101.        <tr>
  102.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">审批用户姓名:</font></td>
  103.                <td colspan="3" align="left" valign="middle" nowrap>
  104.           &nbsp;<textarea name="ApproveUserNames" cols="40" rows="4" readonly="true" onDblClick="GetUserIDAndNames(document.EditFlowTacheInfo.ApproveUserIDs,this);"><%=UserManager.getPersonnelNamesByUserIDs(((Vector)vvt.get(0)).get(5).toString())%></textarea>
  105.          <input name="ApproveUserIDs" type="hidden" value=<%=((Vector)vvt.get(0)).get(5).toString()%>>
  106.          <a href="" onclick="GetUserIDAndNames(document.EditFlowTacheInfo.ApproveUserIDs,document.EditFlowTacheInfo.ApproveUserNames);return false;" title="选择用户"><img src="/images/couple.gif" border="0"></a>
  107.         </td>
  108.        </tr>
  109.            <tr>
  110.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">环节审批类型:</font></td>
  111.                <td colspan="3" align="left" valign="middle" nowrap>
  112.          &nbsp;<select name="TacheType">
  113.            <option value="Q" <%=((Vector)vvt.get(0)).get(6).toString().equalsIgnoreCase("Q")?"selected":""%>>抢签</option>
  114.            <option value="H" <%=((Vector)vvt.get(0)).get(6).toString().equalsIgnoreCase("H")?"selected":""%>>会签</option>
  115.          </select>
  116.            <input name="FlowID" type="hidden" Value="<%=intMoveFlowID%>">
  117.            <input name="UpdateUserID" type="hidden" Value="<%=intUserID%>">
  118.            <%java.util.Date t_Date = new java.util.Date();%>
  119.            <input name="UpdateTime" type="hidden" Value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
  120.            <input name="UpdateFromIP" type="hidden" Value="<%=strIp%>">
  121.            <input name="ID" type="hidden" Value="<%=intFlowTacheID%>">
  122.          </td>
  123.        </tr>
  124.        <tr>
  125.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">查阅信息处理:</font></td>
  126.                <td colspan="3" align="left" valign="middle" nowrap>
  127.          &nbsp;<input name="IsRecordRead" type="radio" value="1" <%=((Vector)vvt.get(0)).get(11).toString().equalsIgnoreCase("True")?"checked":""%>>记录所有查阅信息
  128.          <input type="radio" name="IsRecordRead" value="0" <%=((Vector)vvt.get(0)).get(11).toString().equalsIgnoreCase("False")?"checked":""%>>不记录查阅信息
  129.          </td>
  130.        </tr>
  131.        <tr>
  132.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">提醒时间间隔:</font></td>
  133.                <td colspan="3" align="left" valign="middle" nowrap>
  134.          &nbsp;<select name="RemindInterval">
  135.            <option value=0 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("0")?"selected":""%>>不提醒</option>
  136.            <option value=5 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("5")?"selected":""%>>5分钟</option>
  137.            <option value=10 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("10")?"selected":""%>>10分钟</option>
  138.            <option value=30 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("30")?"selected":""%>>半小时</option>
  139.            <option value=60 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("60")?"selected":""%>>一小时</option>
  140.            <option value=120 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("120")?"selected":""%>>二小时</option>
  141.            <option value=300 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("300")?"selected":""%>>五小时</option>
  142.            <option value=1440 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("1440")?"selected":""%>>一天</option>
  143.            <option value=2880 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("2880")?"selected":""%>>二天</option>
  144.          </select></td>
  145.        </tr>
  146.              <tr>
  147.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">最大停留时间:</font></td>
  148.                <td colspan="3" align="left" valign="middle" nowrap>
  149.          &nbsp;<select name="MaxWaitTime">
  150.            <option value=0 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("0")?"selected":""%>>无限</option>
  151.            <option value=60 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("60")?"selected":""%>>一小时</option>
  152.            <option value=120 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("120")?"selected":""%>>二小时</option>
  153.            <option value=300 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("300")?"selected":""%>>五小时</option>
  154.            <option value=1440 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("1440")?"selected":""%>>一天</option>
  155.            <option value=2880 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("2880")?"selected":""%>>二天</option>
  156.            <option value=7200 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("7200")?"selected":""%>>五天</option>
  157.            <option value=14400 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("14400")?"selected":""%>>十天</option>
  158.            <option value=21600 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("21600")?"selected":""%>>半个月</option>
  159.            <option value=43200 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("43200")?"selected":""%>>一个月</option>
  160.          </select>
  161.          </td>
  162.        </tr>
  163.        <tr>
  164.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">流程环节描述:</font></td>
  165.                <td colspan="3" align="left" valign="middle" nowrap>
  166.                   &nbsp;<textarea name="TacheDescription" cols="60" rows="4"><%=((Vector)vvt.get(0)).get(4).toString()%></textarea>
  167.                </td>
  168.        </tr>
  169.        <tr>
  170.                <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">流程环节类型:</font></td>
  171.                <td colspan="3" align="left" valign="middle" nowrap>
  172.          &nbsp;<input name="IsFromDefault" type="radio" value="1" <%=((Vector)vvt.get(0)).get(14).toString().equalsIgnoreCase("True")?"checked":""%>>默认环节
  173.          <input type="radio" name="IsFromDefault" value="0" <%=((Vector)vvt.get(0)).get(14).toString().equalsIgnoreCase("False")?"checked":""%>>非默认环节
  174.          </td>
  175.        </tr>
  176.        <tr>
  177.                <td width="17%" align="center" valign="middle"><font color="#0A0A0A">环节查阅处理:</font></td>
  178.                <td colspan="3" align="left" valign="middle" nowrap>
  179.          &nbsp;<input name="IsFinishedByRead" type="radio" value="1" <%=((Vector)vvt.get(0)).get(15).toString().equalsIgnoreCase("True")?"checked":""%>>查阅后自动完成当前环节
  180.          <input type="radio" name="IsFinishedByRead" value="0" <%=((Vector)vvt.get(0)).get(15).toString().equalsIgnoreCase("False")?"checked":""%>>手动完成环节跳转
  181.          </td>
  182.        </tr>
  183.        </table>
  184.              <table width="90%" border="0">
  185.                 <tr>
  186.                  <td>&nbsp;</td>
  187.                </tr>
  188.                <tr>
  189.                  <td align="center" valign="middle" nowrap> <input type="submit" value="确定">
  190.                  &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  191.                  <input type="button" value="返回" onclick="window.location='FlowTacheInfoManage.jsp?ID=<%=intMoveFlowID%>';">
  192.                  </td>
  193.                </tr>
  194.              </table>
  195.      </form>
  196.    </td>
  197.   </tr>
  198. </table>
  199. </body>
  200. </html>
  201. <%
  202. }
  203. else
  204. {
  205. %>
  206. <script language="JavaScript" type="text/JavaScript">
  207. alert("该记录已经被删除,修改失败!");
  208. history.back();
  209. </script>
  210. <%
  211. }
  212. }
  213. %>