This commit is contained in:
hanjian
2024-08-14 15:17:51 +08:00
parent 20a221c1a2
commit b610f94b2e
3483 changed files with 650965 additions and 0 deletions

View File

@@ -0,0 +1,141 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节设置</title>
<link href="${ctx}/resource/js/plugins/loadmask/jquery.loadmask.css"
rel="stylesheet" type="text/css" />
<script type='text/javascript'
src='${ctx}/resource/js/plugins/loadmask/jquery.loadmask.js'></script>
<script>
$(document).ready(function() {
var key = $("#key").val();
window.parent.postMessage(
{
cmd: 'ebpm',
params: {"procDefKey":key}
},
'*'
)
});
function changeHref(id, srcStr) {
var currentId = $(".active").find("a").attr("id");
var isChange = $("#isChange").val();
var isRedirect = true;//是否跳转页面
if("UserContract"==currentId){//当前是基础配置,点击别的菜单会出现提示是否保存的按钮
if("1"==isChange){//内容有更改
//提示是否保存前面的操作
if(confirm("是否保存当前数据?")){
document.getElementById(id).contentWindow.save();
isRedirect = false;//当选择确认保存后 留在当前页面
$("#"+currentId).parent().addClass("active");
}else{
$("#isChange").val("0");//保存完毕后把是否已修改还原成未修改
}
}
}
//if(isRedirect){
//返回时跳转步数+1
var backSteps = $("#backSteps").val();
$("#backSteps").val(parseInt(backSteps)+1);
document.getElementById(id).src = srcStr;
//}
//$("#myTab3").find('li').removeClass("active");
}
function iframeHeight(down){
var height = "";
var imgHeight = $("#imgHeight").val();
if(imgHeight==""){
height = $("#"+down).contents().find("body").height();
if(height==0){
height=800;
}
}else{
height = imgHeight;
}
if(height==0){
height=$("#"+down).height();
}
$("#"+down).height(height+20);
}
function gobacktolist(){
var isRedirect = true;//是否跳转页面
var isChange = $("#isChange").val();
if("1"==isChange){//内容有更改
//提示是否保存前面的操作
if(confirm("是否保存当前数据?")){
document.getElementById(id).contentWindow.save();
isRedirect = false;//当选择确认保存后 留在当前页面
}else{
$("#isChange").val("0");//保存完毕后把是否已修改还原成未修改
}
}
document.getElementById(id).src = srcStr;
}
function goback(){
var backSteps = $("#backSteps").val();
history.go(-parseInt(backSteps));
}
function publishProcess(url){
postAjax(url,'发布成功!',false,true);
}
</script>
</head>
<body>
<div class="main-container" id="main-container">
<div class="panel-heading"
style="color: #FFF; background-color: #428BCA; border-color: #428BCA;">
<span style="font-size: 14px;">环节名称:${activity.activityDefName}</span>
</div>
<div class="row" style="margin-right: 0;">
<div class="col-xs-12">
<div class="tabbable">
<input type="hidden" id="isChange" value="0" />
<ul class="nav nav-tabs padding-12 tab-color-blue background-blue"
id="myTab3">
<li class="active"><a id="UserContract" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/activityInfo/edit.do?activityDefId=${activity.activityDefId}&processDefId=${activity.processDefId }&sys=${sys}');"
href="" target="frmrightChild">基础配置</a></li>
<li><a id="UserEducation" href="" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/actInfo/setActResource/list.do?actId=${activity.activityDefId}&procDefId=${activity.processDefId}')"
target="frmrightChild">环节人员</a></li>
<li><a id="NoticeRemind" href="" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/actInfo/sequenceFlow/list.do?actId=${activity.activityDefId}&procDefId=${activity.processDefId}')"
target="frmrightChild">环节输出</a></li>
<li><a id="UserEducation" href="" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/dataObjectRelation/activityList.do?activityDefId=${activity.activityDefId}&processDefId=${activity.processDefId}')"
target="frmrightChild">环节扩展属性</a></li>
</ul>
<div class="tab-content" style="width: 100%; height: 100%;">
<IFRAME style="width: 100%; height: 800px;" scrolling="no" src="${ctx}/activityInfo/edit.do?activityDefId=${activity.activityDefId}&processDefId=${activity.processDefId }&sys=${sys}"
frameBorder="0" id="frmrightChild" name="frmrightChild"
onload="iframeHeight('frmrightChild')" allowTransparency="true"></IFRAME>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,148 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>流程操作权限配置</title>
<script>
$(function(){
var demo=$("#myform").Validform({tiptype:4, ajaxPost:true,
callback:function(data){
alert(data.responseText);
if(data.responseText == '创建成功'){
window.location='${ctx}/actInfo/activityOperatePower/list.do';
}
}});
$("#submitButton").click(function() {
demo.ajaxPost();
return false;
});
})
function changeFunc() {
var selOpScopeVals = "";
var opScopeVal = "";
selOpScopeVals = $("#opScopeSel").val();
if (selOpScopeVals == "点击进行多选") {
selOpScopeVals = "";
}
if (selOpScopeVals != "") {
for (var i = 0; i < selOpScopeVals.length; i++) {
if (i == 0) {
opScopeVal += ";" + selOpScopeVals[i] + ";";
} else {
opScopeVal += selOpScopeVals[i] + ";";
}
}
}
$("#opScope").val(opScopeVal);
}
</script>
</head>
<body class="white-page">
<form method="post" id="myform" action="${ctx}/actInfo/activityOperatePower/save.do">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放表单的区域 -->
<tr>
<td>环节权限ID<font color="red">*</font>
</td>
<td><input type="text" id="opId" name="opId" value=""
datatype="*" nullmsg="请输入环节权限ID"
/></td>
</tr>
<tr>
<td>环节权限名称<font color="red">*</font>
</td>
<td><input type="text" name="opName" value="" id="opName"
style="width: 400px"
datatype="*" nullmsg="请输入环节权限名称"/></td>
</tr>
<tr style="display: none">
<td>环节权限控制处理器:</td>
<td><input type="text" name="opClassPatd" value=""
id="opClassPatd" style="width: 400px" /></td>
</tr>
<tr>
<td>环节权限类型<font color="red">*</font>
</td>
<td><select id="opType" name="opType" style="widtd: 300px" datatype="*" nullmsg="请选择环节权限类型">
<c:forEach items="${activityOperatePower.opTypeMap}"
var="item">
<option value="${item.key }">${item.value}</option>
</c:forEach>
</select></td>
</tr>
<tr>
<td>环节权限范围:</td>
<td><select onchange="changeFunc()" id="opScopeSel"
name="opScopeSel" autoWidth="true" style="width: 250px;"
multiple>
<c:forEach items="${activityOperatePower.opScopeMap}"
var="item">
<option ${item.key=='0'?'rel=exclusive':''}
value="${item.key }">${item.value}</option>
</c:forEach>
</select> <input type="hidden" id="opScope" name="opScope" value="" /></td>
</tr>
<tr style="display: none">
<td>环节权限父ID</td>
<td><input type="text" name="opParentId" value=""
id="opParentId" /></td>
</tr>
<tr>
<td>环节权限排序:</td>
<td><input type="text" name="opSort" value="" id="opSort" /></td>
</tr>
<tr>
<td>默认是否与环节绑定:</td>
<td><select id="opDefaultBind" name="opDefaultBind"
style="widtd: 300px">
<option value="">--请选择--</option>
<c:forEach items="${activityOperatePower.opDefaultBindMap}"
var="item">
<option value="${item.key }">${item.value}</option>
</c:forEach>
</select></td>
</tr>
<tr>
<td>备注:</td>
<td><textarea rows="" cols="" name="opRemark" value=""
id="opRemark"></textarea></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button id="submitButton" class="btn btn-sm btn-primary"
name="submitButton" type="button">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" class="btn btn-sm btn-primary"
onclick="window.location='${ctx}/actInfo/activityOperatePower/list.do'">
<span class="icon_back">返回<i class="ace-icon fa fa-arrow-left"></i></span>
</button>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,131 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>流程操作权限编辑</title>
<script>
function changeFunc(){
var selOpScopeVals="";
var opScopeVal="";
selOpScopeVals=$("#opScopeSel").val();
if(selOpScopeVals=="点击进行多选"){
selOpScopeVals="";
}
if(selOpScopeVals!=""){
for(var i=0;i<selOpScopeVals.length;i++){
if(i==0){
opScopeVal+=";"+selOpScopeVals[i]+";";
}else{
opScopeVal+=selOpScopeVals[i]+";";
}
}
}
$("#opScope").val(opScopeVal);
}
</script>
</head>
<body class="white-page">
<form action="${ctx}/actInfo/activityOperatePower/update.do" method="post">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<!-- 存放表单的区域 -->
<tr>
<td>环节权限ID<font color="red">*</font>
</td>
<td><input type="text" id="opId" name="opId" readonly="readonly" value="${activityOperatePower.opId}" />
</td>
</tr>
<tr>
<td>环节权限名称<font color="red">*</font>
</td>
<td><input type="text" name="opName"
value="${activityOperatePower.opName}" id="opName" style="width: 400px"/></td>
</tr>
<tr style="display: none">
<td>环节权限控制处理器:</td>
<td><input type="text" name="opClassPath"
value="${activityOperatePower.opClassPath}" id="opClassPath"
style="width: 400px"/></td>
</tr>
<tr>
<td>环节权限类型<font color="red">*</font>
</td>
<td><select id="opType" name="opType" style="width: 300px">
<c:forEach items="${activityOperatePower.opTypeMap}" var="item">
<option ${activityOperatePower.opType== item.key?"selected":""} value="${item.key }">${item.value}</option>
</c:forEach>
</select></td>
</tr>
<tr>
<td>环节权限范围<font color="red">*</font></td>
<td>
<select onchange="changeFunc()" id="opScopeSel" name="opScopeSel" autoWidth="true" style="width:250px;" multiple>
<c:forEach items="${activityOperatePower.opScopeMap}" var="item">
<option ${item.key=='0'?'rel=exclusive':''} ${fn:indexOf(activityOperatePower.opScope, item.key)!=-1?"selected":""} value="${item.key }">${item.value}</option>
</c:forEach>
</select></td>
<input type="hidden" id="opScope" name="opScope" value="${activityOperatePower.opScope }"/>
</tr>
<tr style="display: none">
<td>环节权限父ID</td>
<td><input type="text" name="opParentId"
value="${activityOperatePower.opParentId}" id="opParentId"
/></td>
</tr>
<tr>
<td>环节权限排序:</td>
<td><input type="text" name="opSort"
value="${activityOperatePower.opSort}" id="opSort" /></td>
</tr>
<tr>
<td>默认是否与环节绑定:</td>
<td>
<select id="opDefaultBind" name="opDefaultBind" style="width: 300px">
<c:forEach items="${activityOperatePower.opDefaultBindMap}" var="item">
<option ${activityOperatePower.opDefaultBind== item.key?"selected":""} value="${item.key }">${item.value}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td>备注:</td>
<td><textarea rows="" cols="" name="opRemark" value="${activityOperatePower.opRemark}" id="opRemark"></textarea></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button id="submitButton" class="btn btn-sm btn-primary" name="submitButton" type="submit">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" class="btn btn-sm btn-primary"
onclick="window.location='${ctx}/actInfo/activityOperatePower/list.do'">
<span class="icon_back">返回</span>
<i class="ace-icon fa fa-arrow-left"></i>
</button>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,176 @@
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@page import="com.blueland.bpm.common.util.*" %>
<%@page import="java.util.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp" %>
<base href="<%=basePath%>">
<title>流程操作权限配置表管理</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript" >
$(document).ready(function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm','${page.thisPageNumber}','${page.pageSize}','${pageRequest.sortColumns}');
});
function bindPower(myUrl){
if (!hasOneChecked("opIds")) {
alert('请选择要操作的对象!');
return;
}
jQuery.ajax({
url: myUrl,
data: $('#queryForm',document).serialize(),
type: "POST",
success: function(resp)
{
alert(resp);
art.dialog.opener.location.reload();
}
});
}
</script>
</head>
<body class="white-page">
<%@ include file="/commons/messages.jsp" %>
<form id="queryForm" name="queryForm" action="${ctx}/actInfo/activityOperatePower/list.do" method="get" style="display: inline;">
<input name="activityDefId" id="activityDefId" value="${activityInfoConfig.activityDefId}" type="hidden" />
<input name="processDefId" id="processDefId" value="${activityInfoConfig.processDefId}" type="hidden" />
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<div class="form-group well well-sm">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td>名称:</td>
<td>
<input class="input" value="${query.opName}" id="opName" name="opName" maxlength="50" />
</td>
<td>类型:</td>
<td>
<select id="opType" name="opType">
<option value="">--请选择--</option>
<c:forEach items="${query.opTypeMap}" var="item">
<option ${query.opType== item.key?"selected":""} value="${item.key }">${item.value}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td>范围:</td>
<td>
<select id="opScope" name="opScope">
<option value="">--请选择--</option>
<c:forEach items="${query.opScopeMap}" var="item">
<option ${query.opScope== item.key?"selected":""} value="${item.key }">${item.value}</option>
</c:forEach>
</select>
</td>
<td>是否默认绑定:</td>
<td>
<select id="opDefaultBind" name="opDefaultBind">
<option value="">--请选择--</option>
<c:forEach items="${query.opDefaultBindMap}" var="item">
<option ${query.opDefaultBind== item.key?"selected":""} value="${item.key }">${item.value}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td colspan="7">
<button type="button" onclick="bindPower('${ctx}/activityInfo/addActOperatePower.do');" class="btn btn-xs btn-success">
绑&nbsp;&nbsp;定<i class="ace-icon fa fa-chain bigger-110"></i></span>
</button>
<button type="submit" onclick="getReferenceForm(this).action='${ctx}/actInfo/activityOperatePower/list.do'" class="btn btn-xs btn-primary">
<span class="icon_find">查&nbsp;&nbsp;询<i class="ace-icon fa fa-search bigger-110"></i></span>
</button>
<button type="submit" onclick="getReferenceForm(this).action='${ctx}/actInfo/activityOperatePower/create.do'" class="btn btn-xs btn-success">
新&nbsp;&nbsp;增<i class="ace-icon fa fa-plus bigger-110"></i></span>
</button>
<button type="button" onclick="batchDelete('${ctx}/actInfo/activityOperatePower/delete.do','opIds',document.forms.queryForm)" class="btn btn-xs btn-danger">
删&nbsp;&nbsp;除<i class="ace-icon fa fa-trash-o bigger-110"></i>
</button>
<button onclick="art.dialog.close();" type="button" class="btn btn-xs btn-primary">
关&nbsp;&nbsp;闭<i class="ace-icon fa fa-times bigger-110"></i>
</button>
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width:25px;"><input type="checkbox" onclick="setAllCheckboxState('opIds',this.checked)"></th>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th width="100px" >名称</th>
<th width="100px" >类型</th>
<th width="100px" >范围</th>
<!-- <th>控制处理器</th>-->
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td>
<c:if test='${item.tenantId != null }'>
<input type="checkbox" name="opIds" value="${item.opId}">&nbsp;
</c:if>
</td>
<td>
<c:if test="${item.tenantId == null }">
<c:out value='${item.opName }'/>
</c:if>
<c:if test='${item.tenantId != null }'>
<a href="${ctx}/actInfo/activityOperatePower/edit.do?opId=${item.opId}&">${item.opName}</a>&nbsp;
</c:if>
</td>
<td><c:out value='${item.opTypeVal}'/>&nbsp;</td>
<td><c:out value='${item.opScopeVal}'/>&nbsp;</td>
<!-- <td><c:out value='${item.opClassPath}'/>&nbsp;</td> -->
</tr>
</c:forEach>
</tbody>
</table>
<simpletable:pageToolbar page="${page}">
</simpletable:pageToolbar>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,137 @@
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.util.*" %>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>流程操作权限配置表管理</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script>
$(document).ready(function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm',${page.thisPageNumber},${page.pageSize},'${pageRequest.sortColumns}');
});
</script>
</head>
<body class="white-page">
<%@ include file="/commons/messages.jsp"%>
<div id="scrollContent" class="border_gray">
<form id="queryForm" name="queryForm"
action="${ctx}/activityInfo/actOperatePowerList.do"
method="get" style="display: inline;">
<input name="activityDefId" id="activityDefId"
value="${query.activityDefId}" type="hidden" /> <input
name="processDefId" id="processDefId" value="${query.processDefId}"
type="hidden" />
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<div class="form-group well well-sm" style="margin: 0 0 5px 10px !important;padding: 0 !important;">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search form-table">
<tr>
<td colspan="7">
<button type="button"
onclick="showDiaLog('${ctx}/actInfo/activityOperatePower/list.do?activityDefId=${query.activityDefId}&processDefId=${query.processDefId}','绑定环节权限','900px','600px');" class="btn btn-xs btn-success">
绑&nbsp;&nbsp;定
<i class="ace-icon fa fa-chain bigger-110"></i>
</button>
<button type="button"
onclick="removePower('${ctx}/activityInfo/removeActOperatePower.do')" class="btn btn-xs btn-danger">
删&nbsp;&nbsp;除
<i class="ace-icon fa fa-trash-o bigger-110"></i>
</button>
<button onclick="art.dialog.close();" type="button"
class="btn btn-xs btn-primary">
关&nbsp;&nbsp;闭
<i class="ace-icon fa fa-times bigger-110"></i>
</button>
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive" style="padding: 0 !important;margin: 0 0 0 10px !important;">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width: 25px;"><input type="checkbox"
onclick="setAllCheckboxState('opIds',this.checked)"></th>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th sortColumn="opName">权限名称</th>
<th sortColumn="opType">权限类型</th>
<th sortColumn="opSort">权限排序</th>
<th sortColumn="opScope">权限范围</th>
<!-- <th sortColumn="opClassPath">权限控制处理器</th> -->
</tr>
</thead>
<tbody>
<c:forEach items="${activityOperatePowerList}" var="item"
varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="checkbox" name="opIds" value="${item.opId}"></td>
<td><c:out value='${item.opName}' />&nbsp;</td>
<td><c:out value='${item.opTypeVal}' />&nbsp;</td>
<td><c:out value='${item.opSort}' />&nbsp;</td>
<td><c:out value='${item.opScopeVal}' />&nbsp;</td>
<!--<td><c:out value='${item.opClassPath}' />&nbsp;</td> -->
</tr>
</c:forEach>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>
<script>
function removePower(myUrl){
if (!hasOneChecked("opIds")) {
alert('请选择要操作的对象!');
return;
}
jQuery.ajax({
url: myUrl,
data: $('#queryForm',document).serialize(),
type: "POST",
success: function(resp)
{
alert(resp);
window.location.reload();
}
});
}
</script>

