This commit is contained in:
2021-05-03 21:46:38 +00:00
parent ed474ac354
commit 67a84b020e
2 changed files with 6 additions and 0 deletions

View File

@@ -557,6 +557,10 @@ namespace AyaNova.Biz
//popup Alert notes
o.AlertViz = await ct.Customer.AsNoTracking().Where(x => x.Id == o.CustomerId).Select(x => x.PopUpNotes).FirstOrDefaultAsync();
//project viz
if (o.ProjectId != null)
o.ProjectViz = await ct.Project.AsNoTracking().Where(x => x.Id == o.ProjectId).Select(x => x.Name).FirstOrDefaultAsync();
}

View File

@@ -31,6 +31,8 @@ namespace AyaNova.Models
[Required]
public long CustomerId { get; set; }
public long? ProjectId { get; set; }
[NotMapped]
public string ProjectViz { get; set; }
public string InternalReferenceNumber { get; set; }
public string CustomerReferenceNumber { get; set; }
public string CustomerContactName { get; set; }