예제 #1
0
 public ClientStock(Stock stock)
 {
     Item     = new ClientItem(stock.Item);
     Vendor   = new ClientVendor(stock.Vendor);
     Amount   = stock.Amount;
     Location = stock.Location;
 }
예제 #2
0
 public ClientOrderItem(OrderItem orderItem)
 {
     Item        = new ClientItem(orderItem.Item);
     Vendor      = new ClientVendor(orderItem.Vendor);
     Order       = new ClientOrder(orderItem.Order, false);
     PaidPrice   = orderItem.PaidPrice;
     OrderAmount = orderItem.OrderAmount;
 }
예제 #3
0
 public ClientProduct(Product prod, Item item, Vendor vendor)
 {
     SKU           = prod.SKU;
     Price         = prod.Price;
     PackageAmount = prod.PackageAmount;
     Item          = new ClientItem(item);
     Vendor        = new ClientVendor(vendor);
 }
예제 #4
0
 public ClientOrderItem(OrderItem orderItem, Product product = null)
 {
     Item        = new ClientItem(orderItem.Item);
     Vendor      = new ClientVendor(orderItem.Vendor);
     Order       = new ClientOrder(orderItem.Order, false);
     PaidPrice   = orderItem.PaidPrice;
     OrderAmount = orderItem.OrderAmount;
     TotalAmount = orderItem.TotalAmount;
     if (product != null)
     {
         Product = new ClientProduct(product, orderItem.Item, orderItem.Vendor);
     }
 }