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); }
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); }
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) ); }
private ShipmentItemMvoStateMergePatched NewShipmentItemMvoStateMergePatched(ShipmentItemMvoEventId stateEventId) { return(new ShipmentItemMvoStateMergePatched(stateEventId)); }
//////////////////////// private ShipmentItemMvoStateCreated NewShipmentItemMvoStateCreated(ShipmentItemMvoEventId stateEventId) { return(new ShipmentItemMvoStateCreated(stateEventId)); }
protected ShipmentItemMvoStateEventDtoBase(ShipmentItemMvoEventId stateEventId) { this.ShipmentItemMvoEventId = stateEventId; }
public ShipmentItemMvoStateMergePatched(ShipmentItemMvoEventId stateEventId) : base(stateEventId) { }
public ShipmentItemMvoStateCreated(ShipmentItemMvoEventId stateEventId) : base(stateEventId) { }
protected ShipmentItemMvoStateEventBase(ShipmentItemMvoEventId stateEventId) : base(stateEventId) { }