Skip to content

clsAuditConditionCollection

Collection wrapper and bulk-maintenance surface for current audit-condition rows.

Purpose

  • Retrieve and bulk delete current audit conditions across policy-unit scopes.

Context

  • Namespace: SAIF.Business.UnitStat
  • Assembly/package: SAIF.Business.UnitStat (distributed as NuGet package SAIF.BOF.Business.UnitStat)

Public members

Member Signature Purpose
CurrentItem Public Shadows ReadOnly Property CurrentItem() As clsAuditCondition Gets current item.
HasPolicyUnitErrors Public ReadOnly Property HasPolicyUnitErrors() As Boolean Indicates whether policy unit errors.
HasExposureErrors Public ReadOnly Property HasExposureErrors() As Boolean Indicates whether exposure errors.
HasLossErrors Public ReadOnly Property HasLossErrors() As Boolean Indicates whether loss errors.
Save Public Overrides Function Save() As Boolean Executes the member operation.
Add Public Shadows Function Add(ByVal inAuditCondition As clsAuditCondition) As Integer Executes the member operation.
Contains Public Overloads Function Contains(ByVal inAuditCondition As clsAuditCondition) As Boolean Executes the member operation.
Where Public Function Where(ByVal match As Predicate(Of clsAuditCondition)) As clsAuditConditionCollection Executes the member operation.
NewAuditConditionCollection Public Shared Function NewAuditConditionCollection(ByVal inDataportal As IDataPortalInfo) As clsAuditConditionCollection Creates a new audit condition collection instance.
GetAuditConditions Public Shared Function GetAuditConditions(ByVal inDataportal As IDataPortalInfo, ByVal inPolicyNumber As Decimal, ByVal inPolicyPeriodEffectiveDate As Date) As clsAuditConditionCollection Retrieves audit conditions.
GetPolicyPeriodAudits Public Shared Function GetPolicyPeriodAudits(ByVal inDataportal As IDataPortalInfo, ByVal inPolicyNumber As Decimal, ByVal inPolicyPeriodEffectiveDate As Date) As clsAuditConditionCollection Retrieves policy period audits.
GetPolicyUnitAudits Public Shared Function GetPolicyUnitAudits(ByVal inDataportal As IDataPortalInfo, ByVal inPolicyUnitSeqNum As Decimal) As clsAuditConditionCollection Retrieves policy unit audits.
GetUpdateUserAudits Public Shared Function GetUpdateUserAudits(ByVal inDataportal As IDataPortalInfo, ByVal inUpdateUser As String) As clsAuditConditionCollection Retrieves update user audits.
DeletePolicyPeriodAudits Public Shared Function DeletePolicyPeriodAudits(ByVal inDataportal As IDataPortalInfo, ByVal inPolicyNumber As Decimal, ByVal inPolicyPeriodEfectiveDate As Date) As Integer Deletes policy period audits.
DeletePolicyPeriodExposureAudits Public Shared Function DeletePolicyPeriodExposureAudits(ByVal inDataportal As IDataPortalInfo, ByVal inPolicyNumber As Decimal, ByVal inPolicyPeriodEffectiveDate As Date) As Integer Deletes policy period exposure audits.
DeletePolicyPeriodAuditsByEditType Public Shared Function DeletePolicyPeriodAuditsByEditType(ByRef inDataPortal As IDataPortalInfo, ByVal inPolicyNumber As Decimal, ByVal inPolicyPeriodEffectiveDate As Date, ByVal inEditType As String) As Integer Deletes policy period audits by edit type.
DeletePolicyPeriodLossAudits Public Shared Function DeletePolicyPeriodLossAudits(ByVal inDataportal As IDataPortalInfo, ByVal inPolicyNumber As Decimal, ByVal inPolicyPeriodEffectiveDate As Date) As Integer Deletes policy period loss audits.
DeletePolicyPeriodLossAudits Public Shared Function DeletePolicyPeriodLossAudits(ByVal inDataportal As IDataPortalInfo, ByVal inPolicyUnitSeqNum As Decimal) As Integer Deletes policy period loss audits.
DeletePolicyUnitAuditsByType Public Shared Function DeletePolicyUnitAuditsByType(ByRef inDataPortal As IDataPortalInfo, ByVal inPolicyUnitSeqNum As Decimal, ByVal inEditType As String) As Integer Deletes policy unit audits by type.
DeleteAllAuditsByType Public Shared Function DeleteAllAuditsByType(ByVal inDataPortal As IDataPortalInfo, ByVal inEditTypeCode As String) As Integer Deletes all audits by type.
PolicyNumber Public Property PolicyNumber() As Decimal Gets or sets policy number.
PolicyPeriodEffectiveDate Public Property PolicyPeriodEffectiveDate() As Date Gets or sets policy period effective date.
PolicyUnitSeqNum Public Property PolicyUnitSeqNum() As Decimal Gets or sets policy unit seq num.
UpdateUser Public Property UpdateUser() As String Gets or sets update user.
EditTypeCode Public Property EditTypeCode() As String Gets or sets edit type code.
RetrieveType Public Property RetrieveType() As RetrieveTypes Gets or sets retrieve type.
IsRetrieveAll Public ReadOnly Property IsRetrieveAll() As Boolean Indicates whether retrieve all.
IsRetrieveByPolicyPeriod Public ReadOnly Property IsRetrieveByPolicyPeriod() As Boolean Indicates whether retrieve by policy period.
IsRetrieveByPolicyUnit Public ReadOnly Property IsRetrieveByPolicyUnit() As Boolean Indicates whether retrieve by policy unit.
IsRetrieveByUpdateUser Public ReadOnly Property IsRetrieveByUpdateUser() As Boolean Indicates whether retrieve by update user.
IsRetrieveByEditTypeCode Public ReadOnly Property IsRetrieveByEditTypeCode() As Boolean Indicates whether retrieve by edit type code.

