Class Batch


  • public class Batch
    extends HibernateObject
    This class represents a Batch. Batches form job lines which form jobs. A batch has a scheduled size. Batches are only created when they are started at a terminal.
    Author:
    SGSystems
    • Field Detail

      • formula

        public Formula formula
        The formula/receipe that was run during this batch
      • jobLine

        public JobLine jobLine
        The Job Line (location/formula specific part of a job)
      • producedQty

        public double producedQty
        The quantity produced by this batch
      • status

        public int status
        Batch status case -1: return "Aborted"; case 0: return "Not Started"; case 1: return "In Progress"; case 2: return "Suspended"; case 3: return "Completed"; case 4: return "Awaiting Completion"; default: return "Unknown";
      • batchValue

        public double batchValue
        The monetary value of the batch
      • createDate

        public java.util.Date createDate
        The date the batch was created
      • packsProduced

        public java.lang.Double packsProduced
        The number of packs produced, should this batch be for a product formula
      • startedByUser

        public User startedByUser
        The User who started the batch
      • targetWeight

        public java.lang.Double targetWeight
        The target weight of the batch
      • bulksComplete

        public java.lang.Integer bulksComplete
        Value to indicate whether bulks and remainders have been added if batch is split over mutiple bagging zones
      • bulkDispenseStatus

        public java.lang.Integer bulkDispenseStatus
        The status of any whole batch bulk dispense requests
      • productsFulfilled

        public java.lang.Double productsFulfilled
        The number of products fulfilled by a partial batch
      • externalLabels

        public java.lang.Integer externalLabels
        Used to specify how many labels are being sent to a third party system using XML
      • pendingTest

        public java.lang.Integer pendingTest
        Value to denote whether batch is pending a test
      • signoffPerformed

        public int signoffPerformed
        Indicates whether a batch signoff has been performed
      • masterEntryMethod

        public int masterEntryMethod
    • Constructor Detail

      • Batch

        public Batch()
    • Method Detail

      • getFormula

        public Formula getFormula()
      • setFormula

        public void setFormula​(Formula formula)
      • getProducedQty

        public double getProducedQty()
      • setProducedQty

        public void setProducedQty​(double producedQty)
      • getStatus

        public int getStatus()
      • setStatus

        public void setStatus​(int status)
      • getBatchValue

        public double getBatchValue()
      • setBatchValue

        public void setBatchValue​(double batchValue)
      • getJobLine

        public JobLine getJobLine()
      • setJobLine

        public void setJobLine​(JobLine jobLine)
      • getCreateDate

        public java.util.Date getCreateDate()
      • setCreateDate

        public void setCreateDate​(java.util.Date createDate)
      • getTerminalId

        public int getTerminalId()
      • setTerminalId

        public void setTerminalId​(int terminalId)
      • getPacksProduced

        public java.lang.Double getPacksProduced()
      • setPacksProduced

        public void setPacksProduced​(java.lang.Double packsProduced)
      • setProducedStock

        public void setProducedStock​(StockLocation producedStock)
      • parseStatus

        public static java.lang.String parseStatus​(int status)
      • getPreBatch

        public PreBatch getPreBatch()
      • setPreBatch

        public void setPreBatch​(PreBatch preBatch)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBatchTime

        public int getBatchTime()
      • setBatchTime

        public void setBatchTime​(int batchTime)
      • getCompletionDate

        public java.util.Date getCompletionDate()
      • setCompletionDate

        public void setCompletionDate​(java.util.Date completionDate)
      • getCollatedInto

        public java.lang.Integer getCollatedInto()
      • setCollatedInto

        public void setCollatedInto​(java.lang.Integer collatedInto)
      • getStatusStr

        public java.lang.String getStatusStr()
      • getFormattedBatchTime

        public java.lang.String getFormattedBatchTime()
      • getIDStr

        public java.lang.String getIDStr()
      • getStartedByUser

        public User getStartedByUser()
      • setStartedByUser

        public void setStartedByUser​(User startedByUser)
      • getTargetWeight

        public java.lang.Double getTargetWeight()
      • setTargetWeight

        public void setTargetWeight​(java.lang.Double targetWeight)
      • getPartOfBatchId

        public int getPartOfBatchId()
      • setPartOfBatchId

        public void setPartOfBatchId​(int partOfBatchId)
      • getMixContainerId

        public java.lang.Integer getMixContainerId()
      • setMixContainerId

        public void setMixContainerId​(java.lang.Integer mixContainerId)
      • getLPN

        public java.lang.String getLPN()
      • setLPN

        public void setLPN​(java.lang.String lPN)
      • getQuantityToProduce

        public java.lang.Double getQuantityToProduce()
      • setQuantityToProduce

        public void setQuantityToProduce​(java.lang.Double quantityToProduce)
      • getBulksComplete

        public java.lang.Integer getBulksComplete()
      • setBulksComplete

        public void setBulksComplete​(java.lang.Integer bulksComplete)
      • getBulkDispenseStatus

        public java.lang.Integer getBulkDispenseStatus()
      • setBulkDispenseStatus

        public void setBulkDispenseStatus​(java.lang.Integer bulkDispenseStatus)
      • getProductsFulfilled

        public java.lang.Double getProductsFulfilled()
      • setProductsFulfilled

        public void setProductsFulfilled​(java.lang.Double productsFulfilled)
      • getExternalLabels

        public java.lang.Integer getExternalLabels()
      • setExternalLabels

        public void setExternalLabels​(java.lang.Integer externalLabels)
      • getPendingTest

        public java.lang.Integer getPendingTest()
      • setPendingTest

        public void setPendingTest​(java.lang.Integer pendingTest)
      • getSignoffPerformed

        public int getSignoffPerformed()
      • setSignoffPerformed

        public void setSignoffPerformed​(int signoffPerformed)
      • getMasterEntryMethod

        public int getMasterEntryMethod()
      • setMasterEntryMethod

        public void setMasterEntryMethod​(int isMaster)
      • getSuperBatch

        public SuperBatch getSuperBatch()
      • setSuperBatch

        public void setSuperBatch​(SuperBatch superBatch)