NotifyPopup¶
NotifyPopup captures a Notify ID, Notify Date, and Notify Text for a Task/Notify entry, enforcing required-field and future-date validation before confirming the entry to the hosting page (OP-4). It performs no delegated business/data access beyond the clsSmartDate value type used to carry the captured date.
Purpose¶
- Capture and validate Notify ID, Notify Date, and Notify Text before allowing confirmation (BR-POPUP-003).
- Default the Notify Date to today via client-side scripting when the Notify ID field loses focus.
Context¶
- Namespace:
SAIF.Presentation.Web.Controls.PopUps - Assembly/package:
SAIF.Presentation.Web.Controls.PopUps.Infragistics111(package)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
Active |
Public Property Active() As Boolean |
Toggles whether the popup renders markup |
ControlWithFocus |
Public Property ControlWithFocus() As String |
Identifies which child control receives client-side focus on render (default "txtNotifyID") |
ErrorMsg |
Public Property ErrorMsg() As String |
Holds a validation error message displayed on the popup |
TitleText |
Public Property TitleText() As String |
Sets the popup's title-bar label text |
Top |
Public Property Top() As Integer |
Vertical pixel offset for popup positioning |
Left |
Public Property Left() As Integer |
Horizontal pixel offset for popup positioning |
ConfirmAction |
Public Event ConfirmAction(ByVal Confirm As Boolean, ByVal e As NotifyEventArgs) |
Raised on Save (Confirm = True, only after EditNotifyControls() validation succeeds) or Cancel (Confirm = False) |
NotifyEventArgs (nested type) |
Public Class NotifyEventArgs — constructor New(inNotifyID As String, inNotifyDate As Date, inNotifyText As String) with read-only NotifyID, NotifyDate, NotifyText |
Immutable payload delivered with ConfirmAction, carrying the captured notify-task values |
ResetControls |
Public Sub ResetControls() |
Clears all fields and ErrorMsg, typically called after Cancel |
Behavioral notes¶
- Validation enforces: Notify ID required; if an ID is present, a valid (non-
MinValue) Notify Date is required; and the Notify Date cannot be earlier than today (BR-POPUP-003). - On validation failure, focus (
ControlWithFocus) moves to the offending field andConfirmActionis not raised.
Constraints and usage notes¶
- The Notify Date field is an Infragistics
WebDateTimeEdit(igtxt:WebDateTimeEdit); client-side default-date scripting relies onigedit_getById(...), requiring the Infragistics client script libraries to be present on the hosting page*.
Note: Statements marked with
*were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with**could not be confirmed; treat as unknown until verified.
Sources¶
SAIF.Presentation.Web.Controls.PopUps.Infragistics111\NotifyPopup.vbSAIF.Presentation.Web.Controls.PopUps.Infragistics111\NotifyPopup.ascx