Inherited public members

Members in this section are inherited from clsBusinessCollectionBase in SAIF.BOF.Framework. They are available on this type through inheritance.

Member Signature Purpose Origin
MyGuid ReadOnly Property MyGuid() As String Gets the framework GUID assigned to the collection. SAIF.BOF.Framework — clsBusinessCollectionBase
ItemByGuid ReadOnly Property ItemByGuid(ByVal inGuid As String) As clsBusinessBase Gets a child item by framework GUID. SAIF.BOF.Framework — clsBusinessCollectionBase
Rules ReadOnly Property Rules() As clsRulesManager Gets the rules manager attached to the collection. SAIF.BOF.Framework — clsBusinessCollectionBase
ErrorCount ReadOnly Property ErrorCount() As Integer Gets the current validation error count. SAIF.BOF.Framework — clsBusinessCollectionBase
ErrorMessages ReadOnly Property ErrorMessages() As String() Gets the current validation error messages. SAIF.BOF.Framework — clsBusinessCollectionBase
WarningCount ReadOnly Property WarningCount() As Integer Gets the current validation warning count. SAIF.BOF.Framework — clsBusinessCollectionBase
WarningMessages ReadOnly Property WarningMessages() As String() Gets the current validation warning messages. SAIF.BOF.Framework — clsBusinessCollectionBase
BeginEdit Sub BeginEdit() Begins an editable snapshot for the collection. SAIF.BOF.Framework — clsBusinessCollectionBase
CancelEdit Sub CancelEdit() Restores the prior editable snapshot for the collection. SAIF.BOF.Framework — clsBusinessCollectionBase
ApplyEdit Sub ApplyEdit() Commits the current editable snapshot for the collection. SAIF.BOF.Framework — clsBusinessCollectionBase
Clone Function Clone() As Object Creates a clone of the collection. SAIF.BOF.Framework — clsBusinessCollectionBase
IsManaged ReadOnly Property IsManaged() As Boolean Indicates whether the collection uses managed save behavior. SAIF.BOF.Framework — clsBusinessCollectionBase
CurrentIndex ReadOnly Property CurrentIndex() As Integer Gets the current traversal index. SAIF.BOF.Framework — clsBusinessCollectionBase
XMLElementName Property XMLElementName() As String Gets or sets the XML element name used by framework serialization. SAIF.BOF.Framework — clsBusinessCollectionBase
XMLItemName Property XMLItemName() As String Gets or sets the serialized item element name. SAIF.BOF.Framework — clsBusinessCollectionBase
GetReportXML Function GetReportXML(Optional ByVal inFileStream As System.IO.StreamWriter = Nothing) As String Returns framework report XML for the collection. SAIF.BOF.Framework — clsBusinessCollectionBase
ToXML Function ToXML() As String Serializes the collection to XML. SAIF.BOF.Framework — clsBusinessCollectionBase

Behavioral notes

  • BR-US-024 defines the current code path used by HasPolicyUnitErrors.

Constraints and usage notes

  • Retrieval and delete factory methods support policy-period, policy-unit, update-user, and edit-type scopes.

Sources

  • Business\SAIF.Business.UnitStat\clsAuditConditionCollection.vb
  • Legacy\BusinessObjectFramework\clsBusinessCollectionBase.vb