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

import com.yem.wm.im.delivernotice.validator.DeliverNoticeSubmitValidator;
import com.yem.wm.im.delivernotice.validator.DeliverNoticeValidator;
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.bos.entity.plugin.PreparePropertysEventArgs;

import java.util.List;

public class DeliverNoticesSubmitOp extends AbstractOperationServicePlugIn {
    @Override
    public void onPreparePropertys(PreparePropertysEventArgs e) {
        super.onPreparePropertys(e);
        e.getFieldKeys().addAll(this.billEntityType.getAllFields().keySet());
    }
    @Override
    public void onAddValidators(AddValidatorsEventArgs e) {
        super.onAddValidators(e);
//        e.addValidator(new DeliverNoticeSubmitValidator());
        e.addValidator(new DeliverNoticeValidator());
    }
}
