Package com.sgs.common.database
Class Transfer
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.Transfer
-
public class Transfer extends HibernateObject
This class details a Transfer order between locations or facilities Transfers can be used to schedule stock movements- Author:
- SGSystems
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransfer.TransferStatusThe current status of the transfer through the process
-
Field Summary
Fields Modifier and Type Field Description OrderInformationcarrierThe carrier for the goodsjava.lang.StringcommentAny additional comments for the transfer orderUsercreatedByTheUserwho created this Transferjava.util.DatecreatedDateThe date this transfer order was createdjava.util.DatedeliveryDateintdirectTransferBoolean signal whether the order should directly ship and receive in one action.java.lang.StringexternalIDThe External ID used by third party applicationAddressfromAddressThe Address where the goods will be departingLocationfromLocationThe production location from which the goods will be departingjava.util.DatepostingDateThe date that this order postedjava.lang.Stringreference*Primary Key* This is the unique reference number for the Transferjava.util.DateshipmentDateThe date this order was shippedintstatusThe status of the order.AddresstoAddressThe Address where the goods will be arrivingLocationtoLocationThe production location to which the goods will arriveTrailertrailerThe trailer (to be/which this order was) transferred onjava.util.List<TransferLine>transferLinesThe Transfer lines associated with this transfer-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description Transfer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderInformationgetCarrier()java.lang.StringgetComment()UsergetCreatedBy()java.util.DategetCreatedDate()java.util.DategetDeliveryDate()intgetDirectTransfer()java.lang.StringgetExternalID()AddressgetFromAddress()LocationgetFromLocation()java.util.DategetPostingDate()java.lang.StringgetReference()java.util.DategetShipmentDate()intgetStatus()Transfer.TransferStatusgetStatusEnum()AddressgetToAddress()LocationgetToLocation()TrailergetTrailer()java.util.List<TransferLine>getTransferLines()booleanisSelected()voidsetCarrier(OrderInformation carrier)voidsetComment(java.lang.String comment)voidsetCreatedBy(User createdBy)voidsetCreatedDate(java.util.Date createdDate)voidsetDeliveryDate(java.util.Date deliveryDate)voidsetDirectTransfer(int directTransfer)voidsetExternalID(java.lang.String externalID)voidsetFromAddress(Address fromAddress)voidsetFromLocation(Location fromLocation)voidsetPostingDate(java.util.Date postingDate)voidsetReference(java.lang.String reference)voidsetSelected(boolean selected)voidsetShipmentDate(java.util.Date shipmentDate)voidsetStatus(int status)voidsetStatusEnum(Transfer.TransferStatus status)voidsetToAddress(Address toAddress)voidsetToLocation(Location toLocation)voidsetTrailer(Trailer trailer)voidsetTransferLines(java.util.List<TransferLine> transferLines)-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
reference
public java.lang.String reference
*Primary Key* This is the unique reference number for the Transfer
-
fromAddress
public Address fromAddress
The Address where the goods will be departing
-
toAddress
public Address toAddress
The Address where the goods will be arriving
-
fromLocation
public Location fromLocation
The production location from which the goods will be departing
-
toLocation
public Location toLocation
The production location to which the goods will arrive
-
createdDate
public java.util.Date createdDate
The date this transfer order was created
-
shipmentDate
public java.util.Date shipmentDate
The date this order was shipped
-
postingDate
public java.util.Date postingDate
The date that this order posted
-
status
public int status
The status of the order. SeeTransfer.TransferStatus
-
comment
public java.lang.String comment
Any additional comments for the transfer order
-
carrier
public OrderInformation carrier
The carrier for the goods
-
trailer
public Trailer trailer
The trailer (to be/which this order was) transferred on
-
transferLines
public java.util.List<TransferLine> transferLines
The Transfer lines associated with this transfer
-
directTransfer
public int directTransfer
Boolean signal whether the order should directly ship and receive in one action. Useful if no receipt tablet is present at destination facility
-
externalID
public java.lang.String externalID
The External ID used by third party application
-
deliveryDate
public java.util.Date deliveryDate
-
-
Method Detail
-
getStatusEnum
public Transfer.TransferStatus getStatusEnum()
-
getReference
public java.lang.String getReference()
-
setReference
public void setReference(java.lang.String reference)
-
getFromLocation
public Location getFromLocation()
-
setFromLocation
public void setFromLocation(Location fromLocation)
-
getToLocation
public Location getToLocation()
-
setToLocation
public void setToLocation(Location toLocation)
-
getCreatedDate
public java.util.Date getCreatedDate()
-
setCreatedDate
public void setCreatedDate(java.util.Date createdDate)
-
getShipmentDate
public java.util.Date getShipmentDate()
-
setShipmentDate
public void setShipmentDate(java.util.Date shipmentDate)
-
getPostingDate
public java.util.Date getPostingDate()
-
setPostingDate
public void setPostingDate(java.util.Date postingDate)
-
getStatus
public int getStatus()
-
setStatus
public void setStatus(int status)
-
getComment
public java.lang.String getComment()
-
setComment
public void setComment(java.lang.String comment)
-
getFromAddress
public Address getFromAddress()
-
setFromAddress
public void setFromAddress(Address fromAddress)
-
getToAddress
public Address getToAddress()
-
setToAddress
public void setToAddress(Address toAddress)
-
setStatusEnum
public void setStatusEnum(Transfer.TransferStatus status)
-
getCarrier
public OrderInformation getCarrier()
-
setCarrier
public void setCarrier(OrderInformation carrier)
-
isSelected
public boolean isSelected()
-
setSelected
public void setSelected(boolean selected)
-
getTrailer
public Trailer getTrailer()
-
setTrailer
public void setTrailer(Trailer trailer)
-
getTransferLines
public java.util.List<TransferLine> getTransferLines()
-
setTransferLines
public void setTransferLines(java.util.List<TransferLine> transferLines)
-
getDirectTransfer
public int getDirectTransfer()
-
setDirectTransfer
public void setDirectTransfer(int directTransfer)
-
getExternalID
public java.lang.String getExternalID()
-
setExternalID
public void setExternalID(java.lang.String externalID)
-
getCreatedBy
public User getCreatedBy()
-
setCreatedBy
public void setCreatedBy(User createdBy)
-
getDeliveryDate
public java.util.Date getDeliveryDate()
-
setDeliveryDate
public void setDeliveryDate(java.util.Date deliveryDate)
-
-