EditFlowTacheInfo.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:12k
源码类别:
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); %>
- <%
- Request m_request = new Request(request);
- int intUserID = m_session.GetInt("UserID");
- int intFlowTacheID = m_request.GetInt("ID");
- String strIp = request.getRemoteAddr();
- String strTFID;
- String startmark = m_request.GetString("mark");
- int intMoveFlowID = m_request.GetInt("MoveFlowID");
- if(intFlowTacheID <1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的环节,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- strTFID = intFlowTacheID+"";
- Vector vvt = FlowTacheInfoManager.getRecordBySearch(strTFID);
- Vector vt = FlowTacheInfoManager.getRecordBySearch("","","","","","","",intMoveFlowID+"","","","","","","","","","","");
- if(vvt.size()==1)
- {
- %>
- <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.EditFlowTacheInfo.TacheName.value=="")
- {
- alert("请输入环节名称!");
- document.EditFlowTacheInfo.TacheName.focus();
- return false;
- }
- }
- </script>
- </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="EditFlowTacheInfo" action="EditFlowTacheInfoAction.jsp?MoveFlowID=<%=intMoveFlowID%>" method="post" onSubmit="javascript:return checkEditFields();">
- <table border="1" cellpadding="0" cellspacing="3" width="90%">
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">流程环节名称:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap> <input name="TacheName" type="text" maxlength="300" size="48" Value="<%=((Vector)vvt.get(0)).get(1).toString()%>"></td>
- </tr>
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">环节位置属性:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <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;}">
- <%
- if (startmark.equalsIgnoreCase("T")&&!(((Vector)vvt.get(0)).get(3).toString().equalsIgnoreCase("S")))
- {}
- else
- out.println("<option value='S' " + (((Vector)vvt.get(0)).get(3).toString().equalsIgnoreCase("S")?"selected":"") + ">起始环节</option>");
- out.println("<option value='M' " + (((Vector)vvt.get(0)).get(3).toString().equalsIgnoreCase("M")?"selected":"") + ">中间环节</option>");
- out.println("<option value='E' " + (((Vector)vvt.get(0)).get(3).toString().equalsIgnoreCase("E")?"selected":"") + ">结束环节</option>");
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">上级环节名称:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <%
- out.println(" <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>");
- for (int i=0;i<vt.size();i++)
- {
- if (!(((Vector)vt.get(i)).get(0).toString().equalsIgnoreCase(strTFID)))
- {
- if (!(((Vector)vt.get(i)).get(3).toString().equalsIgnoreCase("E")))
- 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><");
- }
- }
- out.println("</select>");
- %>
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">审批用户姓名:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <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>
- <input name="ApproveUserIDs" type="hidden" value=<%=((Vector)vvt.get(0)).get(5).toString()%>>
- <a href="" onclick="GetUserIDAndNames(document.EditFlowTacheInfo.ApproveUserIDs,document.EditFlowTacheInfo.ApproveUserNames);return false;" title="选择用户"><img src="/images/couple.gif" border="0"></a>
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">环节审批类型:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <select name="TacheType">
- <option value="Q" <%=((Vector)vvt.get(0)).get(6).toString().equalsIgnoreCase("Q")?"selected":""%>>抢签</option>
- <option value="H" <%=((Vector)vvt.get(0)).get(6).toString().equalsIgnoreCase("H")?"selected":""%>>会签</option>
- </select>
- <input name="FlowID" type="hidden" Value="<%=intMoveFlowID%>">
- <input name="UpdateUserID" type="hidden" Value="<%=intUserID%>">
- <%java.util.Date t_Date = new java.util.Date();%>
- <input name="UpdateTime" type="hidden" Value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
- <input name="UpdateFromIP" type="hidden" Value="<%=strIp%>">
- <input name="ID" type="hidden" Value="<%=intFlowTacheID%>">
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">查阅信息处理:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="IsRecordRead" type="radio" value="1" <%=((Vector)vvt.get(0)).get(11).toString().equalsIgnoreCase("True")?"checked":""%>>记录所有查阅信息
- <input type="radio" name="IsRecordRead" value="0" <%=((Vector)vvt.get(0)).get(11).toString().equalsIgnoreCase("False")?"checked":""%>>不记录查阅信息
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">提醒时间间隔:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <select name="RemindInterval">
- <option value=0 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("0")?"selected":""%>>不提醒</option>
- <option value=5 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("5")?"selected":""%>>5分钟</option>
- <option value=10 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("10")?"selected":""%>>10分钟</option>
- <option value=30 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("30")?"selected":""%>>半小时</option>
- <option value=60 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("60")?"selected":""%>>一小时</option>
- <option value=120 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("120")?"selected":""%>>二小时</option>
- <option value=300 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("300")?"selected":""%>>五小时</option>
- <option value=1440 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("1440")?"selected":""%>>一天</option>
- <option value=2880 <%=((Vector)vvt.get(0)).get(12).toString().equalsIgnoreCase("2880")?"selected":""%>>二天</option>
- </select></td>
- </tr>
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">最大停留时间:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <select name="MaxWaitTime">
- <option value=0 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("0")?"selected":""%>>无限</option>
- <option value=60 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("60")?"selected":""%>>一小时</option>
- <option value=120 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("120")?"selected":""%>>二小时</option>
- <option value=300 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("300")?"selected":""%>>五小时</option>
- <option value=1440 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("1440")?"selected":""%>>一天</option>
- <option value=2880 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("2880")?"selected":""%>>二天</option>
- <option value=7200 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("7200")?"selected":""%>>五天</option>
- <option value=14400 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("14400")?"selected":""%>>十天</option>
- <option value=21600 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("21600")?"selected":""%>>半个月</option>
- <option value=43200 <%=((Vector)vvt.get(0)).get(13).toString().equalsIgnoreCase("43200")?"selected":""%>>一个月</option>
- </select>
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">流程环节描述:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="TacheDescription" cols="60" rows="4"><%=((Vector)vvt.get(0)).get(4).toString()%></textarea>
- </td>
- </tr>
- <tr>
- <td nowrap="nowrap" width="17%" align="center" valign="middle"><font color="#0A0A0A">流程环节类型:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="IsFromDefault" type="radio" value="1" <%=((Vector)vvt.get(0)).get(14).toString().equalsIgnoreCase("True")?"checked":""%>>默认环节
- <input type="radio" name="IsFromDefault" value="0" <%=((Vector)vvt.get(0)).get(14).toString().equalsIgnoreCase("False")?"checked":""%>>非默认环节
- </td>
- </tr>
- <tr>
- <td width="17%" align="center" valign="middle"><font color="#0A0A0A">环节查阅处理:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="IsFinishedByRead" type="radio" value="1" <%=((Vector)vvt.get(0)).get(15).toString().equalsIgnoreCase("True")?"checked":""%>>查阅后自动完成当前环节
- <input type="radio" name="IsFinishedByRead" value="0" <%=((Vector)vvt.get(0)).get(15).toString().equalsIgnoreCase("False")?"checked":""%>>手动完成环节跳转
- </td>
- </tr>
- </table>
- <table width="90%" border="0">
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td align="center" valign="middle" nowrap> <input type="submit" value="确定">
- <input type="reset" value="重填">
- <input type="button" value="返回" onclick="window.location='FlowTacheInfoManage.jsp?ID=<%=intMoveFlowID%>';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>