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,122 @@
<%@ 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 issubmit = false;
var javaEditor;
$(document).ready(function() {
javaEditor = CodeMirror.fromTextArea(document.getElementById("scriptContent"), {
lineNumbers: true,
matchBrackets: true,
//indentWithTabs: true,
// styleActiveLine: true,
theme:"eclipse",
// smartIndent: true,
// autofocus: true,
mode: "text/x-java"
});
});
function validate(){
var ruleScript=javaEditor.getValue();;
if(ruleScript==""){
alert("脚本内容不允许为空,请您重新输入!");
return false;
}
var url="${ctx}/actInfo/activityRule/validate.do?ruleScript="+ruleScript;
showDiaLog(url,'验证脚本','600px','300px');
return true;
}
$(function(){
$("#myform").Validform({
btnSubmit:"#submitButton",
tiptype:4,
callback:function(data){
var a = validate();
return a;
}
});
})
</script>
<title>脚本新增</title>
</head>
<body>
<form action="${ctx}/sysScript/save.do" method="post" id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading">
新增全局脚本
</div>
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放表单的区域 -->
<tr>
<td width="10%">脚本名称<font color="red">*</font></td>
<td><input style="width: 400px;" type="text" name="scriptName" value="" id="scriptName" datatype="s1-12" nullmsg="脚本名称不能为空!" errormsg="脚本名称为1~12个字符!"/></td>
</tr>
<tr>
<td>脚本排序号:</td>
<td><input type="text" name="scriptSort" value="" id="scriptSort"/></td>
</tr>
<tr>
<td>脚本分类<font color="red">*</font></td>
<td>
<select name="scriptType" id="scriptType">
<c:forEach items="${sysScript.scriptTypeMap}" var="item">
<option value="${item.key }">${item.value}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td>脚本内容<font color="red">*</font></td>
<td>
<a href="javascript:void(0);" onclick="validate();">验证脚本</a>
<br/>
<textarea name="scriptContent" id="scriptContent"></textarea>
<br/>这个脚本需要使用返回语句(return)返回布尔值返回true流程将跳转到指定的节点。
</td>
</tr>
<tr>
<td>备注:</td>
<td><textarea style="width: 600px;height: 80px" name="scriptRemark" id="scriptRemark"></textarea></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button id="submitButton" name="submitButton" class="btn btn-sm btn-primary" 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}/sysScript/list.do'">
<span class="icon_back">返回</span>
<i class="ace-icon fa fa-undo icon-on-right bigger-110"></i>
</button>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,120 @@
<%@ 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("scriptContent"), {
lineNumbers: true,
matchBrackets: true,
//indentWithTabs: true,
// styleActiveLine: true,
theme:"eclipse",
// smartIndent: true,
// autofocus: true,
mode: "text/x-java"
});
javaEditor.setValue("${sysScript.scriptContent}");
});
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>
<form action="${ctx}/sysScript/update.do" method="post">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading">修改全局脚本</div>
<div class="panel-body">
<table class='table table-bordered' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<input type="hidden" id="scriptId" name="scriptId"
value="${sysScript.scriptId}" />
<!-- 存放表单的区域 -->
<tr>
<td width="10%">脚本名称<font color="red">*</font>
</td>
<td><input style="width: 400px;" type="text"
name="scriptName" value="${sysScript.scriptName}"
id="scriptName" /></td>
</tr>
<tr>
<td>脚本排序号:</td>
<td><input type="text" name="scriptSort"
value="${sysScript.scriptSort}" id="scriptSort" /></td>
</tr>
<tr>
<td>脚本分类<font color="red">*</font>
</td>
<td><select name="scriptType" id="scriptType">
<c:forEach items="${sysScript.scriptTypeMap}" var="item">
<option ${sysScript.scriptType==item.key?"selected":""}
value="${item.key }">${item.value}</option>
</c:forEach>
</select></td>
</tr>
<tr>
<td>脚本内容<font color="red">*</font>
</td>
<td><a href="javascript:void(0);" onclick="validate();">验证脚本</a>
<br /> <textarea name="scriptContent" id="scriptContent"></textarea>
<br />这个脚本需要使用返回语句(return)返回布尔值返回true流程将跳转到指定的节点。</td>
</tr>
<tr>
<td>备注:</td>
<td><textarea style="width: 600px; height: 80px"
name="scriptRemark" id="scriptRemark">${sysScript.scriptRemark}</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"
onclick="javascript:getReferenceForm(this).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}/sysScript/list.do'">
<span class="icon_back">返回</span>
<i class="ace-icon fa fa-undo icon-on-right bigger-110"></i>
</button>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

View File

@@ -0,0 +1,120 @@
<%@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}');
});
</script>
</head>
<body>
<%@ include file="/commons/messages.jsp" %>
<form id="queryForm" name="queryForm" action="${ctx}/sysScript/list.do" method="get" style="display: inline;">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-heading">
<h8>全局脚本管理</h8>
</div>
<div class="panel-body">
<div class="well well-sm" style="margin-bottom: 2px;">
<table border="0" cellspacing="0" cellpadding="0"
class="table-search">
<tr>
<td>脚本名称:</td>
<td>
<input value="${query.scriptName}" id="scriptName" name="scriptName" maxlength="50" />
</td>
<td>脚本分类:</td>
<td>
<td>
<select name="scriptType" id="scriptType">
<option value="">--请选择--</option>
<c:forEach items="${query.scriptTypeMap}" var="item">
<option ${query.scriptType==item.key?"selected":""} value="${item.key }">${item.value}</option>
</c:forEach>
</select>
</td>
</td>
</tr>
<tr>
<td colspan="7">
<button type="submit" class="btn btn-xs btn-primary">查&nbsp;&nbsp;询
<i class="ace-icon fa fa-search bigger-110"></i>
</button>
<button type="submit" onclick="getReferenceForm(this).action='${ctx}/sysScript/create.do'" class="btn btn-xs btn-success">
新&nbsp;&nbsp;增
<i class="ace-icon fa fa-plus bigger-110"></i>
</button>
<button type="button" onclick="batchDelete('${ctx}/sysScript/delete.do','items',document.forms.queryForm)" 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">
<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 width="200px" sortColumn="scriptName" >脚本名称</th>
<th width="80px" sortColumn="scriptType" >脚本分类</th>
<th sortColumn="scriptContent" >脚本内容</th>
<th sortColumn="scriptRemark" >备注</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.result}" var="item" varStatus="status">
<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
<td><input type="checkbox" name="items" value="scriptId=${item.scriptId}&"></td>
<td>${item.scriptName}&nbsp; </td>
<td>${item.scriptTypeVal}&nbsp; </td>
<td>${item.scriptContent}&nbsp; </td>
<td>${item.scriptRemark}&nbsp; </td>
<td>
<a href="${ctx}/sysScript/edit.do?scriptId=${item.scriptId}&">修改</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<simpletable:pageToolbar page="${page}">
</simpletable:pageToolbar>
</div>
<!-- /.table-responsive -->
</div>
<!-- /span -->
</div>
</div>
</div>
</div>
</form>
</body>
</html>