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

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,15 +60,21 @@ public class CommonCostCenterBillFormPlugin extends AbstractBillPlugIn implement
//监听实物卡片F7字段点击事件 //监听实物卡片F7字段点击事件
if (entryCostList.contains(entityId)){ if (entryCostList.contains(entityId)){
BasedataEdit edit = this.getView().getControl("std_entrycostcenter"); BasedataEdit edit = this.getView().getControl("std_entrycostcenter");
if (edit != null){
edit.addBeforeF7SelectListener(this); edit.addBeforeF7SelectListener(this);
}
}else if (costList.contains(entityId)){ }else if (costList.contains(entityId)){
BasedataEdit edit = this.getView().getControl("std_costcenter"); BasedataEdit edit = this.getView().getControl("std_costcenter");
if (edit != null){
edit.addBeforeF7SelectListener(this); edit.addBeforeF7SelectListener(this);
}
} else if (travelCostList.contains(entityId)) { } else if (travelCostList.contains(entityId)) {
BasedataEdit edit = this.getView().getControl("travelcostcenter"); BasedataEdit edit = this.getView().getControl("travelcostcenter");
if (edit != null){
edit.addBeforeF7SelectListener(this); edit.addBeforeF7SelectListener(this);
} }
} }
}
/** /**
* 支付公司默认为人员上的劳动主体 * 支付公司默认为人员上的劳动主体