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

📄 addsubflow.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%
String contextPath = request.getContextPath();
%>
<html>
<head>
<title>{*[Sub Workflow]*}属性</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--<link href="<%= contextPath %>/css/css.jsp" rel="stylesheet" type="text/css">-->
<link rel="stylesheet"
	href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
	type="text/css">
<script src="<%= contextPath %>/js/util.js"></script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<SCRIPT LANGUAGE="JavaScript">
var contextPath = '<%=contextPath%>';

function returnAttr()
{
  if(tmp.name.value==''){
      alert("{*[Please enter name!]*}!");
      return;
  }
  if(tmp.subflowname.value == ''){
      alert("{*[Please choose the sub workflow]*}!");
      return;
  }
	var actorAttr=new Object()
	actorAttr.name=document.tmp.name.value;
  actorAttr.subflowid=document.tmp.subflowid.value;
  actorAttr.subflowname=document.tmp.subflowname.value;
  if(tmp.isreflow.value == 'true'){
   actorAttr.isreflow = true;
  }else{
   actorAttr.isreflow = false;
  }
  
  actorAttr.beforescrpt = document.tmp.beforescrpt.value;
  actorAttr.note = document.tmp.note.value;
    if(tmp.isstart.value == 'true'){
       actorAttr.isstart = true;
    }else{
       actorAttr.isstart = false;
    }
    if(tmp.isend.value == 'true'){
       actorAttr.isend = true;
    }else{
       actorAttr.isend = false;
    }
        if(tmp.issplit.value == 'true'){
       actorAttr.issplit = true;
    }else{
       actorAttr.issplit = false;
    }
    if(tmp.isgather.value == 'true'){
       actorAttr.isgather = true;
    }else{
       actorAttr.isgather = false;
    }
    
	window.returnValue=actorAttr;
	window.close()
}

function selectSubflow(){
  wx = '600px';
  wy = '500px';
  var url = contextPath + '/billflow/defi/selectlist.do';
  var rtn = showframe('{*[ please choose a workflow]*}', url);
  if (rtn == null || rtn == 'undefined') {
  }
  else if (rtn == '') {
    tmp.subflowid.value = "";
    tmp.subflowname.value = "";
  }
  else{
    var t = rtn.split(";");
    tmp.subflowid.value = t[0];
    tmp.subflowname.value = t[1];
  }
}

function splitDocument(){
  var js = "var doc = $JSUTIL.get_currDoc();";
     js += "var webUser = $JSUTIL.get_user();";
     js += "var channelid = 1126746485843000;";
     js += "var proxy = $JSUTIL.getProxy();";
     js += "var copyVO = proxy.copyDocument(doc.getId(),channelid, webUser);";
     js += "copyVO.getId();";
     tmp.beforescrpt.value = js;
}

</SCRIPT>
<table width="98%">
	<tr>
		<td width="10" class="image-label"><img
			src="<ww:url value="/resource/image/email2.jpg"/>" /></td>
		<td width="3"></td>
		<td width="140" class="text-label">{*[Sub Workflow]*}{*[Info]*}</td>
		<td>
		<table width="100%" border=1 cellpadding="0" cellspacing="0"
			class="line-position">
			<tr>
				<td></td>
				<td class="line-position2" width="60" valign="top">
				 <c:if test="${!empty param.ISEDIT and param.ISEDIT eq 'TRUE'}" >
				<button class="button-image"
					onClick="ev_ok();"><img
					src="<ww:url value="/resource/image/save.gif"/>">{*[Save]*}</button>
					  </c:if>
				</td>
				<td class="line-position2" width="70" valign="top">
				<button class="button-image"
					onClick="ev_close();"><img
					src="<ww:url value="/resource/image/back.gif"/>">{*[Exit]*}</button>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>


  <p>&nbsp;</p>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="tmp" method="post" action="">
    <tr>
  <td width="100%">
 <table width="100%"  cellpadding="2" cellspacing="1"  border="0"  bgcolor="#dddddd">
    <tr bgcolor="#FFFFFF">
      <td width="20%" class="content-label">{*[Name]*}:</td>
       <td align="left" colspan="3">
          <input type="text" class="input" name="name" size="51">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="20%" class="content-label">{*[Sub Workflow]*}{*[Name]*}:</td>
       <td align="left" colspan="3"><input type="hidden" name="subflowid" size="51">
          <input type="text" class="input"  name="subflowname" size="51" readonly>
          <input type="button" class="srchbt" onclick="selectSubflow()" value=".."/>
      </td>
    </tr>
  <tr bgcolor="#FFFFFF">
    <td width="20%"  class="content-label">{*[Is call-back]*}:</td>
    <td colspan="3"><select class="input-text-select" name="isreflow">
    				<option value="true">{*[Yes]*}</option>
    				<option value="false">{*[No]*}</option>
    		</select></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="20%"  class="content-label">{*[Is start]*}:</td>
    <td width="30%"><select  class="input-text-select" name="isstart">
    				<option value="true">{*[Yes]*}</option>
    				<option value="false">{*[No]*}</option>
    		</select></td>
    <td width="20%"  class="content-label">{*[Is end]*}:</td>
    <td width="30%"><select class="input-text-select" name="isend">
    				<option value="true">{*[Yes]*}</option>
    				<option value="false">{*[No]*}</option>
    		</select></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="20%"  class="content-label">{*[Is distribute]*}:</td>
    <td width="30%"><select  class="input-text-select" name="issplit">
    				<option value="true">{*[Yes]*}</option>
    				<option value="false">{*[No]*}</option>
    		</select></td>
    <td width="20%"  class="content-label">{*[Is centralized]*}:</td>
    <td width="30%"><select  class="input-text-select" name="isgather">
    				<option value="true">{*[Yes]*}</option>
    				<option value="false">{*[No]*}</option>
    		</select></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="20%"  class="content-label">{*[Run Script]*}:</td>
    <td align="left" colspan="3"><textarea  class="input-area" cols="78" rows="5" name="beforescrpt"></textarea>
    <input type="button" onclick="splitDocument()" value="{*[Split document]*}">
    </td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="20%"  class="content-label">{*[Reach after]*}:</td>
    <td align="left" colspan="3"><textarea class="input-area" cols="78" rows="5" name="note"></textarea></td>
  </tr>
  </table>
   </td>
   </tr>
  </form>
   </table>
</body>
<script language="JavaScript">
    var oldAttr = window.dialogArguments;
    try{
    if (oldAttr != null) {
      tmp.name.value = oldAttr.name;
      tmp.subflowid.value = oldAttr.subflowid;
      tmp.subflowname.value = oldAttr.subflowname;
      tmp.isreflow.value = oldAttr.isreflow;
      tmp.beforescrpt.value = oldAttr.beforescrpt;
      tmp.note.value = oldAttr.note;
      tmp.isstart.value = oldAttr.isstart;
      tmp.isend.value = oldAttr.isend;
      tmp.issplit.value = oldAttr.issplit;//{*[Is Distribute Node]*}
	    tmp.isgather.value = oldAttr.isgather;//{*[Is centralized]*}节点
    }else{
      tmp.isstart.value = false;
      tmp.isend.value = false;
      tmp.issplit.value = false;
      tmp.isgather.value = false;
     }
    }catch(ex){}
</script>
</html>

⌨️ 快捷键说明

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