Skip to content

clsProviderServiceList

API reference for clsProviderServiceList.

Purpose

  • List wrapper (Inherits Generic.List(Of clsProviderServiceInfo)) that executes its own direct retrieval query from its constructor, filtered by a supplied provider location ID.
  • Bypasses the IBusinessCriteria/data-portal pattern used by the library's BOF business objects.

Context

  • Namespace: SAIF.Business.View.Provider
  • Assembly/package: SAIF.BOF.Business.View.Provider

Public members

Member Signature Purpose
New Public Sub New(ByVal inDPI As IDataPortalInfo, ByVal inProviderLocationID As Decimal) Executes a hand-built SELECT joining PROVIDER_SERVICE_CODE and PROVIDER_SERVICE on CODE = PROVIDER_SERVICE_CODE, filtered by PROVIDER_LOCATION_SEQ_NUM (documented as SQL-017) via SqlHelper.ResultSetQuery, constructs a clsProviderServiceInfo from each row, and adds it to the list.

Behavioral notes

  • This class inherits System.Collections.Generic.List(Of clsProviderServiceInfo) directly rather than any BOF collection base — it is not a clsBusinessCollection and has no IBusinessCriteria/Criteria.
  • The constructor is the sole population path; there is no shared Get.../New... static retrieval function.

Inherited members (from List(Of clsProviderServiceInfo))

Member Signature Purpose
Count ReadOnly Property Count As Integer Returns the number of items currently in the list.
Item(index) Default Public Property Item(ByVal index As Integer) As clsProviderServiceInfo Gets or sets the item at the supplied zero-based index.
Add(item) Sub Add(ByVal item As clsProviderServiceInfo) Appends one item to the end of the list.
Remove(item) Function Remove(ByVal item As clsProviderServiceInfo) As Boolean Removes the first matching item and returns whether one was removed.
RemoveAt(index) Sub RemoveAt(ByVal index As Integer) Removes the item at the supplied zero-based index.
Clear() Sub Clear() Removes all items from the list.
Contains(item) Function Contains(ByVal item As clsProviderServiceInfo) As Boolean Returns whether the list contains the supplied item.
IndexOf(item) Function IndexOf(ByVal item As clsProviderServiceInfo) As Integer Returns the zero-based index of the first matching item, or -1 when absent.
Insert(index, item) Sub Insert(ByVal index As Integer, ByVal item As clsProviderServiceInfo) Inserts an item at the supplied zero-based index.
CopyTo(array, index) Sub CopyTo(ByVal array() As clsProviderServiceInfo, ByVal arrayIndex As Integer) Copies list items into the supplied destination array starting at arrayIndex.
GetEnumerator() Function GetEnumerator() As IEnumerator(Of clsProviderServiceInfo) Returns a generic enumerator over the list items.
ToArray() Function ToArray() As clsProviderServiceInfo() Returns a new array containing the current list items.
Sort() Sub Sort() Sorts the list in place using the default comparer for clsProviderServiceInfo.
Find(predicate) Function Find(ByVal match As Predicate(Of clsProviderServiceInfo)) As clsProviderServiceInfo Returns the first item matching the supplied predicate, or the element type's default value when none match.

Sources

  • Business\SAIF.Business.View.Provider\clsProviderServices.vb