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 int
batchesCompleted
The batches completed for this job lineint
batchesInProgress
The batches in progress on this job lineint
batchesRequired
The number of batches required for this job line.java.lang.Integer
bulksComplete
Indicates whether bulks, remainder or both have been completed for this job linejava.lang.Double
countPerCarton
Formula
formula
The formula to be executed for this job lineJob
job
The job that this job line belongs tojava.lang.Integer
overriddenPalletSeq
The starting sequence for pallets produced by this batchjava.lang.Integer
plannedMix
java.util.Date
productionDate
The desired production date for this job linejava.lang.Double
products
The number of products scheduled for this job line.java.lang.Integer
scheduledFromPlanning
If the Job Line has been scheduled from the Planning moduleint
status
The status of the job line.java.lang.String
statusReason
-
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 int
getBatchesCompleted()
int
getBatchesInProgress()
int
getBatchesRemaining()
int
getBatchesRequired()
java.lang.Integer
getBulkBatchesDone()
java.lang.Integer
getBulksComplete()
Terminal
getExecutionTerminal()
int
getFlatAddition()
Formula
getFormula()
Job
getJob()
int
getLineLevel()
java.lang.String
getLocation()
java.lang.Integer
getOverriddenPalletSeq()
Location
getOverridenLocation()
java.lang.Integer
getPlannedMix()
java.util.List<PreBatch>
getPreBatchList()
java.util.Date
getProductionDate()
java.lang.Double
getProducts()
java.lang.Integer
getRemainderBatchesDone()
java.lang.Integer
getScheduledFromPlanning()
int
getStatus()
Job.JobStatus
getStatusEnum()
java.lang.String
getStatusReason()
java.lang.String
getStatusStr()
java.lang.Boolean
isAllergenPresent()
boolean
isSelected()
void
setBatchesCompleted(int batchesCompleted)
void
setBatchesInProgress(int batchesInProgress)
void
setBatchesRequired(int batchesRequired)
void
setBulkBatchesDone(java.lang.Integer bulkBatchesDone)
void
setBulksComplete(java.lang.Integer bulksComplete)
void
setExecutionTerminal(Terminal executionTerminal)
void
setFlatAddition(int flatAddition)
void
setFormula(Formula formula)
void
setJob(Job job)
void
setLineLevel(int lineLevel)
void
setLocation(java.lang.String code)
void
setOverriddenPalletSeq(java.lang.Integer overriddenPalletSeq)
void
setOverridenLocation(Location overridenLocation)
void
setPlannedMix(java.lang.Integer plannedMix)
void
setPreBatchList(java.util.List<PreBatch> preBatchList)
void
setProductionDate(java.util.Date productionDate)
void
setProducts(java.lang.Double products)
void
setRemainderBatchesDone(java.lang.Integer remainderBatchesDone)
void
setScheduledFromPlanning(java.lang.Integer scheduledFromPlanning)
void
setSelected(boolean selected)
void
setStatus(int status)
void
setStatusReason(java.lang.String statusReason)
java.lang.String
toString()
-
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:
toString
in 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)
-
-