当前上下文中不存在名称 'Base'

The name 'Base' does not exist in the current context

我正在尝试创建一个函数来提供日志,但我做不到,因为我不知道如何传递 base 参数,我尝试过:Base, this, this.Base :)

错误:名称 'Base' 在当前上下文中不存在

谢谢

    namespace ZLOG
    {
      public class INSERTLOG
      {
           public string exec(string traitement, string detail)
            {
              ZZLOGGRAPH graph = PXGraph.CreateInstance<ZZLOGGRAPH>();
              ZZLOG dac = new ZZLOG();
              dac.Logdate=DateTime.Now;
              PX.SM.Branch un_etab = PXSelect<Branch, Where<Branch.branchID, Equal<Current<AccessInfo.branchID>>>>.Select(Base);  
              if (un_etab!=null) {dac.Logetab=un_etab.BranchCD;}
              
              graph.ListViewZZLOG.Insert(dac);
              graph.Actions.PressSave();
              return "OL";
            }
      }
   }

只需使用 ZZLOGGRAPH 实例 - 图。

PX.SM.Branch un_etab = PXSelect<Branch, Where<Branch.branchID, Equal<Current<AccessInfo.branchID>>>>.Select(graph);