GetEntLogons(Nullable<Int32>,String,String,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The GetEntLogons() method retrieves entities that users are logged on to, from the Ent_Logon table.
If optionally filtering the results by a specific entity, this overload of the method specifies the entity by its name and its site name.
public static DataSet GetEntLogons(
Nullable<int> sessionId,
string entName,
string siteName,
string userId
)
Parameters
- sessionId
Optional. Holds the session ID and thus the user who is making this method call.
- entName
- Optional. Holds the name of the entity by which to filter the entities that are being retrieved.
- siteName
- Optional. Holds the site name of the entity by which to filter the entities that are being retrieved.
- userId
- Optional. Holds the ID of a logged-on user by which to filter the entities that are being retrieved.
Return Value
Returns a DataSet that contains the records in the Ent_Logon 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 |
|---|---|
|
session_id |
An integer that is the ID of the session and thus the user who is making this method call. |
|
ent_id |
An integer that is the ID of the entity that this user has logged on to. |
|
user_id |
A string that is the ID of the user who is logged on to this entity. |
|
start_time |
A datetime that is the user’s logon time on this entity, represented in client’s local time. |
|
ent_name |
A string that is the name of the entity, from the ent.ent_name linked to this entity. |
|
cur_lab_cd |
A string that is the default labor code for this user/entity. |
|
pct_lab_to_apply |
A double that is the default percentage of labor time to apply, if logged on to more than one entity at a time. |
|
cur_lab_dept_id |
A string that is the default labor department. |
|
cur_lab_usage_log_id |
An integer that is the ID of the current active row in the Labor_Usage table (not reliable if there is more than one Job_Exec per entity). |
|
cur_lab_desc |
A string that is the description of the labor code, from the labor_cat.lab_desc column linked to this labor code. |
|
color |
A long value that identifies the background color that should be displayed on the user interface when this labor category is selected. |
|
cur_lab_dept_desc |
A string that is the description of the labor department, from labor_dept.dept_desc column linked to this labor department. |