JmgRegistrationParameters Class [AX 2012]
The JmgRegistrationParameters is a helper class that is used when you make registration in Shop Floor Control.
Syntax
class JmgRegistrationParameters
Run On
Called
Methods
Method | Description | |
---|---|---|
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
costCategory | Sets or retrieves the project cost category parameter. | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
errorSpecification | Sets or retrieves the error specification parameter. | |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
goodQuantity | Sets or retrieves the _goodQuantity parameter. | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
jobIdAbsence | Sets or retrieves the _jobIdAbsence parameter. | |
jobPilot | Sets or retrieves the _jobPilot parameter. | |
new | Initializes a new instance of the JmgRegistrationParameters 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.) | |
parmWrkCtrIdPilot | Gets or sets the WrkCtrIdPilot parameter. | |
pdsCWGoodQuantity | Gets or sets the pdsCWGoodQuantity parameter. | |
pdsCWStartQuantity | Gets or sets the pdsCWStartQuantity parameter. | |
prodJournalIdBOM | Gets and sets the value of the ProdJournalIdBOM parameter. | |
reportAsFinished | Sets or retrieves the _reportAsFinished parameter. | |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
startQuantity | Sets or retrieves the _startQuantity parameter. | |
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.) | |
wait | Pauses a process. (Inherited from Object.) | |
wrkCtrId | Sets or retrieves the _wrkCtrId parameter. | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
::constructJmgStampTransMap | Creates a new instance of the JmgRegistrationParameters class, which is initialized with values from the specified JmgStampTransMap record. | |
::newFromJmgTermReg | Creates and initializes an instance of the JmgRegistrationParameters class based on a JmgTermReg record. |
Top
Remarks
This class holds several optional parameters to a registration. The optional parameters include the following:
costCategory |
The cost category reported on project job registrations. The default value is the empty string. |
errorSpecification |
The error quantities reported on production jobs. The default value is the empty string. |
goodQuantity |
The good quantities reported on production jobs. The default value is 0.0. |
jobIdAbsence |
The absence ID reported on clock-in and clock-out registrations. The default value is the empty string. |
jobPilot |
The pilot Worker ID reported on start-assistance registrations. The default value is 0. |
reportAsFinished |
A JmgNoneNoYesEnum enumeration value that indicates whether a production job should be reported as finished. The default value is the JmgNoneNoYesEnum::None enumeration value. |
startQuantity |
The start quantities reported on production jobs. The default value is 0.0. |
wrkCtrId |
The work center ID reported on production and project jobs. The default value is the empty string. |
wrkCtrIdPilot |
The work center ID which is used as pilot. The default value is the empty string. |
A new instance of JmgRegistrationParameters has all parameters set to their default values. When the optional registration parameters should be derived from an existing registration the class should be created by using the newFromJmgTermReg method.
Examples
The following example creates a clock-in registration for an employee with the specified employee ID and the absence job ID 1000069:
JmgTermJob job;
JmgRegistrationParameters regParams;
job = JmgTermJob::construct(JmgIpcActivity::findSignInJobId());
regParams = new JmgRegistrationParameters();
regParams.jobIdAbsence('1000069');
job.makeRegistration(jmgWorkerRecId, today(), timenow(), true, regParams);
Inheritance Hierarchy
Object Class
JmgRegistrationParameters Class