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,306 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@page import="com.blueland.bpm.manage.util.*"%>
<%
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}/processInfo/update.do",
data : $('#myform').serialize(),
success : function(resp) {
$("#isChange",window.parent.document).val("0");//保存完毕后把是否已修改还原成未修改
alert(resp);
}
});
});
$('#mprotocol').change(function(){
var val=$(this).children('option:selected').val();
if(val=="http"){
$("#otherSysDealStatus option[value='no']").attr("selected", "selected");
}else{
$("#otherSysDealStatus option[value='yes']").attr("selected", "selected");
}
});
//获取绑定的流程梳理的文件名称
if($("#arisCode").val() != null){
var url = "<%=MyContants.BPM_FILE_PATH%>"+"/ebpm-bpa-web/flow/getAtt?fileId="+$("#arisCode").val();
jQuery.ajax({
url : url,
type : "GET",
success : function(resp) {
$("#arisCodeName").val(resp.NAME);
}
});
}
});
function processTypeNameOnDbClick(name, value) {
//判断流程分类是否修改
moveout("processTypeId");
$("#processTypeName").val(name);
$("#processTypeId").val(value);
}
//焦点移出时对比现在的值和原来的值是否一致 如果不一致则修改父页面的是否修改的标记,标记为已修改
function moveout(id){
//获取父页面是否修改的标记
var isChange = $("#isChange",window.parent.document).val();
if(isChange==0){//如果父页面标记为未修改 则执行下面的操作
var preValue = $("#"+id).attr("preValue");
var value = $("#"+id).val();
if(preValue != value){
//设置标记为已修改
$("#isChange",window.parent.document).val("1");
}
}
}
function save(){
//用jquery中的ajax方法向服务器提交请求
jQuery.ajax({
type : "POST",
async : false,
url : "${ctx}/processInfo/update.do",
data : $('#myform').serialize(),
success : function(resp) {
//设置标记为已修改
$("#isChange",window.parent.document).val("0");//保存完毕后把是否已修改还原成未修改
alert(resp);
}
});
}
function arisCodeNameOnDbClick(name, value) {
$("#arisCodeName").val(name);
$("#arisCode").val(value);
}
function viewFlowFile(){
if($("#arisCode").val() != ""){
var url = "<%=MyContants.BPM_FRONT_PATH%>"+"/ebpm-bpa-front/#/detail?fileId="+$("#arisCode").val()+"&type=.bpmn&isMenu=false";
showDiaLog(url,'查看流程梳理-业务流程资产','1024px','600px');
}else{
alert("请选择流程梳理-业务流程")
}
}
</script>
</head>
<body style="font-size: 13px;font-family: 'Open Sans';" class="white-page">
<form action="${ctx}/processInfo/update.do" method="post"
id="myform">
<div class="main-container" id="main-container">
<div class="panel panel-primary">
<div class="panel-body">
<input type="hidden" id="oldValue"/>
<input type="hidden" id="processDefName" name="processDefName"
value="${processInfoConfig.processDefName}" style="width: 200px;" />
<input type="hidden" id="processDefId" name="processDefId"
value="${processInfoConfig.processDefId}" style="width: 200px;" />
<input type="hidden" id="processDefKey" name="processDefKey"
value="${processInfoConfig.processDefKey}" style="width: 200px;" />
<input type="hidden" id="processMgrState" name="processMgrState"
value="${processInfoConfig.processMgrState}" style="width: 200px;" />
<input type="hidden" id="processModelSyncState" name="processModelSyncState"
value="${processInfoConfig.processModelSyncState}" style="width: 200px;" />
<table class='table table-bordered form-table' border="0" cellspacing="0"
cellpadding="0" id="myTable">
<!-- 存放隐藏域的区域 -->
<!-- 存放表单的区域 -->
<tr>
<td>流程KEY</td>
<td>${processInfoConfig.processDefKey}</td>
<td>流程ID</td>
<td>${processInfoConfig.processDefId}</td>
</tr>
<tr>
<td>流程名称:</td>
<td>${processInfoConfig.processDefName}</td>
<td>流程版本号:</td>
<td>${processInfoConfig.processVersion}</td>
</tr>
<tr>
<td>流程类型:</td>
<td style="width: 250px;">
<input type="text"
<c:choose>
<c:when test="${not empty processInfoConfig.processTypeName}">
value="${processInfoConfig.processTypeName}"
</c:when>
<c:otherwise>
value="请选择"
</c:otherwise>
</c:choose>
name="processTypeName" id="processTypeName" readonly
onclick="showMenu('processTypeName','',''); return false;" />
<input
type="hidden" name="processTypeId" id="processTypeId"
value="${processInfoConfig.processTypeId}" />
<a class="blue" href="javascript:void(0);">
<i class="ace-icon fa fa-search bigger-130"
onclick="showMenu('processTypeName','',''); return false;"/>
</i></a>
</td>
<td>流程是否可见:</td>
<td>
<select name="processStartIsshow" id="processStartIsshow"
preValue="${processInfoConfig.processStartIsshow}"
onchange="moveout(this.id);">
<option value="Y" ${processInfoConfig.processStartIsshow=="Y"?"selected":""}>可见</option>
<option value="N" ${processInfoConfig.processStartIsshow=="N"?"selected":""}>不可见</option>
</select>
</td>
</tr>
<tr>
<td>流程排序号:</td>
<td><input type="text" name="processStartOrder"
preValue="${processInfoConfig.processStartOrder}"
onblur="moveout(this.id);"
value="${processInfoConfig.processStartOrder}"
id="processStartOrder" maxlength="200"
class="validate[length[0,1000]]"
onkeyup="this.value=this.value.replace(/\D/g,'')"
onafterpaste="this.value=this.value.replace(/\D/g,'')"/></td>
<td>流程更新时间:</td>
<td>${processInfoConfig.lastUpdateTimeString}</td>
<!--
<td>起草权限:</td>
<td><input type="text" name="processStartAuth" value=""
id="processStartAuth" class="validate[length[0,500]]" /></td>
-->
</tr>
<c:if test="${customSso != '1'}">
<tr>
<td rowspan="2" style="width: 200px;">桌面端相关配置:</td>
<td style="width: 100px;">环节表单路径</td>
<td colspan="3">
<input style="width: 600px" type="text" name="processPageUrl" value="${processInfoConfig.processPageUrl}" id="processPageUrl" class="validate[length[0,500]]" />
</td>
</tr>
<tr>
<td>处理协议</td>
<td colspan="3">
<select name="cprotocol" id="cprotocol">
<option value="hnzy:workitem" ${processInfoConfig.cprotocol=='hnzy:workitem'||processInfoConfig.cprotocol==null?'selected':''}>专用浏览器模式</option>
<option value="http" ${processInfoConfig.cprotocol=='http'?'selected':''}>普通浏览器模式</option>
</select>
</td>
</tr>
<tr>
<td rowspan="3">手机端相关配置:</td>
<td>环节表单路径</td>
<td colspan="3">
<input style="width: 600px" type="text" name="murl" value="${processInfoConfig.murl}" id="murl" class="validate[length[0,500]]" />
</td>
</tr>
<tr>
<td>处理协议</td>
<td colspan="3">
<select name="mprotocol" id="mprotocol">
<option value="none" ${processInfoConfig.mprotocol=='none'||processInfoConfig.mprotocol==null?'selected':''}>不支持手机处理</option>
<option value="http" ${processInfoConfig.mprotocol=='http'?'selected':''}>H5</option>
</select>
</td>
</tr>
<tr>
<td>处理状态</td>
<td colspan="3">
<select name="otherSysDealStatus" id="otherSysDealStatus">
<option value="" ${processInfoConfig.mprotocol==null?'selected':''}>请选择</option>
<option value="yes" ${processInfoConfig.otherSysDealStatus=='yes'?'selected':''}>仅阅读</option>
<option value="no" ${processInfoConfig.otherSysDealStatus=='no'?'selected':''}>可处理</option>
</select>
</td>
</tr>
<tr>
<td width="15%">流程业务处理类:</td>
<td colspan="3"><input style="width: 550px;" type="text"
name="processHandlerClassPath"
preValue="${processInfoConfig.processHandlerClassPath}"
onblur="moveout(this.id);"
value="${processInfoConfig.processHandlerClassPath}"
id="processHandlerClassPath" maxlength="200"
class="validate[length[0,1000]]" /></td>
</tr>
</c:if>
<%-- <tr>
<td width="15%">流程梳理-业务流程:</td>
<td colspan="3">
<input
<c:choose>
<c:when test="${not empty processInfoConfig.arisCode}">
value=""
</c:when>
<c:otherwise>
value="请选择"
</c:otherwise>
</c:choose>
name="arisCodeName" id="arisCodeName" readonly
onclick="showFlowFile('arisCodeName','',''); return false;" />
<input
type="hidden" name="arisCode" id="arisCode"
preValue="${processInfoConfig.arisCode}"
value="${processInfoConfig.arisCode}" />
<a class="blue" href="javascript:void(0);">
<i class="ace-icon fa fa-search bigger-130"
onclick="viewFlowFile()"/>
</i></a>
</td>
</tr> --%>
<!--
<tr>
<td>更新者:</td>
<td></td>
<td>更新时间:</td>
<td>${processInfoConfig.lastUpdateTimeString}</td>
</tr>
-->
<tr>
<td>流程备注:</td>
<td colspan="3"><span class="float_left"> <textarea
preValue="${processInfoConfig.remark}"
onblur="moveout(this.id);"
name="remark" id="remark" style="width: 550px;">${processInfoConfig.remark}</textarea>
</span></td>
</tr>
</table>
<div class="col-md-offset-1 col-md-9" style="text-align: center;">
<button type="button" class="btn btn-sm btn-primary"
id="submitButton" />
保存
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
</div>
</div>
</div>
</div>
</form>
<jsp:include page="../../../pages/sysGlType/selectTypeTree.jsp" flush="false" />
</body>
</html>

