public virtual ShipmentItemStateCreatedDto NewShipmentItemStateCreated(string shipmentItemSeqId) { var e = new ShipmentItemStateCreatedDto(); var eId = NewShipmentItemEventId(shipmentItemSeqId); e.ShipmentItemEventId = eId; return(e); }
public virtual ShipmentItemStateCreatedDto ToShipmentItemStateCreatedDto(IShipmentItemStateCreated e) { var dto = new ShipmentItemStateCreatedDto(); dto.ShipmentItemEventId = e.ShipmentItemEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.Version = e.Version; dto.CommandId = e.CommandId; dto.ProductId = e.ProductId; dto.AttributeSetInstanceId = e.AttributeSetInstanceId; dto.Quantity = e.Quantity; dto.ShipmentContentDescription = e.ShipmentContentDescription; dto.Active = e.Active; return(dto); }
public virtual ShipmentStateCreatedDto ToShipmentStateCreatedDto(IShipmentStateCreated e) { var dto = new ShipmentStateCreatedDto(); dto.ShipmentEventId = e.ShipmentEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.CommandId = e.CommandId; dto.ShipmentTypeId = e.ShipmentTypeId; dto.StatusId = e.StatusId; dto.PrimaryOrderId = e.PrimaryOrderId; dto.PrimaryReturnId = e.PrimaryReturnId; dto.PrimaryShipGroupSeqId = e.PrimaryShipGroupSeqId; dto.PicklistBinId = e.PicklistBinId; dto.BolNumber = e.BolNumber; dto.SealNumber = e.SealNumber; dto.VehicleId = e.VehicleId; dto.ExternalOrderNumber = e.ExternalOrderNumber; dto.Carrier = e.Carrier; dto.DateShipped = e.DateShipped; dto.EstimatedReadyDate = e.EstimatedReadyDate; dto.EstimatedShipDate = e.EstimatedShipDate; dto.EstimatedShipWorkEffId = e.EstimatedShipWorkEffId; dto.EstimatedArrivalDate = e.EstimatedArrivalDate; dto.EstimatedArrivalWorkEffId = e.EstimatedArrivalWorkEffId; dto.LatestCancelDate = e.LatestCancelDate; dto.EstimatedShipCost = e.EstimatedShipCost; dto.CurrencyUomId = e.CurrencyUomId; dto.HandlingInstructions = e.HandlingInstructions; dto.OriginFacilityId = e.OriginFacilityId; dto.DestinationFacilityId = e.DestinationFacilityId; dto.OriginContactMechId = e.OriginContactMechId; dto.OriginTelecomNumberId = e.OriginTelecomNumberId; dto.DestinationContactMechId = e.DestinationContactMechId; dto.DestinationTelecomNumberId = e.DestinationTelecomNumberId; dto.PartyIdTo = e.PartyIdTo; dto.PartyIdFrom = e.PartyIdFrom; dto.AdditionalShippingCharge = e.AdditionalShippingCharge; dto.AddtlShippingChargeDesc = e.AddtlShippingChargeDesc; dto.Active = e.Active; var shipmentImageEvents = new List <ShipmentImageStateCreatedDto>(); foreach (var ee in e.ShipmentImageEvents) { ShipmentImageStateCreatedDto eeDto = ShipmentImageStateEventDtoConverter.ToShipmentImageStateCreatedDto(ee); shipmentImageEvents.Add(eeDto); } dto.ShipmentImageEvents = shipmentImageEvents.ToArray(); var shipmentItemEvents = new List <ShipmentItemStateCreatedDto>(); foreach (var ee in e.ShipmentItemEvents) { ShipmentItemStateCreatedDto eeDto = ShipmentItemStateEventDtoConverter.ToShipmentItemStateCreatedDto(ee); shipmentItemEvents.Add(eeDto); } dto.ShipmentItemEvents = shipmentItemEvents.ToArray(); var shipmentReceiptEvents = new List <ShipmentReceiptStateCreatedDto>(); foreach (var ee in e.ShipmentReceiptEvents) { ShipmentReceiptStateCreatedDto eeDto = ShipmentReceiptStateEventDtoConverter.ToShipmentReceiptStateCreatedDto(ee); shipmentReceiptEvents.Add(eeDto); } dto.ShipmentReceiptEvents = shipmentReceiptEvents.ToArray(); var itemIssuanceEvents = new List <ItemIssuanceStateCreatedDto>(); foreach (var ee in e.ItemIssuanceEvents) { ItemIssuanceStateCreatedDto eeDto = ItemIssuanceStateEventDtoConverter.ToItemIssuanceStateCreatedDto(ee); itemIssuanceEvents.Add(eeDto); } dto.ItemIssuanceEvents = itemIssuanceEvents.ToArray(); return(dto); }