LogJobEvent(Int32,Int32,Nullable<DateTime>,Nullable<Int32>,Nullable<Int32>,String,Nullable<Int32>,String,String,String,String,String,String,Nullable<Int32>,String,String,DBString,DBString,DBString,DBString,DBString,DBString,DBString,DBString,DBString,DBString,String,Int32) Method
- Last UpdatedNov 06, 2025
- 4 minute read
The LogJobEvent() method adds a new event to the Job_Event table.
This overload of the method uses the entity ID to specify the entity.
'Declaration
Public Overloads Shared Sub LogJobEvent( _
ByVal sessionId As Integer, _
ByVal entId As Integer, _
ByVal eventTime As Nullable(Of Date), _
ByVal jobPos As Nullable(Of Integer), _
ByVal stepNo As Nullable(Of Integer), _
ByVal eventType As String, _
ByVal bomPos As Nullable(Of Integer), _
ByVal lotNo As String, _
ByVal subLotNo As String, _
ByVal itemId As String, _
ByVal certName As String, _
ByVal doneByUserId As String, _
ByVal checkedByUserId As String, _
ByVal sourceRowId As Nullable(Of Integer), _
ByVal specId As String, _
ByVal comments As String, _
ByVal value1 As DBString, _
ByVal value2 As DBString, _
ByVal value3 As DBString, _
ByVal value4 As DBString, _
ByVal value5 As DBString, _
ByVal value6 As DBString, _
ByVal value7 As DBString, _
ByVal value8 As DBString, _
ByVal value9 As DBString, _
ByVal value10 As DBString, _
ByVal lastEditComment As String, _
ByRef rowId As Integer _
)
'Usage
Dim sessionId As Integer
Dim entId As Integer
Dim eventTime As Nullable(Of Date)
Dim jobPos As Nullable(Of Integer)
Dim stepNo As Nullable(Of Integer)
Dim eventType As String
Dim bomPos As Nullable(Of Integer)
Dim lotNo As String
Dim subLotNo As String
Dim itemId As String
Dim certName As String
Dim doneByUserId As String
Dim checkedByUserId As String
Dim sourceRowId As Nullable(Of Integer)
Dim specId As String
Dim comments As String
Dim value1 As DBString
Dim value2 As DBString
Dim value3 As DBString
Dim value4 As DBString
Dim value5 As DBString
Dim value6 As DBString
Dim value7 As DBString
Dim value8 As DBString
Dim value9 As DBString
Dim value10 As DBString
Dim lastEditComment As String
Dim rowId As Integer
JobExec.LogJobEvent(sessionId, entId, eventTime, jobPos, stepNo, eventType, bomPos, lotNo, subLotNo, itemId, certName, doneByUserId, checkedByUserId, sourceRowId, specId, comments, value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, lastEditComment, rowId)
public static void LogJobEvent(
int sessionId,
int entId,
Nullable<DateTime> eventTime,
Nullable<int> jobPos,
Nullable<int> stepNo,
string eventType,
Nullable<int> bomPos,
string lotNo,
string subLotNo,
string itemId,
string certName,
string doneByUserId,
string checkedByUserId,
Nullable<int> sourceRowId,
string specId,
string comments,
DBString value1,
DBString value2,
DBString value3,
DBString value4,
DBString value5,
DBString value6,
DBString value7,
DBString value8,
DBString value9,
DBString value10,
string lastEditComment,
out int rowId
)
Parameters
- sessionId
- Required. Holds the ID of the session from which the call is being made.
- entId
- Required. Holds the ID of the entity on which the job is running.
- eventTime
- Optional. Holds the timestamp for this event. Default is the current date and time.
- jobPos
- Optional. Holds the job position, if more than one job are currently running on this entity. Default is 0.
- stepNo
- Optional. Holds the number of the job step to which this event applies, if any. Default is null.
- eventType
- Optional. Holds the event type to categorize this event, to facilitate retrieval filters. Default is null.
- bomPos
- Optional. Holds the BOM position to which this event applies if any. Default is null.
- lotNo
- Optional. Holds the lot number to which this event applies, if any. Default is null.
- subLotNo
- Optional. Holds the sublot number to which this event applies, if any. Default is null.
- itemId
- Optional. Hold the ID of the item to which this event applies, if any. Default is null.
- certName
- Optional. Holds the certification to which this event applies, if any. Default is null.
- doneByUserId
- Optional. Holds the ID of the user that performed an action, if any. Default is null.
- checkedByUserId
- Optional. Holds the ID of the user that checked an action, if any. Default is null.
- sourceRowId
- Optional. Holds the source row ID.
- specId
- Optional. Holds the ID of the specification parameter to which this event applies, if any. Default is null.
- comments
- Optional. Holds comments that apply to this event, if any. Default is null.
- value1
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- value2
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- value3
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- value4
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- value5
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- value6
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- value7
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- value8
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- value9
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- value10
- Optional. Holds an additional user-defined value that applies to this event, if any. Default is null.
- lastEditComment
- Optional. Holds comments that describe why this record is being added.
- rowId
- Output. Holds the returned row ID of the record that was added.