1.扣款卡信息变更流程结束增加业务消息提醒方法。

2.发起电子签约增加业务提醒方法。
This commit is contained in:
zhangbb 2019-04-12 09:08:54 +08:00
parent 7593ad9a1d
commit e7fd2733e2
2 changed files with 43 additions and 0 deletions

View File

@ -66,6 +66,7 @@
}
function stamp(){
var CUSTOMER_NAME = getItemValue(0, 0, "CUSTOMER_NAME");
var results = RunJavaMethodTrans("com.tenwa.action.channelportal.businesshanding.contractaward.ContractAward","selectStatus","FlowUnid="+"<%=flowunid%>"+",contract_id="+"<%=contractid%>");
if("1"==results){
alert("请先生成扣款委托书!!!");
@ -76,9 +77,11 @@
}
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","changeCarSignA","FlowUnid="+"<%=flowunid%>"+",contract_id="+"<%=contractid%>"+",flagType=changeCar");
if("success"==result){
var result=RunJavaMethodTrans("com.tenwa.comm.message.controller.BaseBussinessMessage","saveBaseMessageSimple","messageId="+"81ecb54b28e441a49e7b576c680d30bd"+",CUSTOMER_NAME="+CUSTOMER_NAME);
alert("发起电子签约成功!!!");
location.reload();
}else{
alert("发起电子签约失败!!!");
}
}

View File

@ -0,0 +1,40 @@
package com.tenwa.lease.flow.project.commbusiness;
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
import jbo.com.tenwa.lease.carbrand.BUSINESS_STATUS;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.BizObjectQuery;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.util.StringFunction;
import com.amarsoft.awe.util.Transaction;
import com.amarsoft.context.ASUser;
import com.tenwa.comm.message.controller.BaseBussinessMessage;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class NewBaseMessage extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);//ContractStatus
//消息推送的ID,暂时写成死的
String configId = "eacb9d6c398d463193aed6908c0197a0";
String flowUnid=this.getAttribute("ObjectNo").toString();
BizObjectManager FBOM = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME);
BizObject FBO = FBOM.createQuery("flow_unid=:flowunid").setParameter("flowunid", flowUnid).getSingleResult(false);
String proj_name = FBO.getAttribute("proj_name").toString();
BaseBussinessMessage bbm = new BaseBussinessMessage();
bbm.setCUSTOMER_NAME(proj_name);
bbm.run(configId,Sqlca);
String sMessage="true";
return sMessage;
}
}