View File

@@ -0,0 +1,155 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@page import="com.blueland.bpm.manage.util.*"%>
<%
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>
<script type="text/javascript" src="${ctx_js_plugins}/zTree/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="${ctx_js_plugins}/zTree/js/jquery.ztree.core-3.4.js"></script>
<script type="text/javascript" src="${ctx_js_plugins}/zTree/js/jquery.ztree.excheck-3.4.js"></script>
<link rel="stylesheet" href="${ctx_js_plugins}/zTree/css/demo.css" type="text/css">
<link rel="stylesheet" href="${ctx_js_plugins}/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript">
var jQuery_1_4_4= $.noConflict(true);
</script>
<SCRIPT type="text/javascript">
var inputObj;
var initParams1="";
var initParams2="";
var initParams3="";
var initParams4=false;
function createFileSetting(){
var setting = {
view: {
dblClickExpand: false,
expandSpeed: "slow",
selectedMulti: false
},
data: {
simpleData: {
enable : true,
idKey : "id",
pIdKey : "pId" ,
DIY:"isAccessTopMenu"
}
},async: {
enable: true,
url:"<%=MyContants.BPM_FILE_PATH%>"+"/ebpm-bpa-web/flow/getTreeProcessFile"
},
callback: {
onClick: onFileClick
}
};
return setting;
}
function beforeClick(treeId, treeNode) {
var zTree = jQuery_1_4_4.fn.zTree.getZTreeObj("treeFile");
zTree.checkNode(treeNode, !treeNode.checked, null, true);
return false;
}
function onCheck(e, treeId, treeNode) {
var zTree = jQuery_1_4_4.fn.zTree.getZTreeObj("treeFile"),
nodes = zTree.getCheckedNodes(true),
name = "",
id="";
//nodes.sort(function compare(a,b){return a.id-b.id;});
for (var i=0, l=nodes.length; i<l; i++) {
if(nodes[i].level<=0||nodes[i].level<=initParams3)
continue;
name += nodes[i].name + ",";
id += nodes[i].id + ",";
}
if (id.length > 0 ) id = id.substring(0, id.length-1);
if (name.length > 0 ) name = name.substring(0, name.length-1);
try{
var fun=inputObj+"OnDbClick";
eval(fun+"('"+name +"','"+id+"')");
}catch(e){}
}
function onFileClick(e, treeId, treeNode) {
if(treeNode.fileId == null){
return;
}
var zTree = jQuery_1_4_4.fn.zTree.getZTreeObj("treeFile"),
nodes = zTree.getSelectedNodes(),
name = "",
fileId="";
if(nodes==""){
try{
var fun=inputObj+"OnDbClick";
eval(fun+"('','')");
}catch(e){}
hideMenu();
return ;
}
//nodes.sort(function compare(a,b){return a.id-b.id;});
for (var i=0, l=nodes.length; i<l; i++) {
if(nodes[i].level<=0||nodes[i].level<=initParams3)
return;
if(nodes[i].pId=="TOP_FLOW_TYPE"){
continue;
}
name += nodes[i].name + ",";
fileId += nodes[i].fileId + ",";
}
if (fileId.length > 0 ) {
fileId = fileId.substring(0, fileId.length-1);
}else{
return;
}
if (name.length > 0 ) name = name.substring(0, name.length-1);
try{
var fun=inputObj+"OnDbClick";
eval(fun+"('"+name +"','"+fileId+"')");
}catch(e){}
hideMenu();
}
function showFlowFile(inputName,params1,params2,params3) {
initParams1=params1;
initParams2=params2;
initParams3=params3;
jQuery_1_4_4.fn.zTree.init(jQuery_1_4_4("#treeFile"), createFileSetting());
inputObj=inputName;
var cityObj = jQuery_1_4_4("#"+inputName);
var cityOffset = cityObj.offset();
jQuery_1_4_4("#menuFileContent").css({left:cityOffset.left + "px", top:cityOffset.top + cityObj.outerHeight() + "px"}).slideDown("fast");
jQuery_1_4_4("body").bind("mousedown", onBodyDown);
}
function hideMenu() {
jQuery_1_4_4("#menuFileContent").fadeOut("fast");
jQuery_1_4_4("body").unbind("mousedown", onBodyDown);
}
function onBodyDown(event) {
if (!(event.target.id == "menuBtn" || event.target.id == "menuFileContent" || jQuery_1_4_4(event.target).parents("#menuFileContent").length>0)) {
hideMenu();
}
}
jQuery_1_4_4(document).ready(function(){
//
});
</SCRIPT>
</head>
<BODY>
<div id="menuFileContent" class="menuContent" style="z-index:1;display:none; position: absolute;">
<ul id="treeFile" class="ztree" style="margin-top:0; width:270px;height:150px"></ul>
</div>
</BODY>
</HTML>

