This commit is contained in:
xuhaihui 2025-09-04 17:46:17 +08:00
parent 0a9727920a
commit 3a9048e460
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package zcgj.zcdev.zcdev.pr.plugin.form;
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.bos.entity.plugin.PreparePropertysEventArgs;
import kd.ec.material.opplugin.validator.IdCardValidator;
import kd.ec.material.opplugin.validator.LabourValidator;
public class LabourOpExt extends AbstractOperationServicePlugIn {
public LabourOpExt() {
}
public void onPreparePropertys(PreparePropertysEventArgs e) {
super.onPreparePropertys(e);
e.getFieldKeys().add("entryentity.idcard");
}
public void onAddValidators(AddValidatorsEventArgs e) {
super.onAddValidators(e);
e.addValidator(new LabourValidator());
e.addValidator(new IdCardValidator());
}
}