解决发布生成代办问题
This commit is contained in:
parent
543e5b9744
commit
226d5937dc
Binary file not shown.
@ -67,7 +67,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
|||||||
for (BO rowData : gridNData) {
|
for (BO rowData : gridNData) {
|
||||||
//下面一行示例代码,可以获取Ajax子表的每行记录的新建状态
|
//下面一行示例代码,可以获取Ajax子表的每行记录的新建状态
|
||||||
String publishfileid = String.valueOf(rowData.getString("PUBLISHFILEID"));//注意:isCreate并不是BO的一个字段,该字段是有接口上层赋值的
|
String publishfileid = String.valueOf(rowData.getString("PUBLISHFILEID"));//注意:isCreate并不是BO的一个字段,该字段是有接口上层赋值的
|
||||||
verifyPublish(publishfileid,rowData,bindid,sb,sb1);
|
verifyPublish(publishfileid,rowData,bindid,sb,sb1,"1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
|||||||
for (BO rowData : gridCData) {
|
for (BO rowData : gridCData) {
|
||||||
//下面一行示例代码,可以获取Ajax子表的每行记录的新建状态
|
//下面一行示例代码,可以获取Ajax子表的每行记录的新建状态
|
||||||
String publishfileid = String.valueOf(rowData.getString("CHANGEDFILEIDNEW"));//注意:isCreate并不是BO的一个字段,该字段是有接口上层赋值的
|
String publishfileid = String.valueOf(rowData.getString("CHANGEDFILEIDNEW"));//注意:isCreate并不是BO的一个字段,该字段是有接口上层赋值的
|
||||||
verifyPublish(publishfileid,rowData,bindid,sb,sb1);
|
verifyPublish(publishfileid,rowData,bindid,sb,sb1,"2");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,8 +87,8 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void verifyPublish(String publishfileid,BO rowData,String bindid,StringBuffer sb,StringBuffer sb1){
|
public void verifyPublish(String publishfileid,BO rowData,String bindid,StringBuffer sb,StringBuffer sb1,String type){
|
||||||
|
defineQualityCheck(publishfileid);
|
||||||
// 校验
|
// 校验
|
||||||
PALRepositoryModel model = PALRepositoryCache.getCache().get(publishfileid);
|
PALRepositoryModel model = PALRepositoryCache.getCache().get(publishfileid);
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
@ -99,6 +99,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
|||||||
if (oldPropertyList != null && oldPropertyList.size() > 0) {
|
if (oldPropertyList != null && oldPropertyList.size() > 0) {
|
||||||
for (PALRepositoryPropertyModel propertyModel : oldPropertyList) {
|
for (PALRepositoryPropertyModel propertyModel : oldPropertyList) {
|
||||||
|
|
||||||
|
|
||||||
//获取文件属性中支持文件
|
//获取文件属性中支持文件
|
||||||
if(propertyModel.getPropertyId().equals("support_files")){
|
if(propertyModel.getPropertyId().equals("support_files")){
|
||||||
//获取关联模型id
|
//获取关联模型id
|
||||||
@ -117,7 +118,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
|||||||
for(int i=0;i<splitRelationFileId.length;i++) {
|
for(int i=0;i<splitRelationFileId.length;i++) {
|
||||||
|
|
||||||
|
|
||||||
defineQualityCheck(splitRelationFileId[i]);
|
|
||||||
fileElements = CoeDesignerUtil.getShapeMessageJson4(splitRelationFileId[i]);
|
fileElements = CoeDesignerUtil.getShapeMessageJson4(splitRelationFileId[i]);
|
||||||
|
|
||||||
PALRepositoryModel onemodel = PALRepositoryCache.getCache().get(splitRelationFileId[i]);
|
PALRepositoryModel onemodel = PALRepositoryCache.getCache().get(splitRelationFileId[i]);
|
||||||
@ -129,10 +130,10 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
|||||||
|
|
||||||
fileElements = CoeDesignerUtil.getShapeMessageJson4(onemodel.getId());
|
fileElements = CoeDesignerUtil.getShapeMessageJson4(onemodel.getId());
|
||||||
|
|
||||||
RowMap publishNrowMap = DBSql.getMap("SELECT T1.* FROM BO_ACT_COE_PUBLISH_N T1 LEFT JOIN APP_ACT_COE_PAL_REPOSITORY T2 on T1.PUBLISHFILEID=T2.ID WHERE T1.BINDID=? AND T1.PUBLISHFILEID=? AND T2.ISPUBLISH=0", bindid, splitRelationFileId[0]);
|
RowMap publishNrowMap = DBSql.getMap("SELECT T1.* FROM BO_ACT_COE_PUBLISH_N T1 LEFT JOIN APP_ACT_COE_PAL_REPOSITORY T2 on T1.PUBLISHFILEID=T2.ID WHERE T1.BINDID=? AND T1.PUBLISHFILEID=? AND T2.ISPUBLISH=0", bindid, splitRelationFileId[i]);
|
||||||
|
|
||||||
|
|
||||||
RowMap publishCrowMap = DBSql.getMap("SELECT T1.* FROM BO_ACT_COE_PUBLISH_C T1 LEFT JOIN APP_ACT_COE_PAL_REPOSITORY T2 on T1.CHANGEDFILEIDNEW=T2.ID WHERE T1.BINDID=? AND T1.CHANGEDFILEIDNEW=? AND T2.ISPUBLISH=0", bindid, splitRelationFileId[0]);
|
RowMap publishCrowMap = DBSql.getMap("SELECT T1.* FROM BO_ACT_COE_PUBLISH_C T1 LEFT JOIN APP_ACT_COE_PAL_REPOSITORY T2 on T1.CHANGEDFILEIDNEW=T2.ID WHERE T1.BINDID=? AND T1.CHANGEDFILEIDNEW=? AND T2.ISPUBLISH=0", bindid, splitRelationFileId[i]);
|
||||||
|
|
||||||
|
|
||||||
if (publishNrowMap == null && publishCrowMap == null) {
|
if (publishNrowMap == null && publishCrowMap == null) {
|
||||||
@ -201,7 +202,13 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(list2.size()==0){
|
if(list2.size()==0){
|
||||||
sb.append(rowData.getString("PUBLISHFILENAME")).append("关联模型名称:").append("</br>").append("【").append(shape.get("plName")).append("】").append("节点名称:").append("【"+shape.get("name")+"】").append("未上传附件,请检查!!!").append("</br>").append(",");
|
String name="";
|
||||||
|
if (type == "1") {
|
||||||
|
name=rowData.getString("PUBLISHFILENAME");
|
||||||
|
} else {
|
||||||
|
name=rowData.getString("CHANGEFILENAME");
|
||||||
|
}
|
||||||
|
sb.append(name).append("关联模型名称:").append("</br>").append("【").append(shape.get("plName")).append("】").append("节点名称:").append("【"+shape.get("name")+"】").append("未上传附件,请检查!!!").append("</br>").append(",");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -358,15 +365,14 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
|||||||
}
|
}
|
||||||
|
|
||||||
int index=sb.indexOf("未填写");
|
int index=sb.indexOf("未填写");
|
||||||
if(index!=-1 ){
|
if(index!=-1){
|
||||||
ro.put("result","error");
|
ro.put("result","error");
|
||||||
}
|
|
||||||
if (sb.length() > 0) {
|
|
||||||
sb1 = sb.deleteCharAt(sb.length() - 1);
|
sb1 = sb.deleteCharAt(sb.length() - 1);
|
||||||
throw new BPMNError("0313", sb1.toString());
|
throw new BPMNError("0313", sb1.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,7 +49,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
initPagination();// 初始化页码
|
initPagination();// 初始化页码
|
||||||
initOptButton();
|
initOptButton();
|
||||||
// listenCloseEvent();// 关闭窗口执行,关闭窗口/刷新都会造成流程实例被删除,注释掉
|
listenCloseEvent();// 关闭窗口执行,关闭窗口/刷新都会造成流程实例被删除,注释掉
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@ -2442,7 +2442,7 @@ function listenCloseEvent() {
|
|||||||
awsui.ajax.request({
|
awsui.ajax.request({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "./jd",
|
url: "./jd",
|
||||||
async: false,
|
/*async: false,*/
|
||||||
data: {
|
data: {
|
||||||
sid: sid,
|
sid: sid,
|
||||||
cmd: "com.actionsoft.apps.coe.pal.publisher_save_status_query",
|
cmd: "com.actionsoft.apps.coe.pal.publisher_save_status_query",
|
||||||
@ -2464,7 +2464,7 @@ function listenCloseEvent() {
|
|||||||
awsui.ajax.request({
|
awsui.ajax.request({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "./jd",
|
url: "./jd",
|
||||||
async: false,
|
/*async: false,*/
|
||||||
data: {
|
data: {
|
||||||
sid: sid,
|
sid: sid,
|
||||||
cmd: "com.actionsoft.apps.coe.pal.publisher_save_status_query",
|
cmd: "com.actionsoft.apps.coe.pal.publisher_save_status_query",
|
||||||
@ -2477,7 +2477,7 @@ function listenCloseEvent() {
|
|||||||
awsui.ajax.request({
|
awsui.ajax.request({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "./jd",
|
url: "./jd",
|
||||||
async: false,
|
/*async: false,*/
|
||||||
data: {
|
data: {
|
||||||
sid: sid,
|
sid: sid,
|
||||||
cmd: "com.actionsoft.apps.coe.pal.publisher_remove",
|
cmd: "com.actionsoft.apps.coe.pal.publisher_remove",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user