Esempio n. 1
0
        protected virtual IPhysicalInventoryLineMvoStateDeleted Map(IDeletePhysicalInventoryLineMvo c)
        {
            var stateEventId = new PhysicalInventoryLineMvoEventId(c.PhysicalInventoryLineId, c.PhysicalInventoryVersion);
            IPhysicalInventoryLineMvoStateDeleted e = NewPhysicalInventoryLineMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            PhysicalInventoryLineMvoEventId other = obj as PhysicalInventoryLineMvoEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.PhysicalInventoryLineId, other.PhysicalInventoryLineId) &&
                   Object.Equals(this.PhysicalInventoryVersion, other.PhysicalInventoryVersion)
                   );
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
 private PhysicalInventoryLineMvoStateDeleted NewPhysicalInventoryLineMvoStateDeleted(PhysicalInventoryLineMvoEventId stateEventId)
 {
     return(new PhysicalInventoryLineMvoStateDeleted(stateEventId));
 }
Esempio n. 5
0
 private PhysicalInventoryLineMvoStateMergePatched NewPhysicalInventoryLineMvoStateMergePatched(PhysicalInventoryLineMvoEventId stateEventId)
 {
     return(new PhysicalInventoryLineMvoStateMergePatched(stateEventId));
 }
Esempio n. 6
0
 protected PhysicalInventoryLineMvoEventBase(PhysicalInventoryLineMvoEventId stateEventId)
 {
     this.PhysicalInventoryLineMvoEventId = stateEventId;
 }
Esempio n. 7
0
 public PhysicalInventoryLineMvoStateDeleted(PhysicalInventoryLineMvoEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 8
0
 public PhysicalInventoryLineMvoStateMergePatched(PhysicalInventoryLineMvoEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 9
0
 protected PhysicalInventoryLineMvoStateEventBase(PhysicalInventoryLineMvoEventId stateEventId) : base(stateEventId)
 {
 }