Package com.sgs.common.database
Class PreBatch
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.PreBatch
-
public class PreBatch extends HibernateObject
This class represents a placeholder for Batches When a job is scheduled with 20 batches, 20 PreBatches are created as place holders for the work to be done This allows the SG system to have custom settings on a per batch level- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PreBatch.BatchStatus
The status a batch
-
Field Summary
Fields Modifier and Type Field Description int
batchSeq
Which batch in sequence this is for theJobLine
starting at 1java.lang.Integer
bulkDispenseStatus
The status of a multiple bulk dispense request.int
completionApproved
A marker to denote whether this prebatch is allowed to complete with relevant configurationsjava.lang.String
customBatchNo
A custom batch number to carry over to the batchFormula
formula
An overriding formula.JobLine
jobLine
The job line that this prebatch pertains toLocation
location
The production location this batch will appear indouble
products
How many products this batch should producejava.lang.Integer
releasedForDispense
The status of a multiple bulk dispense request.int
status
The status of the PreBatch, seePreBatch.BatchStatus
-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description PreBatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Batch
getBatch()
int
getBatchSeq()
java.lang.Integer
getBulkDispenseStatus()
int
getCompletionApproved()
java.lang.String
getCustomBatchNo()
Formula
getFormula()
Job
getJob()
JobLine
getJobLine()
Location
getLocation()
double
getProducts()
java.lang.Integer
getReleasedForDispense()
int
getStatus()
PreBatch.BatchStatus
getStatusEnum()
void
setBatch(Batch batch)
void
setBatchSeq(int batchSeq)
void
setBulkDispenseStatus(java.lang.Integer bulkDispenseStatus)
void
setCompletionApproved(int completionApproved)
void
setCustomBatchNo(java.lang.String customBatchNo)
void
setFormula(Formula formula)
void
setJob(Job job)
void
setJobLine(JobLine jobLine)
void
setLocation(Location location)
void
setProducts(double products)
void
setReleasedForDispense(java.lang.Integer releasedForDispense)
void
setStatus(int status)
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
batchSeq
public int batchSeq
Which batch in sequence this is for theJobLine
starting at 1
-
products
public double products
How many products this batch should produce
-
status
public int status
The status of the PreBatch, seePreBatch.BatchStatus
-
location
public Location location
The production location this batch will appear in
-
jobLine
public JobLine jobLine
The job line that this prebatch pertains to
-
customBatchNo
public java.lang.String customBatchNo
A custom batch number to carry over to the batch
-
bulkDispenseStatus
public java.lang.Integer bulkDispenseStatus
The status of a multiple bulk dispense request. 1 is fulfilled
-
completionApproved
public int completionApproved
A marker to denote whether this prebatch is allowed to complete with relevant configurations
-
formula
public Formula formula
An overriding formula. Intended to override the JobLine Formula Entity
-
releasedForDispense
public java.lang.Integer releasedForDispense
The status of a multiple bulk dispense request. 1 is fulfilled
-
-
Method Detail
-
getBatchSeq
public int getBatchSeq()
-
getProducts
public double getProducts()
-
getStatus
public int getStatus()
-
getLocation
public Location getLocation()
-
setBatchSeq
public void setBatchSeq(int batchSeq)
-
setProducts
public void setProducts(double products)
-
setStatus
public void setStatus(int status)
-
setLocation
public void setLocation(Location location)
-
getJobLine
public JobLine getJobLine()
-
setJobLine
public void setJobLine(JobLine jobLine)
-
getStatusEnum
public PreBatch.BatchStatus getStatusEnum()
-
getJob
public Job getJob()
-
setJob
public void setJob(Job job)
-
getCustomBatchNo
public java.lang.String getCustomBatchNo()
-
setCustomBatchNo
public void setCustomBatchNo(java.lang.String customBatchNo)
-
getBatch
public Batch getBatch()
-
setBatch
public void setBatch(Batch batch)
-
getBulkDispenseStatus
public java.lang.Integer getBulkDispenseStatus()
-
setBulkDispenseStatus
public void setBulkDispenseStatus(java.lang.Integer bulkDispenseStatus)
-
getCompletionApproved
public int getCompletionApproved()
-
setCompletionApproved
public void setCompletionApproved(int completionApproved)
-
getFormula
public Formula getFormula()
-
setFormula
public void setFormula(Formula formula)
-
getReleasedForDispense
public java.lang.Integer getReleasedForDispense()
-
setReleasedForDispense
public void setReleasedForDispense(java.lang.Integer releasedForDispense)
-
-