我正在编写一个例程,它需要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