SetJobLabData(Int32,String,String,String,Int32,Object,Object,Object,Object,Object,Object) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The SetJobLabData() method changes the labor category, labor department, and labor percentage of an active labor record for the specified job. This overload of the method is executed on a job of a specified entity and user.
'Declaration
Public Overloads Sub SetJobLabData( _
ByVal EntId As Integer, _
ByVal UserId As String, _
ByVal WoID As String, _
ByVal OperID As String, _
ByVal SeqNo As Integer, _
ByVal StepNo As Object, _
ByVal LotNo As Object, _
ByVal LabCd As Object, _
ByVal DeptId As Object, _
ByVal PctToApply As Object, _
ByVal Comments As Object _
)
public void SetJobLabData(
int EntId,
string UserId,
string WoID,
string OperID,
int SeqNo,
object StepNo,
object LotNo,
object LabCd,
object DeptId,
object PctToApply,
object Comments
)
Parameters
- EntId
- Required. Holds the ID of the entity on which the job is running.
- UserId
- Required. Holds the ID of the user in whose session the job is running.
- WoID
- Required. Holds the work order ID of the job whose labor data is being retrieved. Set to null to not change the existing value.
- OperID
- Required. Holds the operation ID of the job whose labor data is being retrieved. Set to null to not change the existing value.
- SeqNo
- Required. Holds the operation sequence number of the job whose labor data is being retrieved. Set to null to not change the existing value.
- StepNo
- Optional. Holds the number of the step on which this labor is being performed. Used to identify the labor event if the labor is being logged to a step/lot. Set to null to not change the existing value.
- LotNo
- Optional. Holds the number of the lot on which this labor is being performed. Used to identify the labor event if the labor is being logged to a step/lot. Set to null to not change the existing value.
- LabCd
- Optional. Holds the new labor code for the specified labor event. Set to null to not change the existing value. Set to null to not change the existing value.
- DeptId
- Optional. Holds the new department code for this labor event. Set to null to not change the existing value. Set to null to not change the existing value.
- PctToApply
- Optional. If supplied, the percentage of labor records are adjusted with the supplied percentage. Set to null to not change the existing value.
- Comments
- Optional. Holds the comments to be added to the new labor record. Set to null to not change the existing value.