Sepasoft MES Module Suite
Lot Quantity Summary Item
This object holds Material Lot information such as quantity, schedule, units, etc.
|
This object is not derived from the MESAbstractObject and therefore does not inherit its functions or properties. |
Script Example: Get Lot Quantity Summary Item Object
Python |
eqPath = '[global]\Nuts Unlimited\Folsom\Receiving\Nut Storage Silos\Peanut Silo' lotInventory = system.mes.getLotInventoryByEquipment(eqPath) print lotInventory for lotSummary in lotInventory: lotUUID = lotSummary.getMaterialLotUUID() lotNo = lotSummary.getLotNumber() lotSeq = lotSummary.getLotSequence() matUUID = lotSummary.getMaterialUUID() matName = lotSummary.getMaterialName() matDescription = lotSummary.getMaterialDescription() inQuant = lotSummary.getInQuantity() outQuant = lotSummary.getOutQuantity() schedule = lotSummary.getScheduled() available = lotSummary.getAvailable() netQuant = lotSummary.getNetQuantity() units = lotSummary.getUnits() locationLink = lotSummary.getLocationLink() print "lot uuid: %s, lot number: %s, lot sequence: %d, material UUID: %s, material name: %s, material Description: %s, In Quantity: %f, Out Quantity: %f, schedule: %f, available: %f, net quantity: %f, units: %s, locationLink: %s" % (lotUUID, lotNo, lotSeq, matUUID, matName, matDescription, inQuant, outQuant, schedule, available, netQuant, units, locationLink) |
Output
Python |
Jython 2.5.3 (v2.5.3:3d2dbae23c52+, Nov 17 2012, 11:51:23) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_91 >>> [P1000 - 1 (23d33501-e774-4045-90bb-b4d1fde37d9a), P1001 - 1 (a3a466bb-3a10-4305-9d7a-4ccbf08b2ae3), P1002 - 2 (8218a5ba-4fc9-4667-b8f4-8ed44c58780b)] lot uuid: 23d33501-e774-4045-90bb-b4d1fde37d9a, lot number: P1000, lot sequence: 1, material UUID: 4f77a399-c0d0-42e5-89fb-075ca5a208df, material name: Bulk Peanuts, material Description: , In Quantity: 5000.000000, Out Quantity: 2600.000000, schedule: 0.000000, available: 2400.000000, net quantity: 2400.000000, units: lbs, locationLink: Peanut Silo lot uuid: a3a466bb-3a10-4305-9d7a-4ccbf08b2ae3, lot number: P1001, lot sequence: 1, material UUID: 4f77a399-c0d0-42e5-89fb-075ca5a208df, material name: Bulk Peanuts, material Description: , In Quantity: 2500.000000, Out Quantity: 0.000000, schedule: 0.000000, available: 2500.000000, net quantity: 2500.000000, units: lbs, locationLink: Peanut Silo lot uuid: 8218a5ba-4fc9-4667-b8f4-8ed44c58780b, lot number: P1002, lot sequence: 2, material UUID: 4f77a399-c0d0-42e5-89fb-075ca5a208df, material name: Bulk Peanuts, material Description: , In Quantity: 950.000000, Out Quantity: 0.000000, schedule: 0.000000, available: 950.000000, net quantity: 950.000000, units: lbs, locationLink: Peanut Silo >>> |
Object Creation
This object is created whenever a Material Lot is created.
Use
- MES Lot Quantity Summary List collection object contains this object.
Object Functions
- getAvailable()
- getLotNumber()
- getLotSequence()
- getMaterialDescription()
- getMaterialLot()
- getMaterialLotUUID()
- getMaterialName()
- getMaterialUUID()
- getNetQuantity()
- getOutQuantity()
- getScheduled()
- getUnits()
- setInQuantity()
- setLocationLink()
- setLotNumber()
- setLotSequence()
- setMaterialDescription()
- setMaterialLotUUID()
- setMaterialName()
- setMaterialUUID()
- setUnits()
getAvailable()
Get the available quantity of the item. Available quantity = Quantity of material fed into the segment in the beginning - (Quantity fed out of the segment + scheduled quantity)
getAvailable()
- Parameters
None
- Returns
Double The quantity of material that is available.
- Scope
All
getInQuantity()
Get the quantity of material feeding into a segment that will be part of the finished goods.
getInQuantity()
- Parameters
None
- Returns
Double inQty - The quantity of material.
- Scope
All
getLocationLink()
Get the link to the location of the material lot
getLocationLink()
- Parameters
None
- Returns
MES Object Link locationLink - The link representing the location.
- Scope
All
getLotNumber()
Get the lot number of the material lot used to filter the results.
getLotNumber()
- Parameters
None
- Returns
String materialLotNumber - The lot number to return the material lot object for.
- Scope
All
getLotSequence()
Get the lot sequence of the material lot used to filter the results. The sequence property is incremented every time a new Material Lot is created for a given lot number.
getLotSequence()
- Parameters
None
- Returns
Integer sequenceNumber - The lot sequence number to return the link for. If it is less than zero, then the lot holding the maximum value is returned and if the same lot number is used for multiple segments, each lot with the same lot number will be assigned a different lot sequence number.
- Scope
All
getMaterialDescription()
The description about the material.
getMaterialDescription()
- Parameters
None
- Returns
String description - The description of the specified material.
- Scope
All
getMaterialLot()
Return the material lot MES object associated the specified material property of a segment.
getMaterialLot()
- Parameters
None
- Returns
MESMaterialLot materialLot - A MESMaterialLot object that is associated with the specified material property for segment.
- Scope
All
getMaterialLotUUID()
Get the UUID of the material lot used to filter the results.
getMaterialLotUUID()
- Parameters
None
- Returns
String materialLotUUID - The UUID of the Material Definition to assign to the Material Lot object.
- Scope
All
getMaterialName()
The name of the material to assign to the Material Lot object.
getMaterialName()
- Parameters
None
- Returns
String materialName - The name of the specified material.
- Scope
All
getMaterialUUID()
The UUID of the material to assign to the Material Lot object. See UUIDs for more information.
getMaterialUUID()
- Parameters
None
- Returns
String materialUUID - The UUID of the specified material.
- Scope
All
getNetQuantity()
Get the net quantity of material in the lot. Net quantity = quantity in the beginning - used quantity of the item.
getNetQuantity()
- Parameters
None
- Returns
Double netQty - The net quantity of material.
- Scope
All
getOutQuantity()
Get the quantity of material feeding out from a segment that will be part of the finished goods.
getOutQuantity()
- Parameters
None
- Returns
Double outQty - The quantity of material.
- Scope
All
getScheduled()
Get the scheduled quantity of material.
getScheduled()
- Parameters
None
- Returns
Double scheduled - The scheduled quantity of material.
- Scope
All
getUnits()
This specifies the units for the quantity setting.
getUnits()
- Parameters
None
- Returns
String units - The units of quantity.
- Scope
All
setInQuantity()
Set the quantity of material feeding into a segment that will be part of the finished goods.
setInQuantity()
- Parameters
Double inQty - The quantity of material.
- Returns
Nothing
- Scope
All
setLocationLink()
Get the link to the location of the material lot
setLocationLink()
- Parameters
MES Object Link locationLink - The link representing the location.
- Returns
Nothing
- Scope
All
setLotNumber()
Set the lot number of the material lot used to filter the results.
setLotNumber()
- Parameters
String materialLotNumber - The lot number to return the material lot object for.
- Returns
Nothing
- Scope
All
setLotSequence()
Set the lot sequence of the material lot used to filter the results. The sequence property is incremented every time a new Material Lot is created for a given lot number.
setLotSequence()
- Parameters
Integer sequenceNumber - The lot sequence number to return the link for. If it is less than zero, then the lot holding the maximum value is returned and if the same lot number is used for multiple segments, each lot with the same lot number will be assigned a different lot sequence number.
- Returns
Nothing
- Scope
All
setMaterialDescription()
The description about the material.
setMaterialDescription()
- Parameters
String description - The description of the specified material.
- Returns
Nothing
- Scope
All
setMaterialLotUUID()
Set the UUID of the material lot used to filter the results.
setMaterialLotUUID()
- Parameters
String materialLotUUID - The UUID of the Material Definition to assign to the Material Lot object.
- Returns
Nothing
- Scope
All
setMaterialName()
The name of the material to assign to the Material Lot object.
setMaterialName()
- Parameters
String matName - The name of the specified material.
- Returns
Nothing
- Scope
All
setMaterialUUID()
The UUID of the material to assign to the Material Lot object. See UUIDs for more information.
setMaterialUUID()
- Parameters
String matUUID - The UUID of the specified material.
- Returns
Nothing
- Scope
All
setUnits()
This specifies the units for the quantity setting.
setUnits()
- Parameters
String units - The units of quantity.
- Returns
Nothing
- Scope
All
Sepasoft MES Module Suite