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

            AddRow(row);

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