我正在使用PXSelector选择联系人记录。 PXSelector和PXRestrictor起作用,并且我仅看到特定客户记录的活动联系人。但是,在屏幕上会显示联系人ID,连字符和显示名称(例如“ 12345-Smith,John”)。我希望它仅显示不带ID的显示名称。这是我在DAC中使用的代码:
[PXDBInt()]
[PXUIField(DisplayName = "Billing Contact", Visibility = PXUIVisibility.Visible)]
[PXSelector(typeof(Search2<Contact.contactID,
LeftJoin<BAccount, On<BAccount.bAccountID, Equal<Contact.bAccountID>>>>),
DescriptionField = typeof(Contact.displayName),
Filterable = true,
DirtyRead = true)]
[PXRestrictor(typeof(Where<Contact.contactType, NotEqual<ContactTypesAttribute.bAccountProperty>,
And<WhereEqualNotNull<BAccount.bAccountID, Customer.bAccountID>>>), PX.Objects.CR.Messages.ContactBAccountDiff, typeof(Contact.displayName))]
[PXRestrictor(typeof(Where<Contact.isActive, Equal<True>>), PX.Objects.CR.Messages.ContactInactive, typeof(Contact.displayName))]
public virtual int? UsrBillingContactId { get; set; }
public abstract class usrBillingContactId : IBqlField { }
在此先感谢您的帮助!