clsAffiliatedPolicy¶
clsAffiliatedPolicy represents a single policy related to the policy being viewed. It holds enough to render a row — number, name, status, agent and agency, and a preformatted description — and exposes a Policy property that loads the full clsPolicyData only when a consumer actually navigates to it. That split is what keeps an affiliation list cheap to display.
Purpose¶
- Represents one affiliated policy in the list built for a policy and affiliate type (Retrieve affiliated policies).
- Defers retrieval of the affiliated policy's own header until the
Policyproperty is read.* - Supplies the formatted description used when rendering an affiliation row.
Context¶
- Namespace:
SAIF.Business.View.Policy - Assembly/package:
SAIF.BOF.Business.View.Policy - Declared in:
Business/SAIF.Business.View.Policy/clsAffiliatedPolicy.vb
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| AgencySeqNum | Public ReadOnly Property AgencySeqNum() As Decimal |
Identifier of the agency sequence attached to the affiliated policy.* |
| AgentNum | Public ReadOnly Property AgentNum() As Decimal |
Identifier of the agent attached to the affiliated policy.* |
| FormattedPolicyDescr | Public ReadOnly Property FormattedPolicyDescr() As String |
The preassembled label a consumer displays for this affiliation row. |
| PolicyKey | Public ReadOnly Property PolicyKey() As String |
The string key identifying this row within its collection, used by SetCurrent and Contains. |
| PolicyNum | Public ReadOnly Property PolicyNum() As Decimal |
Identifier of the policy attached to the affiliated policy.* |
| PolicyName | Public ReadOnly Property PolicyName() As String |
Name of the policy recorded against the affiliated policy.* |
| PolicyStatus | Public ReadOnly Property PolicyStatus() As PolicyStatusEnums.Statuses |
The policy status recorded on the affiliated policy.* |
| Policy | Public ReadOnly Property Policy() As clsPolicyData |
The full header of the affiliated policy, loaded on first access rather than with the row.* |
| Equals | Public Overloads Shared Function Equals(ByVal objA As Object, ByVal objB As Object) As Boolean |
Compares two instances for equality without requiring either reference to be non-null. |
| Equals | Public Overloads Overrides Function Equals(ByVal inObject As Object) As Boolean |
Compares this instance with an arbitrary object. |
| Equals | Public Overloads Function Equals(ByVal inObject As clsAffiliatedPolicy) As Boolean |
Compares this instance with another of the same type. |
| ToString | Public Overrides Function ToString() As String |
Renders the instance for logging and debugging.* |
Inherited public members¶
Members in this section are inherited from clsBusinessBase in SAIF.Framework.Core. They are available on this type through inheritance.
| Member | Signature | Purpose | Origin |
|---|---|---|---|
| IsValid | Public Overridable ReadOnly Property IsValid() As Boolean |
Reports whether the object currently breaks any registered business rule.† | SAIF.Framework.Core — clsBusinessBase |
| IsSavable | Public Overridable ReadOnly Property IsSavable() As Boolean |
Reports whether the object may be written back; the read-only types in this library override it to refuse persistence.† | SAIF.Framework.Core — clsBusinessBase |
| BrokenRulesCollection | Public ReadOnly Property BrokenRulesCollection() As clsBrokenRulesCollection |
Carries the messages for the rules currently broken, which is what drives IsValid to false.† |
SAIF.Framework.Core — clsBusinessBase |
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¶
Business/SAIF.Business.View.Policy/clsAffiliatedPolicy.vb