Files
lubelog/Models/Collision/CollisionRecordInput.cs
DESKTOP-T0O5CDB\DESK-555BD 92c0c103be Merge branch 'main' into Hargata/decimal.odo
# Conflicts:
#	Controllers/APIController.cs
#	Controllers/VehicleController.cs
#	Helper/ReminderHelper.cs
2024-11-14 08:25:48 -07:00

35 lines
1.4 KiB
C#

namespace CarCareTracker.Models
{
public class CollisionRecordInput
{
public int Id { get; set; }
public int VehicleId { get; set; }
public List<int> ReminderRecordId { get; set; } = new List<int>();
public string Date { get; set; } = DateTime.Now.ToShortDateString();
public decimal Mileage { get; set; }
public string Description { get; set; }
public decimal Cost { 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 List<string> Tags { get; set; } = new List<string>();
public List<ExtraField> ExtraFields { get; set; } = new List<ExtraField>();
public List<SupplyUsageHistory> RequisitionHistory { get; set; } = new List<SupplyUsageHistory>();
public bool CopySuppliesAttachment { get; set; } = false;
public CollisionRecord ToCollisionRecord() { return new CollisionRecord {
Id = Id,
VehicleId = VehicleId,
Date = DateTime.Parse(Date),
Cost = Cost,
Mileage = Mileage,
Description = Description,
Notes = Notes,
Files = Files,
Tags = Tags,
ExtraFields = ExtraFields,
RequisitionHistory = RequisitionHistory
};
}
}
}