View File

@@ -0,0 +1,344 @@
<%@page
import="com.blueland.bpm.engine.core.model.ProcessDefinitionModel"%>
<%@page import="com.blueland.bpm.engine.config.model.ProcessInfoConfig"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>环节配置</title>
<%@ include file="/commons/meta.jsp"%>
<link rel="stylesheet" href="${ctx}/resource/js/plugins/bpmn/css/diagram-js.css" />
</head>
<body class="white-page">
<div class="main-container" id="main-container">
<input type="hidden" id="processDefId" name ="processDefId" value="${query.processDefId}"/>
<div class="canvas">
<div id="js-canvas"></div>
</div>
</div>
<!-- viewer -->
<script type='text/javascript'src="${ctx}/resource/js/plugins/bpmn/bpmn-navigated-viewer.development.js"></script>
<script type="text/javascript">
var height1 = window.parent.document.documentElement.clientHeight;
var windowHeight = (parseInt(height1)-200)
var viewer = new BpmnJS({
container: document.querySelector('#js-canvas'),
height: windowHeight
});
var procDefId,
processTrace,
processDetailLogs;
var arrayActId=[];
var typeList = ["bpmn:Process","bpmn:SubProcess","label","bpmn:SequenceFlow"]
$(function(){
procDefId = $("#processDefId").val();
getXmlContent()
})
//获取xml数据
function getXmlContent(){
var url="${ctx}/procDefModelMgr/showProcessXml.do";
$.ajax({
url : url,
data:{"procDefId":procDefId},
cache : false,
async : false,
type : "POST",
success : function (data){
createNewDiagram(data.bpmnXml);
}
});
}
function createNewDiagram (bpmnXmlStr) {
viewer.importXML(bpmnXmlStr, function (err) {
if (err) {
console.error(err)
}else{
var canvas = viewer.get('canvas');
canvas.zoom('fit-viewport');
appendHtml();
dealLine(canvas);
}
})
}
function hidenDiv(id){
document.getElementById(id).style="display:none";
document.querySelectorAll("[signDiv]").forEach(function(item) {
if(document.getElementById(item.id) !=null){//去掉所有的环节详细数据,防止页面延迟,没有消失显示的详情信息
document.getElementById(item.id).style="display:none";
}
});
}
function showLineDiv(id){
document.getElementById(id).style="display:block";
}
function hidenLineDiv(id){
document.getElementById(id).style="display:none";
document.querySelectorAll("[lineDiv]").forEach(function(item) {
if(document.getElementById(item.id) !=null){//去掉所有的环节详细数据,防止页面延迟,没有消失显示的详情信息
document.getElementById(item.id).style="display:none";
}
});
}
function showDiv(id){
document.getElementById(id).style="display:block";
}
//拼接环节详细信息
function appendHtml(){
var eventBus = viewer.get('eventBus');
var events = [
'element.hover',
'element.out',
];
var overlays = viewer.get('overlays');
events.forEach(function(event) {
eventBus.on(event, function(e) {
var thisNode=document.getElementById('div_'+e.element.id);
var id = e.element.id.split("_")[0];
var thisLinkNode=document.getElementById('line_'+id);
if(!typeList.includes(e.element.type)){
if(event=='element.hover'){
dealActHtml(overlays,event,e);
}
if(event=='element.out' && thisNode != null){
document.getElementById('div_'+e.element.id).style="display:none";
document.querySelectorAll("[signDiv]").forEach(function(item) {
if(document.getElementById(item.id) !=null){//去掉所有的环节详细数据,防止页面延迟,没有消失显示的详情信息
document.getElementById(item.id).style="display:none";
}
});
}
}else if(e.element.type =='label'){//处理输出线的名称
var listLine= viewer._getLineName.filter(function(item){//判断这个输出线是否是截取的输出线名称
return item.id == id;
})
if(listLine.length>0){
if(event=='element.hover'){
if(thisLinkNode!=null){
document.getElementById("line_"+id).style="display:block";
}else{
appendLineHtml(overlays,event,id);
}
}
}
if(event=='element.out'){
if(document.getElementById('line_'+id) !=null){//去掉输出线的显示
document.getElementById('line_'+id).style="display:none";
}
document.querySelectorAll("[lineDiv]").forEach(function(item) {
if(document.getElementById(item.id) !=null){//去掉所有的输出线显示
document.getElementById(item.id).style="display:none";
}
});
}
}
});
});
}
//环节信息
function dealActHtml(overlays,event,e){
var html = new Array();
var thisNode=document.getElementById('div_'+e.element.id);
var listAct= arrayActId.filter(function(item){//判断这个节点是否
return item == ('div_'+e.element.id);
})
if(listAct.length==0){
arrayActId.push('div_'+e.element.id);
}
if(listAct.length>0){
if(thisNode!=null){
document.getElementById('div_'+e.element.id).style="display:block";
}
return;
}
var id = e.element.id;
var oldtitle= e.element.name;
var type = e.element.type;
html.push('<div class="lchj-set" signDiv="flag" onmouseover="showDiv(\'div_'+e.element.id+'\')" onmouseleave="hidenDiv(\'div_'+e.element.id+'\')" id="div_'+e.element.id+'"><div class="box-head"><span class="title">'+oldtitle+'</span></div><div class="box-body">');
html.push("<ul class='actDetail_set'>");
if(type=="bpmn:ServiceTask"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/otherTask/editServiceTaskView.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'服务任务设置','980px','600px');\">服务任务设置</a></li>");
}else if(type=="bpmn:ScriptTask"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/otherTask/editScriptTaskView.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'脚本任务设置','980px','600px');\">脚本任务设置</a></li>");
}else if(type=='bpmn:ReceiveTask'){//接收任务
html.push("<li><a id='actDefInfo' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/edit.do?activityDefId="+id+"&processDefId=${query.processDefId }");
html.push("' ,'环节属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节属性设置</a></li>");
html.push("<li><a id='actSequenceFlow' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/sequenceFlow/list.do?actId="+id+"&procDefId=${query.processDefId}");
html.push("' ,'环节输出线设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节输出线设置</a></li>");
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/actOperatePowerList.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'环节操作权限设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节操作权限设置</a></li>");
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/dataObjectRelation/activityList.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'环节扩展属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节扩展属性设置</a></li>");
}else if(type=='bpmn:ManualTask'){//线下任务
html.push("<li><a id='actDefInfo' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/edit.do?activityDefId="+id+"&processDefId=${query.processDefId }");
html.push("' ,'环节属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节属性设置</a></li>");
}else if(type=="bpmn:CallActivity"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/otherTask/editCallActivityView.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'子流程设置','980px','600px');\">子流程设置</a></li>");
if(id!=""){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/procDefMgr/callactivityconfig.do?callActivityProcKey="+id+"&isSubProcess=1&sys=${appId}&mAppId=${mAppId}");
html.push("' ,'关联子流程设置','980px','600px');\">关联子流程设置</a></li>");
}
html.push("<li><a id='actSequenceFlow' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/sequenceFlow/list.do?actId="+id+"&procDefId=${query.processDefId}");
html.push("' ,'环节输出线设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节输出线设置</a></li>");
}else if(type=="bpmn:ExclusiveGateway"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/gateway/editGatewayByCd.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'条件网关','980px','600px');\">条件网关设置</a></li>");
}else if(type=="bpmn:InclusiveGateway"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/gateway/editGatewayByIc.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'包容网关','980px','600px');\">包容网关设置</a></li>");
}else if(type=="bpmn:ParallelGateway"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/gateway/editGatewayByIc.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'并行网关','980px','600px');\">并行网关设置</a></li>");
}else{
html.push("<li><a id='actDefInfo' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/edit.do?activityDefId="+id+"&processDefId=${query.processDefId }&sys=${appId}&mAppId=${mAppId}");
html.push("' ,'环节属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节属性设置</a></li>");
html.push("<li><a id='actDefUser' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/setActResource/list.do?actId="+id+"&procDefId=${query.processDefId}");
html.push("' ,'环节人员设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节人员设置</a></li>");
html.push("<li><a id='actSequenceFlow' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/sequenceFlow/list.do?actId="+id+"&procDefId=${query.processDefId}");
html.push("' ,'环节输出线设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节输出线设置</a></li>");
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/actOperatePowerList.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'环节操作权限设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节操作权限设置</a></li>");
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/dataObjectRelation/activityList.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'环节扩展属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节扩展属性设置</a></li>");
<%-- html.push("<li><a id='actDefRoelOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("<%=MyContants.KSKF_PAHT%>"+"/dev-plateform-web/#/roleFormField?formId=${formId}&procDefKey=${procDefKey}&appId=${appId}&actDefId="+id+"&formCode=${formCode}&modelId=${modelId}&processDefId=${query.processDefId}");
html.push("' ,'环节表单设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节表单设置</a></li>"); --%>
if(e.element.isMulti==true){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/activityFinishRule/create.do?sourceActId="+id+"&procDefId=${query.processDefId}&sourceActName=" + oldtitle);
html.push("' ,'环节完成条件设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节完成条件设置</a></li>");
}
}
html.push('</ul></div>');
var content = html.join('');
if(event=='element.hover'){
overlays.add(e.element.id, 'note', {
position: {
bottom: 0,
right: 0
},
html: content
});
}
}
function appendLineHtml(overlays,event,id){//拼写输出线名称
var html = new Array();
var hash = {};//数组去重
var lineList = viewer._getLineName.reduce(function(item, next) {
hash[next.id] ? '' : hash[next.id] = true && item.push(next);
return item;
}, []);
var thisNode=document.getElementById('line_'+id);
var list= lineList.filter(function(item){//判断这个输出线是否是截取的输出线名称
return item.id == id;
})
var listAct= arrayActId.filter(function(item){//判断这个节点是否
return item == id;
})
if(listAct.length==0){
arrayActId.push('line_'+id);
}
if(thisNode!=null && listAct.length==0){
document.getElementById('line_'+id).style="display:block";
return;
}
html.push('<div class="lchj-box" lineDiv="flag" onmouseover="showLineDiv(\'line_'+id+'\')" onmouseleave="hidenLineDiv(\'line_'+id+'\')" id="line_'+list[0].id+'"><div class="box-body">'+list[0].name);
html.push('</div></div>');
var content = html.join('');
//alert(list[0].name)
if(event=='element.hover'){
overlays.add(id, {
position: {
bottom: 0,
right: 0
},
html: content
});
}
}
//处理线的名称样式
function dealLine(canvas){
var hash = {};//数组去重
var lineList = viewer._getLineId.reduce(function(item, next) {
hash[next] ? '' : hash[next] = true && item.push(next);
return item;
}, []);
var colorClass = "highlight-label";
lineList.forEach(function(item){
canvas.addMarker(item+"_label", colorClass)
})
}
</script>
</body>
</html>

View File

