ID of the provider who is responsible for the sub-referral now.
object.ProviderID
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISCaseService interface |
int
Display the number of the case sub-referrals loaded on the basis of the selected filter and some information about them, including the full names of the providers.
Dim aFilter
Dim aCaseServices
Dim aCaseService
Dim aMessage
Dim i
Вшь aProvider
Set aFilter = Profile.CreateCaseServiceFilter
aFilter.PosID = Profile.CurrentPOSId
set aCaseServices = Profile.LoadCaseServices(aFilter)
aMessage = "Case Sub-Referrals Count = " & aCaseServices.Count
for i = 0 to aCaseServices.Count - 1
set aCaseService = aCaseServices.Item(i)
aMessage = aMessage & vbNewLine &_
"Reason: " & aCaseService.Reason & vbNewLine &_
"Comment: " & aCaseService.Comment & vbNewLine &_
"Opened: " & aCaseService.Opened & vbNewLine &_
"Closed: " & aCaseService.Closed & vbNewLine &_
"Pos Code: " & aCaseService.PosCode & vbNewLine &_
"Source Ref: " & aCaseService.SourceRef & vbNewLine &_
"Subreferral Status: " & aCaseService.SubreferralStatus & vbNewLine
if aCaseService.ProviderId > 0 then
set aProvider = Profile.LoadProviderById(aCaseService.ProviderId)
aMessage = aMessage & "Provider: " & aProvider.FullName & vbNewLine
end if
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Provider ID cannot be found, but To Provider can be found in
.