parent
e6b0f1bae8
commit
899f550f3d
|
@ -0,0 +1,32 @@
|
||||||
|
package shkd.sys.sys.plugin.form;
|
||||||
|
|
||||||
|
import kd.bos.entity.AppMetadataCache;
|
||||||
|
import kd.bos.form.plugin.AbstractFormPlugin;
|
||||||
|
import kd.bos.list.BillList;
|
||||||
|
import kd.bos.orm.query.QFilter;
|
||||||
|
import kd.tmc.am.common.property.BusinessApplyProps;
|
||||||
|
import kd.tmc.fbp.common.helper.TmcParameterHelper;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class ExtAcctBankListEdit extends AbstractFormPlugin {
|
||||||
|
@Override
|
||||||
|
public void initialize() {
|
||||||
|
super.initialize();
|
||||||
|
BillList list = this.getView().getControl(BusinessApplyProps.BILLLISTAP);
|
||||||
|
list.addSetFilterListener(l -> {
|
||||||
|
Map<String, Object> customParams = this.getView().getFormShowParameter().getCustomParams();
|
||||||
|
Object company = customParams.get("companyid");
|
||||||
|
if (company != null && Long.parseLong(company.toString()) > 0) {
|
||||||
|
Long companyId = Long.parseLong(company.toString());
|
||||||
|
String amId = AppMetadataCache.getAppInfo("am").getId();
|
||||||
|
Boolean showInternalAccount = (Boolean) TmcParameterHelper.getAppParameter(amId, companyId, "isshowinternalaccount");
|
||||||
|
if (showInternalAccount != null && !showInternalAccount) {
|
||||||
|
QFilter filter = new QFilter("finorgtype", QFilter.not_equals, "1");
|
||||||
|
l.getQFilters().add(filter);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue