StepLogin(Int32,String,Int32,Int32,String,String,String,String,Nullable<DateTime>,Nullable<Int32>) Method
- Last UpdatedNov 06, 2025
- 3 minute read
The StepLogin() method logs a user into a step/lot for the purpose of capturing labor for the step/lot.
This overload of the method uses the entity ID to specify the entity.
'Declaration
Public Overloads Shared Sub StepLogin( _
ByVal sessionId As Integer, _
ByVal userId As String, _
ByVal entId As Integer, _
ByVal stepNo As Integer, _
ByVal lotNo As String, _
ByVal subLotNo As String, _
ByVal labCd As String, _
ByVal deptId As String, _
ByVal eventTime As Nullable(Of Date), _
ByVal jobPos As Nullable(Of Integer) _
)
'Usage
Dim sessionId As Integer
Dim userId As String
Dim entId As Integer
Dim stepNo As Integer
Dim lotNo As String
Dim subLotNo As String
Dim labCd As String
Dim deptId As String
Dim eventTime As Nullable(Of Date)
Dim jobPos As Nullable(Of Integer)
JobExec.StepLogin(sessionId, userId, entId, stepNo, lotNo, subLotNo, labCd, deptId, eventTime, jobPos)
public static void StepLogin(
int sessionId,
string userId,
int entId,
int stepNo,
string lotNo,
string subLotNo,
string labCd,
string deptId,
Nullable<DateTime> eventTime,
Nullable<int> jobPos
)
Parameters
- sessionId
- Required. Holds the ID of the session from which the call is being made.
- userId
- Required. Holds the ID of the user who is working on the step.
- entId
- Required. Holds the ID of the entity on which the step is being run. This will identify the job that contains the step.
- stepNo
- Required. Holds the number of the step that is being worked on.
- lotNo
- Required. Holds the lot number on which this step is being performed.
- subLotNo
- Optional. Holds the sublot number on which this step is being performed.
- labCd
- Optional. Holds the code for the labor that is being performed on this step. Default is the current labor code for this user on the entity.
- deptId
- Optional. Holds the ID of the department to which this labor is chargeable. Default is the current department for this user on the entity.
- eventTime
- Optional. Holds the start time of this labor. Used to synchronize times if required. Default is the current time.
- jobPos
- Optional. Holds the job position. If greater than 1, jobs are running on this entity.
This method starts the collection of labor for this step/lot. The user must already have logged onto this entity and the step must be started. The user might or might not have logged into one or more other step/lot combinations.
If the user is currently logged onto this entity but not onto any specific step/lot then the existing labor record is closed off and is replaced with a new one to reflect this step and lot.
If the user is currently logged onto this entity AND onto any number of step/lot combinations, then a new labor record is added for this step and lot, and the percentage labor allocated to this step/lot is set equal to 1 divided by the total new number of labor rows for this user and entity. The labor percentage for all existing records is calculated by reducing the current value but keeping it in proportion to the existing value. The existing labor records are all closed and new records are created using the calculated labor percentages.