Пример #1
0
        protected MovementConfirmationLineMvoStateDeleted NewMovementConfirmationLineMvoStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new MovementConfirmationLineMvoEventId(_state.MovementConfirmationLineId, version);
            var e            = NewMovementConfirmationLineMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
Пример #2
0
        protected virtual IMovementConfirmationLineMvoStateDeleted Map(IDeleteMovementConfirmationLineMvo c)
        {
            var stateEventId = new MovementConfirmationLineMvoEventId(c.MovementConfirmationLineId, c.MovementConfirmationVersion);
            IMovementConfirmationLineMvoStateDeleted e = NewMovementConfirmationLineMvoStateDeleted(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);
            }

            MovementConfirmationLineMvoEventId other = obj as MovementConfirmationLineMvoEventId;

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

            return(true &&
                   Object.Equals(this.MovementConfirmationLineId, other.MovementConfirmationLineId) &&
                   Object.Equals(this.MovementConfirmationVersion, other.MovementConfirmationVersion)
                   );
        }
Пример #4
0
        protected virtual IMovementConfirmationLineMvoStateCreated Map(ICreateMovementConfirmationLineMvo c)
        {
            var stateEventId = new MovementConfirmationLineMvoEventId(c.MovementConfirmationLineId, c.MovementConfirmationVersion);
            IMovementConfirmationLineMvoStateCreated e = NewMovementConfirmationLineMvoStateCreated(stateEventId);

            e.MovementLineNumber = c.MovementLineNumber;
            e.TargetQuantity     = c.TargetQuantity;
            e.ConfirmedQuantity  = c.ConfirmedQuantity;
            e.DifferenceQuantity = c.DifferenceQuantity;
            e.ScrappedQuantity   = c.ScrappedQuantity;
            e.Description        = c.Description;
            e.Processed          = c.Processed;
            e.Version            = c.Version;
            e.Active             = c.Active;
            e.MovementConfirmationDocumentStatusId       = c.MovementConfirmationDocumentStatusId;
            e.MovementConfirmationMovementDocumentNumber = c.MovementConfirmationMovementDocumentNumber;
            e.MovementConfirmationIsApproved             = c.MovementConfirmationIsApproved;
            e.MovementConfirmationApprovalAmount         = c.MovementConfirmationApprovalAmount;
            e.MovementConfirmationProcessed      = c.MovementConfirmationProcessed;
            e.MovementConfirmationProcessing     = c.MovementConfirmationProcessing;
            e.MovementConfirmationDocumentTypeId = c.MovementConfirmationDocumentTypeId;
            e.MovementConfirmationDescription    = c.MovementConfirmationDescription;
            e.MovementConfirmationCreatedBy      = c.MovementConfirmationCreatedBy;
            e.MovementConfirmationCreatedAt      = c.MovementConfirmationCreatedAt;
            e.MovementConfirmationUpdatedBy      = c.MovementConfirmationUpdatedBy;
            e.MovementConfirmationUpdatedAt      = c.MovementConfirmationUpdatedAt;
            e.MovementConfirmationActive         = c.MovementConfirmationActive;
            e.MovementConfirmationDeleted        = c.MovementConfirmationDeleted;
            e.CommandId = c.CommandId;


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


            return(e);
        }
Пример #5
0
 private MovementConfirmationLineMvoStateDeleted NewMovementConfirmationLineMvoStateDeleted(MovementConfirmationLineMvoEventId stateEventId)
 {
     return(new MovementConfirmationLineMvoStateDeleted(stateEventId));
 }
Пример #6
0
 protected MovementConfirmationLineMvoEventBase(MovementConfirmationLineMvoEventId stateEventId)
 {
     this.MovementConfirmationLineMvoEventId = stateEventId;
 }
Пример #7
0
 public MovementConfirmationLineMvoStateDeleted(MovementConfirmationLineMvoEventId stateEventId) : base(stateEventId)
 {
 }
Пример #8
0
 public MovementConfirmationLineMvoStateMergePatched(MovementConfirmationLineMvoEventId stateEventId) : base(stateEventId)
 {
 }
Пример #9
0
 protected MovementConfirmationLineMvoStateEventBase(MovementConfirmationLineMvoEventId stateEventId) : base(stateEventId)
 {
 }