package nckd.jxccl.hrmp.hbpm.plugin.operate.hr;

import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.AddValidatorsEventArgs;
import nckd.jxccl.hrmp.hbpm.plugin.operate.hr.validator.PositionBillEntryNumberValidator;

/**
 * 岗位申请单分录保存操作插件
 * @entity: nckd_positionbillentry
 * @from: kd.hr.homs.opplugin.web.orgbatch.AdminorgBatchDetailSaveOp
 * @author: jtd
 * @date: 2025/12/23 19:17
 */
public abstract class PositionBillEntrySaveOpPlugin extends AbstractOperationServicePlugIn {

    @Override
    public void onAddValidators(AddValidatorsEventArgs e) {
        super.onAddValidators(e);

        //e.addValidator(new PositionBillEntryNameValidator());
        e.addValidator(new PositionBillEntryNumberValidator());
        //e.addValidator(new PositionBillEntryImportValidator());
    }

    protected abstract String getOperationKey();
}
