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 CopyContractInfoToTemp extends BaseBussiness{ public Object run(Transaction Sqlca) throws Exception{ this.initBussinessParam(Sqlca.getTransaction()); String sFlowUnid = (String)this.getAttribute("ObjectNo"); String contractID = (String)this.getAttribute("ContractId"); Map fromCondtion = new HashMap(); fromCondtion.put("ID", contractID); Map otherProperty = new HashMap(); otherProperty.put("FlowUnid", sFlowUnid); LeaseFlowBaseService service=new LeaseFlowBaseServiceImp(); service.copyOrLoadContractInfo(Sqlca, fromCondtion, null,otherProperty, ServiceOperatorEnum.FormalToTemp); String sMessage="true"; return sMessage; } }