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

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