예제 #1
0
 public Item(string description, double price, int quantity)
 {
     ItemNumber       = NumberManager.GetItemNumber();
     this.Description = description.ToUpper();
     this.Price       = price;
     this.Quantity    = quantity;
 }
예제 #2
0
 public OrderItem(Item item, int purchaseQuantity)
 {
     this.OrderItemNumber = NumberManager.GetOrderItemNumber();
     this.ItemNumber      = item.ItemNumber;
     this.Description     = item.Description;
     this.UnitPrice       = item.Price;
     this.Quantity        = purchaseQuantity;
 }
예제 #3
0
 public Item()
 {
     ItemNumber = NumberManager.GetItemNumber();
 }
예제 #4
0
 public Customer()
 {
     CustomerNumber = NumberManager.GetCustomerNumber();
     CustomerName   = "Unknown";
 }
예제 #5
0
 public Customer(string name)
 {
     CustomerNumber = NumberManager.GetCustomerNumber();
     CustomerName   = name.ToUpper();
 }