Package com.sgs.common.database
Class JobLine
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.JobLine
-
public class JobLine extends HibernateObject
This class represents a portion of a Job that is to be completed at a location. A job may schedule a top level finished product while the scheduler may decide that in order to make that finished product, several other formulas must be made first. These form what are the job lines. The relevant jobs that need to be completed to complete the overall job.- Author:
- SGSystems
-
-
Field Summary
Fields Modifier and Type Field Description intbatchesCompletedThe batches completed for this job lineintbatchesInProgressThe batches in progress on this job lineintbatchesRequiredThe number of batches required for this job line.java.lang.IntegerbulksCompleteIndicates whether bulks, remainder or both have been completed for this job linejava.lang.DoublecountPerCartonFormulaformulaThe formula to be executed for this job lineJobjobThe job that this job line belongs tojava.lang.IntegeroverriddenPalletSeqThe starting sequence for pallets produced by this batchjava.lang.IntegerplannedMixjava.util.DateproductionDateThe desired production date for this job linejava.lang.DoubleproductsThe number of products scheduled for this job line.java.lang.IntegerscheduledFromPlanningIf the Job Line has been scheduled from the Planning moduleintstatusThe status of the job line.java.lang.StringstatusReason-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description JobLine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBatchesCompleted()intgetBatchesInProgress()intgetBatchesRemaining()intgetBatchesRequired()java.lang.IntegergetBulkBatchesDone()java.lang.IntegergetBulksComplete()TerminalgetExecutionTerminal()intgetFlatAddition()FormulagetFormula()JobgetJob()intgetLineLevel()java.lang.StringgetLocation()java.lang.IntegergetOverriddenPalletSeq()LocationgetOverridenLocation()java.lang.IntegergetPlannedMix()java.util.List<PreBatch>getPreBatchList()java.util.DategetProductionDate()java.lang.DoublegetProducts()java.lang.IntegergetRemainderBatchesDone()java.lang.IntegergetScheduledFromPlanning()intgetStatus()Job.JobStatusgetStatusEnum()java.lang.StringgetStatusReason()java.lang.StringgetStatusStr()java.lang.BooleanisAllergenPresent()booleanisSelected()voidsetBatchesCompleted(int batchesCompleted)voidsetBatchesInProgress(int batchesInProgress)voidsetBatchesRequired(int batchesRequired)voidsetBulkBatchesDone(java.lang.Integer bulkBatchesDone)voidsetBulksComplete(java.lang.Integer bulksComplete)voidsetExecutionTerminal(Terminal executionTerminal)voidsetFlatAddition(int flatAddition)voidsetFormula(Formula formula)voidsetJob(Job job)voidsetLineLevel(int lineLevel)voidsetLocation(java.lang.String code)voidsetOverriddenPalletSeq(java.lang.Integer overriddenPalletSeq)voidsetOverridenLocation(Location overridenLocation)voidsetPlannedMix(java.lang.Integer plannedMix)voidsetPreBatchList(java.util.List<PreBatch> preBatchList)voidsetProductionDate(java.util.Date productionDate)voidsetProducts(java.lang.Double products)voidsetRemainderBatchesDone(java.lang.Integer remainderBatchesDone)voidsetScheduledFromPlanning(java.lang.Integer scheduledFromPlanning)voidsetSelected(boolean selected)voidsetStatus(int status)voidsetStatusReason(java.lang.String statusReason)java.lang.StringtoString()-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
job
public Job job
The job that this job line belongs to
-
status
public int status
The status of the job line. SeeJob.JobStatus
-
statusReason
public java.lang.String statusReason
-
batchesRequired
public int batchesRequired
The number of batches required for this job line.
-
batchesInProgress
public int batchesInProgress
The batches in progress on this job line
-
batchesCompleted
public int batchesCompleted
The batches completed for this job line
-
products
public java.lang.Double products
The number of products scheduled for this job line. This affects the size of the batches produced
-
formula
public Formula formula
The formula to be executed for this job line
-
productionDate
public java.util.Date productionDate
The desired production date for this job line
-
bulksComplete
public java.lang.Integer bulksComplete
Indicates whether bulks, remainder or both have been completed for this job line
-
overriddenPalletSeq
public java.lang.Integer overriddenPalletSeq
The starting sequence for pallets produced by this batch
-
countPerCarton
public java.lang.Double countPerCarton
-
scheduledFromPlanning
public java.lang.Integer scheduledFromPlanning
If the Job Line has been scheduled from the Planning module
-
plannedMix
public java.lang.Integer plannedMix
-
-
Method Detail
-
getJob
public Job getJob()
-
getStatus
public int getStatus()
-
getStatusEnum
public Job.JobStatus getStatusEnum()
-
getBatchesRequired
public int getBatchesRequired()
-
getBatchesInProgress
public int getBatchesInProgress()
-
getBatchesCompleted
public int getBatchesCompleted()
-
getProducts
public java.lang.Double getProducts()
-
getFormula
public Formula getFormula()
-
getStatusReason
public java.lang.String getStatusReason()
-
setJob
public void setJob(Job job)
-
setStatusReason
public void setStatusReason(java.lang.String statusReason)
-
setStatus
public void setStatus(int status)
-
setBatchesRequired
public void setBatchesRequired(int batchesRequired)
-
setBatchesInProgress
public void setBatchesInProgress(int batchesInProgress)
-
setBatchesCompleted
public void setBatchesCompleted(int batchesCompleted)
-
setProducts
public void setProducts(java.lang.Double products)
-
setFormula
public void setFormula(Formula formula)
-
setPreBatchList
public void setPreBatchList(java.util.List<PreBatch> preBatchList)
-
getPreBatchList
public java.util.List<PreBatch> getPreBatchList()
-
getBatchesRemaining
public int getBatchesRemaining()
-
getLineLevel
public int getLineLevel()
-
setLineLevel
public void setLineLevel(int lineLevel)
-
getLocation
public java.lang.String getLocation()
-
setLocation
public void setLocation(java.lang.String code)
-
isAllergenPresent
public java.lang.Boolean isAllergenPresent()
-
getOverridenLocation
public Location getOverridenLocation()
-
setOverridenLocation
public void setOverridenLocation(Location overridenLocation)
-
getFlatAddition
public int getFlatAddition()
-
setFlatAddition
public void setFlatAddition(int flatAddition)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getStatusStr
public java.lang.String getStatusStr()
-
getExecutionTerminal
public Terminal getExecutionTerminal()
-
setExecutionTerminal
public void setExecutionTerminal(Terminal executionTerminal)
-
getProductionDate
public java.util.Date getProductionDate()
-
setProductionDate
public void setProductionDate(java.util.Date productionDate)
-
getBulksComplete
public java.lang.Integer getBulksComplete()
-
setBulksComplete
public void setBulksComplete(java.lang.Integer bulksComplete)
-
isSelected
public boolean isSelected()
-
setSelected
public void setSelected(boolean selected)
-
getBulkBatchesDone
public java.lang.Integer getBulkBatchesDone()
-
setBulkBatchesDone
public void setBulkBatchesDone(java.lang.Integer bulkBatchesDone)
-
getRemainderBatchesDone
public java.lang.Integer getRemainderBatchesDone()
-
setRemainderBatchesDone
public void setRemainderBatchesDone(java.lang.Integer remainderBatchesDone)
-
getOverriddenPalletSeq
public java.lang.Integer getOverriddenPalletSeq()
-
setOverriddenPalletSeq
public void setOverriddenPalletSeq(java.lang.Integer overriddenPalletSeq)
-
getScheduledFromPlanning
public java.lang.Integer getScheduledFromPlanning()
-
setScheduledFromPlanning
public void setScheduledFromPlanning(java.lang.Integer scheduledFromPlanning)
-
getPlannedMix
public java.lang.Integer getPlannedMix()
-
setPlannedMix
public void setPlannedMix(java.lang.Integer plannedMix)
-
-