@@ -0,0 +1,280 @@
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="com.blueland.bpm.manage.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节配置</title>
<style>
/* some elements used in demo only */
.spinner-preview {
width: 100px;
height: 100px;
text-align: center;
margin-top: 60px;
}
.dropdown-preview {
margin: 0 5px;
display: inline-block;
}
.dropdown-preview > .dropdown-menu {
display: block;
position: static;
margin-bottom: 5px;
}
</style>
<link href="${ctx }/resource/js/plugins/jquery.qtip.css" rel="stylesheet" type="text/css" media="screen" />
<script src="${ctx }/resource/js/plugins/easyTemplate.js" type="text/javascript"></script>
<script src="${ctx }/resource/js/plugins/jquery.qtip.js" type="text/javascript"></script>
<script type="text/javascript">
var defId ="";
var actDefId ="";
var deployId= "";
var menu;
//判断参数是否加载
var isOtherParamFrm=false;
var currentObj=null;
$(function (){
//setContainerHeightWidth();
$("div.flowNode").each(function(){
$(this).bind({mouseenter:function(){
currentObj=$(this);
}});
currentObj=$(this);
var nodeId =currentObj.attr('id');
var type=currentObj.attr("type"),title=currentObj.attr("title");
//alert(type);
var id=currentObj.attr("id"),oldtitle=currentObj.attr("oldtitle");
if(oldtitle=="null"){
oldtitle="(暂未设置名称)";
}else{
oldtitle=oldtitle.replace(/\"/g,"”");
}
var html=["<div class='dropdown dropdown-preview'><ul class='dropdown-menu dropdown-info dropdown-menu-right'>"];
if(type=="serviceTask"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/otherTask/editServiceTaskView.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'服务任务设置','980px','600px');\">服务任务设置</a></li>");
}else if(type=="scriptTask"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/otherTask/editScriptTaskView.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'脚本任务设置','980px','600px');\">脚本任务设置</a></li>");
}else if(type=='receiveTask'){//接收任务
html.push("<li><a id='actDefInfo' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/edit.do?activityDefId="+id+"&processDefId=${query.processDefId }");
html.push("' ,'环节属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节属性设置</a></li>");
html.push("<li><a id='actSequenceFlow' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/sequenceFlow/list.do?actId="+id+"&procDefId=${query.processDefId}");
html.push("' ,'环节输出线设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节输出线设置</a></li>");
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/actOperatePowerList.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'环节操作权限设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节操作权限设置</a></li>");
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/dataObjectRelation/activityList.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'环节扩展属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节扩展属性设置</a></li>");
}else if(type=='manualTask'){//线下任务
html.push("<li><a id='actDefInfo' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/edit.do?activityDefId="+id+"&processDefId=${query.processDefId }");
html.push("' ,'环节属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节属性设置</a></li>");
}else if(type=="callActivity"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/otherTask/editCallActivityView.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'子流程设置','980px','600px');\">子流程设置</a></li>");
var callActivityProcKey=currentObj.attr("callActivity");
if(callActivityProcKey!=""){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/procDefMgr/callactivityconfig.do?callActivityProcKey="+callActivityProcKey+"&isSubProcess=1&sys=${appId}&mAppId=${mAppId}");
html.push("' ,'关联子流程设置','980px','600px');\">关联子流程设置</a></li>");
}
html.push("<li><a id='actSequenceFlow' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/sequenceFlow/list.do?actId="+id+"&procDefId=${query.processDefId}");
html.push("' ,'环节输出线设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节输出线设置</a></li>");
}else if(type=="exclusiveGateway"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/gateway/editGatewayByCd.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'条件网关','980px','600px');\">条件网关设置</a></li>");
}else if(type=="inclusiveGateway"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/gateway/editGatewayByIc.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'包容网关','980px','600px');\">包容网关设置</a></li>");
}else if(type=="parallelGateway"){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/gateway/editGatewayByIc.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'并行网关','980px','600px');\">并行网关设置</a></li>");
}else{
html.push("<li><a id='actDefInfo' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/edit.do?activityDefId="+id+"&processDefId=${query.processDefId }&sys=${appId}&mAppId=${mAppId}");
html.push("' ,'环节属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节属性设置</a></li>");
html.push("<li><a id='actDefUser' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/setActResource/list.do?actId="+id+"&procDefId=${query.processDefId}");
html.push("' ,'环节人员设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节人员设置</a></li>");
html.push("<li><a id='actSequenceFlow' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/sequenceFlow/list.do?actId="+id+"&procDefId=${query.processDefId}");
html.push("' ,'环节输出线设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节输出线设置</a></li>");
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/activityInfo/actOperatePowerList.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'环节操作权限设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节操作权限设置</a></li>");
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/dataObjectRelation/activityList.do?activityDefId="+id+"&processDefId=${query.processDefId}");
html.push("' ,'环节扩展属性设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节扩展属性设置</a></li>");
<%-- html.push("<li><a id='actDefRoelOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("<%=MyContants.KSKF_PAHT%>"+"/dev-plateform-web/#/roleFormField?formId=${formId}&procDefKey=${procDefKey}&appId=${appId}&actDefId="+id+"&formCode=${formCode}&modelId=${modelId}&processDefId=${query.processDefId}");
html.push("' ,'环节表单设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节表单设置</a></li>"); --%>
if(currentObj.attr("isMulti") == 'true'){
html.push("<li><a id='actDefOperate' href='javascript:void(0)'");
html.push(" onclick=\"showDiaLog('");
html.push("${ctx}/actInfo/activityFinishRule/create.do?sourceActId="+id+"&procDefId=${query.processDefId}&sourceActName=" + oldtitle);
html.push("' ,'环节完成条件设置&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前环节->"+oldtitle+"','980px','600px');\">环节完成条件设置</a></li>");
}
}
html.push('</ul></div>');
//alert(html.join(''));
$(this).qtip({
content:{
text : function() {
if(type=="description"){
return getTaskDefinitionDescriptionHtml(nodeId);
}else{
return html.join('');
}
},
title:{
text:type=="description"?"环节输出线说明":oldtitle
}
},
position: {
at:'center',
target:'event',
adjust: {
x:-15,
y:-15
},
viewport: $(window)
},
show:{
effect: function(offset) {
$(this).slideDown(200);
}
},
hide: {
event:'click mouseleave',
leave: false,
fixed:true,
delay:300
},
style: {
width : type=="description"?270:180,
classes:'ui-tooltip-light ui-tooltip-shadow'
}
});
});
//调整父页面高度
var height = "${imageHeight}";
if(height>800){
$("#imgHeight",window.parent.document).val(parseInt(height)+80);
$("#imgdiv").height(parseInt(height)+78);
}else{
$("#imgdiv").height(800);
}
});
//显示输出线描述
function getTaskDefinitionDescriptionHtml(nodeId){
var html = new Array();
var procDefId="${query.processDefId }";
var url="${ctx}/actInfo/sequenceFlow/viewDescription.do";
$.ajax({
url : url,
data:{"procDefId":procDefId,"sequenceFlowId":nodeId},
cache : false,
async : false,
type : "POST",
success : function (data){
var sequenceFlow = eval(data.sequenceFlow);
html.push('<div class="panel-body"><div id="txtTaskDefHmtl1" style="max-height:310px;width=110px;overflow:auto;">');
html.push('<textarea rows="10" cols="30">');
html.push(sequenceFlow.name);
html.push('</textarea>');
html.push('</div>');
}
});
return html.join('');
};
</script>
<style type="text/css">
div.flowNode{cursor:pointer;}
</style>
</head>
<body>
<%@ include file="/commons/messages.jsp"%>
<form id="queryForm" name="queryForm"
action="${ctx}/activityInfo/list.do" method="get"
style="display: inline;">
<input name="processDefId" id="processDefId"
value="${query.processDefId }" type="hidden" />
<!-- <div class="panel panel-primary" style="width:${imageWidth+20}px; height:${imageHeight+30}px;"> -->
<div class="panel panel-primary" id="imgdiv" style="width:100%; min-height:800px; overflow: auto;">
<div class="panel-body" style="padding: 3px;">
<div style="padding-left: 30px; display: inline; float: left; margin:20px auto 0;position: relative;background:url('${ctx}/procDefMgr/resource.do?resourceType=image&procDefId=${query.processDefId }') no-repeat;width:${imageWidth+30}px; height:${imageHeight+30}px;">
${processDefinitionDiv}
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,187 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/codemirror.css">
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/eclipse.css">
<style>
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
height: 180px;
}
</style>
<script src="${ctx}/resource/js/plugins/codemirror/codemirror.js"></script>
<script src="${ctx}/resource/js/plugins/codemirror/clike.js"></script>
<base href="<%=basePath%>">
<title>流程环节规则表新增</title>
<script>
var demo;
var ischeck = true;
var javaEditor;
$(document).ready(function() {
javaEditor = CodeMirror.fromTextArea(document.getElementById("ruleScript"), {
lineNumbers: true,
matchBrackets: true,
//indentWithTabs: true,
// styleActiveLine: true,
theme:"eclipse",
// smartIndent: true,
// autofocus: true,
mode: "text/x-java"
});
demo = $("#myForm").Validform({
tiptype:function(msg,o,cssctl){
var b = true;
//msg提示信息;
//o:{obj:*,type:*,curform:*}, obj指向的是当前验证的表单元素或表单对象type指示提示的状态值为1、2、3、4 1正在检测/提交数据2通过验证3验证失败4提示ignore状态, curform为当前form对象;
//cssctl:内置的提示信息样式控制函数,该函数需传入两个参数:显示提示信息的对象 和 当前提示的状态既形参o中的type;
if(o.type==3){
if(msg.indexOf("statusText")<0){
//排除掉提交完成后返回的状态字符串
alert(msg);
ischeck = false;
b = false;
return b;
}
}
return b;
},
ajaxPost:true,
beforeSubmit:function(curform){
return false;
}
});
});
function editActivityRule(ruleId){
var url="${ctx}/actInfo/activityFinishRule/getActivityRule.do?ruleId="+ruleId;
$.post(url,function(result){
var jsonObject = eval(result);
$.each(jsonObject, function(name, value) {
if(name=="ruleScript"){
javaEditor.setValue(value);
}else{
var inputObj=$("#"+name);
if(inputObj.attr("type")!="hidden"||name=="ruleId"){
inputObj.val(value);
}
}
});
});
}
function update(){
if($("#ruleId").val()==""){
alert("该规则没有在数据库中,请点击规则列表后再进行更新!");
return;
}
var ruleScript = javaEditor.getValue();
if(""==ruleScript){
alert("验证脚本不能为空!");
return ;
}
demo.ajaxPost();
if(ischeck){//如果通过验证
document.getElementById("myForm").action="${ctx}/actInfo/activityFinishRule/update.do";
document.getElementById("myForm").submit();
}
}
function create(){
var ruleScript = javaEditor.getValue();
if(""==ruleScript){
alert("验证脚本不能为空!");
return ;
}
demo.ajaxPost();
if(ischeck){//如果通过验证
document.getElementById("myForm").action="${ctx}/actInfo/activityFinishRule/save.do";
document.getElementById("myForm").submit();
}
}
function validate(){
var ruleScript=javaEditor.getValue();;
if(ruleScript==""){
alert("规则脚本不允许为空,请您重新输入!");
return ;
}
var url="${ctx}/actInfo/activityFinishRule/validate.do?ruleScript="+ruleScript;
showDiaLog(url,'验证规则脚本','600px','300px');
}
</script>
</head>
<body class="white-page">
<form id="myForm" action="${ctx}/actInfo/activityFinishRule/save.do" method="post">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<div class="well well-sm">
<button id="addButton" name="submitButton" type="button" onclick="create();" class="btn btn-xs btn-success">
新 增
<i class="ace-icon fa fa-plus bigger-110"></i>
</button>
<button id="updateButton" name="submitButton" type="button" onclick="update();" class="btn btn-xs btn-success">
更 新
<i class="ace-icon fa fa-pencil bigger-110"></i>
</button>
<button type="button" onclick="art.dialog.close();" class="btn btn-xs btn-danger">
关 闭
<i class="ace-icon fa fa-times bigger-110"></i>
</button>
</div>
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<input type="hidden" name="ruleType" value="${activityRule.ruleType}" id="ruleType"/>
<input type="hidden" name="ruleId" value="${activityRule.ruleId}" id="ruleId"/>
<input type="hidden" name="procDefId" value="${activityRule.procDefId}" id="procDefId"/>
<input type="hidden" name="sourceActId" value="${activityRule.sourceActId}" id="sourceActId"/>
<input type="hidden" name="sourceActName" value="${activityRule.sourceActName}" id="sourceActName"/>
<input type="hidden" name="targetActId" value="${activityRule.targetActId}" id="targetActId"/>
<input type="hidden" name="targetActName" value="${activityRule.targetActName}" id="targetActName"/>
<!-- 存放表单的区域 -->
<tr>
<td>当前环节<font color="red">*</font></td>
<td colspan="3">${activityRule.sourceActName}</td>
</tr>
<tr>
<td>规则名称<font color="red">*</font></td>
<td colspan="3"><input style="width: 250px" type="text" name="ruleName" value="${activityRule.ruleName}" id="ruleName"
nullmsg="请填写规则名称" datatype="*"/></td>
</tr>
<tr>
<td>规则脚本<font color="red">*</font></td>
<td colspan="3">
<!-- <a href="javascript:void(0);" onclick="">常用脚本</a>&nbsp;&nbsp;-->
<a href="javascript:void(0);" onclick="validate();">验证脚本</a>
<br/>
<textarea name="ruleScript" id="ruleScript" style="width: 700px;height: 50px">${activityRule.ruleScript}</textarea>
<br/>
环节跳转规则通过groovy脚本定义流程转向开发人员通过控制脚本返回一个布尔值返回值为true时流程将流向目标环节。
</td>
</tr>
<tr>
<td>规则描述:</td>
<td colspan="3"><textarea style="width: 700px;height: 50px" name="ruleRemark" id="ruleRemark">${activityRule.ruleRemark}</textarea></td>
</tr>
</table>
<IFRAME style="width:100%;height:180px;" scrolling="auto" src="${ctx}/actInfo/activityFinishRule/list.do?procDefId=${activityRule.procDefId}&sourceActId=${activityRule.sourceActId}&targetActId=${activityRule.targetActId}" frameBorder="0" id="rightFrame" name="rightFrame" allowTransparency="true"></IFRAME>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,60 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>流程环节规则表编辑</title>
</head>
<body class="white-page">
<div class="box2" panelTitle="更新流程环节规则表" showStatus="false" roller="true">
<form action="${ctx}/actInfo/activityFinishRule/update.do" method="post">
<button id="submitButton" name="submitButton" type="button" onclick="javascript:getReferenceForm(this).submit();">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" onclick="window.location='${ctx}/actInfo/activityFinishRule/list.do'">
<span class="icon_back">返回</span>
</button>
<table class="tableStyle form-table" formMode="true" footer="normal">
<!-- 存放隐藏域的区域 -->
<input type="hidden" id="ruleId" name="ruleId" value="${activityRule.ruleId}" />
<!-- 存放表单的区域 -->
<tr>
<td>环节规则名称<font color="red">*</font></td>
<td><input type="text" name="ruleName" value="${activityRule.ruleName}" id="ruleName" /></td>
</tr>
<tr>
<td>流程定义ID<font color="red">*</font></td>
<td><input type="text" name="procDefId" value="${activityRule.procDefId}" id="procDefId" /></td>
</tr>
<tr>
<td>源环节ID<font color="red">*</font></td>
<td><input type="text" name="sourceActId" value="${activityRule.sourceActId}" id="sourceActId" /></td>
</tr>
<tr>
<td>目标环节ID<font color="red">*</font></td>
<td><input type="text" name="targetActId" value="${activityRule.targetActId}" id="targetActId" /></td>
</tr>
<tr>
<td>环节规则脚本<font color="red">*</font></td>
<td><input type="text" name="ruleScript" value="${activityRule.ruleScript}" id="ruleScript" /></td>
</tr>
<tr>
<td>环节规则优先级:</td>
<td><input type="text" name="rulePriority" value="${activityRule.rulePriority}" id="rulePriority" /></td>
</tr>
<tr>
<td>环节规则描述:</td>
<td><input type="text" name="ruleRemark" value="${activityRule.ruleRemark}" id="ruleRemark" /></td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,84 @@
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@page import="com.blueland.bpm.common.util.*" %>
<%@page import="java.util.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp" %>
<base href="<%=basePath%>">
<title>环节规则管理</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript" >
$(document).ready(function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm','${page.thisPageNumber}','${page.pageSize}','${pageRequest.sortColumns}');
});
function editActivityRule(ruleId){
parent.editActivityRule(ruleId);
}
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp" %>
<form id="queryForm" name="queryForm" action="${ctx}/actInfo/activityFinishRule/list.do" method="get" style="display: inline;">
<input type="hidden" name="procDefId" value="${query.procDefId}" id="procDefId"/>
<input type="hidden" name="sourceActId" value="${query.sourceActId}" id="sourceActId"/>
<input type="hidden" name="targetActId" value="${query.targetActId}" id="targetActId"/>
<input type="hidden" name="ruleType" value="${activityRule.ruleType}" id="ruleType"/>
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading">
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th style="width:125px;" sortColumn="ruleName" >规则名称</th>
<th sortColumn="ruleScript" >规则脚本</th>
<th style="width:125px;" sortColumn="ruleRemark" >规则描述</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><a href="javascript:void(0);" onclick="editActivityRule('${item.ruleId}');">${item.ruleName}</a></td>
<td>${item.ruleScript}&nbsp; </td>
<td>${item.ruleRemark}&nbsp; </td>
<td>
<a href="${ctx}/actInfo/activityFinishRule/delete.do?ruleId=${item.ruleId}&">删除</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,44 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/codemirror.css">
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/eclipse.css">
<script src="${ctx}/resource/js/plugins/codemirror/codemirror.js"></script>
<script src="${ctx}/resource/js/plugins/codemirror/clike.js"></script>
<base href="<%=basePath%>">
<title>流程环节规则表新增</title>
</head>
<body>
<form id="myForm" action="${ctx}/actInfo/activityFinishRule/save.do" method="post">
<!-- <button type="button" onclick="art.dialog.close();">
<span class="icon_back">关闭</span>
</button> -->
<table class="tableStyle" formMode="true" footer="normal" style="width: 100%;">
<tr>
<td>结果值:</td>
<td>${ruleScriptValue}</td>
</tr>
<tr>
<td width="20%">结果值类型:</td>
<td>${ruleScriptValueType}</td>
</tr>
<tr>
<td>验证结果:</td>
<td>${validateMsg}</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,182 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/codemirror.css">
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/eclipse.css">
<style>
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
height: 180px;
}
</style>
<script src="${ctx}/resource/js/plugins/codemirror/codemirror.js"></script>
<script src="${ctx}/resource/js/plugins/codemirror/clike.js"></script>
<base href="<%=basePath%>">
<title>流程环节规则表新增</title>
<script>
var demo;
var ischeck = true;
var javaEditor;
$(document).ready(function() {
javaEditor = CodeMirror.fromTextArea(document.getElementById("ruleScript"), {
lineNumbers: true,
matchBrackets: true,
//indentWithTabs: true,
// styleActiveLine: true,
theme:"eclipse",
// smartIndent: true,
// autofocus: true,
mode: "text/x-java"
});
$.Tipmsg.r=null;
$("#myForm").Validform({
tiptype:function(msg){
alert(msg);//验证提示信息
},
tipSweep:true,
btnSubmit:"#addButton",
callback:function(form){
var ruleScript = javaEditor.getValue();
if(""==ruleScript){
alert("验证脚本不能为空!");
return false;
}
document.getElementById("myForm").action="${ctx}/actInfo/activityResourceRule/save.do";
return true;
}
});
});
function editActivityRule(ruleId){
var url="${ctx}/actInfo/activityResourceRule/getActivityRule.do?ruleId="+ruleId;
$.post(url,function(result){
var jsonObject = eval(result);
$.each(jsonObject, function(name, value) {
if(name=="ruleScript"){
javaEditor.setValue(value);
}else{
var inputObj=$("#"+name);
if(inputObj.attr("type")!="hidden"||name=="ruleId"){
inputObj.val(value);
}
}
});
});
}
function update(){
if($("#ruleId").val()==""){
alert("该规则没有在数据库中,请点击规则列表后再进行更新!");
return;
}
var ruleName = $("#ruleName").val();
if(""==ruleName){
alert("请填写规则名称!");
return ;
}
var ruleScript = javaEditor.getValue();
if(""==ruleScript){
alert("验证脚本不能为空!");
return ;
}
document.getElementById("myForm").action="${ctx}/actInfo/activityResourceRule/update.do";
document.getElementById("myForm").submit();
}
function validate(){
var ruleScript=javaEditor.getValue();;
if(ruleScript==""){
alert("规则脚本不允许为空,请您重新输入!");
return ;
}
var url="${ctx}/actInfo/activityResourceRule/validate.do?ruleScript="+ruleScript;
showDiaLog(url,'验证规则脚本','600px','300px');
}
function describe(){
window.open("${ctx}/commons/bpm_script_info.html")
}
</script>
</head>
<body class="white-page">
<form id="myForm" action="${ctx}/actInfo/activityResourceRule/save.do" method="post">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<div class="well well-sm">
<button id="addButton" name="submitButton" type="button" class="btn btn-xs btn-success">
新 增
<i class="ace-icon fa fa-plus bigger-110"></i>
</button>
<button id="submitButton" name="submitButton" type="button" onclick="update();" class="btn btn-xs btn-success">
更 新
<i class="ace-icon fa fa-pencil bigger-110"></i>
</button>
<button type="button" onclick="art.dialog.close();" class="btn btn-xs btn-danger">
关 闭
<i class="ace-icon fa fa-times bigger-110"></i>
</button>
</div>
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<input type="hidden" name="ruleType" value="${activityRule.ruleType}" id="ruleType"/>
<input type="hidden" name="ruleId" value="${activityRule.ruleId}" id="ruleId"/>
<input type="hidden" name="procDefId" value="${activityRule.procDefId}" id="procDefId"/>
<input type="hidden" name="sourceActId" value="${activityRule.sourceActId}" id="sourceActId"/>
<input type="hidden" name="sourceActName" value="${activityRule.sourceActName}" id="sourceActName"/>
<input type="hidden" name="targetActId" value="${activityRule.targetActId}" id="targetActId"/>
<input type="hidden" name="targetActName" value="${activityRule.targetActName}" id="targetActName"/>
<!-- 存放表单的区域 -->
<tr>
<td>当前环节<font color="red">*</font></td>
<td>${activityRule.sourceActName}</td>
<td width="135px">目标环节<font color="red">*</font></td>
<td>${activityRule.targetActName}</td>
</tr>
<tr>
<td>规则名称<font color="red">*</font></td>
<td colspan="3"><input style="width: 250px" type="text" name="ruleName"
value="${activityRule.ruleName}" id="ruleName"
nullmsg="请填写规则名称" datatype="*"/></td>
</tr>
<tr>
<td>规则脚本<font color="red">*</font></td>
<td colspan="3">
<!-- <a href="javascript:void(0);" onclick="">常用脚本</a>&nbsp;&nbsp; -->
<a href="javascript:void(0);" onclick="validate();">验证脚本</a>&nbsp;&nbsp;
<a href="javascript:void(0);" onclick="describe();">脚本说明</a>
<br/>
<textarea name="ruleScript" id="ruleScript" style="width: 700px;height: 50px">${activityRule.ruleScript}</textarea>
<br/>
环节人员规则通过groovy返回字符串来定义环节的处理人员列表。返回的人员格式包括人员ID和组织ID以井号分隔
</br>返回多人时人员之间以逗号分隔。返回的示例如下return "wugf1202#204300010999,liysh124#204300010599";
</td>
</tr>
<tr>
<td>规则描述:</td>
<td colspan="3"><textarea style="width: 700px;height: 50px" name="ruleRemark" id="ruleRemark">${activityRule.ruleRemark}</textarea></td>
</tr>
</table>
<IFRAME style="width:100%;height:180px;" scrolling="auto" src="${ctx}/actInfo/activityResourceRule/list.do?procDefId=${activityRule.procDefId}&sourceActId=${activityRule.sourceActId}&targetActId=${activityRule.targetActId}" frameBorder="0" id="rightFrame" name="rightFrame" allowTransparency="true"></IFRAME>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,60 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>流程环节规则表编辑</title>
</head>
<body class="white-page">
<div class="box2" panelTitle="更新流程环节规则表" showStatus="false" roller="true">
<form action="${ctx}/actInfo/activityResourceRule/update.do" method="post">
<button id="submitButton" name="submitButton" type="button" onclick="javascript:getReferenceForm(this).submit();">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" onclick="window.location='${ctx}/actInfo/activityResourceRule/list.do'">
<span class="icon_back">返回</span>
</button>
<table class="tableStyle form-table" formMode="true" footer="normal">
<!-- 存放隐藏域的区域 -->
<input type="hidden" id="ruleId" name="ruleId" value="${activityRule.ruleId}" />
<!-- 存放表单的区域 -->
<tr>
<td>环节规则名称<font color="red">*</font></td>
<td><input type="text" name="ruleName" value="${activityRule.ruleName}" id="ruleName" /></td>
</tr>
<tr>
<td>流程定义ID<font color="red">*</font></td>
<td><input type="text" name="procDefId" value="${activityRule.procDefId}" id="procDefId" /></td>
</tr>
<tr>
<td>源环节ID<font color="red">*</font></td>
<td><input type="text" name="sourceActId" value="${activityRule.sourceActId}" id="sourceActId" /></td>
</tr>
<tr>
<td>目标环节ID<font color="red">*</font></td>
<td><input type="text" name="targetActId" value="${activityRule.targetActId}" id="targetActId" /></td>
</tr>
<tr>
<td>环节规则脚本<font color="red">*</font></td>
<td><input type="text" name="ruleScript" value="${activityRule.ruleScript}" id="ruleScript" /></td>
</tr>
<tr>
<td>环节规则优先级:</td>
<td><input type="text" name="rulePriority" value="${activityRule.rulePriority}" id="rulePriority" /></td>
</tr>
<tr>
<td>环节规则描述:</td>
<td><input type="text" name="ruleRemark" value="${activityRule.ruleRemark}" id="ruleRemark" /></td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,84 @@
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@page import="com.blueland.bpm.common.util.*" %>
<%@page import="java.util.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp" %>
<base href="<%=basePath%>">
<title>环节规则管理</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript" >
$(document).ready(function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm','${page.thisPageNumber}','${page.pageSize}','${pageRequest.sortColumns}');
});
function editActivityRule(ruleId){
parent.editActivityRule(ruleId);
}
</script>
</head>
<body class="white-page">
<%@ include file="/commons/messages.jsp" %>
<form id="queryForm" name="queryForm" action="${ctx}/actInfo/activityResourceRule/list.do" method="get" style="display: inline;">
<input type="hidden" name="procDefId" value="${query.procDefId}" id="procDefId"/>
<input type="hidden" name="sourceActId" value="${query.sourceActId}" id="sourceActId"/>
<input type="hidden" name="targetActId" value="${query.targetActId}" id="targetActId"/>
<input type="hidden" name="ruleType" value="${activityRule.ruleType}" id="ruleType"/>
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading">
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover form-table">
<thead>
<tr>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th style="width:125px;" sortColumn="ruleName" >规则名称</th>
<th sortColumn="ruleScript" >规则脚本</th>
<th style="width:125px;" sortColumn="ruleRemark" >规则描述</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><a href="javascript:void(0);" onclick="editActivityRule('${item.ruleId}');">${item.ruleName}</a></td>
<td>${item.ruleScript}&nbsp; </td>
<td>${item.ruleRemark}&nbsp; </td>
<td>
<a href="${ctx}/actInfo/activityResourceRule/delete.do?ruleId=${item.ruleId}&">删除</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,45 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/codemirror.css">
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/eclipse.css">
<script src="${ctx}/resource/js/plugins/codemirror/codemirror.js"></script>
<script src="${ctx}/resource/js/plugins/codemirror/clike.js"></script>
<base href="<%=basePath%>">
<title>流程环节规则表新增</title>
</head>
<body>
<form id="myForm" action="${ctx}/actInfo/activityResourceRule/save.do" method="post">
<button type="button" onclick="art.dialog.close();">
<span class="icon_back">关闭</span>
</button>
<table class="tableStyle" formMode="true" footer="normal">
<tr>
<td>结果值:</td>
<td>${ruleScriptValue}</td>
</tr>
<tr>
<td width="20%">结果值类型:</td>
<td>${ruleScriptValueType}</td>
</tr>
<tr>
<td>验证结果:</td>
<td><div style="overflow-y:scroll;height:200px;">
${validateMsg}</div></td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,98 @@
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节规则管理</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css"
type="text/css" rel="stylesheet">
<script type="text/javascript"
src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript">
$(document).ready(
function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm',
'${page.thisPageNumber}', '${page.pageSize}',
'${pageRequest.sortColumns}');
});
function editActivityRule(ruleId) {
parent.editActivityRule(ruleId);
}
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp"%>
<form id="queryForm" name="queryForm"
action="${ctx}/actInfo/activityResourceRule/list.do" method="get"
style="display: inline;">
<input type="hidden" name="procDefId" value="${query.procDefId}"
id="procDefId" /> <input type="hidden" name="sourceActId"
value="${query.sourceActId}" id="sourceActId" /> <input type="hidden"
name="targetActId" value="${query.targetActId}" id="targetActId" /> <input
type="hidden" name="ruleType" value="${activityRule.ruleType}"
id="ruleType" />
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading"></div>
<div class="panel-body">
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<div style="width: 100%;overflow: auto;">
<table style=" width: inherit;max-width: 600%;table-layout: fixed;" id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th style="width: 230px;" sortColumn="ruleName">流程定义</th>
<th style="width: 225px;" sortColumn="ruleName">环节名称</th>
<th style="width: 125px;" sortColumn="ruleName">规则名称</th>
<th style="width: 125px;" sortColumn="ruleScript">规则脚本</th>
<th style="width: 125px;" sortColumn="ruleRemark">规则描述</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item"
varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td>${item.procDefId}</td>
<td>${item.sourceActId}-> ${targetActId}</td>
<td>${item.ruleName}</td>
<td>${item.ruleScript}&nbsp;</td>
<td>${item.ruleRemark}&nbsp;</td>
<td><a
href="${ctx}/actInfo/activityResourceRule/delete.do?ruleId=${item.ruleId}&">删除</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,179 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/codemirror.css">
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/eclipse.css">
<style>
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
height: 180px;
}
</style>
<script src="${ctx}/resource/js/plugins/codemirror/codemirror.js"></script>
<script src="${ctx}/resource/js/plugins/codemirror/clike.js"></script>
<base href="<%=basePath%>">
<title>流程环节规则表新增</title>
<script>
var demo;
var ischeck = true;
var javaEditor;
$(document).ready(function() {
javaEditor = CodeMirror.fromTextArea(document.getElementById("ruleScript"), {
lineNumbers: true,
matchBrackets: true,
theme:"eclipse",
mode: "text/x-java"
});
$.Tipmsg.r=null;
$("#myForm").Validform({
tiptype:function(msg){
alert(msg);//验证提示信息
},
tipSweep:true,
btnSubmit:"#addButton",
callback:function(form){
var ruleScript = javaEditor.getValue();
if(""==ruleScript){
alert("验证脚本不能为空!");
return false;
}
document.getElementById("myForm").action="${ctx}/actInfo/activityRule/save.do";
return true;
}
});
});
function editActivityRule(ruleId){
var url="${ctx}/actInfo/activityRule/getActivityRule.do?ruleId="+ruleId;
$.post(url,function(result){
var jsonObject = eval(result);
$.each(jsonObject, function(name, value) {
if(name=="ruleScript"){
javaEditor.setValue(value);
}else{
var inputObj=$("#"+name);
if(inputObj.attr("type")!="hidden"||name=="ruleId"){
inputObj.val(value);
}
}
});
});
}
function update(){
if($("#ruleId").val()==""){
alert("该规则没有在数据库中,请点击规则列表后再进行更新!");
return;
}
var ruleName = $("#ruleName").val();
if(""==ruleName){
alert("请填写规则名称!");
return ;
}
var ruleScript = javaEditor.getValue();
if(""==ruleScript){
alert("验证脚本不能为空!");
return ;
}
document.getElementById("myForm").action="${ctx}/actInfo/activityRule/update.do";
document.getElementById("myForm").submit();
}
function validate(){
var ruleScript=javaEditor.getValue();;
if(ruleScript==""){
alert("规则脚本不允许为空,请您重新输入!");
return ;
}
var url="${ctx}/actInfo/activityRule/validate.do?ruleScript="+ruleScript;
showDiaLog(url,'验证规则脚本','600px','300px');
}
function describe(){
window.open("${ctx}/commons/bpm_script_info.html")
}
</script>
</head>
<body class="white-page">
<form id="myForm" action="${ctx}/actInfo/activityRule/save.do" method="post">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<div class="well well-sm">
<button id="addButton" name="submitButton" type="button" class="btn btn-xs btn-success">
新 增
<i class="ace-icon fa fa-plus bigger-110"></i>
</button>
<button id="updateButton" name="submitButton" type="button" onclick="update();" class="btn btn-xs btn-success">
更 新
<i class="ace-icon fa fa-pencil bigger-110"></i>
</button>
<button type="button" onclick="art.dialog.close();" class="btn btn-xs btn-danger">
关 闭
<i class="ace-icon fa fa-times bigger-110"></i>
</button>
</div>
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<input type="hidden" name="ruleType" value="${activityRule.ruleType}" id="ruleType"/>
<input type="hidden" name="ruleId" value="${activityRule.ruleId}" id="ruleId"/>
<input type="hidden" name="procDefId" value="${activityRule.procDefId}" id="procDefId"/>
<input type="hidden" name="sourceActId" value="${activityRule.sourceActId}" id="sourceActId"/>
<input type="hidden" name="sourceActName" value="${activityRule.sourceActName}" id="sourceActName"/>
<input type="hidden" name="targetActId" value="${activityRule.targetActId}" id="targetActId"/>
<input type="hidden" name="targetActName" value="${activityRule.targetActName}" id="targetActName"/>
<!-- 存放表单的区域 -->
<tr>
<td>当前环节<font color="red">*</font></td>
<td>${activityRule.sourceActName}</td>
<td width="135px">目标环节<font color="red">*</font></td>
<td>${activityRule.targetActName}</td>
</tr>
<tr>
<td>规则名称<font color="red">*</font></td>
<td colspan="3"><input style="width: 250px" type="text" name="ruleName" value="${activityRule.ruleName}" id="ruleName"
nullmsg="请填写规则名称" datatype="*"/></td>
</tr>
<tr>
<td>规则脚本<font color="red">*</font></td>
<td colspan="3">
<!-- <a href="javascript:void(0);" onclick="">常用脚本</a>&nbsp;&nbsp;-->
<a href="javascript:void(0);" onclick="validate();">验证脚本</a>&nbsp;&nbsp;
<a href="javascript:void(0);" onclick="describe();">脚本说明</a>
<br/>
<textarea name="ruleScript" id="ruleScript" style="width: 700px;height: 50px">${activityRule.ruleScript}</textarea>
<br/>
环节跳转规则通过groovy脚本定义流程转向开发人员通过控制脚本返回一个布尔值返回值为true时流程将流向目标环节。
</td>
</tr>
<tr>
<td>规则描述:</td>
<td colspan="3"><textarea style="width: 700px;height: 50px" name="ruleRemark" id="ruleRemark">${activityRule.ruleRemark}</textarea></td>
</tr>
</table>
<IFRAME style="width:100%;height:180px;" scrolling="auto" src="${ctx}/actInfo/activityRule/list.do?procDefId=${activityRule.procDefId}&sourceActId=${activityRule.sourceActId}&targetActId=${activityRule.targetActId}" frameBorder="0" id="rightFrame" name="rightFrame" allowTransparency="true"></IFRAME>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,60 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>流程环节规则表编辑</title>
</head>
<body class="white-page">
<div class="box2" panelTitle="更新流程环节规则表" showStatus="false" roller="true">
<form action="${ctx}/actInfo/activityRule/update.do" method="post">
<button id="submitButton" name="submitButton" class="btn btn-sm btn-primary" type="button" onclick="javascript:getReferenceForm(this).submit();">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button class="btn btn-sm btn-primary" type="button" onclick="window.location='${ctx}/actInfo/activityRule/list.do'">
<span class="icon_back">返回</span>
</button>
<table class="tableStyle form-table" formMode="true" footer="normal" style="margin-top: 15px">
<!-- 存放隐藏域的区域 -->
<input type="hidden" id="ruleId" name="ruleId" value="${activityRule.ruleId}" />
<!-- 存放表单的区域 -->
<tr>
<td>环节规则名称<font color="red">*</font></td>
<td><input type="text" name="ruleName" value="${activityRule.ruleName}" id="ruleName" /></td>
</tr>
<tr>
<td>流程定义ID<font color="red">*</font></td>
<td><input type="text" name="procDefId" value="${activityRule.procDefId}" id="procDefId" /></td>
</tr>
<tr>
<td>源环节ID<font color="red">*</font></td>
<td><input type="text" name="sourceActId" value="${activityRule.sourceActId}" id="sourceActId" /></td>
</tr>
<tr>
<td>目标环节ID<font color="red">*</font></td>
<td><input type="text" name="targetActId" value="${activityRule.targetActId}" id="targetActId" /></td>
</tr>
<tr>
<td>环节规则脚本<font color="red">*</font></td>
<td><input type="text" name="ruleScript" value="${activityRule.ruleScript}" id="ruleScript" /></td>
</tr>
<tr>
<td>环节规则优先级:</td>
<td><input type="text" name="rulePriority" value="${activityRule.rulePriority}" id="rulePriority" /></td>
</tr>
<tr>
<td>环节规则描述:</td>
<td><input type="text" name="ruleRemark" value="${activityRule.ruleRemark}" id="ruleRemark" /></td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,85 @@
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@page import="com.blueland.bpm.common.util.*" %>
<%@page import="java.util.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp" %>
<base href="<%=basePath%>">
<title>环节规则管理</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript" >
$(document).ready(function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm',${page.thisPageNumber},${page.pageSize},'${pageRequest.sortColumns}');
});
function editActivityRule(ruleId){
parent.editActivityRule(ruleId);
}
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp" %>
<form id="queryForm" name="queryForm" action="${ctx}/actInfo/activityRule/list.do" method="get" style="display: inline;">
<input type="hidden" name="procDefId" value="${query.procDefId}" id="procDefId"/>
<input type="hidden" name="sourceActId" value="${query.sourceActId}" id="sourceActId"/>
<input type="hidden" name="targetActId" value="${query.targetActId}" id="targetActId"/>
<input type="hidden" name="ruleType" value="${activityRule.ruleType}" id="ruleType"/>
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading">
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<div style="width: 100%;overflow: auto;">
<table style=" width: inherit;max-width: 600%;table-layout: fixed;" id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th style="width:125px;" sortColumn="ruleName" >规则名称</th>
<th sortColumn="ruleScript" >规则脚本</th>
<th style="width:125px;" sortColumn="ruleRemark" >规则描述</th>
<th style="width: 90px">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><a href="javascript:void(0);" onclick="editActivityRule('${item.ruleId}');">${item.ruleName}</a></td>
<td>${item.ruleScript}&nbsp; </td>
<td>${item.ruleRemark}&nbsp; </td>
<td>
<a href="${ctx}/actInfo/activityRule/delete.do?ruleId=${item.ruleId}&">删除</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,44 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/codemirror.css">
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/eclipse.css">
<script src="${ctx}/resource/js/plugins/codemirror/codemirror.js"></script>
<script src="${ctx}/resource/js/plugins/codemirror/clike.js"></script>
<base href="<%=basePath%>">
<title>流程环节规则表新增</title>
</head>
<body>
<form id="myForm" action="${ctx}/actInfo/activityRule/save.do" method="post">
<!-- <button type="button" onclick="art.dialog.close();">
<span class="icon_back">关闭</span>
</button> -->
<table class="tableStyle" formMode="true" footer="normal" style="width: 100%;">
<tr>
<td>结果值:</td>
<td>${ruleScriptValue}</td>
</tr>
<tr>
<td width="20%">结果值类型:</td>
<td>${ruleScriptValueType}</td>
</tr>
<tr>
<td>验证结果:</td>
<td>${validateMsg}</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,113 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/codemirror.css">
<link rel="stylesheet" href="${ctx}/resource/js/plugins/codemirror/eclipse.css">
<script src="${ctx}/resource/js/plugins/codemirror/codemirror.js"></script>
<script src="${ctx}/resource/js/plugins/codemirror/clike.js"></script>
<base href="<%=basePath%>">
<title>流程环节规则表编辑</title>
<script>
var javaEditor;
$(document).ready(function() {
javaEditor = CodeMirror.fromTextArea(document.getElementById("ruleScript"), {
lineNumbers: true,
matchBrackets: true,
theme:"eclipse",
mode: "text/x-java"
});
});
function save(){
var ruleName = $("#ruleName").val();
if(""==ruleName){
alert("请填写规则名称!");
return ;
}
var ruleScript = javaEditor.getValue();
if(""==ruleScript){
alert("验证脚本不能为空!");
return ;
}
//document.getElementById("myForm").submit();
$.post('${ctx}/actInfo/activityRule/updateMgr.do',$('#myform').serialize(),function(result){
alert(result);
art.dialog.opener.location.reload();
});
}
function validate(){
var ruleScript= javaEditor.getValue();
if(ruleScript==""){
alert("规则脚本不允许为空,请您重新输入!");
return ;
}
var url="${ctx}/actInfo/activityRule/validate.do?ruleScript="+ruleScript;
showDiaLog(url,'验证规则脚本','600px','300px');
}
function describe(){
window.open("${ctx}/commons/bpm_script_info.html")
}
</script>
</head>
<body class="white-page">
<div class="box2" panelTitle="更新流程环节规则表" showStatus="false" roller="true">
<form id="myForm" action="${ctx}/actInfo/activityRule/updateMgr.do" method="post">
<button id="submitButton" class="btn btn-sm btn-primary" name="submitButton" type="button" onclick="save();">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" class="btn btn-sm btn-primary" onclick="art.dialog.close();">
<span class="icon_back">返回</span>
</button>
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" style="margin-top: 15px">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="procDefId" value="${activityRule.procDefId}" id="procDefId" />
<input type="hidden" name="ruleType" value="${activityRule.ruleType}" id="ruleType" />
<input type="hidden" name="sourceActId" value="${activityRule.sourceActId}" id="sourceActId" />
<input type="hidden" name="targetActId" value="${activityRule.targetActId}" id="targetActId" />
<input type="hidden" id="ruleId" name="ruleId" value="${activityRule.ruleId}" />
<!-- 存放表单的区域 -->
<tr>
<td>环节规则名称<font color="red">*</font></td>
<td><input type="text" name="ruleName" value="${activityRule.ruleName}" id="ruleName" /></td>
<td>流程定义ID<font color="red">*</font></td>
<td title="${activityRule.procDefId}"><input readonly="readonly" type="text" value="${activityRule.procDefId}" /></td>
</tr>
<tr>
<td>源环节ID<font color="red">*</font></td>
<td><input type="text" readonly="readonly" value="${activityRule.sourceActId}" /></td>
<td>目标环节ID<font color="red">*</font></td>
<td><input type="text" readonly="readonly" value="${activityRule.targetActId}" /></td>
</tr>
<tr>
<td>环节规则脚本<font color="red">*</font></td>
<td colspan="3">
<!-- <a href="javascript:void(0);" onclick="">常用脚本</a>&nbsp;&nbsp;-->
<a href="javascript:void(0);" onclick="validate();">验证脚本</a>&nbsp;&nbsp;
<a href="javascript:void(0);" onclick="describe();">脚本说明</a>
<br/>
<input type="textarea" style="width: 700px;height: 50px" name="ruleScript" value="${activityRule.ruleScript}" id="ruleScript" />
</td>
</tr>
<tr>
<td>环节规则优先级:</td>
<td><input type="text" name="rulePriority" value="${activityRule.rulePriority}" id="rulePriority" /></td>
</tr>
<tr>
<td>环节规则描述:</td>
<td colspan="3"><input type="text" name="ruleRemark" value="${activityRule.ruleRemark}" id="ruleRemark" /></td>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,97 @@
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@page import="com.blueland.bpm.common.util.*" %>
<%@page import="java.util.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp" %>
<base href="<%=basePath%>">
<title>环节规则管理</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript" >
$(document).ready(function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm',${page.thisPageNumber},${page.pageSize},'${pageRequest.sortColumns}');
});
function editActivityRule(ruleId){
parent.editActivityRule(ruleId);
}
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp" %>
<form id="queryForm" name="queryForm" action="${ctx}/actInfo/activityRule/listMgr.do" method="get" style="display: inline;">
<input type="hidden" name="procDefId" value="${query.procDefId}" id="procDefId"/>
<input type="hidden" name="sourceActId" value="${query.sourceActId}" id="sourceActId"/>
<input type="hidden" name="targetActId" value="${query.targetActId}" id="targetActId"/>
<input type="hidden" name="ruleType" value="${activityRule.ruleType}" id="ruleType"/>
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading">
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<div style="width: 100%;overflow: auto;">
<table style=" width: inherit;max-width: 600%;table-layout: fixed;" id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th sortColumn="ruleName">流程定义</th>
<th sortColumn="ruleName">环节名称</th>
<th sortColumn="ruleName">规则名称</th>
<th sortColumn="ruleScript">规则脚本</th>
<th sortColumn="ruleRemark">规则描述</th>
<th style="width: 90px">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td class="td" >
<a href="javascript:void(0);"
onclick="showDiaLog('${ctx}/actInfo/activityRule/editMgr.do?ruleId=${item.ruleId}','脚本规则配置','900px','600px')">
${item.procDefId}
</a>
</td>
<td class="td" title="${item.sourceActId}">${item.sourceActId}-> ${item.targetActId}</td>
<td class="td" title="${item.ruleName}">${item.ruleName}</td>
<td class="td" title="${item.ruleScript}">${item.ruleScript}&nbsp;</td>
<td class="td" title="${item.ruleRemark}"> ${item.ruleRemark}&nbsp;</td>
<td>
<a href="${ctx}/actInfo/activityRule/deleteMgr.do?ruleId=${item.ruleId}&">删除</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<simpletable:pageToolbar page="${page}">
</simpletable:pageToolbar>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,187 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<script>
$(document).ready(function() {
$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
//setMask("main-container");
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/editCallActivity.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.close();
}
});
});
$("#deleteBtn").click(function() {
if (!hasOneChecked("sourceRefs")) {
alert('请选择要操作的对象!');
return;
}
if (!window.confirm('确定执行[删除]操作?')) {
return;
}
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/deleteCallActProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
window.location.reload();
}
});
});
});
function procDefNameOnDbClick(name, value) {
$("#procDefName").val(name);
$("#calledElement").val(value);
}
</script>
<title>流程贯穿服务任务设置</title>
</head>
<body>
<form action="${ctx}/actInfo/otherTask/editCallActivity.do" method="post"
id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="activityDefId"
value="${activityInfoConfig.activityDefId}" />
<input type="hidden" name="activityDefName"
value="${activityInfoConfig.activityDefName}" />
<input type="hidden" name="processDefId"
value="${activityInfoConfig.processDefId}" />
<input type="hidden" name="processDefName"
value="${activityInfoConfig.processDefName}" />
<!-- 存放表单的区域 -->
<tr>
<td width="10%">任务ID<font color="red">*</font>
</td>
<td><input style="width: 400px;" readonly type="text" name="name"
value="${callActivity.id}" id="name" /></td>
</tr>
<tr>
<td width="10%">任务名称<font color="red">*</font>
</td>
<td><input style="width: 400px;" readonly type="text" name="name"
value="${callActivity.name}" id="name" /></td>
</tr>
<tr>
<td>贯穿流程<font color="red">*</font>
</td>
<td><input style="width: 400px;" type="text"
<c:choose>
<c:when test="${not empty callProcDefModel.procDefName}">
value="${callProcDefModel.procDefName}"
</c:when>
<c:otherwise>
value="请选择"
</c:otherwise>
</c:choose>
name="procDefName" id="procDefName" readonly onclick="showMenu('procDefName','',''); return false;" />
<input style="width: 400px;" type="hidden"
name="calledElement" value="${callActivity.calledElement}" id="calledElement" />
</td>
</tr>
<tr>
<td>备注:</td>
<td><textarea style="width: 600px; height: 80px"
name="documentation" id="documentation">${callActivity.documentation}</textarea></td>
</tr>
</table>
<div class="panel panel-primary">
<div class="panel-heading">贯穿流程属性映射</div>
<div class="panel-body">
<div class="form-group well well-sm">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td colspan="7">
<button type="button" class="btn btn-xs btn-success"
onclick="showDiaLog('${ctx}/actInfo/otherTask/createProperty.do?processDefId=${activityInfoConfig.processDefId}&activityDefId=${activityInfoConfig.activityDefId}','新增扩展属性','500px','300px')" />
新 增
</button>
<button type="button" id="deleteBtn" class="btn btn-xs btn-danger">删 除
</button>
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width: 25px;"><input type="checkbox"
onclick="setAllCheckboxState('sourceRefs',this.checked)"></th>
<th style="width: 300px">源流程变量名</th>
<th>目标程变量名</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${dataInputAssociations}"
var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="checkbox" name="sourceRefs" value="${item.sourceRef}"></td>
<td>${item.sourceRef}&nbsp;</td>
<td>${item.targetRef}&nbsp;</td>
<td><a href="javascript:void(0);"
onclick="showDiaLog('${ctx}/actInfo/otherTask/editProperty.do?sourceRef=${item.sourceRef}','修改扩展属性','500px','300px')">修改</a></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button id="submitButton" class="btn btn-sm btn-primary"
name="submitButton" type="button">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" class="btn btn-sm btn-primary"
onclick="art.dialog.close()">
<span class="icon_back">关闭</span>
</button>
</div>
</div>
</div>
</div>
</form>
<jsp:include page="../../../pages/procDefMgr/procDefTree.jsp" flush="false" />
</body>
</html>

