经销商变更

This commit is contained in:
58261 2018-10-15 14:57:36 +08:00
parent 8713e4a848
commit d65c6f7f51
3 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,29 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.HashMap;
import java.util.Map;
import jbo.app.tenwa.customer.DISTRIBUTOR_SUBSIDIARY;
import jbo.app.tenwa.customer.DISTRIBUTOR_SUBSIDIARY_TEMP;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class DistributorSubsidiaryChangeTempToFarmal extends BaseBussiness{
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid =this.getAttribute("ObjectNo").toString();
String distributor_id=this.getAttribute("distributor_no").toString();
Map<String,String> fromCondtion=new HashMap<String, String>();
fromCondtion.put("flowunid", flowunid);
Map<String, String> toCondtion=new HashMap<String, String>();
toCondtion.put("distributor_id", distributor_id);
DataOperatorUtil.copyJBOSet(DISTRIBUTOR_SUBSIDIARY_TEMP.CLASS_NAME, fromCondtion, DISTRIBUTOR_SUBSIDIARY.CLASS_NAME, toCondtion, null,null, Sqlca);
String sMessage="true";
return sMessage;
}
}

View File

@ -0,0 +1,31 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.HashMap;
import java.util.Map;
import jbo.app.tenwa.customer.DISTRIBUTOR_SUBSIDIARY;
import jbo.app.tenwa.customer.DISTRIBUTOR_SUBSIDIARY_TEMP;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class DistributorSubsidiaryFarmalToTemp extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
initBussinessParam(Sqlca);
this.initBussinessParam(Sqlca);
String flowunid =this.getAttribute("ObjectNo").toString();
String distributor_id=this.getAttribute("distributor_no").toString();
Map<String,String> fromCondtion=new HashMap<String, String>();
fromCondtion.put("distributor_id", distributor_id);
Map<String, String> toCondtion=new HashMap<String, String>();
toCondtion.put("FLOWUNID", flowunid);
DataOperatorUtil.copyJBOSet(DISTRIBUTOR_SUBSIDIARY.CLASS_NAME, fromCondtion, DISTRIBUTOR_SUBSIDIARY_TEMP.CLASS_NAME, null, toCondtion,null, Sqlca);
String sMessage="true";
return sMessage;
}
}

View File

@ -0,0 +1,29 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.HashMap;
import java.util.Map;
import jbo.app.tenwa.customer.DISTRIBUTOR_SUBSIDIARY;
import jbo.app.tenwa.customer.DISTRIBUTOR_SUBSIDIARY_TEMP;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class DistributorSubsidiaryTempToFarmal extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid =this.getAttribute("ObjectNo").toString();
String distributor_id=this.getAttribute("distributorId").toString();
Map<String,String> fromCondtion=new HashMap<String, String>();
fromCondtion.put("flowunid", flowunid);
Map<String, String> toCondtion=new HashMap<String, String>();
toCondtion.put("distributor_id", distributor_id);
DataOperatorUtil.copyJBOSet(DISTRIBUTOR_SUBSIDIARY_TEMP.CLASS_NAME, fromCondtion, DISTRIBUTOR_SUBSIDIARY.CLASS_NAME, toCondtion, null,null, Sqlca);
String sMessage="true";
return sMessage;
}
}