流程互斥检查不返回互斥信息,导致入表时将流程互斥信息入到objectno字段中报错
This commit is contained in:
parent
89acf9e630
commit
617eea1ee2
@ -17,19 +17,20 @@
|
||||
var sParams = "applyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
|
||||
//sParams =sParams+",FlowKey="+distributor_coding+",ProjectId="+id+",ProjectName="+distributor_coding+"-"+distributor_name+",DistributorNo="+distributor_no;
|
||||
sParams =sParams+",FlowKey="+distributor_no+",ProjectId="+id+",ProjectName="+distributor_coding+"-"+distributor_name+",DistributorNo="+distributor_no;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
|
||||
var sReturnInfos=sReturnInfo.split("@");
|
||||
if(sReturnInfos[0]=="success")
|
||||
{
|
||||
var objectNo=sReturnInfos[1];
|
||||
FlowFunction.openStartFlowPage(objectNo);
|
||||
}
|
||||
else
|
||||
{
|
||||
var mes=sReturnInfos[1];
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
|
||||
var sReturnInfos=sReturnInfo.split("@");
|
||||
if(sReturnInfos[0]=="success"){
|
||||
var objectNo=sReturnInfos[1];
|
||||
FlowFunction.openStartFlowPage(objectNo);
|
||||
}else{
|
||||
var mes=sReturnInfos[1];
|
||||
if(mes==undefined){
|
||||
alert(sReturnInfos);
|
||||
}else{
|
||||
alert(mes);
|
||||
}
|
||||
}
|
||||
}
|
||||
reloadSelf();
|
||||
},"¾ÏúÉ̱£Ö¤½ðÊÕÈ¡");
|
||||
}
|
||||
|
||||
@ -64,7 +64,8 @@ public class BaseFlowStartAction extends FlowBussionAction {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
tx.rollback();
|
||||
return error_message;
|
||||
return e.getMessage();
|
||||
//return error_message;
|
||||
}
|
||||
}
|
||||
|
||||
@ -272,7 +273,10 @@ public class BaseFlowStartAction extends FlowBussionAction {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(res.length()>0){res="当前流程和下面流程互斥不同时执行【"+res+"】";}
|
||||
if(res.length()>0){
|
||||
res="当前流程和下面流程互斥不同时执行【"+res+"】";
|
||||
throw new Exception(res);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user