活动清单增加it

This commit is contained in:
Mr-wang 2023-08-23 18:27:54 +08:00
parent 37ae6b91f9
commit f5f8cae9b8
2 changed files with 48 additions and 5 deletions

View File

@ -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<RowMap> 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<RowMap> 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<RowMap> 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);
}
});
}
}

View File

@ -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<RowMap> text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'post' and SHAPETEXT = '" + shape.getString("text") + "'");
List<RowMap> 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<RowMap> text = DBSql.getMaps("select * from APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '" + publishFileId + "' and attrid = 'role' and SHAPETEXT = '" + shape.getString("text") + "'");
List<RowMap> 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<RowMap> 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);
}
});
}
}