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.ContainerType
for a list of different types of container that can be used- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Container.ContainerType
The different types of containers that are used in the system.
-
Field Summary
Fields Modifier and Type Field Description java.lang.Integer
batchId
Associated batch ID with containerBatch
java.lang.String
code
*Primary Key* A unique code for this containerboolean
complete
boolean indicator to see if container is completejava.util.List<ContainerLink>
containerLinks
A list of stock that resides on this pallet / in this containerjava.lang.Integer
containerSeq
The container sequence numberjava.util.Date
createDate
Creation date of containerjava.lang.String
datafield1
A datafield for optional use, storage and label printingjava.util.Date
deleted
A deletion timestampjava.lang.Double
depth
The internal physical depth of the containerjava.lang.Integer
finishedGoods
boolean indicator to identify if this was a finished goods palletjava.lang.Double
height
The internal physical height of the containerjava.lang.Integer
jobLineId
The job line associated with this pallet.java.lang.String
name
A name or description for this container.boolean
onHold
boolean identifier to identify whether the pallet is currently on holdjava.lang.String
origin
A system output to define a pallets place of creationContainer
parentContainer
The container to which this container inherits its valuesjava.lang.String
previousAllocatedSupplierPartDesc
java.lang.String
previousAllocatedSupplierPartNo
java.util.Date
salesAllocationDate
Date this container was allocated to a sales orderSalesOrder
java.lang.Integer
salesOrderId
Sales order ID link for this containerSalesOrder
shippedToOrder
The order that this container was shipped onjava.lang.String
sscc
The Serial Shipping Container Code for this container/palletint
status
Container status (empty, full) used internally onlyLocation
stockLocation
The stock location that this pallet currently residesdouble
tare
The container tare weightint
type
The type of container seeContainer.ContainerType
java.lang.Double
width
The 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.String
generateSSCC(java.lang.String companyRef, int id)
Client
getAllocatedClient()
SalesOrder
getAllocatedSalesOrder()
java.lang.Integer
getBatchId()
java.lang.String
getCode()
java.util.List<ContainerLink>
getContainerLinks()
java.lang.Integer
getContainerSeq()
java.util.Date
getCreateDate()
java.lang.String
getDatafield1()
java.util.Date
getDeleted()
java.lang.Double
getDepth()
java.lang.Integer
getFinishedGoods()
java.lang.Double
getHeight()
java.lang.String
getHoldList()
java.lang.Double
getItemCount()
java.lang.Integer
getJobLineId()
JobSalesOrderLink
getJobOrderLink()
java.lang.Integer
getMaxItemCount()
java.lang.String
getName()
java.lang.String
getOrigin()
Container
getParentContainer()
java.lang.String
getPreviousAllocatedSupplierPartDesc()
java.lang.String
getPreviousAllocatedSupplierPartNo()
java.util.Date
getSalesAllocationDate()
java.lang.Integer
getSalesOrderId()
SalesOrder
getShippedToOrder()
java.lang.String
getSscc()
int
getStatus()
Location
getStockLocation()
double
getTare()
java.lang.String
getTenDigitName()
int
getType()
java.lang.Double
getWidth()
boolean
isComplete()
boolean
isOnHold()
boolean
isSelected()
void
setAllocatedClient(Client allocatedClient)
void
setAllocatedSalesOrder(SalesOrder allocatedSalesOrder)
void
setBatchId(java.lang.Integer batchId)
void
setCode(java.lang.String code)
void
setComplete(boolean complete)
void
setContainerLinks(java.util.List<ContainerLink> containerLinks)
void
setContainerSeq(java.lang.Integer containerSeq)
void
setCreateDate(java.util.Date createDate)
void
setDatafield1(java.lang.String datafield1)
void
setDeleted(java.util.Date deleted)
void
setDepth(java.lang.Double depth)
void
setFinishedGoods(java.lang.Integer finishedGoods)
void
setHeight(java.lang.Double height)
void
setHoldList(java.lang.String holdList)
void
setItemCount(double itemCount)
void
setJobLineId(java.lang.Integer jobLineId)
void
setJobOrderLink(JobSalesOrderLink jobOrderLink)
void
setMaxItemCount(java.lang.Integer maxItemCount)
void
setName(java.lang.String name)
void
setOnHold(boolean onHold)
void
setOrigin(java.lang.String origin)
void
setParentContainer(Container parentContainer)
void
setPreviousAllocatedSupplierPartDesc(java.lang.String previousAllocatedSupplierPartDesc)
void
setPreviousAllocatedSupplierPartNo(java.lang.String previousAllocatedSupplierPartNo)
void
setSalesAllocationDate(java.util.Date salesAllocationDate)
void
setSalesOrderId(java.lang.Integer salesOrderId)
void
setSelected(boolean isSelected)
void
setShippedToOrder(SalesOrder shippedToOrder)
void
setShowCode(boolean b)
void
setSscc(java.lang.String sscc)
void
setStatus(int status)
void
setStockLocation(Location stockLocation)
void
setTare(double tare)
void
setType(int type)
void
setWidth(java.lang.Double width)
java.lang.String
toString()
-
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:
toString
in 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()
-
-