Beispiel #1
0
 void IItemIssuanceMvoApplicationService.When(IMergePatchItemIssuanceMvo c)
 {
     this.When((MergePatchItemIssuanceMvoDto)c);
 }
Beispiel #2
0
        public virtual void MergePatch(IMergePatchItemIssuanceMvo c)
        {
            IItemIssuanceMvoStateMergePatched e = Map(c);

            Apply(e);
        }
 public virtual void When(IMergePatchItemIssuanceMvo c)
 {
     Update(c, ar => ar.MergePatch(c));
 }
Beispiel #4
0
        protected virtual IItemIssuanceMvoStateMergePatched Map(IMergePatchItemIssuanceMvo c)
        {
            var stateEventId = new ItemIssuanceMvoEventId(c.ShipmentItemIssuanceId, c.ShipmentVersion);
            IItemIssuanceMvoStateMergePatched e = NewItemIssuanceMvoStateMergePatched(stateEventId);

            e.OrderId                = c.OrderId;
            e.OrderItemSeqId         = c.OrderItemSeqId;
            e.ShipGroupSeqId         = c.ShipGroupSeqId;
            e.ProductId              = c.ProductId;
            e.LocatorId              = c.LocatorId;
            e.AttributeSetInstanceId = c.AttributeSetInstanceId;
            e.ShipmentItemSeqId      = c.ShipmentItemSeqId;
            e.FixedAssetId           = c.FixedAssetId;
            e.MaintHistSeqId         = c.MaintHistSeqId;
            e.IssuedDateTime         = c.IssuedDateTime;
            e.IssuedByUserLoginId    = c.IssuedByUserLoginId;
            e.Quantity               = c.Quantity;
            e.CancelQuantity         = c.CancelQuantity;
            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.IsPropertyOrderIdRemoved                            = c.IsPropertyOrderIdRemoved;
            e.IsPropertyOrderItemSeqIdRemoved                     = c.IsPropertyOrderItemSeqIdRemoved;
            e.IsPropertyShipGroupSeqIdRemoved                     = c.IsPropertyShipGroupSeqIdRemoved;
            e.IsPropertyProductIdRemoved                          = c.IsPropertyProductIdRemoved;
            e.IsPropertyLocatorIdRemoved                          = c.IsPropertyLocatorIdRemoved;
            e.IsPropertyAttributeSetInstanceIdRemoved             = c.IsPropertyAttributeSetInstanceIdRemoved;
            e.IsPropertyShipmentItemSeqIdRemoved                  = c.IsPropertyShipmentItemSeqIdRemoved;
            e.IsPropertyFixedAssetIdRemoved                       = c.IsPropertyFixedAssetIdRemoved;
            e.IsPropertyMaintHistSeqIdRemoved                     = c.IsPropertyMaintHistSeqIdRemoved;
            e.IsPropertyIssuedDateTimeRemoved                     = c.IsPropertyIssuedDateTimeRemoved;
            e.IsPropertyIssuedByUserLoginIdRemoved                = c.IsPropertyIssuedByUserLoginIdRemoved;
            e.IsPropertyQuantityRemoved                           = c.IsPropertyQuantityRemoved;
            e.IsPropertyCancelQuantityRemoved                     = c.IsPropertyCancelQuantityRemoved;
            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);
        }