@io.micronaut.data.annotation.MappedEntity @org.simplemes.eframe.domain.annotation.DomainEntity @java.lang.SuppressWarnings(value: unused) @groovy.transform.EqualsAndHashCode(includes: [lsn, order]) @groovy.transform.ToString(includeNames: true, includePackage: false, excludes: [order]) class LSN extends java.lang.Object implements DemandObject, WorkStateTrait, WorkableInterface, java.lang.Comparable
Defines a lot/serial number (LSN) for tracking and identification of demand. This a child of the Order.
Type | Name and description |
---|---|
private java.util.Date |
dateCreated |
private java.util.Date |
dateFirstQueued The date/time any quantity was first queued at this point (operation or top-level). |
private java.util.Date |
dateFirstStarted The date/time any quantity was first started at this point (operation or top-level). |
private java.util.Date |
dateQtyQueued The date/time any quantity was queued at this point (operation or top-level). |
private java.util.Date |
dateQtyStarted The date/time any quantity was started at this point (operation or top-level). |
private java.util.Date |
dateUpdated |
private static java.lang.Object |
fieldOrder Defines the default general field ordering for GUIs and other field listings/reports. |
private java.lang.String |
fields The custom field holder. |
private static java.lang.Object |
keys The primary keys for this record are order and lsn. |
private java.lang.String |
lsn The Lot/Serial Number (LSN) of the unit to be tracked. |
private java.util.List<LSNOperState> |
operationStates This is the list operation states that corresponds to the current Order's operations. |
private Order |
order An LSN always belongs to one order. |
private BigDecimal |
qty The number of pieces to be built for this LSN. |
private BigDecimal |
qtyDone The number of pieces to completed (done) on this object. |
private BigDecimal |
qtyInQueue The number of pieces waiting to be worked (in queue) for this object. |
private BigDecimal |
qtyInWork The number of pieces actively in work for this object. |
private static java.lang.Object |
searchable This domain is searchable as part of the parent Order object. |
private LSNStatus |
status The status of this LSN. |
private java.util.UUID |
uuid |
private java.lang.Integer |
version |
Constructor and description |
---|
LSN
() |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
beforeValidate() Called before validate happens. |
|
int |
compareTo(java.lang.Object o) Compares this object with the specified object for order. |
|
WorkableInterface |
determineNextWorkable() Determines the next workable to be performed after this workable is completed. |
|
WorkableInterface |
determineNextWorkable(LSNOperState currentOperState) Determines the next workable to be performed after the given operation is done. |
|
void |
saveChanges() Saves any changes to this record. |
|
java.lang.String |
toShortString() Returns the important key field(s) as a short, simple string. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The date/time any quantity was first queued at this point (operation or top-level).
WorkStateTrait field.The date/time any quantity was first started at this point (operation or top-level).
WorkStateTrait field.The date/time any quantity was queued at this point (operation or top-level). Can be null if the nothing is in queue.
WorkStateTrait field.The date/time any quantity was started at this point (operation or top-level). Can be null if the nothing is in work.
WorkStateTrait field.Defines the default general field ordering for GUIs and other field listings/reports.
The custom field holder. Unlimited size.
The primary keys for this record are order and lsn. Order is the parent key.
The Lot/Serial Number (LSN) of the unit to be tracked.
This is the list operation states that corresponds to the current Order's operations. This holds the quantities in queue, in work, etc for a given operation.
An LSN always belongs to one order. It is a child of the order and may be processed individually within the order in many cases.
The number of pieces to be built for this LSN.
The number of pieces to completed (done) on this object.
WorkStateTrait field.The number of pieces waiting to be worked (in queue) for this object.
WorkStateTrait field.The number of pieces actively in work for this object.
WorkStateTrait field.This domain is searchable as part of the parent Order object. This is marked here to allow save actions to force parent indexing by the search engine.
The status of this LSN. Uses the default LSNStatus if none is provided.
Called before validate happens.
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
o
- the object to be compared.Determines the next workable to be performed after this workable is completed.
Determines the next workable to be performed after the given operation is done.
currentOperState
- The current operation to find the next operation for.Saves any changes to this record.
Returns the important key field(s) as a short, simple string.
Groovy Documentation