28 lines
969 B
Java
28 lines
969 B
Java
package com.tenwa.flow;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO;
|
|
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO_TEMP;
|
|
|
|
import com.amarsoft.awe.util.Transaction;
|
|
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
|
import com.tenwa.flow.baseBussion.BaseBussiness;
|
|
|
|
public class CopyDChargeFormalToTemp extends BaseBussiness{
|
|
|
|
@Override
|
|
public Object run(Transaction Sqlca) throws Exception {
|
|
this.initBussinessParam(Sqlca);
|
|
String flowunid = this.getAttribute("ObjectNo").toString();
|
|
String id = this.getAttribute("ProjectId").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(DISTRIBUTOR_INFO.CLASS_NAME, fromCondtion, DISTRIBUTOR_INFO_TEMP.CLASS_NAME, null, otherProperty, Sqlca);
|
|
return "true";
|
|
}
|
|
}
|