已开发功能优化
This commit is contained in:
parent
c73c174a87
commit
469940ddc6
|
@ -5,7 +5,6 @@ import kd.bos.dataentity.entity.LocaleString;
|
||||||
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
||||||
import kd.bos.form.field.ComboEdit;
|
import kd.bos.form.field.ComboEdit;
|
||||||
import kd.bos.form.field.ComboItem;
|
import kd.bos.form.field.ComboItem;
|
||||||
import kd.bos.form.field.TextEdit;
|
|
||||||
import kd.sdk.plugin.Plugin;
|
import kd.sdk.plugin.Plugin;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
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("昆钢"), "31"));
|
||||||
comboList.add(new ComboItem(new LocaleString("台泥"), "32"));
|
comboList.add(new ComboItem(new LocaleString("台泥"), "32"));
|
||||||
comboList.add(new ComboItem(new LocaleString("万年青"), "33"));
|
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 comboEdit = getView().getControl("zcgj_belongingsector");
|
||||||
comboEdit.setComboItems(comboList);
|
comboEdit.setComboItems(comboList);
|
||||||
|
|
|
@ -15,12 +15,14 @@ public class SubmitInContractBillOp extends InContractBillOp{
|
||||||
public void onAddValidators(AddValidatorsEventArgs e) {
|
public void onAddValidators(AddValidatorsEventArgs e) {
|
||||||
super.onAddValidators(e);
|
super.onAddValidators(e);
|
||||||
List<AbstractValidator> validators = e.getValidators();
|
List<AbstractValidator> validators = e.getValidators();
|
||||||
for (AbstractValidator validator:validators){
|
for (int i = 0; i < validators.size(); i++) {
|
||||||
if (validator instanceof ContractValidator){
|
AbstractValidator abstractValidator = validators.get(i);
|
||||||
validators.remove(validator);
|
if (abstractValidator instanceof ContractValidator){
|
||||||
|
validators.remove(abstractValidator);
|
||||||
|
i--;
|
||||||
logger.info("合同总金额校验已取去除");
|
logger.info("合同总金额校验已取去除");
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
System.out.println(validators);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue