コード例 #1
0
 public Order(Warehouse w, string toAddress, Employee e, ICollection <ProductBalance> products = null)
 {
     OrderTime    = DateTime.Now;
     DeliveryTime = OrderTime.AddDays(3);
     AddressFrom  = w.Address;
     AddressTo    = toAddress;
     Status       = OrderStatusId.Waiting;
     Warehouse    = w;
     Products     = products;
     Employee     = e;
 }
コード例 #2
0
ファイル: OrderModel.cs プロジェクト: robthang07/AsianStore
 public Order(Customer customer, int customerId, string discount, string price, bool delivered)
 {
     this.Customer       = customer;
     this.CustomerId     = customerId;
     this.OrderLines     = new List <OrderLine>();
     this.Discount       = discount;
     this.TotalPrice     = price;
     this.OrderTime      = DateTime.Now.Date;
     this.OrderDate      = DateTime.Now.Date.ToShortDateString();
     this.Delivered      = delivered;
     this.LastPickUpDate = OrderTime.AddDays(7).ToShortDateString();
 }
コード例 #3
0
ファイル: OrderModel.cs プロジェクト: robthang07/AsianStore
 public Order()
 {
     this.OrderTime      = DateTime.Now.Date;
     this.OrderDate      = DateTime.Now.Date.ToShortDateString();
     this.LastPickUpDate = OrderTime.AddDays(7).ToShortDateString();
 }