示例#1
0
 void IMovementLineMvoApplicationService.When(IMergePatchMovementLineMvo c)
 {
     this.When((MergePatchMovementLineMvoDto)c);
 }
示例#2
0
        protected virtual IMovementLineMvoStateMergePatched Map(IMergePatchMovementLineMvo c)
        {
            var stateEventId = new MovementLineMvoEventId(c.MovementLineId, c.MovementVersion);
            IMovementLineMvoStateMergePatched e = NewMovementLineMvoStateMergePatched(stateEventId);

            e.MovementQuantity       = c.MovementQuantity;
            e.ProductId              = c.ProductId;
            e.LocatorIdFrom          = c.LocatorIdFrom;
            e.LocatorIdTo            = c.LocatorIdTo;
            e.AttributeSetInstanceId = c.AttributeSetInstanceId;
            e.Processed              = c.Processed;
            e.ReversalLineNumber     = c.ReversalLineNumber;
            e.Version = c.Version;
            e.Active  = c.Active;
            e.MovementDocumentStatusId                        = c.MovementDocumentStatusId;
            e.MovementMovementDate                            = c.MovementMovementDate;
            e.MovementPosted                                  = c.MovementPosted;
            e.MovementProcessed                               = c.MovementProcessed;
            e.MovementProcessing                              = c.MovementProcessing;
            e.MovementDateReceived                            = c.MovementDateReceived;
            e.MovementDocumentTypeId                          = c.MovementDocumentTypeId;
            e.MovementIsInTransit                             = c.MovementIsInTransit;
            e.MovementIsApproved                              = c.MovementIsApproved;
            e.MovementApprovalAmount                          = c.MovementApprovalAmount;
            e.MovementShipperId                               = c.MovementShipperId;
            e.MovementSalesRepresentativeId                   = c.MovementSalesRepresentativeId;
            e.MovementBusinessPartnerId                       = c.MovementBusinessPartnerId;
            e.MovementChargeAmount                            = c.MovementChargeAmount;
            e.MovementCreateFrom                              = c.MovementCreateFrom;
            e.MovementFreightAmount                           = c.MovementFreightAmount;
            e.MovementReversalDocumentNumber                  = c.MovementReversalDocumentNumber;
            e.MovementWarehouseIdFrom                         = c.MovementWarehouseIdFrom;
            e.MovementWarehouseIdTo                           = c.MovementWarehouseIdTo;
            e.MovementDescription                             = c.MovementDescription;
            e.MovementCreatedBy                               = c.MovementCreatedBy;
            e.MovementCreatedAt                               = c.MovementCreatedAt;
            e.MovementUpdatedBy                               = c.MovementUpdatedBy;
            e.MovementUpdatedAt                               = c.MovementUpdatedAt;
            e.MovementActive                                  = c.MovementActive;
            e.MovementDeleted                                 = c.MovementDeleted;
            e.IsPropertyMovementQuantityRemoved               = c.IsPropertyMovementQuantityRemoved;
            e.IsPropertyProductIdRemoved                      = c.IsPropertyProductIdRemoved;
            e.IsPropertyLocatorIdFromRemoved                  = c.IsPropertyLocatorIdFromRemoved;
            e.IsPropertyLocatorIdToRemoved                    = c.IsPropertyLocatorIdToRemoved;
            e.IsPropertyAttributeSetInstanceIdRemoved         = c.IsPropertyAttributeSetInstanceIdRemoved;
            e.IsPropertyProcessedRemoved                      = c.IsPropertyProcessedRemoved;
            e.IsPropertyReversalLineNumberRemoved             = c.IsPropertyReversalLineNumberRemoved;
            e.IsPropertyVersionRemoved                        = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved                         = c.IsPropertyActiveRemoved;
            e.IsPropertyMovementDocumentStatusIdRemoved       = c.IsPropertyMovementDocumentStatusIdRemoved;
            e.IsPropertyMovementMovementDateRemoved           = c.IsPropertyMovementMovementDateRemoved;
            e.IsPropertyMovementPostedRemoved                 = c.IsPropertyMovementPostedRemoved;
            e.IsPropertyMovementProcessedRemoved              = c.IsPropertyMovementProcessedRemoved;
            e.IsPropertyMovementProcessingRemoved             = c.IsPropertyMovementProcessingRemoved;
            e.IsPropertyMovementDateReceivedRemoved           = c.IsPropertyMovementDateReceivedRemoved;
            e.IsPropertyMovementDocumentTypeIdRemoved         = c.IsPropertyMovementDocumentTypeIdRemoved;
            e.IsPropertyMovementIsInTransitRemoved            = c.IsPropertyMovementIsInTransitRemoved;
            e.IsPropertyMovementIsApprovedRemoved             = c.IsPropertyMovementIsApprovedRemoved;
            e.IsPropertyMovementApprovalAmountRemoved         = c.IsPropertyMovementApprovalAmountRemoved;
            e.IsPropertyMovementShipperIdRemoved              = c.IsPropertyMovementShipperIdRemoved;
            e.IsPropertyMovementSalesRepresentativeIdRemoved  = c.IsPropertyMovementSalesRepresentativeIdRemoved;
            e.IsPropertyMovementBusinessPartnerIdRemoved      = c.IsPropertyMovementBusinessPartnerIdRemoved;
            e.IsPropertyMovementChargeAmountRemoved           = c.IsPropertyMovementChargeAmountRemoved;
            e.IsPropertyMovementCreateFromRemoved             = c.IsPropertyMovementCreateFromRemoved;
            e.IsPropertyMovementFreightAmountRemoved          = c.IsPropertyMovementFreightAmountRemoved;
            e.IsPropertyMovementReversalDocumentNumberRemoved = c.IsPropertyMovementReversalDocumentNumberRemoved;
            e.IsPropertyMovementWarehouseIdFromRemoved        = c.IsPropertyMovementWarehouseIdFromRemoved;
            e.IsPropertyMovementWarehouseIdToRemoved          = c.IsPropertyMovementWarehouseIdToRemoved;
            e.IsPropertyMovementDescriptionRemoved            = c.IsPropertyMovementDescriptionRemoved;
            e.IsPropertyMovementCreatedByRemoved              = c.IsPropertyMovementCreatedByRemoved;
            e.IsPropertyMovementCreatedAtRemoved              = c.IsPropertyMovementCreatedAtRemoved;
            e.IsPropertyMovementUpdatedByRemoved              = c.IsPropertyMovementUpdatedByRemoved;
            e.IsPropertyMovementUpdatedAtRemoved              = c.IsPropertyMovementUpdatedAtRemoved;
            e.IsPropertyMovementActiveRemoved                 = c.IsPropertyMovementActiveRemoved;
            e.IsPropertyMovementDeletedRemoved                = c.IsPropertyMovementDeletedRemoved;

            e.CommandId = c.CommandId;


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

            var movementVersion = c.MovementVersion;


            return(e);
        }
示例#3
0
        public virtual void MergePatch(IMergePatchMovementLineMvo c)
        {
            IMovementLineMvoStateMergePatched e = Map(c);

            Apply(e);
        }
 public virtual void When(IMergePatchMovementLineMvo c)
 {
     Update(c, ar => ar.MergePatch(c));
 }