clsEmployeeLeaveCollection¶
clsEmployeeLeaveCollection is a public class in SAIF.Business that inherits clsBusinessCollection(Of clsEmployeeLeave) and loads employee-leave records for a system type through a stored procedure.
Purpose¶
- Holds
clsEmployeeLeaveitems with the typed collection behavior supplied byclsBusinessCollection(Of clsEmployeeLeave). - Exposes the deleted-items list as a strongly typed
List(Of clsEmployeeLeave). - Retrieves leave rows for a system type and optional start date through
pk82029_titan.select_employee_leave.
Context¶
- Namespace:
SAIF.Business - Assembly/package:
SAIF.Business
Public members¶
| Member | Signature | Purpose |
|---|---|---|
DeletedList |
Public Overloads ReadOnly Property DeletedList As List(Of clsEmployeeLeave) |
Returns the base collection's deleted items cast to a strongly typed List(Of clsEmployeeLeave). |
GetEmployeeLeave |
<code>Public Shared Function GetEmployeeLeave(ByVal inDPI As IDataPortalInfo, ByVal inSystemType As SystemTypes, _<br>Optional ByVal inStartDate As Date = Nothing) As clsEmployeeLeaveCollection</code> |
Loads a leave collection for the supplied system type and optional start date. |
Behavioral notes¶
GetEmployeeLeavecreates a new collection, then callsLoadwithpk82029_titan.select_employee_leaveand parameters forSystemTypeCodeandStartDate.- The system-type parameter is derived from
CodeMappings.GetSystemTypeMap().Item(inSystemType).Codebefore the load call is issued. - The collection overrides sort behavior so requests to sort by
EmployeeEmplidare redirected to theEmployeeNameproperty ofclsEmployeeLeave. - Other sort requests fall through to the base collection implementation.
Constraints and usage notes¶
- This class declares only the members shown here; add/remove/iteration behavior is inherited from
clsBusinessCollection(Of clsEmployeeLeave). inStartDateis optional and is passed through as theStartDateSQL parameter when provided.- The documented page covers only
clsEmployeeLeaveCollection, not theclsEmployeeLeaveclass defined earlier in the same source file.
Sources¶
Business\SAIF.Business\clsEmployeeLeave.vb