Exemplo n.º 1
0
        protected virtual IMovementConfirmationLineStateCreated MapCreate(ICreateMovementConfirmationLine c, IMovementConfirmationCommand outerCommand, long version, IMovementConfirmationState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new MovementConfirmationLineEventId(c.MovementConfirmationDocumentNumber, c.LineNumber, version);
            IMovementConfirmationLineStateCreated e = NewMovementConfirmationLineStateCreated(stateEventId);
            var s = outerState.MovementConfirmationLines.Get(c.LineNumber, true);

            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.Active             = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
Exemplo n.º 2
0
 public void Remove(ICreateMovementConfirmationLine c)
 {
     _innerCommands.Remove(c);
 }
Exemplo n.º 3
0
 public void Add(ICreateMovementConfirmationLine c)
 {
     _innerCommands.Add(c);
 }
 void ICreateMovementConfirmationLineCommands.Remove(ICreateMovementConfirmationLine c)
 {
     _innerCommands.Remove((CreateMovementConfirmationLineDto)c);
 }