Exemplo n.º 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, DomainModel.Potential.Location.Location location, DateTime registrationDate, DateTime completionDate, HandlingHistory parent)
 {
    _eventType = eventType;
    _parent = parent;
    _completionDate = completionDate;
    _registrationDate = registrationDate;         
    _location = location;         
 }
Exemplo n.º 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, DomainModel.Potential.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<HandlingEvent>();
    }
 }
 public void Store(HandlingHistory handlingHistory)
 {
    Session.Save(handlingHistory);
 }