bpm组织架构,模型文件显示优化

This commit is contained in:
yujh 2024-08-02 16:27:46 +08:00
parent 725c10b5d0
commit abb5e75d6d

View File

@ -2925,7 +2925,11 @@ public class CoeProcessLevelWeb extends ActionWeb {
} else if ("awsorg".equals(type)) {// 关联bpm组织架构
JSONObject refObj = JSONObject.parseObject(attributeModel.getRef());
event = "readonly='readonly' data-value=" + dataArr + " groupPath=\"" + attributeModel.getGroupPath() + "\" ref=" + refObj + " onclick=\"openRelationAwsorgDialog($(this))\"";
input = "<input type='text' title=\"" + inputValue + "\" class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + inputValue + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" isRequired='" + isRequired + "' placeholder='" + desc + "' data-originvalue='" + inputValue + "' " + event + "/>";
List<JSONObject> jsonObjectList = dataArr.toJavaList(JSONObject.class);
String result = jsonObjectList.stream()
.map(jsonObject -> jsonObject.getString("name")) // 将每个JSONObject映射为其name字段的值
.collect(Collectors.joining(","));
input = "<input type='text' title=\"" + inputValue + "\" class='awsui-textbox' name=\"" + id + "\" id=\"" + id + "\" value=\"" + result + "\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" isRequired='" + isRequired + "' placeholder='" + desc + "' data-originvalue='" + inputValue + "' " + event + "/>";
} else if ("DateTimePicker".equals(type)) {
input = "<input class=\"awsui-textbox\" autocomplete='off' id=\"" + id + "\" name=\"dateTimePicker\" sid=\"" + sid + "\" uuid=\"" + uuid + "\" placeholder='" + desc + "' data-originvalue='" + inputValue + "' value='" + inputValue + "' isRequired='" + isRequired + "' onblur='saveContent($(this));'>" + "</input>";
} else if ("table".equals(type)) {
@ -8429,7 +8433,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
} else if (category.equals("org") && model.getSchema().contains("角色图")) {
methodObj.put("havingCreatePerm", false);
} else if (category.equals("org") && model.getSchema().contains("ORG 组织结构图")) {
methodObj.put("havingCreatePerm", false);
methodObj.put("havingCreatePerm", true);
} else if (category.equals("control") && model.getSchema().contains("制度图")) {
methodObj.put("havingCreatePerm", false);
} else if (category.equals("control") && model.getSchema().contains("末级流程绩效")) {
@ -9007,6 +9011,15 @@ public class CoeProcessLevelWeb extends ActionWeb {
boolean writeFileTodisk = writeFileTodisk(this.getContext(), shpId, formFile.getFileName(),
originfile, uuid, "s");
System.out.println("writeFileTodisk = " + writeFileTodisk);
//往合同正文里新建dc
DCPluginProfile dcProfilepdf = DCProfileManager.getDCProfile("com.actionsoft.apps.coe.pal.datamigration",
"migration");
DCContext dcContextpdf = new DCContext(this.getContext(), dcProfilepdf, "com.actionsoft.apps.coe.pal.datamigration",
"policyFile", uuid, formFile.getFileName());
boolean write = SDK.getDCAPI().write(originfile, dcContextpdf);
System.out.println("write = " + write);
}