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.StringaccountNumberAny related account numbers with this eventjava.lang.DoubleadjustmentQtyQuantity that this transaction adjusted byjava.lang.StringadviceNoteAdvice note fieldjava.lang.IntegerbagIdThe sourceBagIDBatchbatchThe batch that this log pertains tojava.lang.DoublebulkCountThe count of bulk items produced by this transactionjava.lang.StringcommentsComments that may be associated with the eventCommoditycommodityThe commodity affectedjava.lang.DoublecommodityTargetQtyThe target quantity expressed in terms of the commodity uomContainercontainerThe container which is concerned with this transactionjava.lang.IntegercontainerCountThe number of containers for this transactionContainerLinkcontainerLinkThe specific pallet/stock combination used in this transactionjava.lang.DoubleconvertedQuantityThe quantity prior to conversion to base commodity UOMjava.lang.StringcustomLotNumberA custom lot number which may have been generatedCycleCountRuncycleCountRunA reference to a CycleCountRunjava.lang.IntegerdeliveryNumberThe PO delivery numberjava.lang.StringdescriptorA 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.StringdriverIdThe Id/Licence of the diver for the transactionjava.lang.StringdriverNameThe name of the diver for the transactionJobjobLinkThe job that this transaction concernsLocationlocationThe production location that this event occured atLotContainerlotContainerThe LotContainer consumed/produced by this actionjava.lang.StringmethodThe method by which this log was createdjava.util.DateoldDateThe previous date before a date changejava.lang.DoubleoriginalQtyThe quantity prior to the transactionContainerpalletThe pallet which is concerned with this transactionPurchaseOrderpurchaseOrderThe related purchase orderjava.lang.DoublequantityThe quantity of the transactionjava.lang.StringreasonThe reason given for this actionjava.lang.StringreasonCodeTheReasoncode for this transactionjava.lang.StringreferenceNoAn external reference numberjava.lang.IntegersourceStepIDThe sourceFormulaStepIDjava.lang.DoublestepQuantityThe quantity consumed in the steps UoMStockLocationstockThe stock item in questionLocationstockLocationThe stock location that this action was performed atLocationtargetLocationThe destinationLocationfor a movement logjava.lang.DoubletargetQtyThe target quantity for the stepStockLocationtargetStockThe target stock entity of this transactionTerminalterminalThe terminal this action was performed onjava.util.DatetimestampThe time at which this transaction occurredjava.lang.DoubletotalPackWeightThe total pack weight of a finished productTransferLinetransferLineThe transfer line affected by this eventUseruserThe user which performed this actionjava.lang.BooleanwithdrawnFlagA 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 intcompareTo(java.lang.Object o)java.lang.Stringget116FormattedQty()java.lang.StringgetAccountNumber()java.lang.DoublegetAdjustmentQty()java.lang.StringgetAdviceNote()java.lang.IntegergetBagId()BatchgetBatch()java.lang.StringgetBatchInfo()java.lang.DoublegetBulkCount()java.lang.StringgetComment()java.lang.StringgetComments()CommoditygetCommodity()java.lang.DoublegetCommodityTargetQty()java.lang.StringgetCommodityText()BatchConsumptiongetConsumption()ContainergetContainer()java.lang.IntegergetContainerCount()ContainerLinkgetContainerLink()java.lang.DoublegetConvertedQuantity()java.lang.StringgetCustomLotNumber()CycleCountRungetCycleCountRun()java.lang.IntegergetDeliveryNumber()java.lang.StringgetDescriptor()java.lang.StringgetDriverId()java.lang.StringgetDriverName()java.lang.StringgetFirstPartJobNumber()java.lang.DoublegetGrossWeight()java.lang.StringgetJob()JobgetJobLink()LocationgetLocation()LotContainergetLotContainer()java.lang.StringgetMethod()java.util.DategetOldDate()java.lang.DoublegetOldNewQtyDifference()java.lang.DoublegetOriginalQty()ContainergetPallet()PurchaseOrderLinegetPoLine()PurchaseOrdergetPurchaseOrder()java.lang.DoublegetQuantity()java.lang.DoublegetQuantityStr()java.lang.StringgetReason()java.lang.StringgetReasonCode()java.lang.DoublegetReceiptCost()java.lang.DoublegetReceiptGrossWeight()java.lang.StringgetReferenceNo()java.lang.IntegergetSourceStepID()java.lang.DoublegetStepQuantity()StockLocationgetStock()LocationgetStockLocation()LocationgetTargetLocation()java.lang.DoublegetTargetQty()StockLocationgetTargetStock()TerminalgetTerminal()java.util.DategetTimestamp()java.lang.StringgetTimestampSimpleTime()java.lang.DoublegetTotalContainerTare()java.lang.DoublegetTotalPackWeight()java.lang.DoublegetTotalTare()java.lang.DoublegetTotalTargetQty()java.lang.StringgetTotalTargetQuantityStr()TransferLinegetTransferLine()UsergetUser()java.io.FileInputStreamgetWithdrawnFlag()voidsetAccountNumber(java.lang.String accountNumber)voidsetAdjustmentQty(java.lang.Double adjustmentQty)voidsetAdviceNote(java.lang.String adviceNote)voidsetBagId(java.lang.Integer bagId)voidsetBatch(Batch batch)voidsetBulkCount(java.lang.Double bulkCount)voidsetComments(java.lang.String comments)voidsetCommodity(Commodity commodity)voidsetCommodityTargetQty(java.lang.Double commodityTargetQty)voidsetConsumption(BatchConsumption consumption)voidsetContainer(Container container)voidsetContainerCount(java.lang.Integer containerCount)voidsetContainerLink(ContainerLink containerLink)voidsetConvertedQuantity(java.lang.Double convertedQuantity)voidsetCustomLotNumber(java.lang.String customLotNumber)voidsetCycleCountRun(CycleCountRun cycleCountRun)voidsetDeliveryNumber(java.lang.Integer deliveryNumber)voidsetDescriptor(java.lang.String descriptor)voidsetDriverId(java.lang.String driverId)voidsetDriverName(java.lang.String driverName)voidsetJobLink(Job jobLink)voidsetLocation(Location location)voidsetLotContainer(LotContainer lotContainer)voidsetMethod(java.lang.String method)voidsetOldDate(java.util.Date oldDate)voidsetOriginalQty(java.lang.Double originalQty)voidsetPallet(Container pallet)voidsetPoLine(PurchaseOrderLine poLine)voidsetPurchaseOrder(PurchaseOrder purchaseOrder)voidsetQuantity(java.lang.Double quantity)voidsetReason(java.lang.String reason)voidsetReasonCode(java.lang.String reasonCode)voidsetReferenceNo(java.lang.String referenceNo)voidsetSourceStepID(java.lang.Integer sourceStepID)voidsetStepQuantity(java.lang.Double stepQuantity)voidsetStock(StockLocation stock)voidsetStockLocation(Location stockLocation)voidsetTargetLocation(Location targetLocation)voidsetTargetQty(java.lang.Double targetQty)voidsetTargetStock(StockLocation targetStock)voidsetTerminal(Terminal terminal)voidsetTimestamp(java.util.Date timestamp)voidsetTotalPackWeight(java.lang.Double totalPackWeight)voidsetTransferLine(TransferLine transferLine)voidsetUser(User user)voidsetWithdrawnFlag(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 sourceFormulaStepID
-
bagId
public java.lang.Integer bagId
The sourceBagID
-
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
TheReasoncode 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:
compareToin 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)
-
-