package com.yem.wm.es.salescontrac.op;

import com.yem.wm.es.salescontrac.validator.SalescontracSubmitVaildator;
import com.yem.wm.es.salescontrac.validator.SalescontracValidetor;
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.bos.entity.plugin.PreparePropertysEventArgs;

import java.util.List;

/**
 * @author zhouc
 * @date 2024/4/22 21:17
 * @className SalescontracSubmitOp
 * @description 框架合同提交服务插件
 */
public class SalescontracSubmitOp 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 SalescontracSubmitVaildator());
        e.addValidator(new SalescontracValidetor());
    }
}
