Ejemplo n.º 1
0
        public virtual ShipmentReceiptStateMergePatchedDto ToShipmentReceiptStateMergePatchedDto(IShipmentReceiptStateMergePatched e)
        {
            var dto = new ShipmentReceiptStateMergePatchedDto();

            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();
            dto.IsPropertyProductIdRemoved = e.IsPropertyProductIdRemoved;
            dto.IsPropertyAttributeSetInstanceIdRemoved = e.IsPropertyAttributeSetInstanceIdRemoved;
            dto.IsPropertyLocatorIdRemoved            = e.IsPropertyLocatorIdRemoved;
            dto.IsPropertyShipmentItemSeqIdRemoved    = e.IsPropertyShipmentItemSeqIdRemoved;
            dto.IsPropertyShipmentPackageSeqIdRemoved = e.IsPropertyShipmentPackageSeqIdRemoved;
            dto.IsPropertyOrderIdRemoved           = e.IsPropertyOrderIdRemoved;
            dto.IsPropertyOrderItemSeqIdRemoved    = e.IsPropertyOrderItemSeqIdRemoved;
            dto.IsPropertyReturnIdRemoved          = e.IsPropertyReturnIdRemoved;
            dto.IsPropertyReturnItemSeqIdRemoved   = e.IsPropertyReturnItemSeqIdRemoved;
            dto.IsPropertyRejectionReasonIdRemoved = e.IsPropertyRejectionReasonIdRemoved;
            dto.IsPropertyDamageStatusIdsRemoved   = e.IsPropertyDamageStatusIdsRemoved;
            dto.IsPropertyDamageReasonIdRemoved    = e.IsPropertyDamageReasonIdRemoved;
            dto.IsPropertyReceivedByRemoved        = e.IsPropertyReceivedByRemoved;
            dto.IsPropertyDatetimeReceivedRemoved  = e.IsPropertyDatetimeReceivedRemoved;
            dto.IsPropertyItemDescriptionRemoved   = e.IsPropertyItemDescriptionRemoved;
            dto.IsPropertyAcceptedQuantityRemoved  = e.IsPropertyAcceptedQuantityRemoved;
            dto.IsPropertyRejectedQuantityRemoved  = e.IsPropertyRejectedQuantityRemoved;
            dto.IsPropertyDamagedQuantityRemoved   = e.IsPropertyDamagedQuantityRemoved;
            dto.IsPropertyActiveRemoved            = e.IsPropertyActiveRemoved;
            var shipmentReceiptImageEvents = new List <ShipmentReceiptImageStateCreatedOrMergePatchedOrRemovedDto>();

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


            return(dto);
        }
Ejemplo n.º 2
0
        public virtual ShipmentReceiptStateMergePatchedDto NewShipmentReceiptStateMergePatched(string receiptSeqId)
        {
            var e   = new ShipmentReceiptStateMergePatchedDto();
            var eId = NewShipmentReceiptEventId(receiptSeqId);

            e.ShipmentReceiptEventId = eId;
            return(e);
        }
Ejemplo n.º 3
0
        public virtual ShipmentReceiptStateMergePatchedDto ToShipmentReceiptStateMergePatchedDto(IShipmentReceiptStateMergePatched e)
        {
            var dto = new ShipmentReceiptStateMergePatchedDto();

            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;
            dto.IsPropertyProductIdRemoved = e.IsPropertyProductIdRemoved;
            dto.IsPropertyAttributeSetInstanceIdRemoved = e.IsPropertyAttributeSetInstanceIdRemoved;
            dto.IsPropertyLocatorIdRemoved            = e.IsPropertyLocatorIdRemoved;
            dto.IsPropertyShipmentItemSeqIdRemoved    = e.IsPropertyShipmentItemSeqIdRemoved;
            dto.IsPropertyShipmentPackageSeqIdRemoved = e.IsPropertyShipmentPackageSeqIdRemoved;
            dto.IsPropertyOrderIdRemoved           = e.IsPropertyOrderIdRemoved;
            dto.IsPropertyOrderItemSeqIdRemoved    = e.IsPropertyOrderItemSeqIdRemoved;
            dto.IsPropertyReturnIdRemoved          = e.IsPropertyReturnIdRemoved;
            dto.IsPropertyReturnItemSeqIdRemoved   = e.IsPropertyReturnItemSeqIdRemoved;
            dto.IsPropertyRejectionReasonIdRemoved = e.IsPropertyRejectionReasonIdRemoved;
            dto.IsPropertyDamageStatusIdRemoved    = e.IsPropertyDamageStatusIdRemoved;
            dto.IsPropertyDamageReasonIdRemoved    = e.IsPropertyDamageReasonIdRemoved;
            dto.IsPropertyReceivedByRemoved        = e.IsPropertyReceivedByRemoved;
            dto.IsPropertyDatetimeReceivedRemoved  = e.IsPropertyDatetimeReceivedRemoved;
            dto.IsPropertyItemDescriptionRemoved   = e.IsPropertyItemDescriptionRemoved;
            dto.IsPropertyAcceptedQuantityRemoved  = e.IsPropertyAcceptedQuantityRemoved;
            dto.IsPropertyRejectedQuantityRemoved  = e.IsPropertyRejectedQuantityRemoved;
            dto.IsPropertyDamagedQuantityRemoved   = e.IsPropertyDamagedQuantityRemoved;
            dto.IsPropertyActiveRemoved            = e.IsPropertyActiveRemoved;

            return(dto);
        }