Add Method (JobStepData)
- Last UpdatedNov 06, 2025
- 3 minute read
The Add() method adds a new job step data record to the Job_Step_Data table.
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal woId As String, _
ByVal operId As String, _
ByVal seqNo As Integer, _
ByVal stepNo As Integer, _
ByVal lotNumber As String, _
ByVal subLotNumber As String, _
ByVal stateCd As Integer, _
ByVal actStartTimeUtc As Nullable(Of Date), _
ByVal actFinishTimeUtc As Nullable(Of Date), _
ByVal stepData As String, _
ByVal stepDataTimeUtc As Nullable(Of Date), _
ByVal startUserId As String, _
ByVal finishUserId As String, _
ByVal dataUserId As String, _
ByVal formDone As Boolean, _
ByVal spare1 As String, _
ByVal spare2 As String, _
ByVal spare3 As String, _
ByVal spare4 As String, _
ByVal spare5 As String, _
ByVal spare6 As String, _
ByRef lastEditAt As Date, _
ByRef rowId As Integer _
)
'Usage
Dim sessionId As Integer
Dim woId As String
Dim operId As String
Dim seqNo As Integer
Dim stepNo As Integer
Dim lotNumber As String
Dim subLotNumber As String
Dim stateCd As Integer
Dim actStartTimeUtc As Nullable(Of Date)
Dim actFinishTimeUtc As Nullable(Of Date)
Dim stepData As String
Dim stepDataTimeUtc As Nullable(Of Date)
Dim startUserId As String
Dim finishUserId As String
Dim dataUserId As String
Dim formDone As Boolean
Dim spare1 As String
Dim spare2 As String
Dim spare3 As String
Dim spare4 As String
Dim spare5 As String
Dim spare6 As String
Dim lastEditAt As Date
Dim rowId As Integer
JobStepData.Add(sessionId, woId, operId, seqNo, stepNo, lotNumber, subLotNumber, stateCd, actStartTimeUtc, actFinishTimeUtc, stepData, stepDataTimeUtc, startUserId, finishUserId, dataUserId, formDone, spare1, spare2, spare3, spare4, spare5, spare6, lastEditAt, rowId)
public static void Add(
int sessionId,
string woId,
string operId,
int seqNo,
int stepNo,
string lotNumber,
string subLotNumber,
int stateCd,
Nullable<DateTime> actStartTimeUtc,
Nullable<DateTime> actFinishTimeUtc,
string stepData,
Nullable<DateTime> stepDataTimeUtc,
string startUserId,
string finishUserId,
string dataUserId,
bool formDone,
string spare1,
string spare2,
string spare3,
string spare4,
string spare5,
string spare6,
out DateTime lastEditAt,
out int rowId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- woId
- Required. Holds the ID of the work order.
- operId
- Required. Holds the ID of the operation.
- seqNo
- Required. Holds the operation sequence number of the job.
- stepNo
- Required. Holds the job step number.
- lotNumber
- Optional. Holds the lot number of the item that results from the job.
- subLotNumber
- Optional. Holds the sublot number of the item that results from the job.
- stateCd
- Required. Holds the JobStateCode enumeration that indicates the step state.
- actStartTimeUtc
- Optional. Holds the UTC time the step was started.
- actFinishTimeUtc
- Optional. Holds the UTC time the step was finished.
- stepData
- Optional. Holds the data being logged for the step.
- stepDataTimeUtc
- Optional. Holds the UTC time the step data was entered.
- startUserId
- Optional. Holds the ID of the user who started the step.
- finishUserId
- Optional. Holds the ID of the user who finished the step.
- dataUserId
- Optional. Holds the ID of the user who entered the step data.
- formDone
- Required. The flag that indicates whether data entry has been performed at this step.
- spare1
- Optional. Holds the contents of the user-defined spare1 field.
- spare2
- Optional. Holds the contents of the user-defined spare2 field.
- spare3
- Optional. Holds the contents of the user-defined spare3 field.
- spare4
- Optional. Holds the contents of the user-defined spare4 field.
- spare5
- Optional. Holds the contents of the user-defined spare5 field.
- spare6
- Optional. Holds the contents of the user-defined spare6 field.
- lastEditAt
- Output. Holds the returned date and time when this record was added, for optimistic concurrency control. The lastEditAt parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
- rowId
- Output. Holds the unique identifier for row.
Observe the following input parameter rules:
- Required non-DB* parameters: Must pass a value. Cannot be empty or null.
- Optional non-DB* parameters: Either enter a value or pass a null. If passing a null and a default value has been defined, the default value will be used for the parameter.
- Required DB* parameters: Must pass a value. To enter an empty value for the parameter, pass DB*.null (e.g., DBInt.null).
- Optional DB* parameters: To enter no value for the parameter, pass DB*.null (e.g., DBInt.null). To use the default value for the parameter if one has been defined for the object being added, pass a null.