create front end for Planner

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-19 19:34:14 -07:00
parent bc2bb3636b
commit 60edb65b55
11 changed files with 348 additions and 58 deletions

View File

@@ -1,6 +1,4 @@
using CarCareTracker.Enum;
namespace CarCareTracker.Models
namespace CarCareTracker.Models
{
public class PlanRecord
{
@@ -14,6 +12,6 @@ namespace CarCareTracker.Models
public ImportMode ImportMode { get; set; }
public PlanPriority Priority { get; set; }
public PlanProgress Progress { get; set; }
public List<PlanCostItem> Costs { get; set; } = new List<PlanCostItem>();
public decimal Cost { get; set; }
}
}

View File

@@ -1,6 +1,4 @@
using CarCareTracker.Enum;
namespace CarCareTracker.Models
namespace CarCareTracker.Models
{
public class PlanRecordInput
{
@@ -14,7 +12,7 @@ namespace CarCareTracker.Models
public ImportMode ImportMode { get; set; }
public PlanPriority Priority { get; set; }
public PlanProgress Progress { get; set; }
public List<PlanCostItem> Costs { get; set; } = new List<PlanCostItem>();
public decimal Cost { get; set; }
public PlanRecord ToPlanRecord() { return new PlanRecord {
Id = Id,
VehicleId = VehicleId,
@@ -24,7 +22,7 @@ namespace CarCareTracker.Models
Notes = Notes,
Files = Files,
ImportMode = ImportMode,
Costs = Costs,
Cost = Cost,
Priority = Priority,
Progress = Progress
}; }