PAL流程名称调整

This commit is contained in:
zhal 2022-07-18 19:01:54 +08:00
parent 59fe81184d
commit e1538433d2
4 changed files with 23 additions and 34 deletions

View File

@ -37,22 +37,22 @@
<big5><![CDATA[BPMN圖]]></big5> <big5><![CDATA[BPMN圖]]></big5>
</item> </item>
<item key="process.evc"> <item key="process.evc">
<cn><![CDATA[价值链图]]></cn> <cn><![CDATA[架构图]]></cn>
<en><![CDATA[Process.Evc]]></en> <en><![CDATA[Process.Evc]]></en>
<big5><![CDATA[價值鏈圖]]></big5> <big5><![CDATA[價值鏈圖]]></big5>
</item> </item>
<item key="process.flowchart"> <item key="process.flowchart">
<cn><![CDATA[流程图]]></cn> <cn><![CDATA[泳道图]]></cn>
<en><![CDATA[Process.Flowchart]]></en> <en><![CDATA[Process.Flowchart]]></en>
<big5><![CDATA[流程圖]]></big5> <big5><![CDATA[流程圖]]></big5>
</item> </item>
<item key="control.kpi"> <item key="control.kpi">
<cn><![CDATA[流程KPI图]]></cn> <cn><![CDATA[流程绩效]]></cn>
<en><![CDATA[Process.Kpi]]></en> <en><![CDATA[Process.Kpi]]></en>
<big5><![CDATA[流程KPI图]]></big5> <big5><![CDATA[流程KPI图]]></big5>
</item> </item>
<item key="process.epc"> <item key="process.epc">
<cn><![CDATA[过程链图]]></cn> <cn><![CDATA[EPC]]></cn>
<en><![CDATA[Process.Epc]]></en> <en><![CDATA[Process.Epc]]></en>
<big5><![CDATA[過程鏈圖]]></big5> <big5><![CDATA[過程鏈圖]]></big5>
</item> </item>

View File

