Implement details owned machine admin page.

This commit is contained in:
2019-05-30 00:39:46 +01:00
parent bfa78fdba6
commit 576643f72e
4 changed files with 82 additions and 35 deletions

View File

@@ -9,9 +9,27 @@ namespace cicm_web.Areas.Admin.Models
{
[DataType(DataType.Date)]
[DisplayName("Acquired")]
public DateTime AcquisitionDate { get; set; }
public StatusType Status { get; set; }
public string Machine { get; set; }
public string User { get; set; }
public DateTime AcquisitionDate { get; set; }
public StatusType Status { get; set; }
public string Machine { get; set; }
public string User { get; set; }
[DisplayName("Date when sold, traded, or otherwise lost")]
public DateTime? LostDate { get; set; }
[DisplayName("Last status check date")]
public DateTime? LastStatusDate { get; set; }
[DisplayName("Available for trade or sale")]
public bool Trade { get; set; }
[DisplayName("Has original boxes")]
public bool Boxed { get; set; }
[DisplayName("Has original manuals")]
public bool Manuals { get; set; }
[DisplayName("Serial number")]
public string SerialNumber { get; set; }
[DisplayName("Serial number visible to other users")]
public bool SerialNumberVisible { get; set; }
public string LostDateDisplay => LostDate?.ToLongDateString() ?? "Never";
public string LastStatusDateDisplay => LastStatusDate?.ToLongDateString() ?? "Never";
}
}