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

            AddRow(row);

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