如何判断 Acumatica 门户网站与标准 Acumatica ERP 网站中的定制是 运行?

How to tell if a customization is running in an Acumatica portal site vs standard Acumatica ERP site?

我可以在 Acumatica 框架中进行一些调用(除了查找 "SP" 文件)来指示站点是 "Portal" 站点还是标准 Acumatica ERP 实例站点?

如果一个实例是 运行 作为门户网站而不是 运行 门户网站,我需要转变 off/on 一些逻辑。

您可以检查以下静态布尔值属性:

PXSiteMap.IsPortal