将视图传递给 Acumatica 中的方法

Pass View to method in Acumatica

我运行今天遇到这样一个问题,我无法将视图传递给方法。

我做这一切,就是为了摆脱无数的配音代码。

比如我会展示我是如何看待它的,如果有这种传递给方法的能力,那么如何实现它传递给方法的能力

error when passing to the method

我该如何解决这个问题?

试试这个,看看它是否能帮到你。

public class Test
{
    private SelectFrom<Account>.View testView;

   

    public void Test()
    {
        Method1(testView.View);
        Method2(testView);
    }

    public void Method1(PXView test)
    {

        
    }

    private void Method2(FbqlSelect<SelectFromBase<Account,TypeArrayOf<IFbqlJoin>.Empty>, Account>.View view)
    {
        var current = view.Current;
    }
}