SetLabData(Int32,String,Object,Object,Object,Object,Object,Object) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The SetLabData() method changes the labor category, labor department, and labor percentage of an active labor record for the specified entity. This overload of the method is executed on the current session.
public void SetLabData(
int EntId,
string UserId,
object StepNo,
object LotNo,
object LabCd,
object DeptId,
object PctToApply,
object Comments
)
Parameters
- EntId
- Required. Holds the ID of the entity whose labor data is being changed.
- UserId
- Required. Holds the ID of the user for whom the labor data should be changed.
- 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.
- DeptId
- Optional. Holds the new department code for this labor event. 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.