diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/ViewRefishBeforeEvent.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/ViewRefishBeforeEvent.java index 797c2d94..0a354ab0 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/ViewRefishBeforeEvent.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/ViewRefishBeforeEvent.java @@ -111,6 +111,33 @@ public class ViewRefishBeforeEvent implements DataWindowBeforeLoadEventInterface if (shapeAttr.get("key").equals("activity_description")) { bo.set("EXTDESC", shapeAttr.getString("value")); } + if (shapeAttr.get("key").equals("post")) { + String post = ""; + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'post' and SHAPEID = '" + shape.getString("id") + "'"); + for (RowMap rowmaps: + text) { + post+=rowmaps.getString("RELATIONSHAPETEXT")+","; + } + bo.set("POST_NAME",post ); + } + if (shapeAttr.get("key").equals("role")) { + String role = ""; + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'role' and SHAPEID = '" + shape.getString("id") + "'"); + for (RowMap rowmaps: + text) { + role+=rowmaps.getString("RELATIONSHAPETEXT")+","; + } + bo.set("ROLE_NAME", role); + } + if (shapeAttr.get("key").equals("information_systems")){ + String role = ""; + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'information_systems' and SHAPEID = '" + shape.getString("id") + "'"); + for (RowMap rowmaps: + text) { + role+=rowmaps.getString("RELATIONSHAPETEXT")+","; + } + bo.set("IT_SYSTEM", role); + } }); } } diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java index 7afb9565..4b61122d 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java @@ -4575,9 +4575,15 @@ public class ProcessPublishWeb extends ActionWeb { System.out.println("执行了吧"); SDK.getBOAPI().removeByBindId("BO_ACT_PAL_PROCESS_MANIFEST",rowMap.getString("BINDID")); } - SDK.getBOAPI().create("BO_ACT_PAL_PROCESS_MANIFEST", bos, processInst, _uc); + for (BO bo: + bos) { + SDK.getBOAPI().create("BO_ACT_PAL_PROCESS_MANIFEST", bo, processInst, _uc); + } } else { - SDK.getBOAPI().create("BO_ACT_PAL_PROCESS_MANIFEST", bos, processInst, _uc); + for (BO bo: + bos) { + SDK.getBOAPI().create("BO_ACT_PAL_PROCESS_MANIFEST", bo, processInst, _uc); + } } return ro.toString(); } @@ -4603,6 +4609,7 @@ public class ProcessPublishWeb extends ActionWeb { for (int i = 0; i < processLevel.size(); i++) { bo.set("L" + (i + 1), processLevel.get(i).getString("PROPERTYVALUE")); } + SDK.getLogAPI().consoleInfo("活动树形ID>>>>>>>>"+shape.getString("id")); if (shape.containsKey("dataAttributes")) { JSONArray dataAttributes = shape.getJSONArray("dataAttributes"); if (dataAttributes.size() > 0) { @@ -4628,22 +4635,31 @@ public class ProcessPublishWeb extends ActionWeb { } if (shapeAttr.get("key").equals("post")) { String post = ""; - List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'post' and SHAPETEXT = '" + shape.getString("text") + "'"); + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'post' and SHAPEID = '" + shape.getString("id") + "'"); for (RowMap rowmaps: - text) { + text) { post+=rowmaps.getString("RELATIONSHAPETEXT")+","; } bo.set("POST_NAME",post ); } if (shapeAttr.get("key").equals("role")) { String role = ""; - List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'role' and SHAPETEXT = '" + shape.getString("text") + "'"); + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'role' and SHAPEID = '" + shape.getString("id") + "'"); for (RowMap rowmaps: text) { role+=rowmaps.getString("RELATIONSHAPETEXT")+","; } bo.set("ROLE_NAME", role); } + if (shapeAttr.get("key").equals("information_systems")){ + String role = ""; + List text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'information_systems' and SHAPEID = '" + shape.getString("id") + "'"); + for (RowMap rowmaps: + text) { + role+=rowmaps.getString("RELATIONSHAPETEXT")+","; + } + bo.set("IT_SYSTEM", role); + } }); } }