DAC BLC对象

时间:2017-07-13 17:35:37

标签: acumatica dac

如何访问DAC和BLC的对象?

class BaseDACExtension : PXCacheExtension<BaseDAC>
{
    public void SomeMethod()
    {
        BaseDAC dac = Base;
    }
}

1 个答案:

答案 0 :(得分:1)

假设我正确理解了您的问题,只需在您的基本DAC或基本图表上调用GetExtension ...

对于DAC扩展:(其中baseDac是BaseDac的实例)

var dacExt = baseDac.GetExtension<BaseDACExtension>();

对于图表扩展:(其中baseGraph是BaseGraph的一个实例)

var graphExt = baseGraph.GetExtension<BaseGraphExtension>();