Vehicle cost report

This commit is contained in:
2015-10-24 14:28:13 -04:00
parent 1fb8c54076
commit ad0b04695d
11 changed files with 238 additions and 17 deletions
+16
View File
@@ -0,0 +1,16 @@
using MileageTraker.Web.Attributes;
namespace MileageTraker.Web.ViewModels.Vehicle
{
public class VehicleCostItem
{
public string VehicleId { get; set; }
public string TagNumber { get; set; }
public string CostType { get; set; }
[Currency]
public decimal TotalPrice { get; set; }
}
}
@@ -0,0 +1,16 @@
using System.Collections.Generic;
using System.Linq;
using MileageTraker.Web.Attributes;
namespace MileageTraker.Web.ViewModels.Vehicle
{
public class VehicleCostReport
{
public int FiscalYear { get; set; }
public IList<VehicleCostItem> CostItems { get; set; }
[Currency]
public decimal TotalPrice { get { return CostItems.Sum(i => i.TotalPrice); } }
}
}