protected ShipmentReceiptMvoStateMergePatched NewShipmentReceiptMvoStateMergePatched(long version, string commandId, string requesterId)
        {
            var stateEventId = new ShipmentReceiptMvoEventId(_state.ShipmentReceiptId, version);
            var e = NewShipmentReceiptMvoStateMergePatched(stateEventId);

            e.CommandId = commandId;

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

            return e;
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            ShipmentReceiptMvoEventId other = obj as ShipmentReceiptMvoEventId;

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

            return(true &&
                   Object.Equals(this.ShipmentReceiptId, other.ShipmentReceiptId) &&
                   Object.Equals(this.ShipmentVersion, other.ShipmentVersion)
                   );
        }
 protected ShipmentReceiptMvoStateEventDtoBase(ShipmentReceiptMvoEventId stateEventId)
 {
     this.ShipmentReceiptMvoEventId = stateEventId;
 }
Esempio n. 4
0
 public ShipmentReceiptMvoStateMergePatched(ShipmentReceiptMvoEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 5
0
 public ShipmentReceiptMvoStateCreated(ShipmentReceiptMvoEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 6
0
 protected ShipmentReceiptMvoStateEventBase(ShipmentReceiptMvoEventId stateEventId) : base(stateEventId)
 {
 }
        protected virtual IShipmentReceiptMvoStateCreated Map(ICreateShipmentReceiptMvo c)
        {
			var stateEventId = new ShipmentReceiptMvoEventId(c.ShipmentReceiptId, c.ShipmentVersion);
            IShipmentReceiptMvoStateCreated e = NewShipmentReceiptMvoStateCreated(stateEventId);
		
            e.ProductId = c.ProductId;
            e.AttributeSetInstanceId = c.AttributeSetInstanceId;
            e.LocatorId = c.LocatorId;
            e.ShipmentItemSeqId = c.ShipmentItemSeqId;
            e.ShipmentPackageSeqId = c.ShipmentPackageSeqId;
            e.OrderId = c.OrderId;
            e.OrderItemSeqId = c.OrderItemSeqId;
            e.ReturnId = c.ReturnId;
            e.ReturnItemSeqId = c.ReturnItemSeqId;
            e.RejectionReasonId = c.RejectionReasonId;
            e.DamageStatusId = c.DamageStatusId;
            e.DamageReasonId = c.DamageReasonId;
            e.ReceivedBy = c.ReceivedBy;
            e.DatetimeReceived = c.DatetimeReceived;
            e.ItemDescription = c.ItemDescription;
            e.AcceptedQuantity = c.AcceptedQuantity;
            e.RejectedQuantity = c.RejectedQuantity;
            e.DamagedQuantity = c.DamagedQuantity;
            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;
        }
        private ShipmentReceiptMvoStateMergePatched NewShipmentReceiptMvoStateMergePatched(ShipmentReceiptMvoEventId stateEventId)
		{
			return new ShipmentReceiptMvoStateMergePatched(stateEventId);
		}
////////////////////////

		private ShipmentReceiptMvoStateCreated NewShipmentReceiptMvoStateCreated(ShipmentReceiptMvoEventId stateEventId)
		{
			return new ShipmentReceiptMvoStateCreated(stateEventId);			
		}