GetAll Method (LaborDept)
- Last UpdatedNov 06, 2025
- 2 minute read
The GetAll() method retrieves one or more labor department records from the Labor_Dept table, as specified by the filter parameters. Passing no filter parameters will retrieve all labor department records from the table.
'Declaration
Public Shared Function GetAll( _
ByVal deptId As String, _
ByVal deptDesc As String, _
ByVal spare1 As String, _
ByVal spare2 As String, _
ByVal spare3 As String, _
ByVal spare4 As String, _
ByVal lastEditBy As String, _
ByVal lastEditAt As Nullable(Of Date) _
) As DataSet
'Usage
Dim deptId As String
Dim deptDesc As String
Dim spare1 As String
Dim spare2 As String
Dim spare3 As String
Dim spare4 As String
Dim lastEditBy As String
Dim lastEditAt As Nullable(Of Date)
Dim value As DataSet
value = LaborDept.GetAll(deptId, deptDesc, spare1, spare2, spare3, spare4, lastEditBy, lastEditAt)
public static DataSet GetAll(
string deptId,
string deptDesc,
string spare1,
string spare2,
string spare3,
string spare4,
string lastEditBy,
Nullable<DateTime> lastEditAt
)
Parameters
- deptId
- Optional filter parameter. Holds the ID of the labor department.
- deptDesc
- Optional filter parameter. Holds the description of the labor department.
- spare1
- Optional filter parameter. Holds the contents of the user-defined spare1 field.
- spare2
- Optional filter parameter. Holds the contents of the user-defined spare2 field.
- spare3
- Optional filter parameter. Holds the contents of the user-defined spare3 field.
- spare4
- Optional filter parameter. Holds the contents of the user-defined spare4 field.
- lastEditBy
- Optional filter parameter. Holds the user who added or last changed this record.
- lastEditAt
- Optional filter parameter. Holds the date/time when this record was added or last edited.
Return Value
Returns a DataSet that contains all the records in the Labor_Dept table that satisfy the specified filters. If no matching records are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
Column Name |
Description |
|---|---|
|
dept_id |
A string that is the ID of the labor department. |
|
dept_desc |
A string that is the description of the labor department. |
|
spare1 |
A string that is the contents of the user-defined spare1 field. |
|
spare2 |
A string that is the contents of the user-defined spare2 field. |
|
spare3 |
A string that is the contents of the user-defined spare3 field. |
|
spare4 |
A string that is the contents of the user-defined spare4 field. |
|
last_edit_comment |
A string that contains comments about why the record was added or changed. |
|
last_edit_by |
A string that is the ID of the user who added or last updated this record. |
|
last_edit_at |
A datetime that indicates when the record was added or last updated. |