View File

@@ -0,0 +1,67 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>配置输出线</title>
<script type="text/javascript">
$(document).ready(function() {
$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/saveProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.opener.location.reload();
}
});
});
});
</script>
</head>
<body>
<form action="${ctx}/actInfo/otherTask/saveProperty.do"
method="post" id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="dataObject.objScope" id="objScope" value="P" />
<input type="hidden" name="processDefId" id="processDefId" value="${dataObjectRelation.processDefId}" />
<input type="hidden" name="activityDefId" id="activityDefId" value="${dataObjectRelation.activityDefId}" />
<input type="hidden" name="targetActId" id="targetActId" value="${dataObjectRelation.targetActId}" />
<input type="hidden" name="dorType" id="dorType" value="through" />
<input type="hidden" name="dataObject.objType" id="objType" value="string" />
<!-- 存放表单的区域 -->
<tr>
<td><font color="red">*</font>源流程变量名称:</td>
<td><input name="dataObject.objKey" id="objKey" value="" /></td>
</tr>
<tr>
<td><font color="red">*</font>目标流程变量名称:</td>
<td><input name="dataObject.objValue" id="objValue" value="" /></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<input type="button" class="btn btn-sm btn-primary"
id="submitButton" value="保 存" />
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,71 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>配置输出线</title>
<script type="text/javascript">
$(document).ready(function() {
$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/updateProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.opener.location.reload();
}
});
});
});
</script>
</head>
<body>
<form action="${ctx}/actInfo/otherTask/updateProperty.do"
method="post" id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="dataObject.objScope" id="objScope" value="P" />
<input type="hidden" name="processDefId" id="processDefId" value="${dataObjectRelation.processDefId}" />
<input type="hidden" name="activityDefId" id="activityDefId" value="${dataObjectRelation.activityDefId}" />
<input type="hidden" name="targetActId" id="targetActId" value="${dataObjectRelation.targetActId}" />
<input type="hidden" name="dorType" id="dorType" value="through" />
<input type="hidden" name="dataObject.objName" id="objName" value="string" />
<input type="hidden" name="dataObject.objId" id="objId" value="${dataObjectRelation.dataObject.objId}" />
<input type="hidden" name="dorId" id="dorId" value="${dataObjectRelation.dorId}" />
<input type="hidden" name="dataObject.objType" id="objType" value="${dataObjectRelation.dataObject.objType}" />
<!-- 存放表单的区域 -->
<tr>
<td><font color="red">*</font>源流程变量名称:</td>
<td><input name="dataObject.objKey" id="objKey" value="${dataObjectRelation.dataObject.objKey}" /></td>
</tr>
<tr>
<td><font color="red">*</font>目标流程变量名称:</td>
<td><input name="dataObject.objValue" id="objValue" value="${dataObjectRelation.dataObject.objValue}" /></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<input type="button" class="btn btn-sm btn-primary"
id="submitButton" value="保 存" />
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,288 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="org.activiti.engine.repository.ProcessDefinition"%>
<%@page import="org.activiti.engine.repository.Model"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="com.blueland.bpm.manage.util.*"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<link href="${ctx}/resource/js/plugins/loadmask/jquery.loadmask.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='${ctx}/resource/js/plugins/loadmask/jquery.loadmask.js'></script>
<title>编辑环节信息</title>
<script type="text/javascript">
$(document).ready(function() {
$("#submitButton").click(function() {
setMask("main-container");
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/activityInfo/update.do",
data : $('#myform').serialize(),
success : function(resp) {
if (resp == 'SUCCESS') {
alert("操作成功!");
$("#main-container").unmask();
//window.location.reload();
//art.dialog.close();
//art.dialog.opener.location.reload();
} else {
$("#main-container").unmask();
alert("操作失败!");
}
}
});
});
$('#mprotocol').change(function(){
var val=$(this).children('option:selected').val();
if(val=="http"){
$("#otherSysDealStatus option[value='no']").attr("selected", "selected");
}else if(val=="none"){
$("#otherSysDealStatus option[value='yes']").attr("selected", "selected");
}else{
$("#otherSysDealStatus option[value='']").attr("selected", "selected");
}
});
var sys = $("#sys").val();
var mAppId = $("#mAppId").val();
if(sys !=""){
var activityPageUrlHid = $("#activityPageUrlHid").val();
var activityMurlHid = $("#activityMurlHid").val();
var href = window.top.location.href;
var list = href.split("/");
var name = "/"+list[3];
var url = "<%=MyContants.KSKF_PAHT%>"+name+"/customForm/list/workflow/"+sys+"/PC";
jQuery.ajax({
url : url,
type : "GET",
success : function(resp) {
if(resp.resultCode == 200){
var html = "<select name='activityPageUrl' id='activityPageUrl'>";
html = html +"<option value='' ></option>";
for(var i = 0; i < resp.result.length; i++) {
var bean = resp.result[i];
if(activityPageUrlHid==bean.code){
html=html+"<option selected value="+bean.code+">"+bean.name+"</option>"
}else{
html=html+"<option value="+bean.code+">"+bean.name+"</option>"
}
}
html=html+"</select>"
$("#addSelect").html(html);
}else{
alert("获取应用表单数据失败!");
}
}
});
//移动端
var urlApp = "<%=MyContants.KSKF_PAHT%>"+name+"/customForm/list/workflow/"+sys+"/APP";
jQuery.ajax({
url : urlApp,
type : "GET",
success : function(resp) {
if(resp.resultCode == 200){
var html = "<select name='murl' id='murl'>";
html = html +"<option value='' ></option>";
for(var i = 0; i < resp.result.length; i++) {
var bean = resp.result[i];
if(activityMurlHid==bean.code){
html=html+"<option selected value="+bean.code+">"+bean.name+"</option>"
}else{
html=html+"<option value="+bean.code+">"+bean.name+"</option>"
}
}
html=html+"</select>"
$("#addMurlSelect").html(html);
}else{
alert("获取应用表单数据失败!");
}
}
});
}
});
</script>
</head>
<body class="white-page">
<input type="hidden" name="sys" id="sys" value="${sys}" />
<input type="hidden" name="mAppId" id="mAppId" value="${mAppId}" />
<input type="hidden" name="activityPageUrlHid" value="${activityInfoConfig.activityPageUrl}" id="activityPageUrlHid"/>
<input type="hidden" name="activityMurlHid" value="${activityInfoConfig.murl}" id="activityMurlHid"/>
<form action="${ctx}/activityInfo/update.do" method="post" id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered form-table' border="0" cellspacing="0" cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="activityDefId" value="${activityInfoConfig.activityDefId}" />
<input type="hidden" name="activityDefName" value="${activityInfoConfig.activityDefName}" />
<input type="hidden" name="processDefId" value="${activityInfoConfig.processDefId}" />
<input type="hidden" name="processDefName" value="${activityInfoConfig.processDefName}" />
<input type="hidden" name="activityOperationRoleid" value="${activityInfoConfig.activityOperationRoleid}" />
<!-- 存放表单的区域 -->
<tr>
<td>
<font color="red">*</font>环节ID
</td>
<td>${activityInfoConfig.activityDefId}</td>
<td>环节名称:</td>
<td>${activityInfoConfig.activityDefName}</td>
</tr>
<tr>
<!-- 不是第一步处理 则环节处理类型放在此处 -->
<td>环节处理类型:</td>
<td>
<select name="activityDefDealType" id="activityDefDealType">
<option ${activityInfoConfig.activityDefDealType=='single'?'selected':''} value="single">单人处理</option>
<%-- <c:if test="${!isStartTask}"> --%>
<option ${activityInfoConfig.activityDefDealType=='multi'?'selected':''} value="multi">多人处理-并行</option>
<option ${activityInfoConfig.activityDefDealType=='multi-x'?'selected':''} value="multi-x">多人处理-串行</option>
<%-- </c:if> --%>
</select>
</td>
<td>环节跳转类型:</td>
<td>
<select name="jumpType" id="jumpType">
<option value="MANUAL" ${activityInfoConfig.jumpType=="MANUAL"?"selected":""}>人工选择跳转</option>
<option value="AUTO" ${activityInfoConfig.jumpType=="AUTO"?"selected":""}>自动路径跳转</option>
<!-- <option value="FREE" ${activityInfoConfig.jumpType=="FREE"?"selected":""}>自由选择跳转</option> -->
</select>
</td>
</tr>
<tr>
<td>意见显示区域(用于界面意见分栏)</td>
<td colspan="1">
<input type="text" style="width: 200px" name="ideaDisplayArea" value="${activityInfoConfig.ideaDisplayArea}" id="ideaDisplayArea" class="validate[length[0,50]]" maxlength="30" />
</td>
<td>是否显示意见:</td>
<td colspan="1">
<select name="isShowIdea" id="isShowIdea">
<option value="ENABLED" ${activityInfoConfig.isShowIdea=='ENABLED'?'selected':''}>是</option>
<option value="DISABLE" ${activityInfoConfig.isShowIdea=='DISABLE'?'selected':''}>否</option>
</select>
</td>
</tr>
<tr>
<td>环节审批时限:</td>
<td>
<!--
<input type="checkbox" name="" id="" />超时后自动流转下一步<br/> -->
<select name="activityLimitTime" id="activityLimitTime">
<option value="">--请选择--</option>
<c:forEach begin="1" end="30" varStatus="item">
<option ${activityInfoConfig.activityLimitTime==item.index?'selected':''} value="${item.index}">${item.index}</option>
</c:forEach>
</select> 天
</td>
<td>环节排序号:</td>
<td colspan="2">
<input type="text" name="activityOrder" preValue="${activityInfoConfig.activityOrder}" onblur="moveout(this.id);" value="${activityInfoConfig.activityOrder}" id="activityOrder" maxlength="200" class="validate[length[0,1000]]" onkeyup="this.value=this.value.replace(/\D/g,'')"
onafterpaste="this.value=this.value.replace(/\D/g,'')" />
</td>
</tr>
<tr>
<td rowspan="2" style="width: 200px;">桌面端相关配置:</td>
<td style="width: 100px;">环节表单路径</td>
<td colspan="3">
<c:if test="${sys ne '' }">
<div id ="addSelect">
</div>
<!-- <input style="width: 600px" type="text" name="activityPageUrl" value="${activityInfoConfig.activityPageUrl}" id="activityPageUrl" class="validate[length[0,500]]" />-->
</c:if>
<c:if test="${sys eq ''}">
<input style="width: 600px" type="text" name="activityPageUrl" value="${activityInfoConfig.activityPageUrl}" id="activityPageUrl" class="validate[length[0,500]]" />
</c:if>
</td>
</tr>
<tr>
<td>处理协议</td>
<td colspan="3">
<select name="cprotocol" id="cprotocol">
<option value="hnzy:workitem" ${activityInfoConfig.cprotocol=='hnzy:workitem'||activityInfoConfig.cprotocol==null||activityInfoConfig.cprotocol==null?'selected':''}>和+浏览器模式</option>
<option value="http" ${activityInfoConfig.cprotocol=='http'?'selected':''}>普通浏览器模式</option>
</select>
</td>
</tr>
<tr>
<td rowspan="3">手机端相关配置:</td>
<td>环节表单路径</td>
<td colspan="3">
<c:if test="${sys ne '' }">
<div id ="addMurlSelect">
</div>
<!-- <input style="width: 600px" type="text" name="activityPageUrl" value="${activityInfoConfig.activityPageUrl}" id="activityPageUrl" class="validate[length[0,500]]" />-->
</c:if>
<c:if test="${sys eq ''}">
<input style="width: 600px" type="text" name="murl" value="${activityInfoConfig.murl}" id="mUrl" class="validate[length[0,500]]" />
</c:if>
</td>
</tr>
<tr>
<td>处理协议</td>
<td colspan="3">
<select name="mprotocol" id="mprotocol">
<option value="none" ${activityInfoConfig.mprotocol=='none'||activityInfoConfig.mprotocol==null?'selected':''}>不支持手机处理</option>
<option value="http" ${activityInfoConfig.mprotocol=='http'?'selected':''}>WEBVIEW模式H5</option>
<option value="" ${activityInfoConfig.mprotocol==null?'selected':''}>沿用流程配置</option>
</select>
</td>
</tr>
<tr>
<td>处理状态</td>
<td colspan="3">
<select name="otherSysDealStatus" id="otherSysDealStatus">
<option value="" ${processInfoConfig.mprotocol==null?'selected':''}>沿用流程配置</option>
<option value="yes" ${activityInfoConfig.otherSysDealStatus=='yes'?'selected':''}>仅阅读</option>
<option value="no" ${activityInfoConfig.otherSysDealStatus=='no'?'selected':''}>可处理</option>
</select>
</td>
</tr>
<tr>
<td>备注:</td>
<td colspan="3">
<textarea rows="2" cols="50" name="remark">${activityInfoConfig.remark}</textarea>
</td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button type="button" class="btn btn-sm btn-primary" id="submitButton">
保存 <i class="ace-icon fa fa-save bigger-110"></i>
</button>
<!-- <button onclick="art.dialog.close();" type="button" class="btn btn-sm btn-primary">
关闭 <i class="ace-icon fa fa-times bigger-110"></i>
</button> -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,105 @@
<%@page import="org.activiti.engine.repository.ProcessDefinition"%>
<%@page import="org.activiti.bpmn.model.*"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节用户列表</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript">
$(document).ready(function() {
});
</script>
</head>
<body class="white-page">
<%@ include file="/commons/messages.jsp"%>
<form id="queryForm" name="queryForm"
action="${ctx}/actInfo/sequenceFlow/list.do" method="post"
style="display: inline;">
<input name="actId" id="actId" value="${gateway.id}" type="hidden"/>
<input name="procDefId" id="procDefId" value="${params.processDefId}" type="hidden"/>
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading" style="background: none !important;">
网关ID${gateway.id},网关名称:${gateway.name}
</div>
<%-- <div class="form-group well well-sm">--%>
<%-- <table width="100%" border="0" cellspacing="0" cellpadding="0"--%>
<%-- class="table-search">--%>
<%-- <tr>--%>
<%-- <td colspan="7">--%>
<%-- <input onclick="art.dialog.close();" type="button" class="btn btn-xs btn-primary" value="关&nbsp;&nbsp;闭"/>--%>
<%-- </td>--%>
<%-- </tr>--%>
<%-- </table>--%>
<%--</div>--%>
<div class="panel-body">
<div class="row">
<div class="col-xs-12">
<div class="table-responsive" style="margin: 0 0 0 10px !important;padding: 0!important;">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>输出线名称</th>
<th>当前环节名称</th>
<th>目标目标环节</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${gateway.outgoingFlows}" var="item"
varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td>${item.name}&nbsp;</td>
<td>${gateway.name}</td>
<td>${item.targetRefName}&nbsp;</td>
<td>
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/actInfo/sequenceFlow/edit.do?procDefId=${params.processDefId}&sequenceFlowId=${item.id}','${item.sourceRefName}->${item.targetRefName}-输出线','900px','600px')">编辑</a>
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/actInfo/activityRule/create.do?procDefId=${params.processDefId}&sourceActId=${gateway.id}&sourceActName=${gateway.name}&targetActId=${item.targetRef}&targetActName=${item.targetRefName}','${item.sourceRefName}->${item.targetRefName}-输出线-跳转规则配置','900px','600px')">跳转规则配置</a>
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/actInfo/activityResourceRule/create.do?procDefId=${params.processDefId}&sourceActId=${gateway.id}&sourceActName=${gateway.name}&targetActId=${item.targetRef}&targetActName=${item.targetRefName}','${item.sourceRefName}->${item.targetRefName}-输出线-人员规则配置','900px','600px')">人员规则配置</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,144 @@
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节配置</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// 分页需要依赖的初始化动作
window.simpleTable = new SimpleTable('queryForm',${page.thisPageNumber},${page.pageSize},'${pageRequest.sortColumns}');
});
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp"%>
<form id="queryForm" name="queryForm"
action="${ctx}/activityInfo/list.do" method="get"
style="display: inline;">
<input name="processDefId" id="processDefId"
value="${query.processDefId }" type="hidden" />
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading"></div>
<div class="panel-body" style="padding: 3px;">
<div class="well well-sm" style="margin-bottom: 2px;">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td>环节ID</td>
<td><input value="${query.activityDefId}"
id="activityDefId" name="activityDefId" maxlength="100" /></td>
<td>环节名称:</td>
<td><input value="${query.activityDefName}"
id="activityDefName" name="activityDefName" maxlength="100" />
</td>
<td>
<button type="submit" class="btn btn-xs btn-primary">查&nbsp;&nbsp;询</button>
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width: 40px">序列</th>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th style="width: 150px" sortColumn="activityDefId">环节ID</th>
<th style="width: 150px" sortColumn="activityDefName">环节名称</th>
<th style="width: 150px" sortColumn="activityPageUrl">环节表单</th>
<th style="width: 60px" sortColumn="activityOperationRoleid">绑定权限</th>
<th style="width: 100px">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item"
varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td>${status.count}&nbsp;</td>
<td>${item.activityDefId}&nbsp;</td>
<td>${item.activityDefName}&nbsp;</td>
<td>${item.activityPageUrl}&nbsp;</td>
<td>${item.activityOperationRoleid==null?'否':'是'}&nbsp;</td>
<td>
<button data-toggle="dropdown"
onclick="showDiaLogByParent('${ctx}/activityInfo/main.do?activityDefId=${item.activityDefId}&processDefId=${item.processDefId}','${item.activityDefName}(${item.activityDefId})-环节配置','980px','600px')"
class="btn btn-info btn-sm dropdown-toggle">
配置</span>
</button>
<!--
<div class="btn-group">
<button data-toggle="dropdown"
class="btn btn-info btn-sm dropdown-toggle">
操作 <span class="ace-icon fa fa-caret-down icon-on-right"></span>
</button>
<ul class="dropdown-menu dropdown-info dropdown-menu-right">
<li><a id="actDefInfo"
onclick="showDiaLog('${ctx}/activityInfo/edit.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}','环节基础信息','900px','640px');"
href="javascript:void(0);">环节基础信息</a></li>
<li><a id="actDefUser" href="javascript:void(0);"
onclick="showDiaLog('${ctx}/actInfo/setActResource/list.do?actId=${activityInfoConfig.activityDefId}&procDefId=${activityInfoConfig.processDefId}','环节人员分配','900px','640px');">环节人员分配</a></li>
<li><a id="actDefUser" href="javascript:void(0);"
onclick="showDiaLog('${ctx}/actInfo/sequenceFlow/list.do?actId=${activityInfoConfig.activityDefId}&procDefId=${activityInfoConfig.processDefId}','环节输出线配置','900px','640px');">环节输出线配置</a></li>
<li><a id="actDefOperate" href="javascript:void(0);"
onclick="showDiaLog('${ctx}/activityInfo/actOperatePowerList.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}','环节操作权限','900px','640px');">环节操作权限</a>
<li><a id="actDefVar" href="javascript:void(0);"
onclick="showDiaLog('${ctx}/activityInfo/edit.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}','环节变量配置','900px','640px')">环节变量配置</a></li>
<li><a id="actDefUser" href="javascript:void(0);"
onclick="showDiaLog('${ctx}/activityUserConfig/list.do?actId=${activityInfoConfig.activityDefId}&procDefId=${activityInfoConfig.processDefId}','环节通知配置','900px','640px')">环节通知配置</a></li>
</ul>
</div> -->
</td>
</tr>
</c:forEach>
</tbody>
</table>
<simpletable:pageToolbar page="${page}">
</simpletable:pageToolbar>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,71 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节设置</title>
<script>
function changeHref(id,srcStr){
document.getElementById(id).src=srcStr;
}
</script>
</head>
<body>
<div class="main-container" id="main-container">
<div class="row">
<div class="col-xs-12">
<div class="tabbable">
<ul class="nav nav-tabs padding-12 tab-color-blue background-blue"
id="myTab3">
<li class="active"> <a id="actDefInfo" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/activityInfo/edit.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}');"
href="javascript:void(0)" target="frmrightChild" class="current">环节基础信息</a>
</li>
<li><a id="actDefUser" href="javascript:void(0)" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/actInfo/setActResource/list.do?actId=${activityInfoConfig.activityDefId}&procDefId=${activityInfoConfig.processDefId}');"
target="frmrightChild">环节人员分配</a></li>
<li><a id="actDefUser" href="javascript:void(0)" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/actInfo/sequenceFlow/list.do?actId=${activityInfoConfig.activityDefId}&procDefId=${activityInfoConfig.processDefId}');"
target="frmrightChild">环节输出线配置</a></li>
<li><a id="actDefOperate" href="javascript:void(0)" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/activityInfo/actOperatePowerList.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}');"
target="frmrightChild">环节操作权限</a></li>
<li><a id="actDefVar" href="javascript:void(0)" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/dataObjectRelation/activityList.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}')"
; target="frmrightChild">环节变量配置</a></li>
<!-- <li><a id="actDefUser" href="javascript:void(0)" data-toggle="tab"
onclick="changeHref('frmrightChild','${ctx}/activityUserConfig/list.do?actId=${activityInfoConfig.activityDefId}&procDefId=${activityInfoConfig.processDefId}');"
target="frmrightChild">环节通知配置</a></li> -->
<li>
<button class="btn btn-sm bigger btn-yellow dropdown-toggle"
data-toggle="dropdown" type="button" onclick="art.dialog.close();">
<i class="ace-icon fa fa-arrow-left"></i>关闭
</button>
</li>
</ul>
<div class="tab-content" style="width: 100%; height: 100%;">
<IFRAME style="width: 100%; height:520px;" scrolling="no"
src="${ctx}/activityInfo/edit.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}"
frameBorder="0" id="frmrightChild" name="frmrightChild: onload="
iframeHeight('frmrightChild')" allowTransparency="true"></IFRAME>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,217 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<script>
$(document).ready(function() {
$("#submitButton").click(function() {
var calledElement = $("#calledElement").val();
if(null == calledElement || "" == calledElement){
alert("贯穿流程必须选择!");
$("#procDefName").focus();
return false;
}
//用jquery中的ajax方法向服务器提交请求
//setMask("main-container");
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/editCallActivity.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.close();
}
});
});
$("#deleteBtn").click(function() {
if (!hasOneChecked("sourceRefs")) {
alert('请选择要操作的对象!');
return;
}
if (!window.confirm('确定执行[删除]操作?')) {
return;
}
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/deleteCallActProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
window.location.reload();
}
});
});
});
function procDefNameOnDbClick(name, value) {
$("#procDefName").val(name);
$("#calledElement").val(value);
}
</script>
<title>流程贯穿服务任务设置</title>
</head>
<body class="white-page">
<form action="${ctx}/actInfo/otherTask/editCallActivity.do" method="post"
id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="activityDefId"
value="${activityInfoConfig.activityDefId}" />
<input type="hidden" name="activityDefName"
value="${activityInfoConfig.activityDefName}" />
<input type="hidden" name="processDefId"
value="${activityInfoConfig.processDefId}" />
<input type="hidden" name="processDefName"
value="${activityInfoConfig.processDefName}" />
<!-- <input type="hidden" name="activityDefChildType" value="through" />-->
<!-- 存放表单的区域 -->
<tr>
<td width="20%">环节ID<font color="red">*</font>
</td>
<td><input style="width: 400px;" readonly type="text" name="name"
value="${callActivity.id}" id="name" /></td>
</tr>
<tr>
<td width="10%">环节名称<font color="red">*</font>
</td>
<td><input style="width: 400px;" readonly type="text" name="name"
value="${callActivity.name}" id="name" /></td>
</tr>
<tr>
<td>贯穿流程<font color="red">*</font>
</td>
<td>
<input style="width: 400px;" type="text"
name="procDefName"
<c:choose>
<c:when test="${not empty callProcDefModel.procDefName}">
value="${callProcDefModel.procDefName}"
</c:when>
<c:otherwise>
value="请选择"
</c:otherwise>
</c:choose>
id="procDefName" readonly onclick="showMenu('procDefName','',''); return false;" />
<input style="width: 400px;" type="hidden"
name="calledElement" value="${callActivity.calledElement}" id="calledElement" />
</td>
</tr>
<tr>
<td>
环节处理类型:
</td>
<td>
<select name="activityDefDealType" id="activityDefDealType">
<option ${activityInfoConfig.activityDefDealType=='single'?'selected':''} value="single">单人处理</option>
<option ${activityInfoConfig.activityDefDealType=='multi'?'selected':''} value="multi">多人处理</option>
</select>
</td>
</tr>
<tr>
<td>
环节子类型:
</td>
<td>
<select name="activityDefChildType" id="activityDefChildType">
<option ${activityInfoConfig.activityDefChildType=='inside'?'selected':''} value="inside">内部流程</option>
<option ${activityInfoConfig.activityDefChildType=='through'?'selected':''} value="through">流程贯穿</option>
</select>
</td>
</tr>
<tr>
<td>备注:</td>
<td><textarea style="width: 600px; height: 80px"
name="documentation" id="documentation">${callActivity.documentation}</textarea></td>
</tr>
</table>
<!--
<div class="panel panel-primary">
<div class="panel-heading">贯穿流程属性映射</div>
<div class="panel-body">
<div class="form-group well well-sm">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td colspan="7">
<button type="button" class="btn btn-xs btn-success"
onclick="showDiaLog('${ctx}/actInfo/otherTask/createProperty.do?processDefId=${activityInfoConfig.processDefId}&activityDefId=${activityInfoConfig.activityDefId}','新增扩展属性','500px','300px')" />
新 增
</button>
<button type="button" id="deleteBtn" class="btn btn-xs btn-danger">删 除
</button>
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width: 25px;"><input type="checkbox"
onclick="setAllCheckboxState('sourceRefs',this.checked)"></th>
<th style="width: 300px">源流程变量名</th>
<th>目标程变量名</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${dataInputAssociations}"
var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="checkbox" name="sourceRefs" value="${item.sourceRef}"></td>
<td>${item.sourceRef}&nbsp;</td>
<td>${item.targetRef}&nbsp;</td>
<td><a href="javascript:void(0);"
onclick="showDiaLog('${ctx}/actInfo/otherTask/editProperty.do?sourceRef=${item.sourceRef}','修改扩展属性','500px','300px')">修改</a></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div> -->
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button id="submitButton" class="btn btn-sm btn-primary"
name="submitButton" type="button">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" class="btn btn-sm btn-primary"
onclick="art.dialog.close()">
<span class="icon_back">关闭</span>
</button>
</div>
</div>
</div>
</div>
</form>
<jsp:include page="../../../pages/procDefMgr/procDefTree.jsp" flush="false" />
</body>
</html>

