예제 #1
0
 public virtual void When(IMergePatchShipmentItemMvo c)
 {
     Update(c, ar => ar.MergePatch(c));
 }
예제 #2
0
        protected virtual IShipmentItemMvoStateMergePatched Map(IMergePatchShipmentItemMvo c)
        {
            var stateEventId = new ShipmentItemMvoEventId(c.ShipmentItemId, c.ShipmentVersion);
            IShipmentItemMvoStateMergePatched e = NewShipmentItemMvoStateMergePatched(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.IsPropertyProductIdRemoved = c.IsPropertyProductIdRemoved;
            e.IsPropertyAttributeSetInstanceIdRemoved = c.IsPropertyAttributeSetInstanceIdRemoved;
            e.IsPropertyQuantityRemoved = c.IsPropertyQuantityRemoved;
            e.IsPropertyShipmentContentDescriptionRemoved = c.IsPropertyShipmentContentDescriptionRemoved;
            e.IsPropertyVersionRemoved = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved  = c.IsPropertyActiveRemoved;
            e.IsPropertyShipmentShipmentTypeIdRemoved             = c.IsPropertyShipmentShipmentTypeIdRemoved;
            e.IsPropertyShipmentStatusIdRemoved                   = c.IsPropertyShipmentStatusIdRemoved;
            e.IsPropertyShipmentPrimaryOrderIdRemoved             = c.IsPropertyShipmentPrimaryOrderIdRemoved;
            e.IsPropertyShipmentPrimaryReturnIdRemoved            = c.IsPropertyShipmentPrimaryReturnIdRemoved;
            e.IsPropertyShipmentPrimaryShipGroupSeqIdRemoved      = c.IsPropertyShipmentPrimaryShipGroupSeqIdRemoved;
            e.IsPropertyShipmentPicklistBinIdRemoved              = c.IsPropertyShipmentPicklistBinIdRemoved;
            e.IsPropertyShipmentEstimatedReadyDateRemoved         = c.IsPropertyShipmentEstimatedReadyDateRemoved;
            e.IsPropertyShipmentEstimatedShipDateRemoved          = c.IsPropertyShipmentEstimatedShipDateRemoved;
            e.IsPropertyShipmentEstimatedShipWorkEffIdRemoved     = c.IsPropertyShipmentEstimatedShipWorkEffIdRemoved;
            e.IsPropertyShipmentEstimatedArrivalDateRemoved       = c.IsPropertyShipmentEstimatedArrivalDateRemoved;
            e.IsPropertyShipmentEstimatedArrivalWorkEffIdRemoved  = c.IsPropertyShipmentEstimatedArrivalWorkEffIdRemoved;
            e.IsPropertyShipmentLatestCancelDateRemoved           = c.IsPropertyShipmentLatestCancelDateRemoved;
            e.IsPropertyShipmentEstimatedShipCostRemoved          = c.IsPropertyShipmentEstimatedShipCostRemoved;
            e.IsPropertyShipmentCurrencyUomIdRemoved              = c.IsPropertyShipmentCurrencyUomIdRemoved;
            e.IsPropertyShipmentHandlingInstructionsRemoved       = c.IsPropertyShipmentHandlingInstructionsRemoved;
            e.IsPropertyShipmentOriginFacilityIdRemoved           = c.IsPropertyShipmentOriginFacilityIdRemoved;
            e.IsPropertyShipmentDestinationFacilityIdRemoved      = c.IsPropertyShipmentDestinationFacilityIdRemoved;
            e.IsPropertyShipmentOriginContactMechIdRemoved        = c.IsPropertyShipmentOriginContactMechIdRemoved;
            e.IsPropertyShipmentOriginTelecomNumberIdRemoved      = c.IsPropertyShipmentOriginTelecomNumberIdRemoved;
            e.IsPropertyShipmentDestinationContactMechIdRemoved   = c.IsPropertyShipmentDestinationContactMechIdRemoved;
            e.IsPropertyShipmentDestinationTelecomNumberIdRemoved = c.IsPropertyShipmentDestinationTelecomNumberIdRemoved;
            e.IsPropertyShipmentPartyIdToRemoved                  = c.IsPropertyShipmentPartyIdToRemoved;
            e.IsPropertyShipmentPartyIdFromRemoved                = c.IsPropertyShipmentPartyIdFromRemoved;
            e.IsPropertyShipmentAdditionalShippingChargeRemoved   = c.IsPropertyShipmentAdditionalShippingChargeRemoved;
            e.IsPropertyShipmentAddtlShippingChargeDescRemoved    = c.IsPropertyShipmentAddtlShippingChargeDescRemoved;
            e.IsPropertyShipmentCreatedByRemoved                  = c.IsPropertyShipmentCreatedByRemoved;
            e.IsPropertyShipmentCreatedAtRemoved                  = c.IsPropertyShipmentCreatedAtRemoved;
            e.IsPropertyShipmentUpdatedByRemoved                  = c.IsPropertyShipmentUpdatedByRemoved;
            e.IsPropertyShipmentUpdatedAtRemoved                  = c.IsPropertyShipmentUpdatedAtRemoved;
            e.IsPropertyShipmentActiveRemoved = c.IsPropertyShipmentActiveRemoved;

            e.CommandId = c.CommandId;


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

            var shipmentVersion = c.ShipmentVersion;


            return(e);
        }
예제 #3
0
        public virtual void MergePatch(IMergePatchShipmentItemMvo c)
        {
            IShipmentItemMvoStateMergePatched e = Map(c);

            Apply(e);
        }
 void IShipmentItemMvoApplicationService.When(IMergePatchShipmentItemMvo c)
 {
     this.When((MergePatchShipmentItemMvoDto)c);
 }