支付公司初始化及成本中心过滤通用插件

This commit is contained in:
zengweihai 2024-05-30 11:18:22 +08:00
parent 799d538d55
commit 1db49e5e80
1 changed files with 9 additions and 3 deletions

View File

@ -60,13 +60,19 @@ public class CommonCostCenterBillFormPlugin extends AbstractBillPlugIn implement
//监听实物卡片F7字段点击事件
if (entryCostList.contains(entityId)){
BasedataEdit edit = this.getView().getControl("std_entrycostcenter");
edit.addBeforeF7SelectListener(this);
if (edit != null){
edit.addBeforeF7SelectListener(this);
}
}else if (costList.contains(entityId)){
BasedataEdit edit = this.getView().getControl("std_costcenter");
edit.addBeforeF7SelectListener(this);
if (edit != null){
edit.addBeforeF7SelectListener(this);
}
} else if (travelCostList.contains(entityId)) {
BasedataEdit edit = this.getView().getControl("travelcostcenter");
edit.addBeforeF7SelectListener(this);
if (edit != null){
edit.addBeforeF7SelectListener(this);
}
}
}