Пример #1
0
        protected virtual IPhysicalInventoryLineMvoStateCreated Map(ICreatePhysicalInventoryLineMvo c)
        {
            var stateEventId = new PhysicalInventoryLineMvoEventId(c.PhysicalInventoryLineId, c.PhysicalInventoryVersion);
            IPhysicalInventoryLineMvoStateCreated e = NewPhysicalInventoryLineMvoStateCreated(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.CommandId = c.CommandId;


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


            return(e);
        }
Пример #2
0
        public virtual void Create(ICreatePhysicalInventoryLineMvo c)
        {
            IPhysicalInventoryLineMvoStateCreated e = Map(c);

            Apply(e);
        }
 void IPhysicalInventoryLineMvoApplicationService.When(ICreatePhysicalInventoryLineMvo c)
 {
     this.When((CreatePhysicalInventoryLineMvoDto)c);
 }
Пример #4
0
 public virtual void When(ICreatePhysicalInventoryLineMvo c)
 {
     Update(c, ar => ar.Create(c));
 }