尊敬的先生/女士,
我有一个关于在Acumatica中扩展图的问题。
我用2个自定义视图扩展了 SalesOrderEntry Graph ,即 ReservationDetails和PropertyItems 。一切运行良好,除了当我尝试获取记录时,PropertyItems视图上的详细信息没有填充。
扩展图
main
自定义表-ReservationDetail DAC
public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{
#region Selects
public PXSelect<RECOReservationDetail,
Where<RECOReservationDetail.reservationNbr,
Equal<Current<SOOrder.orderNbr>>>> ReservationDetails;
public PXSelectJoin<InventoryItem,
LeftJoin<RECOReservationDetail, On<InventoryItem.inventoryID,
Equal<RECOReservationDetail.inventoryID>,
And<RECOReservationDetail.reservationNbr,
Equal<Current<SOOrder.orderNbr>>>>>,
Where<InventoryItem.inventoryID,
Equal<Current<RECOReservationDetail.inventoryID>>>> PropertyItems;
上图是我尝试从销售订单中获取订单时的视图。如您所知,除了功能组,它会填充文档详细信息部分。我已经在库存ID 字段上输入了 CommitChanges = True ,以便它将为功能部件填充必要的信息,但可惜的是它不填充任何数据。
namespace RealEstate.DAC.CO
{
[Serializable]
public class RECOReservationDetail : IBqlTable
{
#region Reservation Nbr.
[PXDBString(15, IsKey = true)]
[PXUIField(DisplayName = "Reservation Nbr.")]
[PXParent(typeof(Select<SOOrder,
Where<SOOrder.orderNbr,
Equal<Current<RECOReservationDetail.reservationNbr>>>>))]
[PXDBDefault(typeof(SOOrder.orderNbr))]
public virtual string ReservationNbr { get; set; }
public abstract class reservationNbr : IBqlField { }
#endregion
#region Branch ID
[PXDBInt]
[PXSelector(typeof(Search<Branch.branchID>),
SubstituteKey = typeof(Branch.branchCD))]
[PXUIField(DisplayName = "Branch ID", Required = true)]
[PXDefault(typeof(AccessInfo.branchID), PersistingCheck = PXPersistingCheck.Nothing)]
public virtual int? BranchID { get; set; }
public abstract class branchID : IBqlField { }
#endregion
#region Inventory ID
[StockItem]
[PXUIField(DisplayName = "Inventory ID")]
public virtual int? InventoryID { get; set; }
public abstract class inventoryID : IBqlField { }
#endregion
我尝试调试它,但是PropertyItems视图始终返回空值。
非常感谢您的答复。
更新-2018年10月5日