Beispiel #1
0
        public virtual InOutLineStateCreatedDto ToInOutLineStateCreatedDto(IInOutLineStateCreated e)
        {
            var dto = new InOutLineStateCreatedDto();

            dto.InOutLineEventId       = e.InOutLineEventId;
            dto.CreatedAt              = e.CreatedAt;
            dto.CreatedBy              = e.CreatedBy;
            dto.Version                = e.Version;
            dto.CommandId              = e.CommandId;
            dto.LocatorId              = e.LocatorId;
            dto.ProductId              = e.ProductId;
            dto.AttributeSetInstanceId = e.AttributeSetInstanceId;
            dto.Description            = e.Description;
            dto.QuantityUomId          = e.QuantityUomId;
            dto.MovementQuantity       = e.MovementQuantity;
            dto.PickedQuantity         = e.PickedQuantity;
            dto.IsInvoiced             = e.IsInvoiced;
            dto.Processed              = e.Processed;
            dto.RmaLineNumber          = e.RmaLineNumber;
            dto.ReversalLineNumber     = e.ReversalLineNumber;
            dto.Active          = e.Active;
            dto.DamageStatusIds = e.DamageStatusIds.ToArray();
            var inOutLineImageEvents = new List <InOutLineImageStateCreatedDto>();

            foreach (var ee in e.InOutLineImageEvents)
            {
                InOutLineImageStateCreatedDto eeDto = InOutLineImageStateEventDtoConverter.ToInOutLineImageStateCreatedDto(ee);
                inOutLineImageEvents.Add(eeDto);
            }
            dto.InOutLineImageEvents = inOutLineImageEvents.ToArray();

            return(dto);
        }
Beispiel #2
0
        public virtual InOutLineStateRemovedDto ToInOutLineStateRemovedDto(IInOutLineStateRemoved e)
        {
            var dto = new InOutLineStateRemovedDto();

            dto.InOutLineEventId = e.InOutLineEventId;
            dto.CreatedAt        = e.CreatedAt;
            dto.CreatedBy        = e.CreatedBy;
            dto.Version          = e.Version;
            dto.CommandId        = e.CommandId;
            var inOutLineImageEvents = new List <InOutLineImageStateRemovedDto>();

            foreach (var ee in e.InOutLineImageEvents)
            {
                InOutLineImageStateRemovedDto eeDto = InOutLineImageStateEventDtoConverter.ToInOutLineImageStateRemovedDto(ee);
                inOutLineImageEvents.Add(eeDto);
            }
            dto.InOutLineImageEvents = inOutLineImageEvents.ToArray();


            return(dto);
        }