View File

@@ -0,0 +1,133 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<link rel="stylesheet"
href="${ctx}/resource/js/plugins/codemirror/codemirror.css">
<link rel="stylesheet"
href="${ctx}/resource/js/plugins/codemirror/eclipse.css">
<style>
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
height: 180px;
}
</style>
<script src="${ctx}/resource/js/plugins/codemirror/codemirror.js"></script>
<script src="${ctx}/resource/js/plugins/codemirror/clike.js"></script>
<script>
var javaEditor;
$(document).ready(function() {
javaEditor = CodeMirror.fromTextArea(document.getElementById("script"), {
lineNumbers: true,
matchBrackets: true,
//indentWithTabs: true,
// styleActiveLine: true,
theme:"eclipse",
// smartIndent: true,
// autofocus: true,
mode: "text/x-java"
});
$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
//setMask("main-container");
$("#script").val(javaEditor.getValue());
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/editScriptTask.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.close();
}
});
});
});
function validate(){
var ruleScript=javaEditor.getValue();;
if(ruleScript==""){
alert("脚本内容不允许为空,请您重新输入!");
return ;
}
var url="${ctx}/actInfo/activityRule/validate.do?ruleScript="+ruleScript;
showDiaLog(url, '验证脚本', '600px', '300px');
}
</script>
<title>脚本编辑</title>
</head>
<body class="white-page">
<form action="${ctx}/actInfo/otherTask/editScriptTask.do" method="post"
id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="activityDefId"
value="${activityInfoConfig.activityDefId}" />
<input type="hidden" name="activityDefName"
value="${activityInfoConfig.activityDefName}" />
<input type="hidden" name="processDefId"
value="${activityInfoConfig.processDefId}" />
<input type="hidden" name="processDefName"
value="${activityInfoConfig.processDefName}" />
<input type="hidden" name="scriptFormat" value="groovy" />
<!-- 存放隐藏域的区域 -->
<input type="hidden" id="id" name="id" value="${scriptTask.id}" />
<!-- 存放表单的区域 -->
<tr>
<td width="20%">环节ID<font color="red">*</font>
</td>
<td><input type="text" name="name"
value="${scriptTask.id}" id="name" /></td>
</tr>
<tr>
<td>环节名称<font color="red">*</font>
</td>
<td><input style="width: 300px;" type="text" name="name"
value="${scriptTask.name}" id="name" /></td>
</tr>
<tr>
<td>脚本内容<font color="red">*</font>
</td>
<td><a href="javascript:void(0);" onclick="validate();">验证脚本</a>
<br /> <textarea name="script" id="script">${scriptTask.script}</textarea> <br />这个脚本需要使用返回语句(return)返回布尔值返回true流程将跳转到指定的节点。</td>
</tr>
<tr>
<td>备注:</td>
<td><textarea style="width: 600px; height: 80px"
name="documentation" id="documentation"></textarea></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button id="submitButton" class="btn btn-sm btn-primary"
name="submitButton" type="button">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" class="btn btn-sm btn-primary"
onclick="art.dialog.close()">
<span class="icon_back">关闭</span>
</button>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,203 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<script>
$(document).ready(function() {
$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
//setMask("main-container");
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/editServiceTask.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.close();
}
});
});
$("#deleteBtn").click(function() {
if (!hasOneChecked("dorIds")) {
alert('请选择要操作的对象!');
return;
}
if (!window.confirm('确定执行[删除]操作?')) {
return;
}
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/deleteProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
window.location.reload();
}
});
});
});
function procDefNameOnDbClick(name, value) {
$("#procDefName").val(name);
$("#procDefIdText").val(value);
}
</script>
<title>流程贯穿服务任务设置</title>
</head>
<body class="white-page">
<form action="${ctx}/actInfo/otherTask/editServiceTask.do" method="post"
id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="activityDefId"
value="${activityInfoConfig.activityDefId}" />
<input type="hidden" name="activityDefName"
value="${activityInfoConfig.activityDefName}" />
<input type="hidden" name="processDefId"
value="${activityInfoConfig.processDefId}" />
<input type="hidden" name="processDefName"
value="${activityInfoConfig.processDefName}" />
<input type="hidden" name="activityDefChildType" value="through" />
<!-- 存放隐藏域的区域 -->
<input type="hidden" id="id" name="id" value="${serviceTask.id}" />
<!-- 存放表单的区域 -->
<tr>
<td width="20%">环节ID<font color="red">*</font>
</td>
<td><input style="width: 400px;" type="text" name="name"
value="${serviceTask.id}" id="name" /></td>
</tr>
<tr>
<td width="10%">环节名称<font color="red">*</font>
</td>
<td><input style="width: 400px;" type="text" name="name"
value="${serviceTask.name}" id="name" /></td>
</tr>
<tr>
<td>贯穿流程<font color="red">*</font>
</td>
<td><input style="width: 400px;" type="text"
name="procDefName"
<c:choose>
<c:when test="${not empty throughProcDefModel.procDefName}">
value="${throughProcDefModel.procDefName}"
</c:when>
<c:otherwise>
value="请选择"
</c:otherwise>
</c:choose>
id="procDefName" readonly
onclick="showMenu('procDefName','',''); return false;" />
<input style="width: 400px;" type="hidden"
name="procDefIdText" value="${procDefIdText}" id="procDefIdText" />
</td>
</tr>
<tr>
<td>
环节处理类型:
</td>
<td>
<select name="activityDefDealType" id="activityDefDealType">
<option ${activityInfoConfig.activityDefDealType=='single'?'selected':''} value="single">单人处理</option>
<option ${activityInfoConfig.activityDefDealType=='multi'?'selected':''} value="multi">多人处理</option>
</select>
</td>
</tr>
<tr>
<td>备注:</td>
<td><textarea style="width: 600px; height: 80px"
name="documentation" id="documentation">${serviceTask.documentation}</textarea></td>
</tr>
</table>
<!--
<div class="panel panel-primary">
<div class="panel-heading">贯穿流程属性映射</div>
<div class="panel-body">
<div class="form-group well well-sm">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td colspan="7">
<button type="button" class="btn btn-xs btn-success"
onclick="showDiaLog('${ctx}/actInfo/otherTask/createProperty.do?processDefId=${activityInfoConfig.processDefId}&activityDefId=${activityInfoConfig.activityDefId}','新增扩展属性','500px','300px')" />
新 增
</button>
<button type="button" id="deleteBtn" class="btn btn-xs btn-danger">删 除
</button>
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width: 25px;"><input type="checkbox"
onclick="setAllCheckboxState('dorIds',this.checked)"></th>
<th style="width: 300px">源流程变量名</th>
<th>目标程变量名</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${dataObjectRelations}"
var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="checkbox" name="dorIds" value="${item.dorId}"></td>
<td>${item.dataObject.objKey}&nbsp;</td>
<td>${item.dataObject.objValue}&nbsp;</td>
<td><a href="javascript:void(0);"
onclick="showDiaLog('${ctx}/actInfo/otherTask/editProperty.do?dorId=${item.dorId}','修改扩展属性','500px','300px')">修改</a></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div> -->
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button id="submitButton" class="btn btn-sm btn-primary"
name="submitButton" type="button">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="button" class="btn btn-sm btn-primary"
onclick="art.dialog.close()">
<span class="icon_back">关闭</span>
</button>
</div>
</div>
</div>
</div>
</form>
<jsp:include page="../../../pages/procDefMgr/procDefTree.jsp" flush="false" />
</body>
</html>

