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,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>