Exemplo n.º 1
0
 public void Update(EstimateItem estimateItem)
 {
     this.Amount          = estimateItem.Amount;
     this.ItemDescription = estimateItem.ItemDescription;
     this.ItemPartNumber  = estimateItem.ItemPartNumber;
     this.UnitPrice       = estimateItem.UnitPrice;
     this.DiscountPercent = estimateItem.DiscountPercent;
     this.Order           = estimateItem.Order;
     this.Memo            = estimateItem.Memo;
 }
Exemplo n.º 2
0
        public void AddItem(Items.Item item, int amount)
        {
            if (Items == null)
            {
                Items = new HashSet <EstimateItem>();
            }
            int order        = Items.Count + 1;
            var estimateItem = new EstimateItem()
            {
                Id              = Guid.NewGuid(),
                ItemGuid        = item.Id,
                Amount          = amount,
                ItemPartNumber  = item.PartNumber,
                ItemDescription = item.Description,
                UnitPrice       = item.UnitPrice,
                Order           = order,
            };

            Items.Add(estimateItem);
            this.Calculate();
        }
Exemplo n.º 3
0
 public void RemoveItem(EstimateItem existEstItem) => this.Items.Remove(existEstItem);