调整app业务变更流程风险预警
This commit is contained in:
parent
8e910bca76
commit
d92354c305
@ -191,42 +191,6 @@ public class ChangeBusinessBO implements Serializable {
|
||||
if (msg.startsWith("success")) {
|
||||
serialNo = msg.split("@")[1];
|
||||
}
|
||||
BizObjectManager ftnbom = JBOFactory.getBizObjectManager(FLOW_STEP_NODE.CLASS_NAME, tx);
|
||||
BizObject bo = ftnbom.newObject();
|
||||
objectNo = params.get("FlowUnid");
|
||||
projectId = params.get("ProjectId");
|
||||
bo.setAttributeValue("flowunid", objectNo);
|
||||
bo.setAttributeValue("flowno", "BusinessChangeFlow");
|
||||
bo.setAttributeValue("taskno", serialNo);
|
||||
bo.setAttributeValue("nodeno", "11080");
|
||||
String jsonstr="{'AgentFlowUser':'','EndTime':'','SubjectName':'"+params.get("SubjectName")+"',"
|
||||
+ "'ProjectName':'"+params.get("ProjectName")+"',"
|
||||
+ "'IsHistory':'false',"
|
||||
+ "'ProductId':'"+params.get("ProductId")+"',"
|
||||
+ "'PhaseNo':'0010','AssignSubmittype':'',"
|
||||
+ "'CurUserID':'"+params.get("CurUserID")+"',"
|
||||
+ "'ObjectType':'ProductDefaultObject','flowstate':'START','ApplyType':'BusinessChangeApply','Assignfinish':'',"
|
||||
+ "'certtype':'"+params.get("certtype")+"',"
|
||||
+ "'ViewID':'',"
|
||||
+ "'carAttributes':'"+params.get("carAttributes")+"',"
|
||||
+ "'TempletNo':'LBChangeInfoTemp',"
|
||||
+ "'SubjectId':'"+params.get("SubjectId")+"',"
|
||||
+ "'customertype':'"+params.get("customertype")+"',"
|
||||
+ "'FlowKey':'"+params.get("FlowKey")+"',"
|
||||
+ "'TaskNo':'"+params.get("taskno")+"',"
|
||||
+ "'NodeNo':'11080',"
|
||||
+ "'ProjectId':'"+params.get("ProjectId")+"',"
|
||||
+ "'CurFlowUserId':'"+params.get("CurUserID")+"',"
|
||||
+ "'RoleId':'"+new ASUser(curUserId).getRoleTable().toString()+"','CurFlowUser':'"+new ASUser(curUserId).getUserName()+"',"
|
||||
+ "'FlowUnid':'"+objectNo+"',"
|
||||
+ "'leasform':'"+params.get("leasform")+"',"
|
||||
+ "'ProductStage':'BusinessChangeFlow',"
|
||||
+ "'FlowNo':'BusinessChangeFlow',"
|
||||
+ "'FlowName':'ÒµÎñ±ä¸üÁ÷³Ì','operationType':'WYC','RightType':'','ObjectNo':'"+objectNo+"'}";
|
||||
|
||||
bo.setAttributeValue("param", jsonstr);
|
||||
bo.setAttributeValue("templetno", "LBChangeInfoTemp");
|
||||
ftnbom.saveObject(bo);
|
||||
}
|
||||
|
||||
public String getSerialNo() {
|
||||
|
||||
@ -24,6 +24,7 @@ import com.base.util.JsonUtil;
|
||||
import com.base.util.MultipartDataUtil;
|
||||
import com.base.util.ReturnMapUtil;
|
||||
import com.tenwa.flow.task.TenwaFlowTask;
|
||||
import com.tenwa.flow.treeview.action.CheckAndSaveTreeView;
|
||||
|
||||
public class DoSubmitService {
|
||||
private String taskNo; // 流水号
|
||||
@ -236,6 +237,14 @@ public class DoSubmitService {
|
||||
FlowAction.setPhaseNo(phaseNo);
|
||||
FlowAction.setUserID(sUserId);
|
||||
|
||||
//检查是否初始化页面的节点
|
||||
CheckAndSaveTreeView checkAndSaveTreeView = new CheckAndSaveTreeView();
|
||||
checkAndSaveTreeView.setTaskNo(this.taskNo);
|
||||
String result = checkAndSaveTreeView.run(tx);
|
||||
if(flag && !"success".equals(result)){
|
||||
flag = false;
|
||||
this.message = "/初始化页面节点失败,请联系管理员!";
|
||||
}
|
||||
// 检查是否签署意见
|
||||
BizObject flowModel = GetFlowAction.getFlowModelParams(flowNo, phaseNo);
|
||||
String isOpitionRequired = flowModel.getAttribute("OPINIONSREQUIRED")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user