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 classPreBatch.BatchStatusThe status a batch
-
Field Summary
Fields Modifier and Type Field Description intbatchSeqWhich batch in sequence this is for theJobLinestarting at 1java.lang.IntegerbulkDispenseStatusThe status of a multiple bulk dispense request.intcompletionApprovedA marker to denote whether this prebatch is allowed to complete with relevant configurationsjava.lang.StringcustomBatchNoA custom batch number to carry over to the batchFormulaformulaAn overriding formula.JobLinejobLineThe job line that this prebatch pertains toLocationlocationThe production location this batch will appear indoubleproductsHow many products this batch should producejava.lang.IntegerreleasedForDispenseThe status of a multiple bulk dispense request.intstatusThe 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 BatchgetBatch()intgetBatchSeq()java.lang.IntegergetBulkDispenseStatus()intgetCompletionApproved()java.lang.StringgetCustomBatchNo()FormulagetFormula()JobgetJob()JobLinegetJobLine()LocationgetLocation()doublegetProducts()java.lang.IntegergetReleasedForDispense()intgetStatus()PreBatch.BatchStatusgetStatusEnum()voidsetBatch(Batch batch)voidsetBatchSeq(int batchSeq)voidsetBulkDispenseStatus(java.lang.Integer bulkDispenseStatus)voidsetCompletionApproved(int completionApproved)voidsetCustomBatchNo(java.lang.String customBatchNo)voidsetFormula(Formula formula)voidsetJob(Job job)voidsetJobLine(JobLine jobLine)voidsetLocation(Location location)voidsetProducts(double products)voidsetReleasedForDispense(java.lang.Integer releasedForDispense)voidsetStatus(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 theJobLinestarting 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)
-
-