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

📄 workflowroute_modify.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%
/**
 *  $ RCSfile: WorkflowRoute_Modify.jsp,v $
 *  $ Revision: 1.0 $
 *  $ Date: 2001/05/018 20:18:46 ,created by Shiyong Jian $
 *  $ /mainctrl/template/modifyRoute $
 *
 *  This is the workflow template  modify page.
 *  @author Copyright (c) May. 2001, by VisionNex  Technologies Inc., All Right Reversed.
 */
%>

<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.workflow.pub.value.*" %>
<%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%> 
<%@ page import="com.vnex.intranet.util.SubPathGenerater" %> 
<%@ page import="com.vnex.intranet.upload.*"%> 
<%@ page import="com.vnex.intranet.workflow.loader.*" %>
<%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
<%@ page import="com.vnex.intranet.util.FieldUtil" %>

<%@ taglib uri="/vnex_workflow.tld" prefix="workflow" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>

<jsp:useBean id="mySmartUpload" scope="page" class="com.vnex.intranet.upload.SmartUpload" /> 
<jsp:useBean id="routeValueBean" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
<jsp:useBean id="routeProxy" scope="Application" class="com.vnex.intranet.workflow.route.proxy.RouteProxyBean" />
<jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
<jsp:useBean id="subtaskValueBean" scope="page" class="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" />
<jsp:setProperty name="subtaskValueBean" property="*" />


<%@ include file= "/vnex/intranet/workflow/template/WorkflowRoute_Navibar_Head.jsp" %>
<%
     String attachURL = "";
    if( Integer.parseInt( (String)session.getAttribute( "routeType") )== WorkFlowType.TEMPLATE_TYPE_PERSONAL )
         attachURL = ConfigParaLoader.getParameter("personalTemplateAttachmentUrl");
    if( Integer.parseInt( (String)session.getAttribute( "routeType") ) == WorkFlowType.TEMPLATE_TYPE_COMMON )    
         attachURL = ConfigParaLoader.getParameter("commonTemplateAttachmentUrl");
    String flag = request.getParameter("flag");
    if( flag != null && flag.equals("modifyRoute") )
    { 
         int pathId = Integer.parseInt( request.getParameter( "routeId" ) );
         routeValueBean = routeProxy.getRouteDetails( pathId );
         session.setAttribute( "routeValueBean" , routeValueBean);
        
    }
    if( flag != null && flag.equals("addSubtask") )
    {
        routeValueBean.addSubtask( subtaskValueBean );
        session.setAttribute( "routeValueBean" , routeValueBean);
    }
    if( flag != null && flag.equals("modifySubtask") )
    {
        int subtaskId = Integer.parseInt(request.getParameter("subtaskId" ));
        routeValueBean.setSubtask( subtaskId , subtaskValueBean );
        session.setAttribute("routeValueBean",routeValueBean);      
    }
%>
<%@ include file= "/vnex/intranet/workflow/util/routeFilesUpload.jsp" %>

<HTML>
<jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
<script language=JavaScript> 
function uploadDoc(form)
{      
    form.action="/mainctrl/template/modifyRoute?type=1"; 
   form.encoding="multipart/form-data"; 
    form.submit();     
} 

function deleteDoc(form) 
{      
    if ( confirm("确定删除?") )
      {
         form.action="/mainctrl/template/modifyRoute?type=2"; 
         form.submit();
      }     
} 
function saveRoute( myform )
{
    if ( !checkRoute( myform.routeName.value , 'routeName')  )
    {
        myform.textValue.focus();
        return false; 
    }
    if ( myform.workflowTypeId.value == '-1' ) 
    {
        alert('请选择工作流模板的类型!');
        myform.workflowTypeId.focus();
        return false;
    }            
    if ( !checkRoute( myform.description.value , 'description') )
    {
        myform.description.focus();
        return false; 
    }  
             
    if( !checkSequence( myform.stepNos ) )
        return false;
    
    myform.action= "/mainctrl/template/saveModifyRoute?routeType=<%=routeType%>";
    myform.submit();
}
function createSubtask( myform )
{
    myform.action="/mainctrl/template/createRouteSubtask?flag=routeModify&keepStepNo=true";
    myform.submit();
}
function deleteSubtask( myform )
{  
    if ( !isChecked( document.forms[0].subtaskIds )  ) 
    {
        alert('请选择要删除的任务!');
        return false;
    } 
    if ( confirm("确定删除?") )
    {  
      myform.action="/mainctrl/template/deleteRouteSubtask2?flag=deleteSubtask";
      myform.submit();
    }
}
function cancleCreate( myform )
{
   myform.action="/mainctrl/template/maintainRoute?routeType=<%=routeType%>";
   myform.submit();
} 

function modifySubtask( myform, subId )
{
   myform.action="/mainctrl/template/modifyRouteSubtask?flag=routeModify"+"&subtaskId="+subId;
   myform.submit();
}
</script> 
</script>
<script language="JavaScript" src="/vnex/util/validate.js"></script>
<script language="JavaScript" src="/vnex/intranet/workflow/util/checkRoute.js"></script>
 
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">

<DIV align=center>
  <form name="form1" method="post"  >  
    <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="#fafafa">修改工作流模板</font>
                      </td>
                  </tr>
                  <tr> 
                    <td width="100" bgcolor="#e0e0e0"> <font class="strong" >&nbsp;工作流标题:</font> 
                    </td>
                    <td width="456" bgcolor="#e0e0e0"> 
                      <input type="text" name="routeName" value="<%=FieldUtil.filterQuotTag( routeValueBean.getRouteName() ) %>" size="24" class="file">&nbsp;*&nbsp;(注:带*为必填内容)</td>    
                  </tr>

⌨️ 快捷键说明

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