Skip to content

clsAffiliatedPolicyCollection

clsAffiliatedPolicyCollection retrieves affiliated policies for a policy, filterable by agent number and agency sequence number, and is used both directly and as a data source for the policyholder "book of business" list-building operation (Build the current user's book of business).

Purpose

  • Retrieves affiliated policies for a policy via pk72846_view_policy.getpolicyaffiliatelist.
  • Filters out affiliated-policy rows that do not match the requested agent/agency filter (BR-VP-013).

Context

  • Namespace: SAIF.Business.View.Policy
  • Assembly/package: SAIF.Business.View.Policy (embedded library reference)

Public members

Member Signature Purpose
GetAffiliatedPolicyCollection Shared Function GetAffiliatedPolicyCollection(DPI As IDataPortalInfo, PolicyNum As Decimal, AgentNum As Decimal, AgencySeqNum As Decimal) As clsAffiliatedPolicyCollection Retrieves the affiliated-policy collection for a policy, filtered by agent/agency.
Item Default ReadOnly Property Item(index As Integer) As clsAffiliatedPolicy Returns the affiliated policy at the given index.
Count ReadOnly Property Count As Integer Number of affiliated policies matching the filter.

Inherited public members

Members in this section are inherited from clsBusinessCollectionBase in saif.framework.core. They are available on this type through inheritance.

Member Signature Purpose Origin
IsFirst / First() / FirstItem Traversal members Navigate to and identify the first item in the collection.† saif.framework.core — clsBusinessCollectionBase
Next() / IsNext / NextItem Traversal members Navigate to and identify the next item in the collection.† saif.framework.core — clsBusinessCollectionBase
ErrorCount / ErrorMessages Properties Aggregated error count/messages across all member items.† saif.framework.core — clsBusinessCollectionBase

Behavioral notes

  • Rows not matching the agent/agency filter are excluded during AfterRetrieve even though returned by the stored procedure (BR-VP-013).

Constraints and usage notes

  • Both AgentNum and AgencySeqNum being zero is treated as "no filter" (all rows included).*

Note: Statements marked with † are derived from dependency library documentation via the Legends CLI. Statements marked with * were inferred from code structure or contextual evidence. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • SAIF.Business.View.Policy\clsAffiliatedPolicyCollection.vb