Package com.sgs.common.database
Class SystemLog
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.SystemLog
-
- All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>
public class SystemLog extends HibernateObject implements java.lang.Comparable<java.lang.Object>
This class is the main location for logging transactions in the system Most actions performed in the system outside of Sales and QA will be logged here- Author:
- SGSystems
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
accountNumber
Any related account numbers with this eventjava.lang.Double
adjustmentQty
Quantity that this transaction adjusted byjava.lang.String
adviceNote
Advice note fieldjava.lang.Integer
bagId
The sourceBag
IDBatch
batch
The batch that this log pertains tojava.lang.Double
bulkCount
The count of bulk items produced by this transactionjava.lang.String
comments
Comments that may be associated with the eventCommodity
commodity
The commodity affectedjava.lang.Double
commodityTargetQty
The target quantity expressed in terms of the commodity uomContainer
container
The container which is concerned with this transactionjava.lang.Integer
containerCount
The number of containers for this transactionContainerLink
containerLink
The specific pallet/stock combination used in this transactionjava.lang.Double
convertedQuantity
The quantity prior to conversion to base commodity UOMjava.lang.String
customLotNumber
A custom lot number which may have been generatedCycleCountRun
cycleCountRun
A reference to a CycleCountRunjava.lang.Integer
deliveryNumber
The PO delivery numberjava.lang.String
descriptor
A descriptive field which gives context to the log
ADJUSTMENT - this stock lot has been adjusted to this value
AUTO-ZERO - the stock has been reduced by this value
CONSUMED - this quantity has been consumed from this stock lot in to a mix
MOVED IN - this stock lot and quantity has been moved in to this location (do not think this is of interest to you)
MOVED OUT - this stock lot and quantity has been moved out to this location (do not think this is of interest to you)
PRODUCED - this commodity with this batch / lot number has been produced on the system
RECEIVED-A - this stock lot has had a further receipt addition to the original receipt of this qty (addition)
STOCK IN - this stock lot and quantity has been receipted in to the system
WASTE - this stock lot has had this quantity withdrawn from the system as waste
WITHDRAW - this stock lot has had this quantity withdrawn from the system
ALLERGENS ACKNOWLEDGED - allergens have been seen and accepted
HAZARDS ACKNOWELDGED - hazards have been seen and acceptedjava.lang.String
driverId
The Id/Licence of the diver for the transactionjava.lang.String
driverName
The name of the diver for the transactionJob
jobLink
The job that this transaction concernsLocation
location
The production location that this event occured atLotContainer
lotContainer
The LotContainer consumed/produced by this actionjava.lang.String
method
The method by which this log was createdjava.util.Date
oldDate
The previous date before a date changejava.lang.Double
originalQty
The quantity prior to the transactionContainer
pallet
The pallet which is concerned with this transactionPurchaseOrder
purchaseOrder
The related purchase orderjava.lang.Double
quantity
The quantity of the transactionjava.lang.String
reason
The reason given for this actionjava.lang.String
reasonCode
TheReason
code for this transactionjava.lang.String
referenceNo
An external reference numberjava.lang.Integer
sourceStepID
The sourceFormulaStep
IDjava.lang.Double
stepQuantity
The quantity consumed in the steps UoMStockLocation
stock
The stock item in questionLocation
stockLocation
The stock location that this action was performed atLocation
targetLocation
The destinationLocation
for a movement logjava.lang.Double
targetQty
The target quantity for the stepStockLocation
targetStock
The target stock entity of this transactionTerminal
terminal
The terminal this action was performed onjava.util.Date
timestamp
The time at which this transaction occurredjava.lang.Double
totalPackWeight
The total pack weight of a finished productTransferLine
transferLine
The transfer line affected by this eventUser
user
The user which performed this actionjava.lang.Boolean
withdrawnFlag
A boolean value indicating that the stock has been withdrawn-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description SystemLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object o)
java.lang.String
get116FormattedQty()
java.lang.String
getAccountNumber()
java.lang.Double
getAdjustmentQty()
java.lang.String
getAdviceNote()
java.lang.Integer
getBagId()
Batch
getBatch()
java.lang.String
getBatchInfo()
java.lang.Double
getBulkCount()
java.lang.String
getComment()
java.lang.String
getComments()
Commodity
getCommodity()
java.lang.Double
getCommodityTargetQty()
java.lang.String
getCommodityText()
BatchConsumption
getConsumption()
Container
getContainer()
java.lang.Integer
getContainerCount()
ContainerLink
getContainerLink()
java.lang.Double
getConvertedQuantity()
java.lang.String
getCustomLotNumber()
CycleCountRun
getCycleCountRun()
java.lang.Integer
getDeliveryNumber()
java.lang.String
getDescriptor()
java.lang.String
getDriverId()
java.lang.String
getDriverName()
java.lang.String
getFirstPartJobNumber()
java.lang.Double
getGrossWeight()
java.lang.String
getJob()
Job
getJobLink()
Location
getLocation()
LotContainer
getLotContainer()
java.lang.String
getMethod()
java.util.Date
getOldDate()
java.lang.Double
getOldNewQtyDifference()
java.lang.Double
getOriginalQty()
Container
getPallet()
PurchaseOrderLine
getPoLine()
PurchaseOrder
getPurchaseOrder()
java.lang.Double
getQuantity()
java.lang.Double
getQuantityStr()
java.lang.String
getReason()
java.lang.String
getReasonCode()
java.lang.Double
getReceiptCost()
java.lang.Double
getReceiptGrossWeight()
java.lang.String
getReferenceNo()
java.lang.Integer
getSourceStepID()
java.lang.Double
getStepQuantity()
StockLocation
getStock()
Location
getStockLocation()
Location
getTargetLocation()
java.lang.Double
getTargetQty()
StockLocation
getTargetStock()
Terminal
getTerminal()
java.util.Date
getTimestamp()
java.lang.String
getTimestampSimpleTime()
java.lang.Double
getTotalContainerTare()
java.lang.Double
getTotalPackWeight()
java.lang.Double
getTotalTare()
java.lang.Double
getTotalTargetQty()
java.lang.String
getTotalTargetQuantityStr()
TransferLine
getTransferLine()
User
getUser()
java.io.FileInputStream
getWithdrawnFlag()
void
setAccountNumber(java.lang.String accountNumber)
void
setAdjustmentQty(java.lang.Double adjustmentQty)
void
setAdviceNote(java.lang.String adviceNote)
void
setBagId(java.lang.Integer bagId)
void
setBatch(Batch batch)
void
setBulkCount(java.lang.Double bulkCount)
void
setComments(java.lang.String comments)
void
setCommodity(Commodity commodity)
void
setCommodityTargetQty(java.lang.Double commodityTargetQty)
void
setConsumption(BatchConsumption consumption)
void
setContainer(Container container)
void
setContainerCount(java.lang.Integer containerCount)
void
setContainerLink(ContainerLink containerLink)
void
setConvertedQuantity(java.lang.Double convertedQuantity)
void
setCustomLotNumber(java.lang.String customLotNumber)
void
setCycleCountRun(CycleCountRun cycleCountRun)
void
setDeliveryNumber(java.lang.Integer deliveryNumber)
void
setDescriptor(java.lang.String descriptor)
void
setDriverId(java.lang.String driverId)
void
setDriverName(java.lang.String driverName)
void
setJobLink(Job jobLink)
void
setLocation(Location location)
void
setLotContainer(LotContainer lotContainer)
void
setMethod(java.lang.String method)
void
setOldDate(java.util.Date oldDate)
void
setOriginalQty(java.lang.Double originalQty)
void
setPallet(Container pallet)
void
setPoLine(PurchaseOrderLine poLine)
void
setPurchaseOrder(PurchaseOrder purchaseOrder)
void
setQuantity(java.lang.Double quantity)
void
setReason(java.lang.String reason)
void
setReasonCode(java.lang.String reasonCode)
void
setReferenceNo(java.lang.String referenceNo)
void
setSourceStepID(java.lang.Integer sourceStepID)
void
setStepQuantity(java.lang.Double stepQuantity)
void
setStock(StockLocation stock)
void
setStockLocation(Location stockLocation)
void
setTargetLocation(Location targetLocation)
void
setTargetQty(java.lang.Double targetQty)
void
setTargetStock(StockLocation targetStock)
void
setTerminal(Terminal terminal)
void
setTimestamp(java.util.Date timestamp)
void
setTotalPackWeight(java.lang.Double totalPackWeight)
void
setTransferLine(TransferLine transferLine)
void
setUser(User user)
void
setWithdrawnFlag(java.lang.Boolean withdrawnFlag)
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
stock
public StockLocation stock
The stock item in question
-
timestamp
public java.util.Date timestamp
The time at which this transaction occurred
-
descriptor
public java.lang.String descriptor
A descriptive field which gives context to the log
ADJUSTMENT - this stock lot has been adjusted to this value
AUTO-ZERO - the stock has been reduced by this value
CONSUMED - this quantity has been consumed from this stock lot in to a mix
MOVED IN - this stock lot and quantity has been moved in to this location (do not think this is of interest to you)
MOVED OUT - this stock lot and quantity has been moved out to this location (do not think this is of interest to you)
PRODUCED - this commodity with this batch / lot number has been produced on the system
RECEIVED-A - this stock lot has had a further receipt addition to the original receipt of this qty (addition)
STOCK IN - this stock lot and quantity has been receipted in to the system
WASTE - this stock lot has had this quantity withdrawn from the system as waste
WITHDRAW - this stock lot has had this quantity withdrawn from the system
ALLERGENS ACKNOWLEDGED - allergens have been seen and accepted
HAZARDS ACKNOWELDGED - hazards have been seen and accepted
-
batch
public Batch batch
The batch that this log pertains to
-
user
public User user
The user which performed this action
-
quantity
public java.lang.Double quantity
The quantity of the transaction
-
terminal
public Terminal terminal
The terminal this action was performed on
-
location
public Location location
The production location that this event occured at
-
reason
public java.lang.String reason
The reason given for this action
-
accountNumber
public java.lang.String accountNumber
Any related account numbers with this event
-
lotContainer
public LotContainer lotContainer
The LotContainer consumed/produced by this action
-
convertedQuantity
public java.lang.Double convertedQuantity
The quantity prior to conversion to base commodity UOM
-
pallet
public Container pallet
The pallet which is concerned with this transaction
-
container
public Container container
The container which is concerned with this transaction
-
containerCount
public java.lang.Integer containerCount
The number of containers for this transaction
-
withdrawnFlag
public java.lang.Boolean withdrawnFlag
A boolean value indicating that the stock has been withdrawn
-
originalQty
public java.lang.Double originalQty
The quantity prior to the transaction
-
bulkCount
public java.lang.Double bulkCount
The count of bulk items produced by this transaction
-
totalPackWeight
public java.lang.Double totalPackWeight
The total pack weight of a finished product
-
stockLocation
public Location stockLocation
The stock location that this action was performed at
-
sourceStepID
public java.lang.Integer sourceStepID
The sourceFormulaStep
ID
-
bagId
public java.lang.Integer bagId
The sourceBag
ID
-
jobLink
public Job jobLink
The job that this transaction concerns
-
targetStock
public StockLocation targetStock
The target stock entity of this transaction
-
cycleCountRun
public CycleCountRun cycleCountRun
A reference to a CycleCountRun
-
adjustmentQty
public java.lang.Double adjustmentQty
Quantity that this transaction adjusted by
-
transferLine
public TransferLine transferLine
The transfer line affected by this event
-
targetQty
public java.lang.Double targetQty
The target quantity for the step
-
oldDate
public java.util.Date oldDate
The previous date before a date change
-
commodity
public Commodity commodity
The commodity affected
-
containerLink
public ContainerLink containerLink
The specific pallet/stock combination used in this transaction
-
comments
public java.lang.String comments
Comments that may be associated with the event
-
customLotNumber
public java.lang.String customLotNumber
A custom lot number which may have been generated
-
referenceNo
public java.lang.String referenceNo
An external reference number
-
adviceNote
public java.lang.String adviceNote
Advice note field
-
purchaseOrder
public PurchaseOrder purchaseOrder
The related purchase order
-
driverName
public java.lang.String driverName
The name of the diver for the transaction
-
driverId
public java.lang.String driverId
The Id/Licence of the diver for the transaction
-
reasonCode
public java.lang.String reasonCode
TheReason
code for this transaction
-
stepQuantity
public java.lang.Double stepQuantity
The quantity consumed in the steps UoM
-
deliveryNumber
public java.lang.Integer deliveryNumber
The PO delivery number
-
method
public java.lang.String method
The method by which this log was created
-
commodityTargetQty
public java.lang.Double commodityTargetQty
The target quantity expressed in terms of the commodity uom
-
-
Method Detail
-
getTimestamp
public java.util.Date getTimestamp()
-
setTimestamp
public void setTimestamp(java.util.Date timestamp)
-
getDescriptor
public java.lang.String getDescriptor()
-
setDescriptor
public void setDescriptor(java.lang.String descriptor)
-
getBatch
public Batch getBatch()
-
setBatch
public void setBatch(Batch batch)
-
getStock
public StockLocation getStock()
-
setStock
public void setStock(StockLocation stock)
-
getUser
public User getUser()
-
setUser
public void setUser(User user)
-
getQuantity
public java.lang.Double getQuantity()
-
setQuantity
public void setQuantity(java.lang.Double quantity)
-
getConsumption
public BatchConsumption getConsumption()
-
setConsumption
public void setConsumption(BatchConsumption consumption)
-
getCommodityText
public java.lang.String getCommodityText()
-
getTerminal
public Terminal getTerminal()
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
setTerminal
public void setTerminal(Terminal terminal)
-
getPoLine
public PurchaseOrderLine getPoLine()
-
setPoLine
public void setPoLine(PurchaseOrderLine poLine)
-
getReason
public java.lang.String getReason()
-
setReason
public void setReason(java.lang.String reason)
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<java.lang.Object>
-
getTotalTargetQty
public java.lang.Double getTotalTargetQty()
-
getAccountNumber
public java.lang.String getAccountNumber()
-
setAccountNumber
public void setAccountNumber(java.lang.String accountNumber)
-
getLotContainer
public LotContainer getLotContainer()
-
setLotContainer
public void setLotContainer(LotContainer lotContainer)
-
getBatchInfo
public java.lang.String getBatchInfo()
-
getComment
public java.lang.String getComment()
-
getJob
public java.lang.String getJob()
-
getQuantityStr
public java.lang.Double getQuantityStr()
-
getTotalTargetQuantityStr
public java.lang.String getTotalTargetQuantityStr()
-
getGrossWeight
public java.lang.Double getGrossWeight()
-
getReceiptGrossWeight
public java.lang.Double getReceiptGrossWeight()
-
getTotalContainerTare
public java.lang.Double getTotalContainerTare()
-
getConvertedQuantity
public java.lang.Double getConvertedQuantity()
-
setConvertedQuantity
public void setConvertedQuantity(java.lang.Double convertedQuantity)
-
getPallet
public Container getPallet()
-
getContainer
public Container getContainer()
-
getContainerCount
public java.lang.Integer getContainerCount()
-
setPallet
public void setPallet(Container pallet)
-
setContainer
public void setContainer(Container container)
-
setContainerCount
public void setContainerCount(java.lang.Integer containerCount)
-
getTotalTare
public java.lang.Double getTotalTare()
-
getReceiptCost
public java.lang.Double getReceiptCost()
-
getWithdrawnFlag
public java.io.FileInputStream getWithdrawnFlag()
-
setWithdrawnFlag
public void setWithdrawnFlag(java.lang.Boolean withdrawnFlag)
-
getOriginalQty
public java.lang.Double getOriginalQty()
-
setOriginalQty
public void setOriginalQty(java.lang.Double originalQty)
-
getOldNewQtyDifference
public java.lang.Double getOldNewQtyDifference()
-
getBulkCount
public java.lang.Double getBulkCount()
-
setBulkCount
public void setBulkCount(java.lang.Double bulkCount)
-
getTotalPackWeight
public java.lang.Double getTotalPackWeight()
-
setTotalPackWeight
public void setTotalPackWeight(java.lang.Double totalPackWeight)
-
getStockLocation
public Location getStockLocation()
-
setStockLocation
public void setStockLocation(Location stockLocation)
-
getSourceStepID
public java.lang.Integer getSourceStepID()
-
setSourceStepID
public void setSourceStepID(java.lang.Integer sourceStepID)
-
getBagId
public java.lang.Integer getBagId()
-
setBagId
public void setBagId(java.lang.Integer bagId)
-
getJobLink
public Job getJobLink()
-
setJobLink
public void setJobLink(Job jobLink)
-
getTargetStock
public StockLocation getTargetStock()
-
setTargetStock
public void setTargetStock(StockLocation targetStock)
-
getCycleCountRun
public CycleCountRun getCycleCountRun()
-
setCycleCountRun
public void setCycleCountRun(CycleCountRun cycleCountRun)
-
getAdjustmentQty
public java.lang.Double getAdjustmentQty()
-
setAdjustmentQty
public void setAdjustmentQty(java.lang.Double adjustmentQty)
-
getTransferLine
public TransferLine getTransferLine()
-
setTransferLine
public void setTransferLine(TransferLine transferLine)
-
getTargetQty
public java.lang.Double getTargetQty()
-
setTargetQty
public void setTargetQty(java.lang.Double targetQty)
-
getOldDate
public java.util.Date getOldDate()
-
setOldDate
public void setOldDate(java.util.Date oldDate)
-
getCommodity
public Commodity getCommodity()
-
setCommodity
public void setCommodity(Commodity commodity)
-
getContainerLink
public ContainerLink getContainerLink()
-
setContainerLink
public void setContainerLink(ContainerLink containerLink)
-
getComments
public java.lang.String getComments()
-
setComments
public void setComments(java.lang.String comments)
-
getCustomLotNumber
public java.lang.String getCustomLotNumber()
-
setCustomLotNumber
public void setCustomLotNumber(java.lang.String customLotNumber)
-
getReferenceNo
public java.lang.String getReferenceNo()
-
setReferenceNo
public void setReferenceNo(java.lang.String referenceNo)
-
getAdviceNote
public java.lang.String getAdviceNote()
-
setAdviceNote
public void setAdviceNote(java.lang.String adviceNote)
-
getPurchaseOrder
public PurchaseOrder getPurchaseOrder()
-
setPurchaseOrder
public void setPurchaseOrder(PurchaseOrder purchaseOrder)
-
getDriverName
public java.lang.String getDriverName()
-
setDriverName
public void setDriverName(java.lang.String driverName)
-
getDriverId
public java.lang.String getDriverId()
-
setDriverId
public void setDriverId(java.lang.String driverId)
-
getReasonCode
public java.lang.String getReasonCode()
-
setReasonCode
public void setReasonCode(java.lang.String reasonCode)
-
getStepQuantity
public java.lang.Double getStepQuantity()
-
setStepQuantity
public void setStepQuantity(java.lang.Double stepQuantity)
-
getTargetLocation
public Location getTargetLocation()
-
setTargetLocation
public void setTargetLocation(Location targetLocation)
-
getDeliveryNumber
public java.lang.Integer getDeliveryNumber()
-
setDeliveryNumber
public void setDeliveryNumber(java.lang.Integer deliveryNumber)
-
getTimestampSimpleTime
public java.lang.String getTimestampSimpleTime()
-
getFirstPartJobNumber
public java.lang.String getFirstPartJobNumber()
-
get116FormattedQty
public java.lang.String get116FormattedQty()
-
getMethod
public java.lang.String getMethod()
-
setMethod
public void setMethod(java.lang.String method)
-
getCommodityTargetQty
public java.lang.Double getCommodityTargetQty()
-
setCommodityTargetQty
public void setCommodityTargetQty(java.lang.Double commodityTargetQty)
-
-