This commit is contained in:
2021-03-02 15:34:05 +00:00
parent 054f25efbe
commit c1cccba712
9 changed files with 58 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ namespace AyaNova.Models
[Required]
public string Name { get; set; }
public string Notes { get; set; }
public string Wiki { get; set; }
public string CustomFields { get; set; }
@@ -26,15 +26,27 @@ namespace AyaNova.Models
public DateTime DateRequested { get; set; }
[Required]
public long CustomerId { get; set; }
[NotMapped]
public string CustomerViz { get; set; }
public long? UnitId { get; set; }
[NotMapped]
public string UnitViz { get; set; }
public long? WorkorderItemId { get; set; }
[NotMapped]
public string WorkorderItemViz { get; set; }
[Required]
public long RequestedByUserId { get; set; }
[NotMapped]
public string RequestedByUserViz { get; set; }
public string CustomerReferenceNumber { get; set; }
[Required]
public CustomerServiceRequestStatus Status { get; set; }
[NotMapped]
public string StatusViz { get; set; }
[Required]
public CustomerServiceRequestPriority Priority { get; set; }
[NotMapped]
public string PriorityViz { get; set; }
public CustomerServiceRequest()
{

View File

@@ -29,6 +29,8 @@ namespace AyaNova.Models
public DateTime StopDate { get; set; }
[Required]
public long UserId { get; set; }
[NotMapped]
public string UserViz { get; set; }
/*
Hexadecimal notation: #RGB[A]
R (red), G (green), B (blue), and A (alpha) are hexadecimal characters (09, AF). A is optional. The three-digit notation (#RGB) is a shorter version of the six-digit form (#RRGGBB). For example, #f09 is the same color as #ff0099. Likewise, the four-digit RGB notation (#RGBA) is a shorter version of the eight-digit form (#RRGGBBAA). For example, #0f38 is the same color as #00ff3388.

View File

@@ -26,6 +26,8 @@ namespace AyaNova.Models
[Required]
public string Number { get; set; }
public long? VendorId { get; set; }
[NotMapped]
public string VendorViz { get; set; }
public string UPC { get; set; }
public bool LifeTimeWarranty { get; set; }
public DateTime? IntroducedDate { get; set; }
@@ -36,7 +38,7 @@ namespace AyaNova.Models
public UnitModel()
{
Tags = new List<string>();
Tags = new List<string>();
}
[NotMapped, JsonIgnore]