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 double
batchValue
The monetary value of the batchjava.lang.Integer
bulkDispenseStatus
The status of any whole batch bulk dispense requestsjava.lang.Integer
bulksComplete
Value to indicate whether bulks and remainders have been added if batch is split over mutiple bagging zonesjava.util.Date
createDate
The date the batch was createdjava.lang.Integer
externalLabels
Used to specify how many labels are being sent to a third party system using XMLFormula
formula
The formula/receipe that was run during this batchJobLine
jobLine
The Job Line (location/formula specific part of a job)int
masterEntryMethod
java.lang.Double
packsProduced
The number of packs produced, should this batch be for a product formulajava.lang.Integer
pendingTest
Value to denote whether batch is pending a testdouble
producedQty
The quantity produced by this batchjava.lang.Double
productsFulfilled
The number of products fulfilled by a partial batchint
signoffPerformed
Indicates whether a batch signoff has been performedUser
startedByUser
The User who started the batchint
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";SuperBatch
superBatch
java.lang.Double
targetWeight
The 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 int
getBatchTime()
double
getBatchValue()
java.lang.Integer
getBulkDispenseStatus()
java.lang.Integer
getBulksComplete()
java.lang.Integer
getCollatedInto()
java.util.Date
getCompletionDate()
java.util.Date
getCreateDate()
java.lang.Integer
getExported()
java.lang.Integer
getExternalLabels()
java.lang.String
getFormattedBatchTime()
Formula
getFormula()
java.lang.String
getIDStr()
JobLine
getJobLine()
java.lang.String
getLPN()
int
getMasterEntryMethod()
java.lang.Integer
getMixContainerId()
java.lang.Double
getPacksProduced()
int
getPartOfBatchId()
java.lang.Integer
getPendingTest()
PreBatch
getPreBatch()
double
getProducedQty()
StockLocation
getProducedStock()
java.lang.Double
getProductsFulfilled()
java.lang.Double
getQuantityToProduce()
int
getSignoffPerformed()
User
getStartedByUser()
int
getStatus()
java.lang.String
getStatusStr()
SuperBatch
getSuperBatch()
java.lang.Double
getTargetWeight()
int
getTerminalId()
static java.lang.String
parseStatus(int status)
void
setBatchTime(int batchTime)
void
setBatchValue(double batchValue)
void
setBulkDispenseStatus(java.lang.Integer bulkDispenseStatus)
void
setBulksComplete(java.lang.Integer bulksComplete)
void
setCollatedInto(java.lang.Integer collatedInto)
void
setCompletionDate(java.util.Date completionDate)
void
setCreateDate(java.util.Date createDate)
void
setExported(java.lang.Integer exported)
void
setExternalLabels(java.lang.Integer externalLabels)
void
setFormula(Formula formula)
void
setJobLine(JobLine jobLine)
void
setLPN(java.lang.String lPN)
void
setMasterEntryMethod(int isMaster)
void
setMixContainerId(java.lang.Integer mixContainerId)
void
setPacksProduced(java.lang.Double packsProduced)
void
setPartOfBatchId(int partOfBatchId)
void
setPendingTest(java.lang.Integer pendingTest)
void
setPreBatch(PreBatch preBatch)
void
setProducedQty(double producedQty)
void
setProducedStock(StockLocation producedStock)
void
setProductsFulfilled(java.lang.Double productsFulfilled)
void
setQuantityToProduce(java.lang.Double quantityToProduce)
void
setSignoffPerformed(int signoffPerformed)
void
setStartedByUser(User startedByUser)
void
setStatus(int status)
void
setSuperBatch(SuperBatch superBatch)
void
setTargetWeight(java.lang.Double targetWeight)
void
setTerminalId(int terminalId)
java.lang.String
toString()
-
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:
getExported
in classHibernateObject
-
setExported
public void setExported(java.lang.Integer exported)
- Overrides:
setExported
in classHibernateObject
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-