代码之家  ›  专栏  ›  技术社区  ›  Jerry Welliver

库存项目DAC中的备注属性

  •  0
  • Jerry Welliver  · 技术社区  · 6 年前

    我正在编写一个例程,它需要InventoryItem DAC中的几个字段,我注意到NoteID字段上的所有属性。我知道[PXNote]属性携带note字段和方法的所有属性,但是[PXSearchable]属性做什么?

    #region NoteID
    public abstract class noteID : PX.Data.IBqlField { }
    protected Guid? _NoteID;
    [PXSearchable(SearchCategory.IN, "{0}: {1}", 
     new Type[] { typeof(InventoryItem.itemType), typeof(InventoryItem.inventoryCD) },
     new Type[] { typeof(InventoryItem.descr) }, 
     NumberFields = new Type[] { typeof(InventoryItem.inventoryCD) },
     Line1Format = "{0}{1}{2}", 
     Line1Fields = new Type[] { typeof(INItemClass.itemClassCD),
                                typeof(INItemClass.descr), 
                                typeof(InventoryItem.baseUnit) },
     Line2Format = "{0}", 
     Line2Fields = new Type[] { typeof(InventoryItem.descr) },
     WhereConstraint = typeof(Where<Current<InventoryItem.itemStatus>, 
                                 NotEqual<InventoryItemStatus.unknown>>)
    )]
    [PXNote]
    public virtual Guid? NoteID { get; set; }
    #endregion
    
    1 回复  |  直到 6 年前
        1
  •  1
  •   Samvel Petrosov    6 年前

    PXSearchableAttribute 用于在Acumatica的全文实体索引中包含记录的指定字段。它允许您在左上角的搜索框(现代用户界面)中搜索字段值。