ProdRouteOverlapCalc Class [AX 2012]
The ProdRouteOverlapCalc class is used to calculate an overlap quantity for the production operation.
| Method | Description | |
|---|---|---|
| calcOverlap | Performs the calculation of the overlap quantity. |
| calcProc | Creates an estimate of the operation process time. |
| calcQty | Creates an estimate of the operation process quantity. |
| calcSetUp | Creates an estimate of the operation setup time. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getCalcOverlapQty | |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| init | |
| new | Initializes a new instance of the ProdRouteOverlapCalc class. |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| parmBOMCalcData | Gets or sets the value of BOMCalcData. |
| parmConfigId | Gets or sets the ConfigId parameter. |
| parmInfoCalcValue | Gets or sets the InfoCalcValue parameter. |
| parmInfoValueChanged | Gets or sets the InfoValueChanged parameter. |
| parmItemId | Gets or sets the ItemId parameter. |
| parmRouteMap | Gets or sets the RouteMap parameter. |
| parmRouteOprMap | Gets or sets the RouteOprMap parameter. |
| parmUpdateProdRoute | Gets or sets the UpdateProdRoute parameter. |
| run | Runs a calculation and updates the operation with a new overlap value. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| validate | Validates whether the data is correct and that the calculation can be done in the correct way. |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::construct | Initializes a new instance of the ProdRouteOverlapCalc class. |
| ::description | Gets the description of the class. |
| ::main | Provides an entry point for the ProdRouteOverlapCalc class when it is called from a menu item. |
| ::newProdRoute | |
| ::newProdRouteBOMData | |
| ::newRouteMapBOMData |
static void updateOperationWithMinimalOverlap(ProdRoute _prodRoute)
{
ProdRouteOverlapCalc prodRouteOverlapCalc;
ttsbegin;
if(!_prodRoute.RecId)
throw error("@SYS18447");
// Show the info message when an old overlap quantity is replaced
// by new overlap quantity on the operation.
prodRouteOverlapCalc =
prodRouteOverlapCalc::newProdRoute(_prodRoute, false, true);
// Run calculation
prodRouteOverlapCalc.run();
ttscommit;
}
Community Additions
ADD
Show: