小编abu*_*ger的帖子

在通用图形扩展中声明的覆盖操作

我有一个自定义,通过覆盖该操作来调整 SO Order Entry 上的 ShopRates 操作。 

在 2018 R2 中,ShopRates 操作直接在 SOOrderEntry 图上声明,因此要覆盖该操作,我们只需执行以下操作。 

    public class SOOrderEntry_Extension : PXGraphExtension<SOOrderEntry>
    {
       public PXAction<SOOrder> shopRates;
       [PXUIField(DisplayName = "Shop for Rates", MapViewRights = PXCacheRights.Select, MapEnableRights = PXCacheRights.Update)]
       [PXButton(ImageKey = PX.Web.UI.Sprite.Main.DataEntryF)]
       protected virtual IEnumerable ShopRates(PXAdapter adapter)
       {
          Base.shopRates.Press(adapter);
          // custom code
          return adapter.Get();
       }
    }
Run Code Online (Sandbox Code Playgroud)

但是,在 2019 R1 中,ShopRates 操作已移至 CarrierRatesExtension,这是 SOOrderEntry 图上使用的通用图扩展,由  

public CarrierRates CarrierRatesExt => FindImplementation<CarrierRates>();
public class CarrierRates : CarrierRatesExtension<SOOrderEntry, SOOrder>
{
    . . .     
}
Run Code Online (Sandbox Code Playgroud)

现在 ShopRates 操作不再直接在 SOOrderEntry 图上定义,我如何在我的 …

acumatica

3
推荐指数
1
解决办法
237
查看次数

标签 统计

acumatica ×1