Class 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 See Container.ContainerType for a list of different types of container that can be used
    Author:
    SGSystems
    • 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
      • 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 container Batch
      • 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 order SalesOrder
      • 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
    • Constructor Detail

      • Container

        public Container()
    • 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 class java.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)
      • 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()