【发布时间】:2018-09-21 03:26:34
【问题描述】:
我目前正在进行自定义,我必须在 SalesOrder 屏幕上覆盖“创建货件”操作,以便使用自定义属性值更改位置 ID 并将其保存在 SOSshipLine 表中。谁能指导我如何开始。
【问题讨论】:
标签: acumatica
我目前正在进行自定义,我必须在 SalesOrder 屏幕上覆盖“创建货件”操作,以便使用自定义属性值更改位置 ID 并将其保存在 SOSshipLine 表中。谁能指导我如何开始。
【问题讨论】:
标签: acumatica
这是一种特殊情况,因为 Create Shipment 是一种自动化。此自动化调用 SOSshipmentEntry 页面中的函数“CreateShipment”。要为此添加自定义,您需要做的就是在 SOSshipmentEntry 页面中覆盖此功能。一个通用的函数覆盖是这样完成的:
public delegate void CreateShipmentDelegate(SOOrder order, int? SiteID, DateTime? ShipDate, bool? useOptimalShipDate, string operation, DocumentList<SOShipment> list);
[PXOverride]
public virtual void CreateShipment(SOOrder order, int? SiteID, DateTime? ShipDate, bool? useOptimalShipDate, string operation, DocumentList<SOShipment> list, CreateShipmentDelegate baseMethod)
{
//Code before base call
baseMethod(order, SiteID, ShipDate, useOptimalShipDate, operation, list);
//Code after base call
}
【讨论】: