apzl_leasing/src_sys/com/tenwa/flow/action/comm/CopyLbContractInfoToTemp.java
2018-06-03 22:26:41 +08:00

28 lines
960 B
Java

package com.tenwa.flow.action.comm;
import java.util.HashMap;
import java.util.Map;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class CopyLbContractInfoToTemp extends BaseBussiness{
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String id = this.getAttribute("ContractId").toString();
String flowunid = this.getAttribute("ObjectNo").toString();
Map<String,String> fromCondtion = new HashMap<String,String>();
fromCondtion.put("ID", id);
Map<String,String> otherProperty = new HashMap<String,String>();
otherProperty.put("FLOWUNID", flowunid);
DataOperatorUtil.copySingleJBO(LB_CONTRACT_INFO.CLASS_NAME, fromCondtion, jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO_TEMP.CLASS_NAME, null, otherProperty, Sqlca);
return "true";
}
}