2017-06-21 57 views
0
#region EquimentID 
    public abstract class quimentID : PX.Data.IBqlField { } 
    protected Int32? _EquimentID; 
    [PXInt] 
    [PXSelector(
     typeof(EPEquipment.equipmentID), 
     SubstituteKey = typeof(EPEquipment.equipmentCD), 
     DescriptionField = typeof(EPEquipment.description) 
    )] 
    [PXUIField(DisplayName = "Equiment ID")] 
    public virtual Int32? EquimentID { get; set; } 
    #endregion 

,但我有一個消息「不正確的語法關鍵字‘加入’附近。」 什麼是我的錯誤?PXSelector只能選擇一個歸檔

回答

1

嘗試用下面的更換你的PXSelector屬性:

[PXSelector(typeof(Search<EPEquipment.equipmentID>), 
     SubstituteKey = typeof(EPEquipment.equipmentCD), 
     DescriptionField = typeof(EPEquipment.description))]