Example #1
0
 /// <summary>
 /// Creates new event.
 /// </summary>
 /// <param name="eventType"></param>
 /// <param name="location"></param>
 /// <param name="registrationDate"></param>
 /// <param name="completionDate"></param>
 public HandlingEvent(HandlingEventType eventType, Location.Location location, DateTime registrationDate, DateTime completionDate, HandlingHistory parent)
 {
    _eventType = eventType;
    _parent = parent;
    _completionDate = completionDate;
    _registrationDate = registrationDate;         
    _location = location;         
 }
Example #2
0
 /// <summary>
 /// Creates new event.
 /// </summary>
 /// <param name="eventType"></param>
 /// <param name="location"></param>
 /// <param name="registrationDate"></param>
 /// <param name="completionDate"></param>
 public HandlingEvent(HandlingEventType eventType, Location.Location location, DateTime registrationDate, DateTime completionDate, HandlingHistory parent)
 {
     _eventType        = eventType;
     _parent           = parent;
     _completionDate   = completionDate;
     _registrationDate = registrationDate;
     _location         = location;
 }
 public CargoTrackingViewAdapter(Cargo cargo, HandlingHistory handlingHistory)
 {
    _cargo = cargo;
    if (handlingHistory != null)
    {
       _handlingEvents = handlingHistory.EventsByCompletionTime.ToList();  
    }
    else
    {
       _handlingEvents = new List<Domain.Handling.HandlingEvent>();
    }
 }
 public void Store(HandlingHistory handlingHistory)
 {
    Session.Save(handlingHistory);
 }
 public void Store(HandlingHistory handlingHistory)
 {
    _storage[handlingHistory.TrackingId] = handlingHistory;
 }