⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 workflowroute_subtask_modify.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
字号:
<%
/**
 *  $ RCSfile: WorkflowRoute_Maintain.jsp,v $
 *  $ Revision: 1.0 $
 *  $ Date: 2001/05/018 20:18:46 ,created by Shiyong Jian $
 *  $ /mainctrl/template/maintainRoute $
 *
 *  This is the create subtask page.
 *  @author Copyright (c) May. 2001, by VisionNex  Technologies Inc., All Right Reversed.
 */
%>
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
<%@ page import="com.vnex.intranet.workflow.pub.value.RouteValueBean" %>
<%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
<%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>

<jsp:useBean id="routeValueBean" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
<jsp:setProperty name="routeValueBean" property="*" />
<!--jsp:include page="WorkflowRoute_Navibar_Head.jsp" /-->
<%@ include file= "/vnex/intranet/workflow/template/WorkflowRoute_Navibar_Head.jsp" %>
<%
   int subtaskId = Integer.parseInt( request.getParameter( "subtaskId") );
   SubTaskValueBean subtaskValueBean = routeValueBean.getSubtaskDetails(  subtaskId );
   session.setAttribute("routeValueBean", routeValueBean);
%>

<HTML>
<jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
<script language="JavaScript"  >
function addSubtaskAgain( myform )
{
    myform.action= "/mainctrl/template/createRouteSubtaskAgain";
    myform.submit();
}

function saveSubtask( myform  )
{
    selectAll( myform.selectedIDList);
    if ( !checkSubtask( myform ) )
            return false; 
     <%
       if( request.getParameter("flag") != null && request.getParameter("flag").equals( "routeModify" )   ) 
       {
    %> 
       myform.action= "/mainctrl/template/modifyRoute?flag=modifySubtask&subtaskId=<%=subtaskId%>";
    <%
       }
       else
       {
    %> 
       myform.action= "/mainctrl/template/createRoute?flag=modifySubtask&subtaskId=<%=subtaskId%>";
    <%
       }
    %>
    myform.submit();
}

function cancleCreateSubtask( myform )
{
    <%
       if( request.getParameter("flag") != null && request.getParameter("flag").equals( "routeModify" )   ) 
       {
    %> 
       myform.action= "/mainctrl/template/modifyRoute";
    <%
       }
       else
       {
    %> 
       myform.action= "/mainctrl/template/createRoute";
    <%
       }
    %>
    myform.submit();
}
</script>
<script language="JavaScript" src="/vnex/util/validate.js"></script>
<script language="JavaScript" src="/vnex/intranet/workflow/util/checkSubtask.js"></script>
<script language="JavaScript" src="/vnex/util/popSelect.js"></script>
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
<input type="hidden" name="newSubtask" value="1" >
<DIV align=center>
  <form name="form1" method="post" action="" >
    <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
    <TR> 
        <TD colSpan=3 align="center">
          <br> 
          <table width="600" border="1" cellspacing="1" bordercolor="#666666">
            <tr bgcolor="#fafafa"> 
              <td bgcolor="#fafafa"> 
                <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
                  <tr> 
                    <td colspan="2" height="15" bgcolor="#666666">
                   <font class="strongw"><a href="/mainctrl/home/index">
                    <font color="#FFFFFF">首页</font></a>&gt;&gt;
                    <a href="<%=firstLevelLink%>"><font color="#FFFFFF"><%=firstLevelText%></font></a>&gt;&gt;
                    <a href="<%=secondLevelLink%>"><font color="#FFFFFF"><%=secondLevelText%></font></a>&gt;&gt;
                    <font color="#FFFFFF">修改子任务</font>
                     </font> </td>
                  </tr>                    
                  <tr bgcolor="#e0e0e0"> 
                    <td width="100"> <font  class="strong">&nbsp;顺序:</font> </td>
                    <td width="456"> 
                    <% int subtaskNum = routeValueBean.getSubtaskNum();
                      int stepNo = subtaskValueBean.getSubStepNo();
                     %>
                      <select name="subStepNo">                        
                         <% for( int i= 1 ; i <= subtaskNum + 1 ; i++ ) 
                           {    
                        %>
                        <option value="<%=i%>" <% if ( i == stepNo ) out.println("selected");%>><%=i%></option>
                        <% } %>
                      </select>&nbsp;*&nbsp;(注:带*为必填内容)
                    </td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <td width="100"> <font class="strong">&nbsp;子任务标题:</font> 
                    </td>
                    <td width="456"> 
                      <input type="text" name="subTitle" size="24" class="file" value="<%=subtaskValueBean.getSubTitle() %>">&nbsp;*</td>
                      
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td width="100"> <font  class="strong">&nbsp;执行人: </font> 
                    </td>
                    <td width="456"> 
                       <input type="hidden" name="updated" value="false">
                       <input type="hidden" name="tempHidden" value="">
                       <select name="selectedIDList" size="4" multiple style="width:200" >
                              <vnex_workflow:executorsList subtaskValueBean='<%=subtaskValueBean %>'> 
                              <vnex_workflow:items> 
                              <option value="<vnex_workflow:executorsAttribute attribute='executor_employeeId' />;<vnex_workflow:executorsAttribute attribute='executor_name' />;<vnex_workflow:executorsAttribute attribute='executor_department' />;<vnex_workflow:executorsAttribute attribute='executor_title' />"  > 
                              <vnex_workflow:executorsAttribute attribute="executor_name" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                              <vnex_workflow:executorsAttribute attribute="executor_title" /> 
                              </option>
                              </vnex_workflow:items> </vnex_workflow:executorsList> 
                            </select>
                       <input type="button" name="Submit1" value="按部门选择" class="file" style="width:70px" onClick="javascript:addList( selectedIDList )">
                       <input type="button" name="Submit2" value="分组选择" class="file" style="width:60px" onClick="javascript:addGroupList( selectedIDList )">
                       <input type="button" name="Submit3" value="删除" class="file" style="width:30px" onClick="remove(); return false;">&nbsp;* 
                    </td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <td width="100"> <font  class="strong">&nbsp;类型: </font> </td>
                    <td width="456"> 
                      <% 
                          int subType = subtaskValueBean.getSubTypeId(); 
                      %> 
                      <select name="subTypeId">     
                      <option value="-1" > 请选择</option>                   
                        <option value= 1  <% if ( subType == 1 ) out.println("selected"); %> >审批</option>
                        <option value= 2 <% if ( subType == 2 ) out.println("selected"); %> >执行</option>
                        <option value= 3 <% if ( subType == 3 ) out.println("selected"); %> >传阅</option>
                      </select>&nbsp;*
                    </td>
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td width="100" ><font  class="strong">&nbsp;子任务描述: 
                      </font></td>
                    <td width="456"> 
                      <textarea cols="59" rows="5" name="subDescription"><%=subtaskValueBean.getSubDescription()%></textarea>
                    </td>
                  </tr>
                  <tr bgcolor="#fafafa" align="center"> 
                    <td colspan="3" height="30"> 
                      <input type="button" name="save" value="保存" class="file" onClick="saveSubtask( this.form )">&nbsp;&nbsp;
                      <input type="button" name="cancle" value="放弃" class="file" onClick=" cancleCreateSubtask( this.form )">
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
<jsp:include page="/vnex/page/TTOA_HELP.jsp" />
</TD>
    </TR>
    <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
    </TABLE>
  <BR>
   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
	</form></DIV>
</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -