Exemplo n.º 1
0
        protected virtual IPhysicalInventoryLineStateCreated MapCreate(ICreatePhysicalInventoryLine c, IPhysicalInventoryCommand outerCommand, long version, IPhysicalInventoryState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new PhysicalInventoryLineEventId(c.PhysicalInventoryDocumentNumber, c.InventoryItemId, version);
            IPhysicalInventoryLineStateCreated e = NewPhysicalInventoryLineStateCreated(stateEventId);
            var s = outerState.PhysicalInventoryLines.Get(c.InventoryItemId, true);

            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.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
 void ICreatePhysicalInventoryLineCommands.Remove(ICreatePhysicalInventoryLine c)
 {
     _innerCommands.Remove((CreatePhysicalInventoryLineDto)c);
 }
Exemplo n.º 3
0
 public void Remove(ICreatePhysicalInventoryLine c)
 {
     _innerCommands.Remove(c);
 }
Exemplo n.º 4
0
 public void Add(ICreatePhysicalInventoryLine c)
 {
     _innerCommands.Add(c);
 }