如何在特定邮寄 ID 下显示客户的所有联系人?
How can I display all of a Customer's contacts under a specific Mailing ID?
在数据库中,我看不到 BAccount/Customer 表与 Notification/NotificationSource/NotificationRecipient 表之间的直接关系。我试图找到这种关系,我认为这种关系是在财务 -> 应收账款 -> 客户 -> 邮件设置 -> 邮件 -> 收件人中建立的。我正在尝试将在特定邮件 ID 中处于活动状态的客户的所有联系人拉到一个页面以显示给用户。
从 BAccount 到联系 DAC:
[PXParent(typeof(Select<BAccount,
Where<BAccount.bAccountID, Equal<Current<Contact.bAccountID>>,
And<BAccount.type, NotEqual<BAccountType.combinedType>>>>))]
从联系 DAC 到联系通知 DAC(NotificationRecipient.ContactID):
[PXParent(typeof(Select<Contact,
Where<Contact.contactID, Equal<Current<ContactNotification.contactID>>>>))]
ContactNotification DAC 中的投影使用 NotificationSource.sourceID 键检索 NotificationSource:
[PXProjection(typeof(Select2<NotificationRecipient,
InnerJoin<NotificationSource,
On<NotificationSource.sourceID, Equal<NotificationRecipient.sourceID>>>>),
Persistent = true)]
在数据库中,我看不到 BAccount/Customer 表与 Notification/NotificationSource/NotificationRecipient 表之间的直接关系。我试图找到这种关系,我认为这种关系是在财务 -> 应收账款 -> 客户 -> 邮件设置 -> 邮件 -> 收件人中建立的。我正在尝试将在特定邮件 ID 中处于活动状态的客户的所有联系人拉到一个页面以显示给用户。
从 BAccount 到联系 DAC:
[PXParent(typeof(Select<BAccount,
Where<BAccount.bAccountID, Equal<Current<Contact.bAccountID>>,
And<BAccount.type, NotEqual<BAccountType.combinedType>>>>))]
从联系 DAC 到联系通知 DAC(NotificationRecipient.ContactID):
[PXParent(typeof(Select<Contact,
Where<Contact.contactID, Equal<Current<ContactNotification.contactID>>>>))]
ContactNotification DAC 中的投影使用 NotificationSource.sourceID 键检索 NotificationSource:
[PXProjection(typeof(Select2<NotificationRecipient,
InnerJoin<NotificationSource,
On<NotificationSource.sourceID, Equal<NotificationRecipient.sourceID>>>>),
Persistent = true)]