C# Acumatica中的筛选器不遵循行级安全性
请帮助我:( acumatica中销售价格工作表(AR202010)屏幕中的Pricecode字段。当我选择priceType=customer时,Pricecode显示所有客户,并且不遵循我安装的行级安全性 我在另一个屏幕上查看了一些客户字段,但过滤器仍然正确C# Acumatica中的筛选器不遵循行级安全性,c#,acumatica,acumatica-kb,C#,Acumatica,Acumatica Kb,请帮助我:( acumatica中销售价格工作表(AR202010)屏幕中的Pricecode字段。当我选择priceType=customer时,Pricecode显示所有客户,并且不遵循我安装的行级安全性 我在另一个屏幕上查看了一些客户字段,但过滤器仍然正确 很抱歉,我的英语不好,我希望每个人都理解我在说什么。非常感谢。这可能是Acumatica中的一个错误,我建议打开一个关于此问题的案例,以便他们在将来的版本中修复此问题。同时,您可以创建ARPriceWorksheetMaint的PXGr
很抱歉,我的英语不好,我希望每个人都理解我在说什么。非常感谢。这可能是Acumatica中的一个错误,我建议打开一个关于此问题的案例,以便他们在将来的版本中修复此问题。同时,您可以创建ARPriceWorksheetMaint的PXGraphExtension并覆盖CustomerCode视图以添加客户群限制
public class ARPriceWorksheetMaintExtension : PXGraphExtension<ARPriceWorksheetMaint>
{
#region Views
public PXSelectJoin<BAccount,
InnerJoin<Customer, On<Customer.bAccountID, Equal<BAccount.bAccountID>>>,
Where2<
Where<Match<Customer, Current<AccessInfo.userName>>>,
And<
Where<BAccount.type, Equal<BAccountType.customerType>,
Or<BAccount.type, Equal<BAccountType.combinedType>>>>>> customerCode;
#endregion
}
公共类ARPriceWorksheetMaintExtension:PXGraphExtension
{
#区域视图
公共PXSelectJoin>>客户代码;
#端区
}
在代码片段中,我创建了一个customerCode代码视图(使用小写c)这将覆盖Acumatica的CustomerCode视图。在我的视图中,我向Customer添加了一个内部联接,以便可以添加Customer上的匹配项,该匹配项将对select应用组限制。这将更改selector属性的查询,因为在ArpriceWorksheetMain中,Acumatica覆盖ExecuteSelect方法,将BQL更改为使用e客户代码视图