From e7fd2733e212379fae0418f40b402d1afd44a113 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Fri, 12 Apr 2019 09:08:54 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=89=A3=E6=AC=BE=E5=8D=A1=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E6=B5=81=E7=A8=8B=E7=BB=93=E6=9D=9F=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=9A=E5=8A=A1=E6=B6=88=E6=81=AF=E6=8F=90=E9=86=92?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E3=80=82=202.=E5=8F=91=E8=B5=B7=E7=94=B5?= =?UTF-8?q?=E5=AD=90=E7=AD=BE=E7=BA=A6=E5=A2=9E=E5=8A=A0=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E6=8F=90=E9=86=92=E6=96=B9=E6=B3=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Comm/LBDebitCard/ChangeDebitCardList.jsp | 3 ++ .../project/commbusiness/NewBaseMessage.java | 40 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 src_tenwa/com/tenwa/lease/flow/project/commbusiness/NewBaseMessage.java 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