erp - Acumatica 中的 PXAttributeExtension

标签 erp acumatica

有谁知道怎么用PXAttributeExtension Acumatica ?

我可以用它来修改现有的属性吗,例如 CurrencyInfoAttribute ?

最佳答案

PX.Data.PXAttributeExtension 已从 5.1 版中删除

幸运的是,Acumatica 提供了多种覆盖和修改系统中现有属性的方法,最常用的方法是:

[PXMergeAttributes] - 放置在 CacheAttached 处理程序上,重用 DAC 中定义的现有属性

[PXMergeAttributes(Method = MergeMethod.Merge)]
[NPSubaccount(typeof(APTranExtension.usrNPFundID), typeof(APTranExtension.usrNPMasterID), typeof(APTran.accountID), typeof(APTran.branchID), true)]
protected virtual void APTran_SubID_CacheAttached(PXCache sender)
{
}

[PXCustomizeBaseAttributeAttribute] - 放置在 CacheAttached 处理程序上,覆盖特定屏幕的属性上的单个属性
[PXMergeAttributes(Method = MergeMethod.Merge)]
[PXCustomizeBaseAttribute(typeof(PXUIFieldAttribute), nameof(PXUIFieldAttribute.DisplayName), "Refined Subaccount")]
protected virtual void APTran_SubID_CacheAttached(PXCache sender)
{
}

可以在此处找到有关覆盖和自定义属性的方法的精彩文章:https://www.codeday.top/2017/10/10/47532.html

关于erp - Acumatica 中的 PXAttributeExtension,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28092151/

相关文章:

acumatica - 使用 Acumatica Rest API 创建或检索客户付款方式时出现问题

erp - abas-ERP(FO-语言)/AJO : Getting mandatory fields of screen

javascript - 优先级-web-sdk : Specific number of rows

python - Odoo 中雇主名称的技术名称是什么?

grid - Acumatica - 从代码隐藏的网格中获取多条选定行

javascript - 从 Zendesk(javascript) 连接到 Acumatica(IIS)

content-management-system - 用于医院管理系统的 CMS 和 ERP

mysql - 类似类型的数据保留一张表还是多张表,在考虑高性能的情况下哪一个最好

azure - 在 MS Azure 上部署 Acumatica ERP

acumatica - 项目定制错误