Exemplo n.º 1
0
 public ShippingInfo(DeliveryOptionType option, DeliveryOption deliveryOption)
 {
     if (deliveryOption != null)
     {
         Id                    = deliveryOption.Id;
         Option                = option;
         FreightCode           = deliveryOption.FreightCode;
         WarehouseCode         = deliveryOption.WarehouseCode;
         Description           = deliveryOption.Description;
         Name                  = deliveryOption.Name;
         AdditionalInformation = deliveryOption.Information;
         if (deliveryOption.Address != null)
         {
             Address = CopyAddress(deliveryOption);
         }
         ShippingIntervalDays = deliveryOption.ShippingIntervalDays;
     }
     else
     {
         Id            = 0;
         Option        = option;
         FreightCode   = string.Empty;
         WarehouseCode = string.Empty;
         Description   = string.Empty;
         Name          = string.Empty;
     }
 }
 public DeliveryOption(string warehouseCode, string freightCode, DeliveryOptionType type, string description)
 {
     this.Option        = type;
     this.FreightCode   = freightCode;
     this.WarehouseCode = warehouseCode;
     this.Description   = description;
 }