CalculateProductionTarget Method
- Last UpdatedNov 06, 2025
- 1 minute read
The CalculateProductionTarget() method returns a DataSet containing a single row and a column for the target quantity, the target rate, and the target rate units.
'Declaration
Public Function CalculateProductionTarget( _
ByVal TargetQuantity As Double, _
ByVal TargetRate As Double, _
ByVal ProductionUnitOfMeasure As ProductionUnitOfMeasure, _
ByVal BatchSize As Double _
) As DataSet
public DataSet CalculateProductionTarget(
double TargetQuantity,
double TargetRate,
ProductionUnitOfMeasure ProductionUnitOfMeasure,
double BatchSize
)
Parameters
- TargetQuantity
- Required. Holds a double that specifies the quantity to produce.
- TargetRate
- Required. Not needed if the TargetQuantity is supplied. Holds a double that specifies the rate at which to produce.
- ProductionUnitOfMeasure
- Required. Not needed if the TargetQuantity is supplied. Holds a value from the ProductionUnitOfMeasure enumeration that specifies the units for the TargetRate.
- BatchSize
- Required. Holds a double that specifies the amount of product per batch.
Return Value
A DataSet that includes the target quantity, target rate, and target rate units
for the job specified in the job exec object.