From abb5e75d6d852ccd1389f645895012364f4980de Mon Sep 17 00:00:00 2001 From: yujh Date: Fri, 2 Aug 2024 16:27:46 +0800 Subject: [PATCH] =?UTF-8?q?bpm=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84?= =?UTF-8?q?=EF=BC=8C=E6=A8=A1=E5=9E=8B=E6=96=87=E4=BB=B6=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pal/repository/web/CoeProcessLevelWeb.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java index 89427607..9e0a12fe 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java @@ -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 = ""; + List jsonObjectList = dataArr.toJavaList(JSONObject.class); + String result = jsonObjectList.stream() + .map(jsonObject -> jsonObject.getString("name")) // 将每个JSONObject映射为其name字段的值 + .collect(Collectors.joining(",")); + input = ""; } else if ("DateTimePicker".equals(type)) { 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); }