mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 17:20:15 -06:00
34 lines
1.3 KiB
C#
34 lines
1.3 KiB
C#
namespace CarCareTracker.Models
|
|
{
|
|
public class PlanRecordInput
|
|
{
|
|
public int Id { get; set; }
|
|
public int VehicleId { get; set; }
|
|
public string DateCreated { get; set; } = DateTime.Now.ToShortDateString();
|
|
public string DateModified { get; set; } = DateTime.Now.ToShortDateString();
|
|
public string Description { get; set; }
|
|
public string Notes { get; set; }
|
|
public List<UploadedFiles> Files { get; set; } = new List<UploadedFiles>();
|
|
public List<SupplyUsage> Supplies { get; set; } = new List<SupplyUsage>();
|
|
public ImportMode ImportMode { get; set; }
|
|
public PlanPriority Priority { get; set; }
|
|
public PlanProgress Progress { get; set; }
|
|
public decimal Cost { get; set; }
|
|
public List<ExtraField> ExtraFields { get; set; } = new List<ExtraField>();
|
|
public PlanRecord ToPlanRecord() { return new PlanRecord {
|
|
Id = Id,
|
|
VehicleId = VehicleId,
|
|
DateCreated = DateTime.Parse(DateCreated),
|
|
DateModified = DateTime.Parse(DateModified),
|
|
Description = Description,
|
|
Notes = Notes,
|
|
Files = Files,
|
|
ImportMode = ImportMode,
|
|
Cost = Cost,
|
|
Priority = Priority,
|
|
Progress = Progress,
|
|
ExtraFields = ExtraFields
|
|
}; }
|
|
}
|
|
}
|