Exemple #1
0
        protected ShipmentItemMvoStateMergePatched NewShipmentItemMvoStateMergePatched(long version, string commandId, string requesterId)
        {
            var stateEventId = new ShipmentItemMvoEventId(_state.ShipmentItemId, version);
            var e            = NewShipmentItemMvoStateMergePatched(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            return(e);
        }
Exemple #2
0
        protected virtual IShipmentItemMvoStateCreated Map(ICreateShipmentItemMvo c)
        {
            var stateEventId = new ShipmentItemMvoEventId(c.ShipmentItemId, c.ShipmentVersion);
            IShipmentItemMvoStateCreated e = NewShipmentItemMvoStateCreated(stateEventId);

            e.ProductId = c.ProductId;
            e.AttributeSetInstanceId = c.AttributeSetInstanceId;
            e.Quantity = c.Quantity;
            e.ShipmentContentDescription = c.ShipmentContentDescription;
            e.Version = c.Version;
            e.Active  = c.Active;
            e.ShipmentShipmentTypeId             = c.ShipmentShipmentTypeId;
            e.ShipmentStatusId                   = c.ShipmentStatusId;
            e.ShipmentPrimaryOrderId             = c.ShipmentPrimaryOrderId;
            e.ShipmentPrimaryReturnId            = c.ShipmentPrimaryReturnId;
            e.ShipmentPrimaryShipGroupSeqId      = c.ShipmentPrimaryShipGroupSeqId;
            e.ShipmentPicklistBinId              = c.ShipmentPicklistBinId;
            e.ShipmentEstimatedReadyDate         = c.ShipmentEstimatedReadyDate;
            e.ShipmentEstimatedShipDate          = c.ShipmentEstimatedShipDate;
            e.ShipmentEstimatedShipWorkEffId     = c.ShipmentEstimatedShipWorkEffId;
            e.ShipmentEstimatedArrivalDate       = c.ShipmentEstimatedArrivalDate;
            e.ShipmentEstimatedArrivalWorkEffId  = c.ShipmentEstimatedArrivalWorkEffId;
            e.ShipmentLatestCancelDate           = c.ShipmentLatestCancelDate;
            e.ShipmentEstimatedShipCost          = c.ShipmentEstimatedShipCost;
            e.ShipmentCurrencyUomId              = c.ShipmentCurrencyUomId;
            e.ShipmentHandlingInstructions       = c.ShipmentHandlingInstructions;
            e.ShipmentOriginFacilityId           = c.ShipmentOriginFacilityId;
            e.ShipmentDestinationFacilityId      = c.ShipmentDestinationFacilityId;
            e.ShipmentOriginContactMechId        = c.ShipmentOriginContactMechId;
            e.ShipmentOriginTelecomNumberId      = c.ShipmentOriginTelecomNumberId;
            e.ShipmentDestinationContactMechId   = c.ShipmentDestinationContactMechId;
            e.ShipmentDestinationTelecomNumberId = c.ShipmentDestinationTelecomNumberId;
            e.ShipmentPartyIdTo                  = c.ShipmentPartyIdTo;
            e.ShipmentPartyIdFrom                = c.ShipmentPartyIdFrom;
            e.ShipmentAdditionalShippingCharge   = c.ShipmentAdditionalShippingCharge;
            e.ShipmentAddtlShippingChargeDesc    = c.ShipmentAddtlShippingChargeDesc;
            e.ShipmentCreatedBy                  = c.ShipmentCreatedBy;
            e.ShipmentCreatedAt                  = c.ShipmentCreatedAt;
            e.ShipmentUpdatedBy                  = c.ShipmentUpdatedBy;
            e.ShipmentUpdatedAt                  = c.ShipmentUpdatedAt;
            e.ShipmentActive = c.ShipmentActive;
            e.CommandId      = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            var shipmentVersion = c.ShipmentVersion;


            return(e);
        }
Exemple #3
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            ShipmentItemMvoEventId other = obj as ShipmentItemMvoEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.ShipmentItemId, other.ShipmentItemId) &&
                   Object.Equals(this.ShipmentVersion, other.ShipmentVersion)
                   );
        }
Exemple #4
0
 private ShipmentItemMvoStateMergePatched NewShipmentItemMvoStateMergePatched(ShipmentItemMvoEventId stateEventId)
 {
     return(new ShipmentItemMvoStateMergePatched(stateEventId));
 }
Exemple #5
0
////////////////////////

        private ShipmentItemMvoStateCreated NewShipmentItemMvoStateCreated(ShipmentItemMvoEventId stateEventId)
        {
            return(new ShipmentItemMvoStateCreated(stateEventId));
        }
Exemple #6
0
 protected ShipmentItemMvoStateEventDtoBase(ShipmentItemMvoEventId stateEventId)
 {
     this.ShipmentItemMvoEventId = stateEventId;
 }
Exemple #7
0
 public ShipmentItemMvoStateMergePatched(ShipmentItemMvoEventId stateEventId) : base(stateEventId)
 {
 }
Exemple #8
0
 public ShipmentItemMvoStateCreated(ShipmentItemMvoEventId stateEventId) : base(stateEventId)
 {
 }
Exemple #9
0
 protected ShipmentItemMvoStateEventBase(ShipmentItemMvoEventId stateEventId) : base(stateEventId)
 {
 }