This commit is contained in:
@@ -928,7 +928,11 @@ namespace AyaNova.Biz
|
||||
|
||||
//WORKORDER ITEM UNIT
|
||||
l.Add(new FormField { TKey = "WorkOrderItemUnitNotes", FieldKey = "WorkOrderItemUnitNotes", TKeySection = "WorkOrderItemUnit" });
|
||||
l.Add(new FormField { TKey = "Unit", FieldKey = "WorkOrderItemUnit", TKeySection = "WorkOrderItemUnit" });
|
||||
l.Add(new FormField { TKey = "Unit", FieldKey = "WorkOrderItemUnit", TKeySection = "WorkOrderItemUnit" });
|
||||
l.Add(new FormField { TKey = "UnitModelModelNumber", FieldKey = "UnitModelModelNumber", TKeySection = "WorkOrderItemUnit" });
|
||||
l.Add(new FormField { TKey = "UnitModelVendorID", FieldKey = "UnitModelVendorID", TKeySection = "WorkOrderItemUnit" });
|
||||
l.Add(new FormField { TKey = "UnitModelName", FieldKey = "UnitModelName", TKeySection = "WorkOrderItemUnit" });
|
||||
l.Add(new FormField { TKey = "UnitDescription", FieldKey = "UnitDescription", TKeySection = "WorkOrderItemUnit" });
|
||||
l.Add(new FormField { TKey = "Tags", FieldKey = "WorkOrderItemUnitTags", TKeySection = "WorkOrderItemUnit" });
|
||||
l.Add(new FormField { TKey = "UnitWarrantyInfo", FieldKey = "UnitWarrantyInfo", TKeySection = "WorkOrderItemUnit" });
|
||||
l.Add(new FormField { TKey = "Wiki", FieldKey = "WorkOrderItemUnitWiki", TKeySection = "WorkOrderItemUnit" });
|
||||
|
||||
@@ -6016,6 +6016,11 @@ namespace AyaNova.Biz
|
||||
private async Task UnitPopulateVizFields(WorkOrderItemUnit o)
|
||||
{
|
||||
o.UnitViz = await ct.Unit.AsNoTracking().Where(x => x.Id == o.UnitId).Select(x => x.Serial).FirstOrDefaultAsync();
|
||||
|
||||
UnitModelModelNumber
|
||||
UnitModelVendorID
|
||||
UnitModelName
|
||||
UnitDescription
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -19,12 +19,22 @@ namespace AyaNova.Models
|
||||
public long UnitId { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitViz { get; set; }
|
||||
|
||||
|
||||
[Required]
|
||||
public long WorkOrderItemId { get; set; }
|
||||
[JsonIgnore]
|
||||
public WorkOrderItem WorkOrderItem { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string UnitModelNameViz { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitModelVendorViz { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitModelModelNumberViz { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitDescriptionViz { get; set; }
|
||||
|
||||
|
||||
|
||||
//workaround for notification
|
||||
[NotMapped, JsonIgnore]
|
||||
|
||||
Reference in New Issue
Block a user