diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/ChangeDebitCardList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/ChangeDebitCardList.jsp index d367e399a..5f3df97f2 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/ChangeDebitCardList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/ChangeDebitCardList.jsp @@ -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("发起电子签约失败!!!"); } } diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/NewBaseMessage.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/NewBaseMessage.java new file mode 100644 index 000000000..127b34a3d --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/NewBaseMessage.java @@ -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; + } +} \ No newline at end of file