예제 #1
0
 //* Cancela um pedido
 public void Cancel()
 {
     Status = EOrderStatus.Canceled;
     _deliveries.ToList().ForEach(x => x.Cancel());
 }
 public UpdateStatusOrderRequest(Guid order_id, EOrderStatus status_id)
 {
     this.OrderId  = order_id;
     this.StatusId = status_id;
 }
예제 #3
0
 public void MarkAsPaid()
 {
     // Dá baixa no estoque
     this.Status = EOrderStatus.Paid;
 }
예제 #4
0
        public void Cancel()
        {
            // Estorna os produtos

            this.Status = EOrderStatus.Canceled;
        }
예제 #5
0
 public ParamOrderToPdf(int commandId, EOrderStatus status, EOrderStatus typeQuoteOrProformat)
     : this(commandId, status)
 {
     _typeQuoteOrProformat = typeQuoteOrProformat;
 }
예제 #6
0
 //pagar um pedido
 public void Pay()
 {
     //validações
     Status = EOrderStatus.Paid;
 }
예제 #7
0
 public Order(decimal totalProducts, decimal totalDiscount, decimal totalOrder, EOrderStatus status)
 {
     User          = null;
     TotalProducts = totalProducts;
     TotalDiscount = totalDiscount;
     TotalOrder    = totalOrder;
     Status        = status;
     Items         = new List <OrderItem>();
 }
 public OrderDetailsDTO(Guid id, Guid tableId, string tableNumber, string orderNumber, EOrderStatus status, DateTime openDate, DateTime?closingDate)
 {
     Id          = id;
     TableId     = tableId;
     TableNumber = tableNumber;
     OrderNumber = orderNumber;
     Status      = status;
     OpenDate    = openDate;
     ClosingDate = closingDate;
 }
예제 #9
0
 public ProcessOrderResponse(string number, DateTime createDate, DateTime lastUpdateDate, decimal total, string notes, EOrderStatus status, ulong deliveryTag)
 {
     Number         = number;
     CreateDate     = createDate;
     LastUpdateDate = lastUpdateDate;
     Total          = total;
     Notes          = notes;
     Status         = status;
     DeliveryTag    = deliveryTag;
 }
예제 #10
0
 public void SetStatus(EOrderStatus status)
 {
     this.Status = status;
 }
예제 #11
0
 public void Cancel()
 {
     Status = EOrderStatus.Cancelad;
     CancelDeliverys();
     ReturnItensToStock();
 }
예제 #12
0
파일: Order.cs 프로젝트: maper765/Store
 // Pagar um pedido
 public void Pay()
 {
     // Para fins de estudo, assume-se que o pagamento já foi realizado...
     Status = EOrderStatus.Paid;
 }
예제 #13
0
파일: Order.cs 프로젝트: Gondlir/eNeatStore
 public void Pay()
 {
     //payment context
     Status = EOrderStatus.Payd;
 }
예제 #14
0
        public void Cancel()
        {
            // Estorna os produtos

            this.Status = EOrderStatus.Canceled;
        }
예제 #15
0
 public void Pay()
 {
     // A cada 5 Produtos é uma entrega.
     Status = EOrderStatus.Paid;
 }
예제 #16
0
 //cancelar o pedido
 public void Cancel()
 {
     Status = EOrderStatus.Canceled;
     //também devo criar um método no delivery para cancelar
     _deliveries.ToList().ForEach(x => x.Cancel());
 }
예제 #17
0
 public void ToChangeStatus(EOrderStatus status)
 {
     Status = status;
 }
예제 #18
0
 public void Pay()
 {
     this.Status = EOrderStatus.Paid;
 }
예제 #19
0
 public void Pay()
 {
     //payment simulated as paid
     Status = EOrderStatus.Paid;
 }
예제 #20
0
 public ParamOrderToPdf(int commandId, EOrderStatus status, int quoteValidityDay)
     : this(commandId, status)
 {
     _quoteValidityDay = quoteValidityDay;
 }
예제 #21
0
 public void Pay() //Pagamento do pedido
 {
     Status = EOrderStatus.Paid;
 }
예제 #22
0
 //cancelar um pedido
 public void Cancel()
 {
     Status = EOrderStatus.Canceled;
     //cancelar todas as entregas
     _deliveries.ToList().ForEach(x => x.Cancel());
 }
예제 #23
0
 // Pagar Um Pedido
 public void Pay()
 {
     Status = EOrderStatus.PAID;
 }
예제 #24
0
 public void MarkAsDelivered()
 {
     this.Status = EOrderStatus.Delivered;
 }
예제 #25
0
 public void MarkAsPaid()
 {
     // Dá baixa no estoque
     this.Status = EOrderStatus.Paid;
 }
예제 #26
0
 public void Cancel()
 {
     Status = EOrderStatus.Canceled;
 }
예제 #27
0
 public void MarkAsDelivered()
 {
     this.Status = EOrderStatus.Delivered;
 }
예제 #28
0
 // To pay an order
 public void Pay()
 {
     Status = EOrderStatus.Paid;
 }
 public CreateOrderResponse(string number, DateTime createDate, DateTime lastUpdateDate, List <ProductDto> products, decimal total, string notes, EOrderStatus status)
 {
     Number         = number;
     CreateDate     = createDate;
     LastUpdateDate = lastUpdateDate;
     Products       = products;
     Total          = total;
     Notes          = notes;
     Status         = status;
 }