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,116 @@
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@page import="com.blueland.bpm.common.page.*" %>
<%@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 delObj(){
if (!hasOneChecked("items")) {
alert('请选择要操作的对象!');
return;
}
if(window.confirm('确定执行[删除]操作?')){
jQuery.ajax({
type : "POST",
url : "${ctx}/dataObjectRelation/delete.do",
data : $('#queryForm').serialize(),
success : function(resp) {
alert(resp);
window.location.reload();
}
});
}
}
</script>
</head>
<body class="white-page">
<%@ include file="/commons/messages.jsp" %>
<form id="queryForm" name="queryForm" action="${ctx}/dataObjectRelation/list.do" method="get" style="display: inline;">
<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 colspan="7">
<button type="button" class="btn btn-xs btn-success" onclick="showDiaLog('${ctx}/dataObjectRelation/create.do?processDefId=${query.processDefId}&activityDefId=${query.activityDefId}&dorType=A','新增环节变量','600px','400px')">
新增
<i class="ace-icon fa fa-plus bigger-110"></i>
</button>
<button type="button" class="btn btn-xs btn-danger" onclick="delObj();">
删除
<i class="ace-icon fa fa-trash-o bigger-110"></i>
</button>
<!-- <a class="btn btn-xs btn-primary" onclick="art.dialog.close();">关闭
<i class="ace-icon fa fa-times bigger-110"></i>
</a> -->
</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 form-table">
<thead>
<tr>
<th style="width:25px;"><input type="checkbox" onclick="setAllCheckboxState('items',this.checked)"></th>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th sortColumn="objKey" >变量KEY</th>
<th sortColumn="objName" >变量名称</th>
<th sortColumn="objValue" >变量值</th>
<th sortColumn="objType" >变量类型</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="items" value="dorId=${item.dorId}&"></td>
<td>${item.dataObject.objKey}&nbsp;</td>
<td>${item.dataObject.objName}&nbsp;</td>
<td>${item.dataObject.objValue}&nbsp;</td>
<td>${item.dataObject.objType}&nbsp;</td>
<td>
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/dataObjectRelation/edit.do?dorId=${item.dorId}','编辑环节变量','600px','400px')">修改</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,114 @@
<%@ 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 type="text/javascript">
$(document).ready(function() {
/*$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/dataObjectRelation/save.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.opener.location.reload();
}
});
});*/
var demo=$("#myform").Validform({tiptype:4, datatype:{"objKey": /^\w+$/},callback:function(data){
alert("编辑成功");
art.dialog.opener.location.reload();
}});
$("#submitButton").click(function(){
demo.ajaxPost();
return false;
});
//$('#objKey').keyup(trimkeyup);
});
</script>
</head>
<body class="white-page">
<form action="${ctx}/dataObjectRelation/save.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="objScope" id="objScope" value="P" />
<input type="hidden" name="processDefId" id="processDefId" value="${dataObjectRelation.processDefId}" />
<input type="hidden" name="processDefName" id="processDefName" value="${dataObjectRelation.processDefName }" />
<input type="hidden" name="activityDefId" id="activityDefId" value="${dataObjectRelation.activityDefId}" />
<input type="hidden" name="activityDefName" id="activityDefName" value="${dataObjectRelation.activityDefName }" />
<input type="hidden" name="targetActId" id="targetActId" value="${dataObjectRelation.targetActId}" />
<input type="hidden" name="targetActName" id="targetActName" value="${dataObjectRelation.targetActName}" />
<input type="hidden" name="dorType" id="dorType" value="${dataObjectRelation.dorType}" />
<tr>
<th>属性KEY<font color="red">*</font>
</th>
<td><input type="text" name="dataObject.objKey" value="" id="objKey"
datatype="objKey" nullmsg="请输入变量KEY" errormsg="变量KEY只能输入字母、数字以及下划线"
class="input"
onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"/>
</td>
</tr>
<tr>
<th>属性名称<font color="red">*</font>
</th>
<td><input type="text" name="dataObject.objName" value="" id="objName"
datatype="*1-12" nullmsg="请输入变量名称!" errormsg="变量名称不能超过12个汉字"
class="input" /></td>
</tr>
<tr>
<th>属性值<font color="red">*</font>
</th>
<td><input type="text" name="dataObject.objValue" value=""
datatype="*1-500" nullmsg="请输入变量值!" errormsg="变量值不能超过500个字符"
id="objValue" class="input" /></td>
</tr>
<tr>
<th>属性类型<font color="red">*</font>
</th>
<td>
<select name="dataObject.objType" id="objType">
<option value="String">字符串</option>
<option value="Number">数字</option>
<option value="Boolean">布尔值</option>
<option value="Object">对象</option>
</select>
</td>
</tr>
<tr>
<th>备注:</th>
<td><input type="text" name="dataObject.objRemark" value=""
id="objRemark" class="input" /></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<a class="btn btn-sm btn-primary" id="submitButton">保存<i class="ace-icon fa fa-save bigger-110"></i></a>
<a class="btn btn-sm btn-primary" onclick="art.dialog.close();">关闭<i class="ace-icon fa fa-times bigger-110"></i></a>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,121 @@
<%@ 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 type="text/javascript">
$(document).ready(function() {
/*$("#submitButton").click(function() {
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
url : "${ctx}/dataObjectRelation/update.do",
data : $('#myform').serialize(),
success : function(resp) {
alert(resp);
art.dialog.opener.location.reload();
}
});
});*/
var demo=$("#myform").Validform({tiptype:4, datatype:{"objKey": /^\w+$/},callback:function(data){
alert("编辑成功");
art.dialog.opener.location.reload();
}});
$("#submitButton").click(function(){
demo.ajaxPost();
return false;
});
//$('#objKey').keyup(trimkeyup);
});
</script>
</head>
<body class="white-page">
<form action="${ctx}/dataObjectRelation/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="dorId" id="dorId" value="${dataObjectRelation.dorId}" />
<input type="hidden" name="dataObject.objScope" id="objScope" value="P" />
<input type="hidden" name="processDefId" id="processDefId" value="${dataObjectRelation.processDefId}" />
<input type="hidden" name="processDefName" id="processDefName" value="${dataObjectRelation.processDefName }" />
<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="${dataObjectRelation.dorType}" />
<input type="hidden" id="objId" name="dataObject.objId" value="${dataObjectRelation.dataObject.objId}" />
<!-- 存放表单的区域 -->
<tr>
<th>属性KEY<font color="red">*</font>
</th>
<td><input type="text" name="dataObject.objKey"
value="${dataObjectRelation.dataObject.objKey}" id="objKey"
datatype="objKey" nullmsg="请输入变量KEY" errormsg="变量KEY只能输入字母、数字以及下划线"
class="input"
onKeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"/>
</td>
</tr>
<tr>
<th>属性名称<font color="red">*</font>
</th>
<td><input type="text" name="dataObject.objName"
value="${dataObjectRelation.dataObject.objName}" id="objName"
datatype="*1-12" nullmsg="请输入变量名称!" errormsg="变量名称不能超过12个汉字"
class="input" /></td>
</tr>
<tr>
<th>属性值<font color="red">*</font>
</th>
<td><input type="text" name="dataObject.objValue"
value="${dataObjectRelation.dataObject.objValue}"
datatype="*1-500" nullmsg="请输入变量值!" errormsg="变量值不能超过500个字符"
id="objValue" class="input" /></td>
</tr>
<tr>
<th>属性类型<font color="red">*</font>
</th>
<td>
<select name="dataObject.objType" id="objType">
<option value="String" ${dataObjectRelation.dataObject.objType=="String" ? "selected": ""}>字符串</option>
<option value="Number" ${dataObjectRelation.dataObject.objType=="Number" ? "selected": ""}>数字</option>
<option value="Boolean" ${dataObjectRelation.dataObject.objType=="Boolean" ? "selected": ""}>布尔值</option>
<option value="Object" ${dataObjectRelation.dataObject.objType=="Object" ? "selected": ""}>对象</option>
</select>
</td>
</tr>
<tr>
<th>备注:</th>
<td><input type="text" name="dataObject.objRemark"
id="objRemark" class="input"
value="${dataObjectRelation.dataObject.objRemark}"/></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<a class="btn btn-sm btn-primary" id="submitButton">保存<i class="ace-icon fa fa-save bigger-110"></i></a>
<a class="btn btn-sm btn-primary" onclick="art.dialog.close();">关闭<i class="ace-icon fa fa-times bigger-110"></i></a>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,110 @@
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@page import="com.blueland.bpm.common.page.*" %>
<%@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" >
function delObj(){
if (!hasOneChecked("items")) {
alert('请选择要操作的对象!');
return;
}
if(window.confirm('确定执行[删除]操作?')){
jQuery.ajax({
type : "POST",
url : "${ctx}/dataObjectRelation/delete.do",
data : $('#queryForm').serialize(),
success : function(resp) {
alert(resp);
window.location.reload();
}
});
}
}
</script>
</head>
<body class="white-page">
<%@ include file="/commons/messages.jsp" %>
<form id="queryForm" name="queryForm" action="${ctx}/dataObjectRelation/list.do" method="get" style="display: inline;">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body" id="panel-body" style="padding:3px;">
<div class="well well-sm" style="margin:0 !important;padding: 0 !important;">
<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}/dataObjectRelation/create.do?processDefId=${query.processDefId}&dorType=P','新增流程扩展属性','600px','400px')">
新增
<i class="ace-icon fa fa-plus bigger-110"></i>
</button>
<button type="button" class="btn btn-xs btn-danger" onclick="delObj();">
删除
<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" style="margin: 0 0 5px !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('items',this.checked)"></th>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th sortColumn="objKey" >变量KEY</th>
<th sortColumn="objName" >变量名称</th>
<th sortColumn="objValue" >变量值</th>
<th sortColumn="objType" >变量类型</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="items" value="dorId=${item.dorId}&"></td>
<td>${item.dataObject.objKey}&nbsp;</td>
<td>${item.dataObject.objName}&nbsp;</td>
<td>${item.dataObject.objValue}&nbsp;</td>
<td>${item.dataObject.objType}&nbsp;</td>
<td>
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/dataObjectRelation/edit.do?dorId=${item.dorId}','编辑流程变量','600px','400px')">修改</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,108 @@
<%@page import="com.blueland.bpm.engine.config.model.*" %>
<%@page import="com.blueland.bpm.common.page.*" %>
<%@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 delObj(){
if (!hasOneChecked("items")) {
alert('请选择要操作的对象!');
return;
}
if(window.confirm('确定执行[删除]操作?')){
jQuery.ajax({
type : "POST",
url : "${ctx}/dataObjectRelation/delete.do",
data : $('#queryForm').serialize(),
success : function(resp) {
alert(resp);
window.location.reload();
}
});
}
}
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp" %>
<form id="queryForm" name="queryForm" action="${ctx}/dataObjectRelation/list.do" method="get" style="display: inline;">
<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 colspan="7">
<input value="新增" type="button" class="btn btn-xs btn-success" onclick="showDiaLog('${ctx}/dataObjectRelation/create.do?processDefId=${query.processDefId}&activityDefId=${query.activityDefId}&targetActId=${query.targetActId}&dorType=S','新增流程变量','600px','400px')"/>
<input value="删除" type="button" class="btn btn-xs btn-danger" onclick="delObj();"/>
<a class="btn btn-xs btn-primary" onclick="art.dialog.close();">关闭</a>
</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('items',this.checked)"></th>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th sortColumn="objKey" >变量KEY</th>
<th sortColumn="objName" >变量名称</th>
<th sortColumn="objValue" >变量值</th>
<th sortColumn="objType" >变量类型</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="items" value="dorId=${item.dorId}&"></td>
<td>${item.dataObject.objKey}&nbsp;</td>
<td>${item.dataObject.objName}&nbsp;</td>
<td>${item.dataObject.objValue}&nbsp;</td>
<td>${item.dataObject.objType}&nbsp;</td>
<td>
<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/dataObjectRelation/edit.do?dorId=${item.dorId}','编辑流程变量','600px','400px')">修改</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</form>
</body>
</html>