View File

@@ -0,0 +1,70 @@
<%@ page contentType="text/html;charset=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">
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>流程定义权限管理</title>
</head>
<body>
<div id="scrollContent">
<div class="box2" panelTitle="流程定义信息配置表新增" showStatus="false" roller="true">
<form action="${ctx}/processInfo/save.do" method="post">
<button id="submitButton" name="submitButton" type="submit">
<span class="icon_save">保存</span>
<i class="ace-icon fa fa-save bigger-110"></i>
</button>
<table class="tableStyle">
<tr>
<th>权限分类</th>
<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
<th sortColumn="processDefName" >授权给</th>
<th sortColumn="processTypeId" >操作</th>
</tr>
<tr>
<td>用户授权</td>
<td><input type="text" name="userPowers" id="userPowers" value=""/></td>
<td>
<button id="userPowersSelButton" name="userPowersSelButton" type="button">
<span class="icon_save">选择</span>
</button>
<button id="userPowersClearButton" name="userPowersClearButton" type="button">
<span class="icon_save">重置</span>
</button>
</td>
</tr>
<tr>
<td>角色授权</td>
<td><input type="text" name="rolePowers" id="rolePowers" value=""/></td>
<td>
<button id="rolePowersSelButton" name="rolePowersSelButton" type="button">
<span class="icon_save">选择</span>
</button>
<button id="rolePowersClearButton" name="rolePowersClearButton" type="button">
<span class="icon_save">重置</span>
</button>
</td>
</tr>
<tr>
<td>组织授权(本层级)</td>
<td><input type="text" name="orgPowers" id="orgPowers" value=""/></td>
<td>
<button id="orgPowersSelButton" name="orgPowersSelButton" type="button">
<span class="icon_save">选择</span>
</button>
<button id="orgPowersClearButton" name="orgPowersClearButton" type="button">
<span class="icon_save">重置</span>
</button>
</td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>