dobe_comic8/main/java/shkd/repc/recon/opplugin/SupplierChangeOpPlugin.java

28 lines
941 B
Java
Raw Normal View History

package shkd.repc.recon.opplugin;
import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.repc.resm.formplugin.changesupplier.ChangeSupplierOp;
import shkd.repc.recon.formplugin.SupplierChangeServicePlugin;
import shkd.repc.recon.validator.SupplierChangeValidator;
/**
* 生成变更记录(二开)
*qeug_resm_change_supp_ext
*/
public class SupplierChangeOpPlugin extends ChangeSupplierOp {
protected SupplierChangeServicePlugin changeSupplierService = new SupplierChangeServicePlugin();
@Override
public void onAddValidators(AddValidatorsEventArgs e) {
e.addValidator(new SupplierChangeValidator());
}
@Override
protected void syncRegSupplierAndRegiestSupplier(DynamicObject officialSupplier) {
this.changeSupplierService.syncRegSupplier(officialSupplier);
this.changeSupplierService.syncRegiestSupplier(officialSupplier);
}
}