Package com.sgs.common.database
Class StockAssignment
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.StockAssignment
-
public class StockAssignment extends HibernateObject
This class represents a reservation of a quantity of a particular stock item for a particular job. This can be specified as aStockLocationor aContainer. The reservation can be limited to a productionLocation- Author:
- Maver
-
-
Field Summary
Fields Modifier and Type Field Description JobjobThe job to assign the stock item toContainerpalletA pallet can be assigned to a jobLocationproductionLocationAn optional production location can be specified for filteringjava.lang.DoublequantityThe quantity of the stock lot or pallet that is assigned to thisJobStockLocationstockThe stock item to assign-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description StockAssignment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobgetJob()ContainergetPallet()LocationgetProductionLocation()java.lang.DoublegetQuantity()StockLocationgetStock()voidsetJob(Job job)voidsetPallet(Container pallet)voidsetProductionLocation(Location productionLocation)voidsetQuantity(java.lang.Double quantity)voidsetStock(StockLocation stock)-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
stock
public StockLocation stock
The stock item to assign
-
job
public Job job
The job to assign the stock item to
-
productionLocation
public Location productionLocation
An optional production location can be specified for filtering
-
pallet
public Container pallet
A pallet can be assigned to a job
-
quantity
public java.lang.Double quantity
The quantity of the stock lot or pallet that is assigned to thisJob
-
-
Method Detail
-
getStock
public StockLocation getStock()
-
getJob
public Job getJob()
-
setStock
public void setStock(StockLocation stock)
-
setJob
public void setJob(Job job)
-
getProductionLocation
public Location getProductionLocation()
-
setProductionLocation
public void setProductionLocation(Location productionLocation)
-
getPallet
public Container getPallet()
-
setPallet
public void setPallet(Container pallet)
-
getQuantity
public java.lang.Double getQuantity()
-
setQuantity
public void setQuantity(java.lang.Double quantity)
-
-