public virtual void UpdateHistory(HandlingActivity nextExpectedActivity, HandlingActivity lastKnownActivity, RoutingStatus routingStatus, TransportStatus transportStatus, DateTime? estimatedTimeOfArrival, bool isUnloadedAtDestination, bool isMisdirected, DateTime calculatedAt) { Delivery delivery = new Delivery(this, nextExpectedActivity, lastKnownActivity, routingStatus, transportStatus, estimatedTimeOfArrival, isUnloadedAtDestination, isMisdirected, calculatedAt); _history.Add(delivery); CurrentInformation = delivery; }
private void detach_Deliveries(Delivery entity) { this.SendPropertyChanging(); entity.Cargo = null; }
public HandlingEventViewAdapter(Delivery handlingEvent) { _handlingEvent = handlingEvent; }
private void attach_Deliveries(Delivery entity) { this.SendPropertyChanging(); entity.Cargo = this; }
partial void DeleteDelivery(Delivery instance);
partial void UpdateDelivery(Delivery instance);
partial void InsertDelivery(Delivery instance);
public virtual void UpdateHistory(HandlingEventType? nextExpectedEvent, string nextExpectedLocation, HandlingEventType? lastKnownEvent, string lastKnownLocation, RoutingStatus routingStatus, TransportStatus transportStatus, DateTime? estimatedTimeOfArrival, bool isUnloadedAtDestination, bool isMisdirected, DateTime calculatedAt) { Delivery delivery = new Delivery(this, nextExpectedEvent, nextExpectedLocation, lastKnownEvent, lastKnownLocation, routingStatus, transportStatus, estimatedTimeOfArrival, isUnloadedAtDestination, isMisdirected, calculatedAt); DeliveryHistory.Add(delivery); CurrentInformation = delivery; }