ClaimActivityPopup note capture¶
This operation captures a Category, Type, and free-text note for a Claim Activity, using cached code-table lookups, and confirms the entry back to the hosting page.
| Field | Value |
|---|---|
| Operation ID | OP-1 |
| Trigger | Hosting page sets Active = True (and typically TaskID, NoteText, optional default codes) then triggers a re-render. |
| Inputs | TaskID, NoteText, DefaultCategoryCode, DefaultTypeCode |
| Outputs | ConfirmAction(True, ClaimNoteEventArgs) raised on confirmation; no persistence performed by this control |
| Primary components | ClaimActivityPopup.CreateChildControls, ClaimActivityPopup.LoadCodeTables, ClaimActivityPopup.LoadDropDowns, ClaimActivityPopup.YesButtonClick |
| Entry point | SAIF.Presentation.Web.Controls.PopUps.Infragistics111\ClaimActivityPopup.vb |
Steps¶
CreateChildControls()callsLoadCodeTables(), which loads (or reads from an 8-hourHttpContext.Cacheentry keyedClaimActivityCategoryCodes/ClaimActivityTypeCodes) two code collections viaclsCodeCollection.GetCodeCollection(...)andclsClaimActivityTypeCodeCollection.GetCodes(...)— these calls delegate to the referencedSAIF.Business/SAIF.Business.View.Claimpackages and are not traced further in this library's scope**.- Parses
ClaimActivityPopup.ascxand locatesddlCategory,ddlType,chkExternalView,cmdYeschild controls; wiresddlCategoryCodeIndexChangedandYesButtonClickhandlers. - On
PreRender, ifActive, callsLoadDropDowns()to bind the Category dropdown (and the Type dropdown filtered by category) if not already populated, applyingDefaultCategoryCode/DefaultTypeCodeas the initial selection. - On Category change (
ddlCategoryCodeIndexChanged): - Re-filters and rebinds the Type dropdown for the newly selected category.
- Sets the
chkExternalViewcheckbox from the category'sLongDescriptionflag (BR-POPUP-002). Render()truncatesNoteTextto 200 characters for display (full text kept inToolTip), positions the popup perTop/Left, re-enables the controls, and renders the composed markup; registers a startup script to focus the Category dropdown.- On
cmdYesclick (YesButtonClick) (BR-POPUP-001): - Builds a
ClaimNoteEventArgsfrom the currentTaskID, selected category/type,chkExternalView.Checked, andNoteText. - Clears the dropdown items and checkbox, reloads the dropdowns, then raises
ConfirmAction(True, args). - No direct persistence occurs in this library; the hosting page's event handler is responsible for saving the note.
Process flow¶
The following diagram visualizes the note-capture control flow.
flowchart TD
Start([Hosting page sets Active = True]) --> Create[CreateChildControls loads code tables and ASCX]
Create --> Bind[LoadDropDowns binds Category/Type]
Bind --> Change{Category changed?}
Change -->|Yes| Refilter[Rebind Type dropdown, set ExternalView flag]
Change -->|No| Render[Render popup]
Refilter --> Render
Render --> Yes{User clicks OK}
Yes -->|Yes| Build[Build ClaimNoteEventArgs]
Build --> Confirm([ConfirmAction True raised])
Yes -->|No further action| Hidden([Popup remains inactive until re-triggered])
Failure and edge-case behavior¶
- No code-level guard prevents confirmation with default/empty Category or Type selections; the popup relies on a static instructional label rather than a validation check*.
Related documentation¶
Sources¶
SAIF.Presentation.Web.Controls.PopUps.Infragistics111\ClaimActivityPopup.vbSAIF.Presentation.Web.Controls.PopUps.Infragistics111\ClaimActivityPopup.ascx