已开发功能优化

This commit is contained in:
xiaoshi 2024-12-04 19:35:59 +08:00
parent c73c174a87
commit 469940ddc6
2 changed files with 7 additions and 6 deletions

View File

@ -5,7 +5,6 @@ import kd.bos.dataentity.entity.LocaleString;
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
import kd.bos.form.field.ComboEdit;
import kd.bos.form.field.ComboItem;
import kd.bos.form.field.TextEdit;
import kd.sdk.plugin.Plugin;
import java.util.ArrayList;
@ -59,7 +58,7 @@ public class ContractPublicBillPlugin extends AbstractBillPlugIn implements Plug
comboList.add(new ComboItem(new LocaleString("昆钢"), "31"));
comboList.add(new ComboItem(new LocaleString("台泥"), "32"));
comboList.add(new ComboItem(new LocaleString("万年青"), "33"));
comboList.add(new ComboItem(new LocaleString("万年青"), "34"));
comboList.add(new ComboItem(new LocaleString("其他未列明第三方"), "34"));
}
ComboEdit comboEdit = getView().getControl("zcgj_belongingsector");
comboEdit.setComboItems(comboList);

View File

@ -15,12 +15,14 @@ public class SubmitInContractBillOp extends InContractBillOp{
public void onAddValidators(AddValidatorsEventArgs e) {
super.onAddValidators(e);
List<AbstractValidator> validators = e.getValidators();
for (AbstractValidator validator:validators){
if (validator instanceof ContractValidator){
validators.remove(validator);
for (int i = 0; i < validators.size(); i++) {
AbstractValidator abstractValidator = validators.get(i);
if (abstractValidator instanceof ContractValidator){
validators.remove(abstractValidator);
i--;
logger.info("合同总金额校验已取去除");
break;
}
}
System.out.println(validators);
}
}