added front end stuff for consolidated vehicle maintenance record.

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-01-12 12:52:01 -07:00
parent d00e6e252d
commit 4d804803a8
8 changed files with 196 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
namespace CarCareTracker.Models
{
/// <summary>
/// Import model used for importing Gas records.
/// Import model used for importing records via CSV.
/// </summary>
public class ImportModel
{
@@ -16,6 +16,7 @@
public string IsFillToFull { get; set; }
public string MissedFuelUp { get; set; }
}
public class ServiceRecordExportModel
{
public string Date { get; set; }

View File

@@ -0,0 +1,15 @@
namespace CarCareTracker.Models
{
/// <summary>
/// Generic Model used for vehicle history report.
/// </summary>
public class GenericReportModel
{
public ImportMode DataType { get; set; }
public DateTime Date { get; set; }
public int Odometer { get; set; }
public string Description { get; set; }
public string Notes { get; set; }
public decimal Cost { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
namespace CarCareTracker.Models
{
public class VehicleHistoryViewModel
{
public Vehicle VehicleData { get; set; }
public List<GenericReportModel> VehicleHistory { get; set; }
public string Odometer { get; set; }
public decimal MPG { get; set; }
public decimal TotalCost { get; set; }
public decimal TotalGasCost { get; set; }
}
}