diff --git a/src_tenwa/com/tenwa/lease/flow/contract/commbusiness/LBCalcContractStatusBusiness.java b/src_tenwa/com/tenwa/lease/flow/contract/commbusiness/LBCalcContractStatusBusiness.java new file mode 100644 index 000000000..b76fc1c41 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/contract/commbusiness/LBCalcContractStatusBusiness.java @@ -0,0 +1,24 @@ +package com.tenwa.lease.flow.contract.commbusiness; + +import jbo.app.tenwa.calc.LC_CALC_CONDITION_STATUS; + +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.flow.baseBussion.BaseBussiness; + +public class LBCalcContractStatusBusiness extends BaseBussiness { + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String contractId=this.getAttribute("ContractId").toString(); + String contractStatus=this.getAttribute("ContractStatus").toString(); + String payment_number=this.getAttribute("payment_number").toString(); + BizObjectManager bom=JBOFactory.getBizObjectManager(LC_CALC_CONDITION_STATUS.CLASS_NAME); + Sqlca.join(bom); + bom.createQuery("update O set plan_status=:contractstatus where CONTRACT_ID=:contractid and PAYMENT_NUMBER=:paymentnumber").setParameter("contractstatus", contractStatus).setParameter("contractid",contractId).setParameter("paymentnumber",payment_number).executeUpdate(); + String sMessage="true"; + return sMessage; + } +}