update
This commit is contained in:
@@ -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">
|
||||
新 增
|
||||
<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">
|
||||
删 除
|
||||
<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} </td>
|
||||
<td>${item1.remark}</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</c:forEach>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
153
ebpm-process-manage/webapp/pages/actInfo/setActResource/list.jsp
Normal file
153
ebpm-process-manage/webapp/pages/actInfo/setActResource/list.jsp
Normal 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">
|
||||
发 布
|
||||
</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">
|
||||
新 增
|
||||
<i class="ace-icon fa fa-plus bigger-110"></i>
|
||||
</button>
|
||||
<button type="button" onclick="deleteActUser();" class="btn btn-xs btn-danger">
|
||||
删 除
|
||||
<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} </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>
|
||||
@@ -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>
|
||||
@@ -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 </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>
|
||||
|
||||
Reference in New Issue
Block a user