package com.yem.wm.im.delivernotice.op;


import com.yem.wm.im.delivernotice.validator.DeliverNoticeSubmitEASValidator;
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.bos.entity.plugin.PreparePropertysEventArgs;
import kd.occ.ocococ.opplugin.deliveryorder.DeliveryOrderValidator;

import java.util.List;

/**
 * @author xwudd
 * @Description
 * @date 17:52
 **/
public class DeliverNoticeEASSubmitOp extends AbstractOperationServicePlugIn {

    @Override
    public void onPreparePropertys(PreparePropertysEventArgs e) {
        e.getFieldKeys().addAll(this.billEntityType.getAllFields().keySet());
    }

    @Override
    public void onAddValidators(AddValidatorsEventArgs e) {
        super.onAddValidators(e);
        e.addValidator(new DeliverNoticeSubmitEASValidator());
    }
}
