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

📄 workflowroute_subtask_create.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
字号:
<%
/**
 *  $ RCSfile: WorkflowRoute_Subtask_Create.jsp,v $
 *  $ Revision: 1.0 $
 *  $ Date: 2001/05/018 20:18:46 ,created by Shiyong Jian $
 *  $ /mainctrl/template/createRouteSubtask $
 *
 *  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" %>

<jsp:useBean id="routeValueBean" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />


<%
    if( request.getParameter("addsubtask") != null && request.getParameter("addsubtask").equals("true") )
    {
%>
<jsp:useBean id="subtaskValueBean" scope="page" class="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" />
<jsp:setProperty name="subtaskValueBean" property="*" />
<%
        routeValueBean.addSubtask( subtaskValueBean );        
        session.setAttribute( "routeValueBean" , routeValueBean);
    }
%>
<!--jsp:include page="WorkflowRoute_Navibar_Head.jsp" /-->
<%@ include file= "/vnex/intranet/workflow/template/WorkflowRoute_Navibar_Head.jsp" %>
<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 )
{
    selectAll( myform.selectedIDList);
    if ( !checkSubtask( myform ) )
            return false;
    myform.action= "/mainctrl/template/createRouteSubtask?flag=<%= request.getParameter("flag")%>&addsubtask=true";
    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=addSubtask";
    <%
       }
       else
       {
    %> 
       myform.action= "/mainctrl/template/createRoute?flag=addSubtask";
    <%
       }
    %>
     
    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>                     
                      </td>
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td width="100"> <font  class="strong">&nbsp;顺序:</font> </td>
                    <td width="456"> 
                    <% int subtaskNum = routeValueBean.getSubtaskNum();%>
                      <select name="subStepNo">                        
                         <% for( int i= 1 ; i <= subtaskNum + 1 ; i++ ) 
                           {    
                        %>
                        <option value="<%=i%>" <% if ( i == subtaskNum + 1 ) 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">&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" >
                       </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"> 
                      <select name="subTypeId">
                      <option value="-1" > 请选择</option> 
                        <option value= 1 >审批</option>
                        <option value= 2 >执行</option>
                        <option value= 3 >传阅</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"></textarea>
                    </td>
                  </tr>
                  <tr bgcolor="#fafafa" align="center"> 
                    <td colspan="3" height="30"> 
                      <input type="button" name="addAagin" style="width:60px" value="继续增加" class="file" onClick="addSubtaskAgain( this.form )">&nbsp;&nbsp;
                      <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 + -