Skip to content

clsTaskCategoryCode

clsTaskCategoryCode represents a single, read-only row of TASK_CATEGORY_CODE, scoped to a source system, including its default action/priority codes and whether a notepad entry is required for tasks of this category.

Purpose

  • Load and expose one category code, its description, its owning source system, and its defaults for action/priority code and notepad requirement (SQL-006).
  • Feed NotepadFlag/IsNotePadRequired into descendant task logic that decides whether a notepad entry must accompany a task.

Context

  • Namespace: SAIF.Business.Tasks
  • Assembly/package: SAIF.Business.Tasks (embedded in the LegalMaintenance web deployment)

Public members

Member Signature Purpose
Code ReadOnly Property Code As String The category code value (TASK_CATEGORY_CODE.CODE).
Description ReadOnly Property Description As String Human-readable description (TASK_CATEGORY_CODE.CODE_DESCR).
DefaultActionCode ReadOnly Property DefaultActionCode As String Default action code for tasks of this category (NVL-defaulted to a blank when null).
DefaultPriorityCode ReadOnly Property DefaultPriorityCode As String Default priority code for tasks of this category (NVL-defaulted to a blank when null).
NotepadFlag ReadOnly Property NotepadFlag As String Raw notepad-required flag column value.
IsNotePadRequired ReadOnly Property IsNotePadRequired As Boolean Convenience boolean derived from NotepadFlag.
TaskSourceCode ReadOnly Property TaskSourceCode As String The owning source system code.
GetCode Shared Function GetCode(dpi As IDataPortalInfo, inTaskSourceSystem As TaskSourceSystem, inCode As String) As clsTaskCategoryCode Factory/retrieval entry point that loads a single category code scoped by source system (SQL-006).
Criteria Friend Class Criteria (nested, implements IBusinessCriteria) Read-only criteria for this code table; write-SQL properties throw ApplicationException(clsConstants.Messages.InvalidSQLProperty) (BR-023).

Behavioral notes

  • The class is <Serializable()>, consistent with remoting/session persistence of BOF objects across the web tier*.
  • Used indirectly by BR-005 validation, though clsTaskBusinessRules.ValidSourceCategory issues its own ad-hoc query rather than calling this type — a flagged cross-layer coupling*.

Constraints and usage notes

  • Any attempt to use CreateSQL/InsertSQL/UpdateSQL/DeleteSQL on this type's Criteria throws ApplicationException(clsConstants.Messages.InvalidSQLProperty) (BR-023).

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.Business.Tasks/clsTaskCategoryCode.vb