0
我需要定製報銷屏幕(EP301000)執行以下操作:過濾
- 添加用戶字段作爲複選框頭部分(完成)
- 使用該複選框值來篩選RefNbr PXSelector查找,以僅顯示「聲明方」字段中顯示的員工ID的結果。
查看RefNbr的DAC,我看不到任何正常的PXSelector查找,我已經看到了。
有沒有辦法做到這一點?
我需要定製報銷屏幕(EP301000)執行以下操作:過濾
查看RefNbr的DAC,我看不到任何正常的PXSelector查找,我已經看到了。
有沒有辦法做到這一點?
你可以看到DACField使用屬性[EPExpenceClaimSelector]
的該定義如下
public class EPExpenceClaimSelectorAttribute : PXSelectorAttribute
{
public EPExpenceClaimSelectorAttribute()
: base(typeof(Search2<EPExpenseClaim.refNbr,
InnerJoin<EPEmployee, On<EPEmployee.bAccountID, Equal<EPExpenseClaim.employeeID>>>,
Where<EPExpenseClaim.createdByID, Equal<Current<AccessInfo.userID>>,
Or<EPEmployee.userID, Equal<Current<AccessInfo.userID>>,
Or<EPEmployee.userID, OwnedUser<Current<AccessInfo.userID>>,
Or<EPExpenseClaim.noteID, Approver<Current<AccessInfo.userID>>,
Or<EPExpenseClaim.employeeID, WingmanUser<Current<AccessInfo.userID>>>>>>>, OrderBy<Desc<EPExpenseClaim.refNbr>>>)
, typeof(EPExpenseClaim.docDate)
, typeof(EPExpenseClaim.refNbr)
, typeof(EPExpenseClaim.status)
, typeof(EPExpenseClaim.docDesc)
, typeof(EPExpenseClaim.curyDocBal)
, typeof(EPExpenseClaim.curyID)
, typeof(EPEmployee.acctName)
, typeof(EPExpenseClaim.departmentID)
)
{
}
}
您可以使用相同的方法來創建自己的具有屬性附加條件並在緩存附加方法中使用它來替換默認選擇器。
感謝Hybridzz - 我明白了。我使用了PXCustomSelectorAttribute,並使用GetRecords()方法根據屏幕上的自定義複選框在兩個選擇之間進行選擇... – pmfith