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) ); }
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); }
private PhysicalInventoryLineMvoStateDeleted NewPhysicalInventoryLineMvoStateDeleted(PhysicalInventoryLineMvoEventId stateEventId) { return(new PhysicalInventoryLineMvoStateDeleted(stateEventId)); }
private PhysicalInventoryLineMvoStateMergePatched NewPhysicalInventoryLineMvoStateMergePatched(PhysicalInventoryLineMvoEventId stateEventId) { return(new PhysicalInventoryLineMvoStateMergePatched(stateEventId)); }
protected PhysicalInventoryLineMvoEventBase(PhysicalInventoryLineMvoEventId stateEventId) { this.PhysicalInventoryLineMvoEventId = stateEventId; }
public PhysicalInventoryLineMvoStateDeleted(PhysicalInventoryLineMvoEventId stateEventId) : base(stateEventId) { }
public PhysicalInventoryLineMvoStateMergePatched(PhysicalInventoryLineMvoEventId stateEventId) : base(stateEventId) { }
protected PhysicalInventoryLineMvoStateEventBase(PhysicalInventoryLineMvoEventId stateEventId) : base(stateEventId) { }