View File

@@ -0,0 +1,67 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>配置输出线</title>
<script type="text/javascript">
$(document).ready(function() {
$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/saveProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.opener.location.reload();
}
});
});
});
</script>
</head>
<body>
<form action="${ctx}/actInfo/otherTask/saveProperty.do"
method="post" id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="dataObject.objScope" id="objScope" value="P" />
<input type="hidden" name="processDefId" id="processDefId" value="${dataObjectRelation.processDefId}" />
<input type="hidden" name="activityDefId" id="activityDefId" value="${dataObjectRelation.activityDefId}" />
<input type="hidden" name="targetActId" id="targetActId" value="${dataObjectRelation.targetActId}" />
<input type="hidden" name="dorType" id="dorType" value="through" />
<input type="hidden" name="dataObject.objType" id="objType" value="string" />
<!-- 存放表单的区域 -->
<tr>
<td><font color="red">*</font>源流程变量名称:</td>
<td><input name="dataObject.objKey" id="objKey" value="" /></td>
</tr>
<tr>
<td><font color="red">*</font>目标流程变量名称:</td>
<td><input name="dataObject.objValue" id="objValue" value="" /></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<input type="button" class="btn btn-sm btn-primary"
id="submitButton" value="保 存" />
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,71 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>配置输出线</title>
<script type="text/javascript">
$(document).ready(function() {
$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/otherTask/updateProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.opener.location.reload();
}
});
});
});
</script>
</head>
<body class="white-page">
<form action="${ctx}/actInfo/otherTask/updateProperty.do"
method="post" id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="dataObject.objScope" id="objScope" value="P" />
<input type="hidden" name="processDefId" id="processDefId" value="${dataObjectRelation.processDefId}" />
<input type="hidden" name="activityDefId" id="activityDefId" value="${dataObjectRelation.activityDefId}" />
<input type="hidden" name="targetActId" id="targetActId" value="${dataObjectRelation.targetActId}" />
<input type="hidden" name="dorType" id="dorType" value="through" />
<input type="hidden" name="dataObject.objName" id="objName" value="string" />
<input type="hidden" name="dataObject.objId" id="objId" value="${dataObjectRelation.dataObject.objId}" />
<input type="hidden" name="dorId" id="dorId" value="${dataObjectRelation.dorId}" />
<input type="hidden" name="dataObject.objType" id="objType" value="${dataObjectRelation.dataObject.objType}" />
<!-- 存放表单的区域 -->
<tr>
<td><font color="red">*</font>源流程变量名称:</td>
<td><input name="dataObject.objKey" id="objKey" value="${dataObjectRelation.dataObject.objKey}" /></td>
</tr>
<tr>
<td><font color="red">*</font>目标流程变量名称:</td>
<td><input name="dataObject.objValue" id="objValue" value="${dataObjectRelation.dataObject.objValue}" /></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<input type="button" class="btn btn-sm btn-primary"
id="submitButton" value="保 存" />
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,235 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<link href="${ctx}/resource/js/plugins/loadmask/jquery.loadmask.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='${ctx}/resource/js/plugins/loadmask/jquery.loadmask.js'></script>
<title>配置输出线</title>
<script type="text/javascript">
$(document).ready(function() {
$("#deleteBtn").click(function() {
if (!hasOneChecked("expandPropertyIds")) {
alert('请选择要操作的对象!');
return;
}
if (!window.confirm('确定执行[删除]操作?')) {
return;
}
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/sequenceFlow/deleteProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
window.location.reload();
}
});
});
$("#submitButton").click(function() {
//判断排序号是否为空并且是否为数字
var TRANSITION_DISPLAY_ORDER = $("#TRANSITION_DISPLAY_ORDER").val();
if(""==TRANSITION_DISPLAY_ORDER){
//alert("排序号不能为空!");
//return;
}else{
if(isNaN(TRANSITION_DISPLAY_ORDER)){
alert("排序号必须为数字!");
return;
}
}
//用jquery中的ajax方法向服务器提交请求
setMask("main-container");
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/sequenceFlow/update.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
window.location.reload();
}
});
});
});
</script>
</head>
<body class="white-page">
<form action="${ctx}/actInfo/sequenceFlow/update.do" method="post"
id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<div class="well well-sm">
<button type="button" class="btn btn-sm btn-primary"
id="submitButton" >
保存
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button onclick="art.dialog.close();" type="button" class="btn btn-sm btn-primary">
关闭
<i class="ace-icon fa fa-times bigger-110"></i>
</button>
</div>
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="id" value="${sequenceFlow.id}" />
<input type="hidden" name="procDefId" value="${procDefId}" />
<!-- 存放表单的区域 -->
<tr>
<td><font color="red">*</font>输出线ID</td>
<td>${sequenceFlow.id}</td>
</tr>
<tr>
<td>输出线名称
(展现在流程图中):</td>
<td><input name="name" id="name" value="${sequenceFlow.name}" style="width: 500px" type="text" /></td>
</tr>
<tr>
<td>下一环节别名:</td>
<td><input name="nextActAlias" id="nextActAlias"
value="${nextActAlias}" type="text" style="width: 500px"/></td>
</tr>
<tr>
<td>同组织级别过滤:</td>
<td>
<select name="ACTIVITY_USER_SAME_ORG_LEVEL" id="ACTIVITY_USER_SAME_ORG_LEVEL" style="width: 200px">
<option value="" ${sequenceFlow.ACTIVITY_USER_SAME_ORG_LEVEL==''?'selected':''}>--请选择--</option>
<option value="1" ${sequenceFlow.ACTIVITY_USER_SAME_ORG_LEVEL=='1'?'selected':''}>同公司</option>
<option value="2" ${sequenceFlow.ACTIVITY_USER_SAME_ORG_LEVEL=='2'?'selected':''}>同部门</option>
<option value="3" ${sequenceFlow.ACTIVITY_USER_SAME_ORG_LEVEL=='3'?'selected':''}>同级别组织</option>
</select>
</td>
</tr>
<tr>
<td>返回经办人:</td>
<td><select name="TRANSITION_RETURN_FORMER"
id="TRANSITION_RETURN_FORMER" style="width: 200px">
<option value="">--请选择--</option>
<c:forEach items="${activitys}" var="activity">
<option value="${activity.actDefId}"
${activity.actDefId==sequenceFlow.TRANSITION_RETURN_FORMER?"selected":""}>${activity.actDefName}</option>
</c:forEach>
</select></td>
</tr>
<tr>
<td>排序号:</td>
<td><input name="TRANSITION_DISPLAY_ORDER"
id="TRANSITION_DISPLAY_ORDER"
value="${sequenceFlow.TRANSITION_DISPLAY_ORDER}" type="text" /></td>
</tr>
</table>
<!--
<div class="panel panel-primary">
<div class="panel-heading">扩展属性</div>
<div class="panel-body">
<div class="form-group well well-sm">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td colspan="7">
<button type="button" class="btn btn-xs btn-success"
onclick="showDiaLog('${ctx}/actInfo/sequenceFlow/createProperty.do?procDefId=${procDefId}&sequenceFlowId=${sequenceFlow.id}','新增扩展属性','500px','300px')" />
新 增
</button>
<button type="button" id="deleteBtn" class="btn btn-xs btn-danger">删 除
</button>
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width: 25px;"><input type="checkbox"
onclick="setAllCheckboxState('expandPropertyIds',this.checked)"></th>
<th style="width: 300px">属性ID</th>
<th>属性名称</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${sequenceFlow.expandProperties}"
var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="checkbox" name="expandPropertyIds"
value="${item.id }"></td>
<td>${item.id}&nbsp;</td>
<td>${item.value}&nbsp;</td>
<td><a href="javascript:void(0);"
onclick="showDiaLog('${ctx}/actInfo/sequenceFlow/editProperty.do?procDefId=${procDefId}&sequenceFlowId=${sequenceFlow.id}&expandPropertyId=${item.id }','修改扩展属性','500px','300px')">修改</a></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
<!--
<div class="box2" panelTitle="执行监听器列表" roller="false">
<table>
<tr>
<td colspan="7">
<button type="button" onclick="importProcessBpmnXml();" /> <span
class="icon_add">新增</span>
</button>
<button type="submit" /> <span class="icon_find">删除</span>
</button>
</td>
</tr>
</table>
<table class="tableStyle">
<tr>
<th>事件ID</th>
<th>事件类型</th>
<th>实现类型</th>
<th>实现类</th>
<th>操作</th>
</tr>
<c:forEach items="${userTask.outgoingFlows}" var="item"
varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td>${item.id}&nbsp;</td>
<td>${item.event}&nbsp;</td>
<td>${item.implementationType}&nbsp;</td>
<td>${item.implementation}&nbsp;</td>
<td>${item.documentation}&nbsp;</td>
<td><a href="javascript:void(0);" onclick="">修改</a></td>
</tr>
</c:forEach>
</table>
</div>
</div>
</div>
-->
</div></div></div>
</form>
</body>
</html>

