Esempio n. 1
0
        public object Clone()
        {
            ProductProviderOrder clone = new ProductProviderOrder();

            clone.Provider  = (ProductProvider)this.Provider.Clone();
            clone.OrderId   = this.OrderId;
            clone.Status    = this.Status;
            clone.OrderDate = this.OrderDate;

            foreach (var prod in _listProducts)
            {
                clone.AddProduct((ProductFromLot)prod.Clone());
            }


            return(clone);
        }
Esempio n. 2
0
 public void EditNotPaidOrder(ProductProviderOrder order)
 {
     _ordersRepository.RemoveProductProviderOrder(order.OrderId);
     _ordersRepository.AddProductProviderOrder(order);
 }
Esempio n. 3
0
 public void AddNotPaidOrder(ProductProviderOrder order)
 {
     order.OrderId = GetOrderId();
     order.Status  = StatusProviderOrder.NotPaid;
     _ordersRepository.AddProductProviderOrder(order);
 }
 public void AddProductProviderOrder(ProductProviderOrder order)
 {
     _orders.Add(order);
     _orders.Sort(new ComparerProductProviderOrderForRepository());
 }