diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java index 3d14aea..801d331 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java @@ -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); diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/operate/SubmitInContractBillOp.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/operate/SubmitInContractBillOp.java index 641d288..09869ef 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/operate/SubmitInContractBillOp.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/operate/SubmitInContractBillOp.java @@ -15,12 +15,14 @@ public class SubmitInContractBillOp extends InContractBillOp{ public void onAddValidators(AddValidatorsEventArgs e) { super.onAddValidators(e); List 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); } }