Share via


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
Gg757451.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif costCategory Sets or retrieves the project cost category parameter.
Gg757451.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif errorSpecification Sets or retrieves the error specification parameter.
Gg757451.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif goodQuantity Sets or retrieves the _goodQuantity parameter.
Gg757451.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif jobIdAbsence Sets or retrieves the _jobIdAbsence parameter.
Gg757451.pubmethod(en-us,AX.60).gif jobPilot Sets or retrieves the _jobPilot parameter.
Gg757451.pubmethod(en-us,AX.60).gif new Initializes a new instance of the JmgRegistrationParameters class.
Gg757451.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif parmWrkCtrIdPilot Gets or sets the WrkCtrIdPilot parameter.
Gg757451.pubmethod(en-us,AX.60).gif pdsCWGoodQuantity Gets or sets the pdsCWGoodQuantity parameter.
Gg757451.pubmethod(en-us,AX.60).gif pdsCWStartQuantity Gets or sets the pdsCWStartQuantity parameter.
Gg757451.pubmethod(en-us,AX.60).gif prodJournalIdBOM Gets and sets the value of the ProdJournalIdBOM parameter.
Gg757451.pubmethod(en-us,AX.60).gif reportAsFinished Sets or retrieves the _reportAsFinished parameter.
Gg757451.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif startQuantity Sets or retrieves the _startQuantity parameter.
Gg757451.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif wrkCtrId Sets or retrieves the _wrkCtrId parameter.
Gg757451.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg757451.pubmethod(en-us,AX.60).gif Gg757451.static(en-us,AX.60).gif ::constructJmgStampTransMap Creates a new instance of the JmgRegistrationParameters class, which is initialized with values from the specified JmgStampTransMap record.
Gg757451.pubmethod(en-us,AX.60).gif Gg757451.static(en-us,AX.60).gif ::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

See Also

JmgTermJob Class