示例#1
0
文件: Order.cs 项目: vebin/Adnc
 public Order(long id, long customerId, OrderDeliveryInfomation deliveryInfomation = null, string remark = null)
 {
     this.Id                = Checker.GTZero(id, nameof(id));
     this.CustomerId        = Checker.GTZero(customerId, nameof(customerId));
     this.Items             = new List <OrderItem>();
     this.DeliveryInfomaton = deliveryInfomation;
     this.Status            = new OrderStatus(OrderStatusEnum.Creating);
     this.Remark            = remark;
     this.Amount            = 0;
 }
示例#2
0
文件: Order.cs 项目: vebin/Adnc
 /// <summary>
 /// 调整收货信息
 /// </summary>
 /// <param name="deliveryInfomation"></param>
 public void ChangeDeliveryInfomation(OrderDeliveryInfomation deliveryInfomation)
 {
     Checker.NotNull(deliveryInfomation, nameof(deliveryInfomation));
     this.DeliveryInfomaton = deliveryInfomation;
 }