This commit is contained in:
@@ -557,6 +557,10 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
//popup Alert notes
|
//popup Alert notes
|
||||||
o.AlertViz = await ct.Customer.AsNoTracking().Where(x => x.Id == o.CustomerId).Select(x => x.PopUpNotes).FirstOrDefaultAsync();
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ namespace AyaNova.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public long CustomerId { get; set; }
|
public long CustomerId { get; set; }
|
||||||
public long? ProjectId { get; set; }
|
public long? ProjectId { get; set; }
|
||||||
|
[NotMapped]
|
||||||
|
public string ProjectViz { get; set; }
|
||||||
public string InternalReferenceNumber { get; set; }
|
public string InternalReferenceNumber { get; set; }
|
||||||
public string CustomerReferenceNumber { get; set; }
|
public string CustomerReferenceNumber { get; set; }
|
||||||
public string CustomerContactName { get; set; }
|
public string CustomerContactName { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user