Esempio n. 1
0
        public virtual OrderRowEntity AddRow(ProductEntity product, double quantity, IProductPricePolicy pricePolicy)
        {
            var row = OrderRowEntity.Create(this, product, quantity, pricePolicy);

            AddRow(row);

            return(row);
        }
Esempio n. 2
0
 public virtual void RemoveRow(OrderRowEntity row)
 {
     if (Rows.Contains(row))
     {
         row.Synchronize = SynchronizeType.Deleted;
         RenumerableRows();
         RecalcTotals();
     }
 }
Esempio n. 3
0
 public virtual void AddRow(OrderRowEntity row)
 {
     Rows.Add(row);
     row.ItemNumber = Rows.Count;
     RecalcTotals();
 }