AddPEMDataAsync Method
- Last UpdatedNov 06, 2025
- 3 minute read
The AddPEMDataAsync() method logs the supplied data to the Job_Event table, and any extended attributes data sent from the object to the Data_Log table.
'Declaration
Public Shared Sub AddPEMDataAsync( _
ByVal eventType As String, _
ByVal eventTime As Nullable(Of Date), _
ByVal woId As String, _
ByVal operId As String, _
ByVal seqNo As Nullable(Of Integer), _
ByVal itemId As String, _
ByVal lotNo As String, _
ByVal subLotNo As String, _
ByVal entName As String, _
ByVal siteName As String, _
ByVal genealogyId As String, _
ByVal segmentRequirementId As String, _
ByVal segmentResponseId As String, _
ByVal subsegmentId As String, _
ByVal quantity As Nullable(Of Double), _
ByVal itemUom As String, _
ByVal comments As String, _
ByVal productionScheduleId As String, _
ByVal locationName As String, _
ByVal locationSiteName As String, _
ByVal personnelList As String, _
ByVal serialNoList As String, _
ByVal eventName As String, _
ByVal equipmentId As String, _
ByVal grpDesc As String, _
ByVal extendedAttrs() As ExtendedAttribute, _
ByVal bomPos As Nullable(Of Integer), _
ByVal refRowId As Nullable(Of Integer) _
)
'Usage
Dim eventType As String
Dim eventTime As Nullable(Of Date)
Dim woId As String
Dim operId As String
Dim seqNo As Nullable(Of Integer)
Dim itemId As String
Dim lotNo As String
Dim subLotNo As String
Dim entName As String
Dim siteName As String
Dim genealogyId As String
Dim segmentRequirementId As String
Dim segmentResponseId As String
Dim subsegmentId As String
Dim quantity As Nullable(Of Double)
Dim itemUom As String
Dim comments As String
Dim productionScheduleId As String
Dim locationName As String
Dim locationSiteName As String
Dim personnelList As String
Dim serialNoList As String
Dim eventName As String
Dim equipmentId As String
Dim grpDesc As String
Dim extendedAttrs() As ExtendedAttribute
Dim bomPos As Nullable(Of Integer)
Dim refRowId As Nullable(Of Integer)
JobExec.AddPEMDataAsync(eventType, eventTime, woId, operId, seqNo, itemId, lotNo, subLotNo, entName, siteName, genealogyId, segmentRequirementId, segmentResponseId, subsegmentId, quantity, itemUom, comments, productionScheduleId, locationName, locationSiteName, personnelList, serialNoList, eventName, equipmentId, grpDesc, extendedAttrs, bomPos, refRowId)
public static void AddPEMDataAsync(
string eventType,
Nullable<DateTime> eventTime,
string woId,
string operId,
Nullable<int> seqNo,
string itemId,
string lotNo,
string subLotNo,
string entName,
string siteName,
string genealogyId,
string segmentRequirementId,
string segmentResponseId,
string subsegmentId,
Nullable<double> quantity,
string itemUom,
string comments,
string productionScheduleId,
string locationName,
string locationSiteName,
string personnelList,
string serialNoList,
string eventName,
string equipmentId,
string grpDesc,
ExtendedAttribute[] extendedAttrs,
Nullable<int> bomPos,
Nullable<int> refRowId
)
Parameters
- eventType
- [Required]. Hold the event type
- eventTime
- [Optional]. Holds the even time.
- woId
- [Optional]. Holds the work order Id.
- operId
- [Optional]. Holds the operation Id.
- seqNo
- [Optional]. Holds the sequence no.
- itemId
- [Optional]. Holds the item id.
- lotNo
- [Optional]. Holds the lot number.
- subLotNo
- [Optional]. Holds the sublot number.
- entName
- [Optional].Holds the entity name
- siteName
- [Optional]. Holds the site name
- genealogyId
- [Optional]. Holds the genealogy id.
- segmentRequirementId
- [Optional]. Holds the segment requirement id.
- segmentResponseId
- [Optional]. Holds the segment response id.
- subsegmentId
- [Optional]. Holds the sub segment id.
- quantity
- [Optional]. Hold the quantity.
- itemUom
- [Optional]. Hold the unit of measurement.
- comments
- [Optional]. Holds the comments.
- productionScheduleId
- [Optional]. Holds the production schedule id.
- locationName
- [Optional]. Holds the location name
- locationSiteName
- [Optional]. Holds the location site name.
- personnelList
- [Optional]. Holds the personnel list.
- serialNoList
- [Optional]. Holds the serial number list.
- eventName
- [Optional]. Holds the event name.
- equipmentId
- [Optional]. Holds the equipment id.
- grpDesc
- [Optional]. Holds the group description.
- extendedAttrs
- [Optional]. Holds the extended attributes
- bomPos
- [Optional]. Holds the BOM position.
- refRowId
- [Optional]. Holds the reference row id.