ProdStatusType Class [AX 2012]
The ProdStatusType class is used to control the status updates of a production order.
| Method | Description | |
|---|---|---|
| autoAuthorization | Indicates whether production order status is legal when firming is made automatically. |
| bomAllowEdit | Indicates whether the bills of materials of a production order can be edited. |
| canBeWMSRegistered | Indicates whether production order can be registered in Warehouse Management System. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| checkAllowEditOperationStatus | Checks whether the operation status can be modified. |
| checkPostJournal | Indicates whether journal posting is allowed for a production order. |
| currentProdStatus | Defines the specific status of a production order. |
| delete | |
| deleteProdBOM | Deletes the bills of materials of a production order. |
| deleteProdRoute | Deletes the route of a production order. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| formFieldsActive | |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| insert | Inserts a production order record into the database. |
| insertProdBOM | Inserts the bills of materials of a production order into the database. |
| insertProdRoute | Inserts the route of a production order into the database. |
| inventCheckUpdEst | |
| isBefore | Indicates whether the status of a production order is less than the _prodStatus parameter. |
| isStatusUpdateAllowed | Indicates whether a production order status is able to be updated to the status specified by the _toStatus parameter. |
| mustEstimateReferences | Indicates whether references of a production order must be estimated. |
| new | |
| 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.) |
| pdsCanBeBatchBalanced | Gets a value indicating if the production order can use batch balancing. |
| pmfCheckRework | Checks if any of the production raw material inventory transactions are considered reserved by warehouse management and if the batch order is a rework batch order. |
| previousProdStatus | Defines the previous status for a production order. |
| prodCheckCopying | Indicates whether production order allows copying. |
| prodNumLookupJournal | |
| prodTable | Retrieves the ProdTable buffer representing a production order. |
| prodTableType | Retrives the ProdTableType object that is associated with the related production order |
| queryAddStatus | |
| routeAllowEdit | Indicates whether the route of a production order can be edited. |
| runAutoUpdate | Implements performing of an automatic update of a production order. |
| runBOMCalc | Performs the price calculation of a production order. |
| runCopy | Performs copying of the bills of materials or route of a production order. |
| runCostEstimation | Performs a cost estimation of a production order. |
| runGanttChart | Indicates whether the Gantt chart is enabled for a production order. |
| runHistoricalCost | Using the historical cost parameters, completes a production order. |
| runJobScheduling | Performs job scheduling of a production order. |
| runJobUpdate | Updates the jobs of a production order. |
| runOperationScheduling | Performs operation scheduling of a production order. |
| runPrevJobHistoricalCost | Using the historical cost parameters, runs the jobs to update the prod order status to statuses preceding Completed. |
| runPrevJobJobScheduling | Runs the jobs to update the prod order status to statuses preceding JobScheduled. |
| runPrevJobOperationScheduling | Runs the jobs to update the prod order status to statuses preceding OperationScheduled. |
| runPrevJobRelease | Runs the jobs to update the prod order status to statuses preceding Released. |
| runPrevJobReportFinished | Runs the jobs to update the prod order status to statuses preceding ReportedFinished. |
| runPrevJobStartUp | Runs the jobs to update the prod order status to statuses preceding StartUp. |
| runRelease | Releases a production order. |
| runReportFinished | Reports a production order as finished. |
| runRouteUpdate | Updates the route of a production order. |
| runSplit | Splits a production order into several production orders. |
| runStartUp | Starts a production order. |
| runStatusDecrease | Decreases the status of a production order. |
| setBackStatus | Sets the backorder status on an underlying ProdTable buffer. |
| setPreviousProdStatus | Sets a previous production orders status. |
| setQtySched | Sets a scheduled quantity of items to produce. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| startUpUpdateRouteJobs | |
| statusAlreadyPosted | Checks if the production order ever had the given status |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| update | Updates a production order record. |
| updateActivityRequirementSet | Updates the activity requirement set. |
| updateBOMRoute | Empty method that does nothing. This method can be overwritten on derived classes in order to update the production Bills of materials and the production route. |
| updateProdBOM | Updates a production bills of materials. |
| updateProdRoute | Updates a production route. |
| updateWarnings | |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| validateDelete | Indicates whether a production order can be deleted. |
| validateDeleteProdBOM | Indicates whether the production bills of materials can be deleted. |
| validateDeleteProdRoute | Indicates whether a production route can be deleted. |
| validateWrite | Indicates whether a production order can be updated. |
| validateWriteProdBOM | Indicates whether the production bills of materials can be updated. |
| validateWriteProdRoute | Indicates whether a production route can be updated. |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::construct |
The ProdStatusType class provides implementation of all production order status updates. Before running a specific update, the ProdStatusType class verifies that this update is allowed in production parameters. The ProdStatusType class always creates an instance of one of derived the classes according to current status of the production order. Every derived class must implement the following methods:
-
In the currentProdStatus method the derived class must return a specific status representing the production order.
-
In the previousProdStatus method the derived class must return a previous status of the production order.
Using information supplied by the derived classes in the currentProdStatus and previousProdStatus methods, the ProdStatusType class can determine whether status update is allowed by production parameters and accurately perform the update.