Package com.sgs.common.database
Class Batch
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.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 Summary
Fields Modifier and Type Field Description doublebatchValueThe monetary value of the batchjava.lang.IntegerbulkDispenseStatusThe status of any whole batch bulk dispense requestsjava.lang.IntegerbulksCompleteValue to indicate whether bulks and remainders have been added if batch is split over mutiple bagging zonesjava.util.DatecreateDateThe date the batch was createdjava.lang.IntegerexternalLabelsUsed to specify how many labels are being sent to a third party system using XMLFormulaformulaThe formula/receipe that was run during this batchJobLinejobLineThe Job Line (location/formula specific part of a job)intmasterEntryMethodjava.lang.DoublepacksProducedThe number of packs produced, should this batch be for a product formulajava.lang.IntegerpendingTestValue to denote whether batch is pending a testdoubleproducedQtyThe quantity produced by this batchjava.lang.DoubleproductsFulfilledThe number of products fulfilled by a partial batchintsignoffPerformedIndicates whether a batch signoff has been performedUserstartedByUserThe User who started the batchintstatusBatch 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";SuperBatchsuperBatchjava.lang.DoubletargetWeightThe target weight of the batch-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description Batch()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBatchTime()doublegetBatchValue()java.lang.IntegergetBulkDispenseStatus()java.lang.IntegergetBulksComplete()java.lang.IntegergetCollatedInto()java.util.DategetCompletionDate()java.util.DategetCreateDate()java.lang.IntegergetExported()java.lang.IntegergetExternalLabels()java.lang.StringgetFormattedBatchTime()FormulagetFormula()java.lang.StringgetIDStr()JobLinegetJobLine()java.lang.StringgetLPN()intgetMasterEntryMethod()java.lang.IntegergetMixContainerId()java.lang.DoublegetPacksProduced()intgetPartOfBatchId()java.lang.IntegergetPendingTest()PreBatchgetPreBatch()doublegetProducedQty()StockLocationgetProducedStock()java.lang.DoublegetProductsFulfilled()java.lang.DoublegetQuantityToProduce()intgetSignoffPerformed()UsergetStartedByUser()intgetStatus()java.lang.StringgetStatusStr()SuperBatchgetSuperBatch()java.lang.DoublegetTargetWeight()intgetTerminalId()static java.lang.StringparseStatus(int status)voidsetBatchTime(int batchTime)voidsetBatchValue(double batchValue)voidsetBulkDispenseStatus(java.lang.Integer bulkDispenseStatus)voidsetBulksComplete(java.lang.Integer bulksComplete)voidsetCollatedInto(java.lang.Integer collatedInto)voidsetCompletionDate(java.util.Date completionDate)voidsetCreateDate(java.util.Date createDate)voidsetExported(java.lang.Integer exported)voidsetExternalLabels(java.lang.Integer externalLabels)voidsetFormula(Formula formula)voidsetJobLine(JobLine jobLine)voidsetLPN(java.lang.String lPN)voidsetMasterEntryMethod(int isMaster)voidsetMixContainerId(java.lang.Integer mixContainerId)voidsetPacksProduced(java.lang.Double packsProduced)voidsetPartOfBatchId(int partOfBatchId)voidsetPendingTest(java.lang.Integer pendingTest)voidsetPreBatch(PreBatch preBatch)voidsetProducedQty(double producedQty)voidsetProducedStock(StockLocation producedStock)voidsetProductsFulfilled(java.lang.Double productsFulfilled)voidsetQuantityToProduce(java.lang.Double quantityToProduce)voidsetSignoffPerformed(int signoffPerformed)voidsetStartedByUser(User startedByUser)voidsetStatus(int status)voidsetSuperBatch(SuperBatch superBatch)voidsetTargetWeight(java.lang.Double targetWeight)voidsetTerminalId(int terminalId)java.lang.StringtoString()-
Methods inherited from class com.sgs.common.database.HibernateObject
getID, isDontSave, isModified, setDontSave, setID, setModified
-
-
-
-
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
-
superBatch
public SuperBatch superBatch
-
-
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)
-
getProducedStock
public StockLocation getProducedStock()
-
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)
-
getExported
public java.lang.Integer getExported()
- Overrides:
getExportedin classHibernateObject
-
setExported
public void setExported(java.lang.Integer exported)
- Overrides:
setExportedin classHibernateObject
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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)
-
-