Exemple #1
0
        private void Child_Fetch(FillupDto item)
        {
            Id         = item.Id;
            CarId      = item.CarId;
            FillupDate = item.FillUpDate.ToShortDateString();
            Amount     = $"{item.Amount} L";
            Odometer   = $"{item.Odometer} Km";
            TotalCost  = $"SEK {Math.Round(item.Amount * item.VolumePrice, 2)}";

            DaysSinceLast = item.DaysSinceLast == 0
        ? string.Empty
        : $"(+ {item.DaysSinceLast} days)";

            DistanceSinceLast = item.DaysSinceLast == 0
        ? string.Empty
        : $"+ {item.DistanceSinceLast} Km";

            AverageConsumption = item.AverageConsumption == 0
        ? string.Empty
        : $"{Math.Round(item.AverageConsumption, 2)} L/100 Km";

            VolumePrice   = $"SEK {Math.Round(item.VolumePrice, 2)}/L";
            PartialFillup = item.PartialFillUp;
            Note          = item.Note;
        }
Exemple #2
0
 public void Update(FillupDto data)
 {
     throw new NotImplementedException();
 }
Exemple #3
0
 public void Insert(FillupDto data)
 {
     throw new NotImplementedException();
 }