@ -115,7 +115,8 @@ public class PALMethodCache {
return list; return list;
} else { } else {
List<String> result = new ArrayList<>(); List<String> result = new ArrayList<>();
String[] methodArray = new String[] { "process", "org", "data", "itsystem", "control" }; //String[] methodArray = new String[] { "process", "org", "data", "itsystem", "control" };
String[] methodArray = new String[] { "process","control","data", "org","itsystem"};
for (String method : methodArray) { for (String method : methodArray) {
if (list.contains(method)) { if (list.contains(method)) {
result.add(method); result.add(method);

View File

@ -7843,7 +7843,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
} }
// 内置/扩展建模方法 // 内置/扩展建模方法
List<String> palMethodCategoryList = PALMethodCache.getPALMethodList(true); List<String> palMethodCategoryList = PALMethodCache.getPALMethodList(false);
for (String c : palMethodCategoryList) { for (String c : palMethodCategoryList) {
List<PALMethodModel> list = PALMethodCache.getPALMethodModelListByMethod(c); List<PALMethodModel> list = PALMethodCache.getPALMethodModelListByMethod(c);
for (PALMethodModel model : list) { for (PALMethodModel model : list) {
@ -8343,7 +8343,6 @@ public class CoeProcessLevelWeb extends ActionWeb {
} }
//先执行新建操作产生plid //先执行新建操作产生plid
PALRepository coeProcessLevel = CoeProcessLevelDaoFacotory.createCoeProcessLevel(); PALRepository coeProcessLevel = CoeProcessLevelDaoFacotory.createCoeProcessLevel();
@ -8372,8 +8371,6 @@ public class CoeProcessLevelWeb extends ActionWeb {
JSONObject elements = definition.getJSONObject("elements"); JSONObject elements = definition.getJSONObject("elements");
//新建一个uuid //新建一个uuid
String shapeId = UUIDGener.getObjectId(); String shapeId = UUIDGener.getObjectId();
@ -8419,20 +8416,11 @@ public class CoeProcessLevelWeb extends ActionWeb {
} }
/************************************************文件属性*********************************************************/ /************************************************文件属性*********************************************************/
//图形的数据属性配置 //图形的数据属性配置
List<PALMethodAttributeModel> attrLists=PALRepositoryAPIManager.getInstance().getValidAndUseAttributeModels(wsId, methodId); List<PALMethodAttributeModel> attrLists=PALRepositoryAPIManager.getInstance().getValidAndUseAttributeModels(wsId, methodId);
shapes.add(shape); shapes.add(shape);
JSONArray newShapes = this.getMethodElementsJSONArray(shapes, 1); JSONArray newShapes = this.getMethodElementsJSONArray(shapes, 1);
JSONObject newElements = new JSONObject(); JSONObject newElements = new JSONObject();
for (int i = 0; i < newShapes.size(); i++) { for (int i = 0; i < newShapes.size(); i++) {
@ -8440,8 +8428,6 @@ public class CoeProcessLevelWeb extends ActionWeb {
newElements.put(shapeObj.getString("id"), shapeObj); newElements.put(shapeObj.getString("id"), shapeObj);
} }
definition.put("elements", newElements); definition.put("elements", newElements);
// 设置画布大小 // 设置画布大小

View File

@ -251,6 +251,7 @@ function showRelevanceShapesContent() {
} }
function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) { function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
debugger;
// 属性排序 // 属性排序
var defaultMoreAttr = $('#defaultMoreAttrSort').val(); var defaultMoreAttr = $('#defaultMoreAttrSort').val();
if(defaultMoreAttr.length > 0) { if(defaultMoreAttr.length > 0) {
@ -294,7 +295,7 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
var obj = attributesJsonArray[index]; var obj = attributesJsonArray[index];
if (obj != null && obj != undefined && obj.value != undefined) { if (obj != null && obj != undefined && obj.value != undefined) {
if(obj.name=="活动序号"){ if(obj.name=="活动序号"){
break; continue;
} }
var constr = '<tr>'; var constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
@ -305,23 +306,23 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
// 目前支持到文本的输入 ,需求定下了再改 // 目前支持到文本的输入 ,需求定下了再改
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+':' + obj.value + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+'&nbsp;'+ obj.value + '</td>';
constr += '</tr>'; constr += '</tr>';
} else if (!obj.readonly && obj.type == "link") { } else if (!obj.readonly && obj.type == "link") {
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
// constr += '<td id="' + shape.id + obj.id + '" colspan="2" class="tableContent">' + obj.value + '</td>'; // constr += '<td id="' + shape.id + obj.id + '" colspan="2" class="tableContent">' + obj.value + '</td>';
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+':' + '<a href="' + obj.value + '" target="_blank">' + obj.value + '</a>' + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+'&nbsp;'+ '<a href="' + obj.value + '" target="_blank">' + obj.value + '</a>' + '</td>';
constr += '</tr>'; constr += '</tr>';
} else if (!obj.readonly && obj.type == "number") { } else if (!obj.readonly && obj.type == "number") {
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+':' + obj.value + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+'&nbsp;'+ obj.value + '</td>';
constr += '</tr>'; constr += '</tr>';
} else if (!obj.readonly && obj.type == "boolean") { } else if (!obj.readonly && obj.type == "boolean") {
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+ ':' + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+'&nbsp;'+ '</td>';
constr += '</tr>'; constr += '</tr>';
} else if (!obj.readonly && obj.type == "textarea") { } else if (!obj.readonly && obj.type == "textarea") {
constr = '<tr>'; constr = '<tr>';
@ -329,7 +330,7 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
if (obj.value == undefined) { if (obj.value == undefined) {
obj.value = ''; obj.value = '';
} }
constr += '<td id="' + shape.id + obj.id + '"class="tableContent">' + '【' + obj.name + '】'+ ':' + obj.value.replace(/\n/g, '<br>') + '</td>'; constr += '<td id="' + shape.id + obj.id + '"class="tableContent">' + '【' + obj.name + '】'+'&nbsp;'+ obj.value.replace(/\n/g, '<br>') + '</td>';
constr += '</tr>'; constr += '</tr>';
} else if (obj.readonly && obj.type == "relation") { } else if (obj.readonly && obj.type == "relation") {
var relationValue = ""; var relationValue = "";
@ -338,12 +339,12 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
} }
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+ ':' + relationValue + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+'&nbsp;'+ relationValue + '</td>';
constr += '</tr>'; constr += '</tr>';
} else if (obj.type == "select" || obj.type == "select_m") { } else if (obj.type == "select" || obj.type == "select_m") {
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+ ':' + obj.value + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name + '】'+'&nbsp;'+ obj.value + '</td>';
constr += '</tr>'; constr += '</tr>';
selectFlag = true; selectFlag = true;
@ -362,7 +363,7 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
} }
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name +'】'+ ':' + relationValue + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name +'】'+'&nbsp;'+ relationValue + '</td>';
constr += '</tr>'; constr += '</tr>';
} else if (obj.readonly && obj.type == "deptAddress") { } else if (obj.readonly && obj.type == "deptAddress") {
deptAddress = true; deptAddress = true;
@ -374,7 +375,7 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
} }
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name +'】'+ ':' + relationValue + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name +'】'+'&nbsp;'+ relationValue + '</td>';
constr += '</tr>'; constr += '</tr>';
} else if (obj.readonly && obj.type == "awsorg") { } else if (obj.readonly && obj.type == "awsorg") {
var relationValue = ""; var relationValue = "";
@ -383,7 +384,7 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
} }
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name +'】'+ ':' + relationValue + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name +'】'+'&nbsp;'+ relationValue + '</td>';
constr += '</tr>'; constr += '</tr>';
} else if (obj.readonly && obj.type == "hidden") { } else if (obj.readonly && obj.type == "hidden") {
constr = '<tr ' + mouseout + mouseover + ' objid="' + obj.id + '" class="tagContentTableTr" style="display:none;">' constr = '<tr ' + mouseout + mouseover + ' objid="' + obj.id + '" class="tagContentTableTr" style="display:none;">'
@ -399,11 +400,12 @@ function getPrivateAttributeHtml(attributesJsonArray, tbodyId, shape) {
} }
constr = '<tr>'; constr = '<tr>';
/*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/ /*constr += '<td style="padding-left:20px;" class="tableContent">' + obj.name + '</td>';*/
constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name +'】'+':' + '<span id="' + obj.id + ' " onclick="openDialog(' + JSON.stringify(obj.value).replace(/\"/g, "'") + ')"> ' + tableInput + '</span>' + '</td>'; constr += '<td id="' + shape.id + obj.id + '" class="tableContent">' + '【' + obj.name +'】'+'&nbsp;'+ '<span id="' + obj.id + ' " onclick="openDialog(' + JSON.stringify(obj.value).replace(/\"/g, "'") + ')"> ' + tableInput + '</span>' + '</td>';
constr += '</tr>'; constr += '</tr>';
} }
}
$('#' + tbodyId + ' table[name=' + shape.id + ']').append(constr); $('#' + tbodyId + ' table[name=' + shape.id + ']').append(constr);
}
} }
if (selectFlag) { if (selectFlag) {
getSelectOptions(shape.category, selectValues); //处理select类型 getSelectOptions(shape.category, selectValues); //处理select类型
@ -1457,7 +1459,7 @@ function initProcessDesc() {
for(var i = 1; i <= length; i++) { for(var i = 1; i <= length; i++) {
var obj = processDesc[i]; var obj = processDesc[i];
t += '<tr><td>'; t += '<tr><td>';
t += '<div class="tableContent">' + "【"+obj.name +"】"+ '</div>'; t += '<div class="tableContent">' + "【"+obj.name +"】"+ '</div>';
var value = obj.value; var value = obj.value;
if (value == undefined) { if (value == undefined) {
value = ''; value = '';