namespace CarCareTracker.Models { public class PlanRecordInput { public int Id { get; set; } public int VehicleId { get; set; } public int ReminderRecordId { 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 Files { get; set; } = new List(); public List Supplies { get; set; } = new List(); public ImportMode ImportMode { get; set; } public PlanPriority Priority { get; set; } public PlanProgress Progress { get; set; } public decimal Cost { get; set; } public List ExtraFields { get; set; } = new List(); public List RequisitionHistory { get; set; } = new List(); public List DeletedRequisitionHistory { get; set; } = new List(); public bool CopySuppliesAttachment { get; set; } = false; public PlanRecord ToPlanRecord() { return new PlanRecord { Id = Id, VehicleId = VehicleId, ReminderRecordId = ReminderRecordId, DateCreated = DateTime.Parse(DateCreated), DateModified = DateTime.Parse(DateModified), Description = Description, Notes = Notes, Files = Files, ImportMode = ImportMode, Cost = Cost, Priority = Priority, Progress = Progress, ExtraFields = ExtraFields, RequisitionHistory = RequisitionHistory }; } /// /// only used to hide view template button on plan create modal. /// public bool CreatedFromReminder { get; set; } } }