package com.tenwa.flow.fund.flowpayment; import java.util.HashMap; import java.util.Map; import com.amarsoft.awe.util.Transaction; import com.tenwa.flow.baseBussion.BaseBussiness; import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService; import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum; import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp; /** * 拷贝资金计划数据到临时表 * @author zhulh * */ public class CopyFundPlanToTemp extends BaseBussiness{ public Object run(Transaction Sqlca) throws Exception{ this.initBussinessParam(Sqlca.getTransaction()); String sFlowUnid = (String)this.getAttribute("ObjectNo"); String contract_id = (String)this.getAttribute("ContractId"); Map fromCondtion = new HashMap(); fromCondtion.put("contract_id", contract_id); Map otherProperty = new HashMap(); otherProperty.put("FlowUnid", sFlowUnid); LeaseFlowBaseService service=new LeaseFlowBaseServiceImp(); service.copyOrLoadFundPlan(Sqlca, fromCondtion, null , otherProperty, ServiceOperatorEnum.FormalToTemp,null); String sMessage="true"; return sMessage; } }