View File

@@ -0,0 +1,106 @@
<%@page import="org.activiti.engine.repository.ProcessDefinition"%>
<%@page import="org.activiti.bpmn.model.*"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节用户列表</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript">
$(document).ready(function() {
});
</script>
</head>
<body class="white-page">
<%@ include file="/commons/messages.jsp"%>
<form id="queryForm" name="queryForm"
action="${ctx}/actInfo/sequenceFlow/list.do" method="post"
style="display: inline;">
<input name="actId" id="actId" value="${userTask.id}" type="hidden"/>
<input name="procDefId" id="procDefId" value="${procDefId}" type="hidden"/>
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<!-- <div class="form-group well well-sm">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td colspan="7">
<button onclick="art.dialog.close();" type="button" class="btn btn-xs btn-primary">
关闭
<i class="ace-icon fa fa-times bigger-110"></i>
</button>
</td>
</tr>
</table>
</div> -->
<div class="panel-body">
<div class="row">
<div class="col-xs-12">
<div class="table-responsive">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>输出线名称</th>
<th>当前环节名称</th>
<th>目标环节名称</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${userTask.outgoingFlows}" var="item"
varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td>${item.name}&nbsp;</td>
<td>${userTask.name}</td>
<td>${item.targetRefName}&nbsp;</td>
<td>
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/actInfo/sequenceFlow/edit.do?procDefId=${procDefId}&sequenceFlowId=${item.id}','${item.sourceRefName}->${item.targetRefName}-输出线','900px','600px')">编辑</a>
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/actInfo/activityRule/create.do?procDefId=${procDefId}&sourceActId=${userTask.id}&sourceActName=${userTask.name}&targetActId=${item.targetRef}&targetActName=${item.targetRefName}','${item.sourceRefName}->${item.targetRefName}-输出线-跳转规则配置','900px','600px')">跳转规则配置</a>
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/actInfo/activityResourceRule/create.do?procDefId=${procDefId}&sourceActId=${userTask.id}&sourceActName=${userTask.name}&targetActId=${item.targetRef}&targetActName=${item.targetRefName}','${item.sourceRefName}->${item.targetRefName}-输出线-人员规则配置','900px','600px')">人员规则配置</a>
<!-- <a href="javascript:void(0);" onclick="showDiaLog('${ctx}/dataObjectRelation/sequenceFlowList.do?processDefId=${procDefId}&activityDefId=${userTask.id}&&activityDefName=${userTask.name}&targetActId=${item.targetRef}&targetActName=${item.targetRefName}','${item.sourceRefName}->${item.targetRefName}-输出线-变量配置','900px','600px')">变量配置</a> -->
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,66 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>配置输出线</title>
<script type="text/javascript">
$(document).ready(function() {
$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/sequenceFlow/saveProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.opener.location.reload();
}
});
});
});
</script>
</head>
<body>
<form action="${ctx}/actInfo/sequenceFlow/saveProperty.do"
method="post" id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="procDefId"
value="${procDefId}" />
<input type="hidden" name="sequenceFlowId"
value="${sequenceFlow.id}" />
<!-- 存放表单的区域 -->
<tr>
<td><font color="red">*</font>属性ID</td>
<td><input name="id" id="id" value="" /></td>
</tr>
<tr>
<td><font color="red">*</font>属性值:</td>
<td><input name="value" id="value" value="" /></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<input type="button" class="btn btn-sm btn-primary"
id="submitButton" value="保 存" />
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,66 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>配置输出线</title>
<script type="text/javascript">
$(document).ready(function() {
$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/actInfo/sequenceFlow/updateProperty.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.opener.location.reload();
}
});
});
});
</script>
</head>
<body>
<form action="${ctx}/actInfo/sequenceFlow/updateProperty.do"
method="post" id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" name="procDefId" value="${procDefId}" />
<input type="hidden" name="sequenceFlowId"
value="${sequenceFlow.id}" />
<input type="hidden" name="id" value="${expandProperty.id}" />
<!-- 存放表单的区域 -->
<tr>
<td><font color="red">*</font>属性ID</td>
<td>${expandProperty.id}</td>
</tr>
<tr>
<td><font color="red">*</font>属性值:</td>
<td><input name="value" id="value"
value="${expandProperty.value}" /></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<input type="button" class="btn btn-sm btn-primary"
id="submitButton" value="保 存" />
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,142 @@
<%@page import="org.activiti.engine.repository.ProcessDefinition"%>
<%@page import="org.activiti.bpmn.model.*"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节用户列表</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<link href="${ctx}/resource/js/plugins/loadmask/jquery.loadmask.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='${ctx}/resource/js/plugins/loadmask/jquery.loadmask.js'></script>
<script type="text/javascript">
$(document).ready(function() {
});
function createActUser(values,names,actId) {
var url="${ctx}/actInfo/setActResource/save.do";
setMask("main-container");
$.post(url, {"procDefId":$("#procDefId_"+actId).val(),"actId":$("#actId_"+actId).val(),"resourceStr":values},
function (data){
alert(data);
window.location.reload();
});
}
function deleteActUser(userTaskId) {
if (!hasOneChecked("resources_"+userTaskId)) {
alert('请选择要操作的对象!');
return;
}
if(!window.confirm('确定执行[删除]操作?')){
return;
}
setMask("main-container");
var url="${ctx}/actInfo/setActResource/deleteForResourcesManage.do";
var resources = getCheckedItem(userTaskId);
$.post(url,{"procDefId":$("#procDefId_"+userTaskId).val(),"actId":userTaskId,"resources":resources.toString()},
function (data){
alert(data);
window.location.reload();
}
);
}
function getCheckedItem(userTaskId){
var chk_value =[];
$('input[name="resources_'+userTaskId+'"]:checked').each(function(){
chk_value.push($(this).val());
});
//alert(chk_value.length==0 ?'你还没有选择任何内容!':chk_value);
return chk_value;
//alert(chk_value.length==0 ?'你还没有选择任何内容!':chk_value);
}
</script>
</head>
<body id="content" class="white-page">
<%@ include file="/commons/messages.jsp"%>
<form id="queryForm" name="queryForm"
action="${ctx}/actInfo/setActResource/setAllResourcelist.do" method="post"
style="width: 100%; height: 100%;display: inline;">
<div class="main-container" id="main-container" style="overflow: auto;width: 100%; height: 800px;">
<c:forEach items="${result}" var="item">
<input name="actId" id="actId_${item.userTask.id}" value="${item.userTask.id}" type="hidden"/>
<input name="procDefId" id="procDefId_${item.userTask.id}" value="${procDefId}" type="hidden"/>
<div class="panel panel-primary panel-1">
<div class="panel-heading">
当前节点:${item.userTask.name}(${item.userTask.id})
</div>
<div class="panel-body" style="padding:3px;">
<div class="well well-sm no-padding no-margin">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td colspan="6">
<button type="button" onclick="showDiaLog('${ctx}/pages/user_org_select.jsp?orgId=0&showTreeType=USER&actId=${item.userTask.id}', '新增环节人员', '850px', '600px');" class="btn btn-xs btn-success">
新&nbsp;&nbsp;增
<i class="ace-icon fa fa-plus bigger-110"></i>
</button>
<button type="button" onclick="deleteActUser('${item.userTask.id}');" class="btn btn-xs btn-danger">
删&nbsp;&nbsp;除
<i class="ace-icon fa fa-trash-o bigger-110"></i>
</button>
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive no-padding no-margin">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width:25px;"><input type="checkbox" onclick="setAllCheckboxState('resources_${item.userTask.id}',this.checked)"></th>
<th style="width: 100px;">资源类型</th>
<th>资源名称</th>
<th style="width: 200px;">资源值</th>
</tr>
</thead>
<tbody>
<c:forEach items="${item.activityResources}" var="item1" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="checkbox" name="resources_${item.userTask.id}" value="${item1.type}#${item1.id}"></td>
<td>${item1.parentId}</td>
<td>${item1.name}&nbsp;</td>
<td>${item1.remark}</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</c:forEach>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,153 @@
<%@page import="org.activiti.engine.repository.ProcessDefinition"%>
<%@page import="org.activiti.bpmn.model.*"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节用户列表</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<link href="${ctx}/resource/js/plugins/loadmask/jquery.loadmask.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='${ctx}/resource/js/plugins/loadmask/jquery.loadmask.js'></script>
<script type="text/javascript">
$(document).ready(function() {
});
function createActUser(values,names) {
var url="${ctx}/actInfo/setActResource/save.do";
setMask("main-container");
$.post(url, {"procDefId":$("#procDefId").val(),"actId":$("#actId").val(),"resourceStr":values},
function (data){
alert(data);
window.location.reload();
});
}
function deleteActUser() {
if (!hasOneChecked("resources")) {
alert('请选择要操作的对象!');
return;
}
if(!window.confirm('确定执行[删除]操作?')){
return;
}
setMask("main-container");
var url="${ctx}/actInfo/setActResource/delete.do";
$.post(url,$('#queryForm',document).serialize(),
function (data){
alert(data);
window.location.reload();
}
);
}
</script>
</head>
<body id="content" class="white-page">
<%@ include file="/commons/messages.jsp"%>
<c:if test="${opDataSource=='true'}">
<div class="alert alert-block alert-info">
<button type="button" class="close" data-dismiss="alert">
<i class="ace-icon fa fa-times"></i>
</button>
新建、删除资源后请点击发布流程按钮:<button type="button" onclick="postAjax('${ctx}/procDefMgr/releaseProcess.do?procDefId=${procDefId}','发布成功!',false,true);" class="btn btn-xs btn-success">
发&nbsp;&nbsp;布
</button>
</div>
</c:if>
<form id="queryForm" name="queryForm"
action="${ctx}/actInfo/setActResource/list.do" method="post"
style="display: inline;">
<input name="actId" id="actId" value="${userTask.id}" type="hidden"/>
<input name="procDefId" id="procDefId" value="${procDefId}" type="hidden"/>
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body" style="padding:3px;">
<div class="well well-sm" style="margin: 0 0 5px 10px !important;padding: 0 !important;">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td colspan="7">
<button type="button" onclick="showDiaLog('${ctx}/pages/user_org_select.jsp?orgId=0&showTreeType=USER', '新增环节人员', '850px', '600px');" class="btn btn-xs btn-success">
新&nbsp;&nbsp;增
<i class="ace-icon fa fa-plus bigger-110"></i>
</button>
<button type="button" onclick="deleteActUser();" class="btn btn-xs btn-danger">
删&nbsp;&nbsp;除
<i class="ace-icon fa fa-trash-o bigger-110"></i>
</button>
<!-- <button onclick="art.dialog.close();" type="button" class="btn btn-xs btn-primary">
关闭
<i class="ace-icon fa fa-times bigger-110"></i>
</button> -->
</td>
</tr>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="table-responsive" style="margin: 0 0 0 10px !important;padding: 0!important;">
<table id="sample-table-1"
class="table table-striped table-bordered table-hover form-table">
<thead>
<tr>
<th style="width:25px;"><input type="checkbox" onclick="setAllCheckboxState('resources',this.checked)"></th>
<th>资源类型</th>
<th>资源名称</th>
<th>资源值</th>
</tr>
</thead>
<tbody>
<c:forEach items="${activityResources}" var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="checkbox" name="resources" value="${item.type}#${item.id}"></td>
<td>${item.parentId}</td>
<td>${item.name}&nbsp;</td>
<td>
<c:choose>
<c:when test="${item.type=='ROLE'}">
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/pages/role_user_select.jsp?showTreeType=USER&roleId=${item.id}', '角色关联成员列表', '764px', '494px');">${item.remark}</a>
</c:when>
<c:otherwise>
${item.remark }
</c:otherwise>
</c:choose>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,80 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节表单按钮设置</title>
<script>
function changeHref(id,srcStr){
//alert(id);
document.getElementById(id).src=srcStr;
}
$(function(){
$("#tabs4").switchable("#panels4 >div",{
triggerType:"click",
effect:"iframe"
});
})
</script>
</head>
<body>
<div class="position">
<div class="center">
<div class="left">
<div class="right">
<span>当前位置:流程管理 >> 已部署流程定义</span>
</div>
</div>
</div>
</div>
<div id="tabs4" class="tabs-trigger" style="width: 100%;">
<div class="tabs-triggerLeft">
<div class="tabs-triggerRight">
<a id="UserContract"
onclick="changeHref('frmrightChild','${ctx}/activityInfoConfig/edit.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}');"
href="" target="frmrightChild" class="current">环节基础信息</a>
<a id="UserEvent" href=""
onclick="changeHref('frmrightChild','${ctx}/activityInfoConfig/actOperatePowerList.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}');"
target="frmrightChild">环节操作权限</a>
<a id="UserEducation" href=""
onclick="changeHref('frmrightChild','${ctx}/activityInfoConfig/edit.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}')"
; target="frmrightChild">环节变量配置</a>
<button type="submit" onclick="art.dialog.close();">
<span class="icon_close">关闭</span>
</button>
</div>
</div>
</div>
</div>
<div id="panels4" class="tabs-panel"
style="width: 100%; height: 100%;">
<IFRAME style="width: 100%; height: 450px;" scrolling="no"
src="${ctx}/activityInfoConfig/edit.do?activityDefId=${activityInfoConfig.activityDefId}&processDefId=${activityInfoConfig.processDefId}"
frameBorder="0" id="frmrightChild" name="frmrightChild: onload="
iframeHeight('frmrightChild')" allowTransparency="true"></IFRAME>
</div>
</body>
</html>
<script>
$(function(){
setTimeout(showCode,1000)
})
function showCode(){
top.Dialog.close();
}
</script>

