示例#1
0
        public virtual ShipmentReceiptStateCreatedDto ToShipmentReceiptStateCreatedDto(IShipmentReceiptStateCreated e)
        {
            var dto = new ShipmentReceiptStateCreatedDto();

            dto.ShipmentReceiptEventId = e.ShipmentReceiptEventId;
            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.LocatorId            = e.LocatorId;
            dto.ShipmentItemSeqId    = e.ShipmentItemSeqId;
            dto.ShipmentPackageSeqId = e.ShipmentPackageSeqId;
            dto.OrderId           = e.OrderId;
            dto.OrderItemSeqId    = e.OrderItemSeqId;
            dto.ReturnId          = e.ReturnId;
            dto.ReturnItemSeqId   = e.ReturnItemSeqId;
            dto.RejectionReasonId = e.RejectionReasonId;
            dto.DamageStatusId    = e.DamageStatusId;
            dto.DamageReasonId    = e.DamageReasonId;
            dto.ReceivedBy        = e.ReceivedBy;
            dto.DatetimeReceived  = e.DatetimeReceived;
            dto.ItemDescription   = e.ItemDescription;
            dto.AcceptedQuantity  = e.AcceptedQuantity;
            dto.RejectedQuantity  = e.RejectedQuantity;
            dto.DamagedQuantity   = e.DamagedQuantity;
            dto.Active            = e.Active;
            return(dto);
        }
示例#2
0
        public virtual ShipmentReceiptStateCreatedDto NewShipmentReceiptStateCreated(string receiptSeqId)
        {
            var e   = new ShipmentReceiptStateCreatedDto();
            var eId = NewShipmentReceiptEventId(receiptSeqId);

            e.ShipmentReceiptEventId = eId;
            return(e);
        }
示例#3
0
        public virtual ShipmentReceiptStateCreatedDto ToShipmentReceiptStateCreatedDto(IShipmentReceiptStateCreated e)
        {
            var dto = new ShipmentReceiptStateCreatedDto();

            dto.ShipmentReceiptEventId = e.ShipmentReceiptEventId;
            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.LocatorId            = e.LocatorId;
            dto.ShipmentItemSeqId    = e.ShipmentItemSeqId;
            dto.ShipmentPackageSeqId = e.ShipmentPackageSeqId;
            dto.OrderId           = e.OrderId;
            dto.OrderItemSeqId    = e.OrderItemSeqId;
            dto.ReturnId          = e.ReturnId;
            dto.ReturnItemSeqId   = e.ReturnItemSeqId;
            dto.RejectionReasonId = e.RejectionReasonId;
            dto.DamageReasonId    = e.DamageReasonId;
            dto.ReceivedBy        = e.ReceivedBy;
            dto.DatetimeReceived  = e.DatetimeReceived;
            dto.ItemDescription   = e.ItemDescription;
            dto.AcceptedQuantity  = e.AcceptedQuantity;
            dto.RejectedQuantity  = e.RejectedQuantity;
            dto.DamagedQuantity   = e.DamagedQuantity;
            dto.Active            = e.Active;
            dto.DamageStatusIds   = e.DamageStatusIds.ToArray();
            var shipmentReceiptImageEvents = new List <ShipmentReceiptImageStateCreatedDto>();

            foreach (var ee in e.ShipmentReceiptImageEvents)
            {
                ShipmentReceiptImageStateCreatedDto eeDto = ShipmentReceiptImageStateEventDtoConverter.ToShipmentReceiptImageStateCreatedDto(ee);
                shipmentReceiptImageEvents.Add(eeDto);
            }
            dto.ShipmentReceiptImageEvents = shipmentReceiptImageEvents.ToArray();

            return(dto);
        }
示例#4
0
        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);
        }