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