AddJobEvent Method (Jobs)
- Last UpdatedNov 06, 2025
- 3 minute read
The AddJobEvent() method adds a job event to the specified job. Job events include certification sign-off, adding production, adding consumption, reclassifying production, reclassifying consumption, completing a step, changing job specifications, and changing a job state.
'Declaration
Public Shared Function AddJobEvent( _
ByVal eventTime As Date, _
ByVal woID As String, _
ByVal operID As String, _
ByVal seqNo As Integer, _
ByVal stepNo As Object, _
ByVal eventType As Object, _
ByVal bomPos As Object, _
ByVal lotNo As Object, _
ByVal itemID As Object, _
ByVal certName As Object, _
ByVal doneByUserID As Object, _
ByVal checkedByUserID As Object, _
ByVal itemProdRowID As Object, _
ByVal itemConsRowID As Object, _
ByVal specID As Object, _
ByVal comments As Object, _
ByVal value1 As Object, _
ByVal value2 As Object, _
ByVal value3 As Object, _
ByVal value4 As Object, _
ByVal value5 As Object, _
ByVal value6 As Object, _
ByVal value7 As Object, _
ByVal value8 As Object, _
ByVal value9 As Object, _
ByVal value10 As Object, _
ByVal entID As Integer, _
ByVal jobPos As Object _
) As Boolean
public static bool AddJobEvent(
DateTime eventTime,
string woID,
string operID,
int seqNo,
object stepNo,
object eventType,
object bomPos,
object lotNo,
object itemID,
object certName,
object doneByUserID,
object checkedByUserID,
object itemProdRowID,
object itemConsRowID,
object specID,
object comments,
object value1,
object value2,
object value3,
object value4,
object value5,
object value6,
object value7,
object value8,
object value9,
object value10,
int entID,
object jobPos
)
Parameters
- eventTime
- Required. Holds the timestamp for the job event.
- woID
- Required. Holds the ID of the job's work order.
- operID
- Required. Holds the ID of the job's operation.
- seqNo
- Required. Holds the job's operation sequence number.
- stepNo
- Optional. Holds the step number. Pass null if not used.
- eventType
- Optional. Holds the event type. Pass null if not used.
- bomPos
- Optional. Holds the BOM position. Pass null if not used.
- lotNo
- Optional. Holds the lot number. Pass null if not used.
- itemID
- Optional. Holds the item ID. Pass null if not used.
- certName
- Optional. Holds the certification name. Pass null if not used.
- doneByUserID
- Optional. Holds the ID of the user who did the event. Pass null if not used.
- checkedByUserID
- Optional. Holds the ID of the user who checked the event. Pass null if not used.
- itemProdRowID
- Optional. Holds the ID of the row in the item_prod table. Pass null if not used.
- itemConsRowID
- Optional. Holds the ID of the row in the item_cons table. Pass null if not used.
- specID
- Optional. Holds the ID of the specification used. Pass null if not used.
- comments
- Optional. Holds a comment about the event. Pass null if not used.
- value1
Optional. Holds the first value for the job event. Pass null if not used.
- value2
Optional. Holds the second value for the job event. Pass null if not used.
- value3
Optional. Holds the third value for the job event. Pass null if not used.
- value4
Optional. Holds the fourth value for the job event. Pass null if not used.
- value5
Optional. Holds the fifth value for the job event. Pass null if not used.
- value6
Optional. Holds the sixth value for the job event. Pass null if not used.
- value7
Optional. Holds the seventh value for the job event. Pass null if not used.
- value8
Optional. Holds the eighth value for the job event. Pass null if not used.
- value9
Optional. Holds the ninth value for the job event. Pass null if not used.
- value10
Optional. Holds the tenth value for the job event. Pass null if not used.
- entID
- Required. Holds the ID of the entity on which the event occurred. Pass null if not used.
- jobPos
- Optional. Holds the job position.