Package com.sgs.common.database
Class Container
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.Container
-
public class Container extends HibernateObject
This class represents a container in the system A container can be used to hold stock, perform tares and other useful functions SeeContainer.ContainerTypefor a list of different types of container that can be used- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContainer.ContainerTypeThe different types of containers that are used in the system.
-
Field Summary
Fields Modifier and Type Field Description java.lang.IntegerbatchIdAssociated batch ID with containerBatchjava.lang.Stringcode*Primary Key* A unique code for this containerbooleancompleteboolean indicator to see if container is completejava.util.List<ContainerLink>containerLinksA list of stock that resides on this pallet / in this containerjava.lang.IntegercontainerSeqThe container sequence numberjava.util.DatecreateDateCreation date of containerjava.lang.Stringdatafield1A datafield for optional use, storage and label printingjava.util.DatedeletedA deletion timestampjava.lang.DoubledepthThe internal physical depth of the containerjava.lang.IntegerfinishedGoodsboolean indicator to identify if this was a finished goods palletjava.lang.DoubleheightThe internal physical height of the containerjava.lang.IntegerjobLineIdThe job line associated with this pallet.java.lang.StringnameA name or description for this container.booleanonHoldboolean identifier to identify whether the pallet is currently on holdjava.lang.StringoriginA system output to define a pallets place of creationContainerparentContainerThe container to which this container inherits its valuesjava.lang.StringpreviousAllocatedSupplierPartDescjava.lang.StringpreviousAllocatedSupplierPartNojava.util.DatesalesAllocationDateDate this container was allocated to a sales orderSalesOrderjava.lang.IntegersalesOrderIdSales order ID link for this containerSalesOrdershippedToOrderThe order that this container was shipped onjava.lang.StringssccThe Serial Shipping Container Code for this container/palletintstatusContainer status (empty, full) used internally onlyLocationstockLocationThe stock location that this pallet currently residesdoubletareThe container tare weightinttypeThe type of container seeContainer.ContainerTypejava.lang.DoublewidthThe internal physical width of the container-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description Container()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgenerateSSCC(java.lang.String companyRef, int id)ClientgetAllocatedClient()SalesOrdergetAllocatedSalesOrder()java.lang.IntegergetBatchId()java.lang.StringgetCode()java.util.List<ContainerLink>getContainerLinks()java.lang.IntegergetContainerSeq()java.util.DategetCreateDate()java.lang.StringgetDatafield1()java.util.DategetDeleted()java.lang.DoublegetDepth()java.lang.IntegergetFinishedGoods()java.lang.DoublegetHeight()java.lang.StringgetHoldList()java.lang.DoublegetItemCount()java.lang.IntegergetJobLineId()JobSalesOrderLinkgetJobOrderLink()java.lang.IntegergetMaxItemCount()java.lang.StringgetName()java.lang.StringgetOrigin()ContainergetParentContainer()java.lang.StringgetPreviousAllocatedSupplierPartDesc()java.lang.StringgetPreviousAllocatedSupplierPartNo()java.util.DategetSalesAllocationDate()java.lang.IntegergetSalesOrderId()SalesOrdergetShippedToOrder()java.lang.StringgetSscc()intgetStatus()LocationgetStockLocation()doublegetTare()java.lang.StringgetTenDigitName()intgetType()java.lang.DoublegetWidth()booleanisComplete()booleanisOnHold()booleanisSelected()voidsetAllocatedClient(Client allocatedClient)voidsetAllocatedSalesOrder(SalesOrder allocatedSalesOrder)voidsetBatchId(java.lang.Integer batchId)voidsetCode(java.lang.String code)voidsetComplete(boolean complete)voidsetContainerLinks(java.util.List<ContainerLink> containerLinks)voidsetContainerSeq(java.lang.Integer containerSeq)voidsetCreateDate(java.util.Date createDate)voidsetDatafield1(java.lang.String datafield1)voidsetDeleted(java.util.Date deleted)voidsetDepth(java.lang.Double depth)voidsetFinishedGoods(java.lang.Integer finishedGoods)voidsetHeight(java.lang.Double height)voidsetHoldList(java.lang.String holdList)voidsetItemCount(double itemCount)voidsetJobLineId(java.lang.Integer jobLineId)voidsetJobOrderLink(JobSalesOrderLink jobOrderLink)voidsetMaxItemCount(java.lang.Integer maxItemCount)voidsetName(java.lang.String name)voidsetOnHold(boolean onHold)voidsetOrigin(java.lang.String origin)voidsetParentContainer(Container parentContainer)voidsetPreviousAllocatedSupplierPartDesc(java.lang.String previousAllocatedSupplierPartDesc)voidsetPreviousAllocatedSupplierPartNo(java.lang.String previousAllocatedSupplierPartNo)voidsetSalesAllocationDate(java.util.Date salesAllocationDate)voidsetSalesOrderId(java.lang.Integer salesOrderId)voidsetSelected(boolean isSelected)voidsetShippedToOrder(SalesOrder shippedToOrder)voidsetShowCode(boolean b)voidsetSscc(java.lang.String sscc)voidsetStatus(int status)voidsetStockLocation(Location stockLocation)voidsetTare(double tare)voidsetType(int type)voidsetWidth(java.lang.Double width)java.lang.StringtoString()-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
code
public java.lang.String code
*Primary Key* A unique code for this container
-
name
public java.lang.String name
A name or description for this container. Ususally a duplication of code
-
type
public int type
The type of container seeContainer.ContainerType
-
tare
public double tare
The container tare weight
-
deleted
public java.util.Date deleted
A deletion timestamp
-
complete
public boolean complete
boolean indicator to see if container is complete
-
batchId
public java.lang.Integer batchId
Associated batch ID with containerBatch
-
createDate
public java.util.Date createDate
Creation date of container
-
status
public int status
Container status (empty, full) used internally only
-
salesOrderId
public java.lang.Integer salesOrderId
Sales order ID link for this container
-
salesAllocationDate
public java.util.Date salesAllocationDate
Date this container was allocated to a sales orderSalesOrder
-
sscc
public java.lang.String sscc
The Serial Shipping Container Code for this container/pallet
-
jobLineId
public java.lang.Integer jobLineId
The job line associated with this pallet.JobLine
-
containerSeq
public java.lang.Integer containerSeq
The container sequence number
-
stockLocation
public Location stockLocation
The stock location that this pallet currently resides
-
shippedToOrder
public SalesOrder shippedToOrder
The order that this container was shipped on
-
finishedGoods
public java.lang.Integer finishedGoods
boolean indicator to identify if this was a finished goods pallet
-
onHold
public boolean onHold
boolean identifier to identify whether the pallet is currently on hold
-
containerLinks
public java.util.List<ContainerLink> containerLinks
A list of stock that resides on this pallet / in this container
-
width
public java.lang.Double width
The internal physical width of the container
-
height
public java.lang.Double height
The internal physical height of the container
-
depth
public java.lang.Double depth
The internal physical depth of the container
-
parentContainer
public Container parentContainer
The container to which this container inherits its values
-
origin
public java.lang.String origin
A system output to define a pallets place of creation
-
datafield1
public java.lang.String datafield1
A datafield for optional use, storage and label printing
-
previousAllocatedSupplierPartNo
public java.lang.String previousAllocatedSupplierPartNo
-
previousAllocatedSupplierPartDesc
public java.lang.String previousAllocatedSupplierPartDesc
-
-
Method Detail
-
getSscc
public java.lang.String getSscc()
-
setSscc
public void setSscc(java.lang.String sscc)
-
getCode
public java.lang.String getCode()
-
getName
public java.lang.String getName()
-
setCode
public void setCode(java.lang.String code)
-
setName
public void setName(java.lang.String name)
-
getType
public int getType()
-
setType
public void setType(int type)
-
getTare
public double getTare()
-
setTare
public void setTare(double tare)
-
getDeleted
public java.util.Date getDeleted()
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setShowCode
public void setShowCode(boolean b)
-
isComplete
public boolean isComplete()
-
setComplete
public void setComplete(boolean complete)
-
generateSSCC
public static java.lang.String generateSSCC(java.lang.String companyRef, int id)
-
getBatchId
public java.lang.Integer getBatchId()
-
setBatchId
public void setBatchId(java.lang.Integer batchId)
-
getCreateDate
public java.util.Date getCreateDate()
-
setCreateDate
public void setCreateDate(java.util.Date createDate)
-
getStatus
public int getStatus()
-
setStatus
public void setStatus(int status)
-
getSalesOrderId
public java.lang.Integer getSalesOrderId()
-
setSalesOrderId
public void setSalesOrderId(java.lang.Integer salesOrderId)
-
getSalesAllocationDate
public java.util.Date getSalesAllocationDate()
-
setSalesAllocationDate
public void setSalesAllocationDate(java.util.Date salesAllocationDate)
-
getItemCount
public java.lang.Double getItemCount()
-
setItemCount
public void setItemCount(double itemCount)
-
getMaxItemCount
public java.lang.Integer getMaxItemCount()
-
setMaxItemCount
public void setMaxItemCount(java.lang.Integer maxItemCount)
-
getJobLineId
public java.lang.Integer getJobLineId()
-
setJobLineId
public void setJobLineId(java.lang.Integer jobLineId)
-
getContainerSeq
public java.lang.Integer getContainerSeq()
-
setContainerSeq
public void setContainerSeq(java.lang.Integer containerSeq)
-
getStockLocation
public Location getStockLocation()
-
setStockLocation
public void setStockLocation(Location stockLocation)
-
getShippedToOrder
public SalesOrder getShippedToOrder()
-
setShippedToOrder
public void setShippedToOrder(SalesOrder shippedToOrder)
-
getFinishedGoods
public java.lang.Integer getFinishedGoods()
-
setFinishedGoods
public void setFinishedGoods(java.lang.Integer finishedGoods)
-
isOnHold
public boolean isOnHold()
-
setOnHold
public void setOnHold(boolean onHold)
-
getContainerLinks
public java.util.List<ContainerLink> getContainerLinks()
-
setContainerLinks
public void setContainerLinks(java.util.List<ContainerLink> containerLinks)
-
getWidth
public java.lang.Double getWidth()
-
setWidth
public void setWidth(java.lang.Double width)
-
getHeight
public java.lang.Double getHeight()
-
setHeight
public void setHeight(java.lang.Double height)
-
getDepth
public java.lang.Double getDepth()
-
setDepth
public void setDepth(java.lang.Double depth)
-
getParentContainer
public Container getParentContainer()
-
setParentContainer
public void setParentContainer(Container parentContainer)
-
getOrigin
public java.lang.String getOrigin()
-
setOrigin
public void setOrigin(java.lang.String origin)
-
getHoldList
public java.lang.String getHoldList()
-
setHoldList
public void setHoldList(java.lang.String holdList)
-
isSelected
public boolean isSelected()
-
setSelected
public void setSelected(boolean isSelected)
-
getAllocatedSalesOrder
public SalesOrder getAllocatedSalesOrder()
-
setAllocatedSalesOrder
public void setAllocatedSalesOrder(SalesOrder allocatedSalesOrder)
-
getAllocatedClient
public Client getAllocatedClient()
-
setAllocatedClient
public void setAllocatedClient(Client allocatedClient)
-
getDatafield1
public java.lang.String getDatafield1()
-
setDatafield1
public void setDatafield1(java.lang.String datafield1)
-
getJobOrderLink
public JobSalesOrderLink getJobOrderLink()
-
setJobOrderLink
public void setJobOrderLink(JobSalesOrderLink jobOrderLink)
-
getPreviousAllocatedSupplierPartNo
public java.lang.String getPreviousAllocatedSupplierPartNo()
-
setPreviousAllocatedSupplierPartNo
public void setPreviousAllocatedSupplierPartNo(java.lang.String previousAllocatedSupplierPartNo)
-
getPreviousAllocatedSupplierPartDesc
public java.lang.String getPreviousAllocatedSupplierPartDesc()
-
setPreviousAllocatedSupplierPartDesc
public void setPreviousAllocatedSupplierPartDesc(java.lang.String previousAllocatedSupplierPartDesc)
-
getTenDigitName
public java.lang.String getTenDigitName()
-
-