View File

@@ -0,0 +1,104 @@
<%@page import="org.activiti.engine.repository.ProcessDefinition"%>
<%@page import="org.activiti.bpmn.model.*"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>待办列表</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
<script type="text/javascript">
$(document).ready(function() {
});
function selectUserResource(){
var userResourceType=$(".userResourceType").val();
if(userResourceType=="user"){
showDiaLog(url, "修改环节人员", '800px', '600px');
}else if(userResourceType=="role"){
showDiaLog(url, "修改环节人员", '800px', '600px');
}else if(userResourceType=="org"){
showDiaLog(url, "修改环节人员", '800px', '600px');
}else if(userResourceType=="tableVal"){
alert("暂不支持该选项");
}else if(userResourceType=="script"){
alert("暂不支持该选项");
}
}
</script>
</head>
<body class="white-page">
<%@ include file="/commons/messages.jsp"%>
<form id="procDefForm" name="procDefForm"
action="${ctx}/procDefMgr/list.do" method="post"
style="display: inline;">
<div class="box2" panelTitle="" roller="false">
<table>
<tr>
<td colspan="7">
<button type="button" onclick="importProcessBpmnXml();"/>
<span class="icon_add">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<button type="submit"/>
<span class="icon_find">取消</span>
<i class="ace-icon fa fa-undo icon-on-right bigger-110"></i>
</button>
</td>
</tr>
</table>
</div>
<table class="tableStyle">
<tr>
<th width="60px">序号</th>
<th width="200px">用户类型</th>
<th>用户来源</th>
</tr>
<tr>
<td>1&nbsp;</td>
<td>
<select id="userResourceType" name="userResourceType">
<option id="user">用户</option>
<option id="role">角色</option>
<option id="org">组织</option>
<option id="tableVal">表单变量</option>
<option id="script">脚本</option>
</select>
</td>
<td>
<textarea name="userResourceVal" style="width:350px;height:50px;">
</textarea>
<button type="button" onclick="selectUserResource();"/>
<span class="icon_find">选择</span>
</button>
</td>
</tr>
</table>
</form>
</body>
</html>