ABFramework中设置关联表下拉选择的方法
作者:互联网
场景:选择客户后,再选择品牌,只显示客户品牌(客户定义几个品牌)
IF EXISTS (select b.Brand,b.code,cb.* from M_Tabs_CustomerBrand cb left join M_Brand b on cb.BrandID=b.BrandID where CustomerID=:CustomerID)
begin
select b.Brand,b.code,cb.* from M_Tabs_CustomerBrand cb left join M_Brand b on cb.BrandID=b.BrandID where CustomerID=:CustomerID
end
else
begin
select * from M_Brand
end
标签:code,cb,Brand,BrandID,表下,关联,ABFramework,CustomerID,select 来源: https://www.cnblogs.com/edrp/p/16390150.html