收入支出合同界面插件

This commit is contained in:
小石 2024-12-03 19:11:55 +08:00
parent 4ccb84dd51
commit 1f58305837
2 changed files with 6 additions and 1 deletions

View File

@ -59,6 +59,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"));
} }
ComboEdit comboEdit = getView().getControl("zcgj_belongingsector"); ComboEdit comboEdit = getView().getControl("zcgj_belongingsector");
comboEdit.setComboItems(comboList); comboEdit.setComboItems(comboList);

View File

@ -1,4 +1,6 @@
package zcgj.zcdev.zcdev.pr.plugin.operate; package zcgj.zcdev.zcdev.pr.plugin.operate;
import com.apusic.juli.logging.Log;
import com.apusic.juli.logging.LogFactory;
import kd.bos.entity.plugin.AddValidatorsEventArgs; import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.bos.entity.validate.AbstractValidator; import kd.bos.entity.validate.AbstractValidator;
import kd.ec.contract.opplugin.InContractBillOp; import kd.ec.contract.opplugin.InContractBillOp;
@ -7,6 +9,8 @@ import kd.ec.contract.opplugin.validator.ContractValidator;
import java.util.List; import java.util.List;
public class SubmitInContractBillOp extends InContractBillOp{ public class SubmitInContractBillOp extends InContractBillOp{
private final static Log logger = LogFactory.getLog(SubmitInContractBillOp.class);
@Override @Override
public void onAddValidators(AddValidatorsEventArgs e) { public void onAddValidators(AddValidatorsEventArgs e) {
super.onAddValidators(e); super.onAddValidators(e);
@ -14,7 +18,7 @@ public class SubmitInContractBillOp extends InContractBillOp{
for (AbstractValidator validator:validators){ for (AbstractValidator validator:validators){
if (validator instanceof ContractValidator){ if (validator instanceof ContractValidator){
validators.remove(validator); validators.remove(validator);
System.out.println("合同总金额校验已取去除"); logger.info("合同总金额校验已取去除");
break; break;
} }
} }