mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
add reportheader.
This commit is contained in:
parent
419b755e7a
commit
55f86ecb3f
10
Models/Report/ReportHeader.cs
Normal file
10
Models/Report/ReportHeader.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace CarCareTracker.Models
|
||||||
|
{
|
||||||
|
public class ReportHeader
|
||||||
|
{
|
||||||
|
public int MaxOdometer { get; set; }
|
||||||
|
public int DistanceTraveled { get; set; }
|
||||||
|
public decimal TotalCost { get; set; }
|
||||||
|
public decimal AverageMPG { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -2,6 +2,7 @@
|
|||||||
{
|
{
|
||||||
public class ReportViewModel
|
public class ReportViewModel
|
||||||
{
|
{
|
||||||
|
public ReportHeader ReportHeaderForVehicle { get; set; } = new ReportHeader();
|
||||||
public List<CostForVehicleByMonth> CostForVehicleByMonth { get; set; } = new List<CostForVehicleByMonth>();
|
public List<CostForVehicleByMonth> CostForVehicleByMonth { get; set; } = new List<CostForVehicleByMonth>();
|
||||||
public MPGForVehicleByMonth FuelMileageForVehicleByMonth { get; set; } = new MPGForVehicleByMonth();
|
public MPGForVehicleByMonth FuelMileageForVehicleByMonth { get; set; } = new MPGForVehicleByMonth();
|
||||||
public CostMakeUpForVehicle CostMakeUpForVehicle { get; set; } = new CostMakeUpForVehicle();
|
public CostMakeUpForVehicle CostMakeUpForVehicle { get; set; } = new CostMakeUpForVehicle();
|
||||||
|
|||||||
@ -7,6 +7,25 @@
|
|||||||
}
|
}
|
||||||
@model ReportViewModel
|
@model ReportViewModel
|
||||||
<div class="container reportTabContainer">
|
<div class="container reportTabContainer">
|
||||||
|
<div class="row hideOnPrint">
|
||||||
|
<div class="col-md-3 col-12 mt-2 text-center">
|
||||||
|
<span class="lead">@Model.ReportHeaderForVehicle.MaxOdometer.ToString("N0")</span><br />
|
||||||
|
<span class="text-secondary">Current Odometer</span>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 col-12 mt-2 text-center">
|
||||||
|
<span class="lead">@Model.ReportHeaderForVehicle.DistanceTraveled.ToString("N0")</span><br />
|
||||||
|
<span class="text-secondary">Distance Traveled</span>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 col-12 mt-2 text-center">
|
||||||
|
<span class="lead">@StaticHelper.HideZeroCost(Model.ReportHeaderForVehicle.DistanceTraveled.ToString("C2"), true)</span><br />
|
||||||
|
<span class="text-secondary">Total Cost</span>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3 col-12 mt-2 text-center">
|
||||||
|
<span class="lead">@Model.ReportHeaderForVehicle.AverageMPG.ToString("F")</span><br />
|
||||||
|
<span class="text-secondary">Average Fuel Economy</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
<div class="row hideOnPrint">
|
<div class="row hideOnPrint">
|
||||||
<div class="col-md-3 col-12 mt-2">
|
<div class="col-md-3 col-12 mt-2">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user