WrkCtrScheduler.computeJobTime Method [AX 2012]
Computes the runtime of a job.
Syntax
protected Hours computeJobTime(
WrkCtrParmSchedule _wrkCtrParmSchedule,
Common _jobRecord,
RouteMap _route,
RouteOprMap _routeOpr,
RouteJobType _jobType,
BOMCalcData _bomCalcData,
boolean _useJobTime,
[ProdJobType _prodJobType,
boolean _useCalcJobSchedJobTime,
ItemId _itemId,
InventDimId _inventDimId])
Run On
Server
Parameters
- _wrkCtrParmSchedule
Type: WrkCtrParmSchedule Class
An WrkCtrParmSchedule object that contains the order scheduling parameters for the order to which the job belongs.
- _jobRecord
Type: Common Table
A Common table buffer that contains the job record.
- _route
Type: RouteMap Map
A Common table buffer that contains the route record.
- _routeOpr
Type: RouteOprMap Map
A Common table buffer that contains the route operation record.
- _jobType
Type: RouteJobType Enumeration
A RouteJobType value that specifies the type of job to schedule; (Setup, Process, etc.).
- _bomCalcData
Type: BOMCalcData Class
An BOMCalcData object that is used when calculating the runtimes of the job.
- _useJobTime
Type: boolean
The _useJobTime object is true if the job time should be used; false if the job time should be 0.
- _prodJobType
Type: ProdJobType Class
A ProdJobType object that can be used to compute the runtime of the job.
- _useCalcJobSchedJobTime
Type: boolean
A Boolean value that indicates whether to calculate job schedule times.
- _itemId
Type: ItemId Extended Data Type
An ItemId object that is used when calculating the runtimes of the job.
- _inventDimId
Type: InventDimId Extended Data Type
A InventDimId object that is used when calculating the runtimes of the job.
Return Value
Type: Hours Extended Data Type
A Map that contains (resource, jobTime) pairs.
Exceptions
Exception | Condition |
---|---|
Error | The resources parameter is invalid. |