【发布时间】:2019-07-05 16:55:33
【问题描述】:
我正在寻找为 ARTran 表添加一个计算字段,它将 Qty 转换为指定的通用 UOM。
通常我会使用计算属性之一,但我不确定如何将操作数添加到 Search 查询。理想的逻辑是
Search2<Mult<ARTran.baseQty, INUnit.unitRate>,
InnerJoin<InventoryItem, On<InventoryItem.inventoryID, Equal<ARTran.inventoryID>>,
InnerJoin<INUnit, On<INUnit.fromUnit, Equal<InventoryItem.baseUnit>, And<INUnit.toUnit, Equal<InventoryItem.purchaseUnit>>>>>,
如果做不到这一点,我一直在尝试编写一个属性,该属性将订阅 RowSelected 事件来计算值。这在 Invoices 屏幕上可以正常工作,但是当在 GI 中使用 DAC 时,调用 RowSelected 事件时行数据为空。
任何一种解决方案的帮助都会很棒。
谢谢
【问题讨论】: