Example #1
0
        public virtual void MergePatch(IMergePatchPhysicalInventoryLineMvo c)
        {
            IPhysicalInventoryLineMvoStateMergePatched e = Map(c);

            Apply(e);
        }
 void IPhysicalInventoryLineMvoApplicationService.When(IMergePatchPhysicalInventoryLineMvo c)
 {
     this.When((MergePatchPhysicalInventoryLineMvoDto)c);
 }
Example #3
0
        protected virtual IPhysicalInventoryLineMvoStateMergePatched Map(IMergePatchPhysicalInventoryLineMvo c)
        {
            var stateEventId = new PhysicalInventoryLineMvoEventId(c.PhysicalInventoryLineId, c.PhysicalInventoryVersion);
            IPhysicalInventoryLineMvoStateMergePatched e = NewPhysicalInventoryLineMvoStateMergePatched(stateEventId);

            e.BookQuantity       = c.BookQuantity;
            e.CountedQuantity    = c.CountedQuantity;
            e.Processed          = c.Processed;
            e.LineNumber         = c.LineNumber;
            e.ReversalLineNumber = c.ReversalLineNumber;
            e.Description        = c.Description;
            e.Version            = c.Version;
            e.PhysicalInventoryDocumentStatusId                        = c.PhysicalInventoryDocumentStatusId;
            e.PhysicalInventoryWarehouseId                             = c.PhysicalInventoryWarehouseId;
            e.PhysicalInventoryLocatorIdPattern                        = c.PhysicalInventoryLocatorIdPattern;
            e.PhysicalInventoryProductIdPattern                        = c.PhysicalInventoryProductIdPattern;
            e.PhysicalInventoryPosted                                  = c.PhysicalInventoryPosted;
            e.PhysicalInventoryProcessed                               = c.PhysicalInventoryProcessed;
            e.PhysicalInventoryProcessing                              = c.PhysicalInventoryProcessing;
            e.PhysicalInventoryDocumentTypeId                          = c.PhysicalInventoryDocumentTypeId;
            e.PhysicalInventoryMovementDate                            = c.PhysicalInventoryMovementDate;
            e.PhysicalInventoryDescription                             = c.PhysicalInventoryDescription;
            e.PhysicalInventoryIsApproved                              = c.PhysicalInventoryIsApproved;
            e.PhysicalInventoryApprovalAmount                          = c.PhysicalInventoryApprovalAmount;
            e.PhysicalInventoryIsQuantityUpdated                       = c.PhysicalInventoryIsQuantityUpdated;
            e.PhysicalInventoryReversalDocumentNumber                  = c.PhysicalInventoryReversalDocumentNumber;
            e.PhysicalInventoryCreatedBy                               = c.PhysicalInventoryCreatedBy;
            e.PhysicalInventoryCreatedAt                               = c.PhysicalInventoryCreatedAt;
            e.PhysicalInventoryUpdatedBy                               = c.PhysicalInventoryUpdatedBy;
            e.PhysicalInventoryUpdatedAt                               = c.PhysicalInventoryUpdatedAt;
            e.PhysicalInventoryActive                                  = c.PhysicalInventoryActive;
            e.IsPropertyBookQuantityRemoved                            = c.IsPropertyBookQuantityRemoved;
            e.IsPropertyCountedQuantityRemoved                         = c.IsPropertyCountedQuantityRemoved;
            e.IsPropertyProcessedRemoved                               = c.IsPropertyProcessedRemoved;
            e.IsPropertyLineNumberRemoved                              = c.IsPropertyLineNumberRemoved;
            e.IsPropertyReversalLineNumberRemoved                      = c.IsPropertyReversalLineNumberRemoved;
            e.IsPropertyDescriptionRemoved                             = c.IsPropertyDescriptionRemoved;
            e.IsPropertyVersionRemoved                                 = c.IsPropertyVersionRemoved;
            e.IsPropertyPhysicalInventoryDocumentStatusIdRemoved       = c.IsPropertyPhysicalInventoryDocumentStatusIdRemoved;
            e.IsPropertyPhysicalInventoryWarehouseIdRemoved            = c.IsPropertyPhysicalInventoryWarehouseIdRemoved;
            e.IsPropertyPhysicalInventoryLocatorIdPatternRemoved       = c.IsPropertyPhysicalInventoryLocatorIdPatternRemoved;
            e.IsPropertyPhysicalInventoryProductIdPatternRemoved       = c.IsPropertyPhysicalInventoryProductIdPatternRemoved;
            e.IsPropertyPhysicalInventoryPostedRemoved                 = c.IsPropertyPhysicalInventoryPostedRemoved;
            e.IsPropertyPhysicalInventoryProcessedRemoved              = c.IsPropertyPhysicalInventoryProcessedRemoved;
            e.IsPropertyPhysicalInventoryProcessingRemoved             = c.IsPropertyPhysicalInventoryProcessingRemoved;
            e.IsPropertyPhysicalInventoryDocumentTypeIdRemoved         = c.IsPropertyPhysicalInventoryDocumentTypeIdRemoved;
            e.IsPropertyPhysicalInventoryMovementDateRemoved           = c.IsPropertyPhysicalInventoryMovementDateRemoved;
            e.IsPropertyPhysicalInventoryDescriptionRemoved            = c.IsPropertyPhysicalInventoryDescriptionRemoved;
            e.IsPropertyPhysicalInventoryIsApprovedRemoved             = c.IsPropertyPhysicalInventoryIsApprovedRemoved;
            e.IsPropertyPhysicalInventoryApprovalAmountRemoved         = c.IsPropertyPhysicalInventoryApprovalAmountRemoved;
            e.IsPropertyPhysicalInventoryIsQuantityUpdatedRemoved      = c.IsPropertyPhysicalInventoryIsQuantityUpdatedRemoved;
            e.IsPropertyPhysicalInventoryReversalDocumentNumberRemoved = c.IsPropertyPhysicalInventoryReversalDocumentNumberRemoved;
            e.IsPropertyPhysicalInventoryCreatedByRemoved              = c.IsPropertyPhysicalInventoryCreatedByRemoved;
            e.IsPropertyPhysicalInventoryCreatedAtRemoved              = c.IsPropertyPhysicalInventoryCreatedAtRemoved;
            e.IsPropertyPhysicalInventoryUpdatedByRemoved              = c.IsPropertyPhysicalInventoryUpdatedByRemoved;
            e.IsPropertyPhysicalInventoryUpdatedAtRemoved              = c.IsPropertyPhysicalInventoryUpdatedAtRemoved;
            e.IsPropertyPhysicalInventoryActiveRemoved                 = c.IsPropertyPhysicalInventoryActiveRemoved;

            e.CommandId = c.CommandId;


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

            var physicalInventoryVersion = c.PhysicalInventoryVersion;


            return(e);
        }
Example #4
0
 public virtual void When(IMergePatchPhysicalInventoryLineMvo c)
 {
     Update(c, ar => ar.MergePatch(c));
 }