This commit is contained in:
@@ -176,9 +176,10 @@ namespace AyaNova.Biz
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
var partInfo = await ct.Part.AsNoTracking().Where(x => x.Id == item.PartId).Select(x => new { partViz = x.PartNumber, partNameViz = x.Name }).FirstOrDefaultAsync();
|
var partInfo = await ct.Part.AsNoTracking().Where(x => x.Id == item.PartId).Select(x => new { partViz = x.PartNumber, partNameViz = x.Name, partunitofmeasureviz = x.UnitOfMeasure }).FirstOrDefaultAsync();
|
||||||
item.PartViz = partInfo.partViz;
|
item.PartViz = partInfo.partViz;
|
||||||
item.PartNameViz = partInfo.partNameViz;
|
item.PartNameViz = partInfo.partNameViz;
|
||||||
|
item.PartUnitOfMeasureViz = partInfo.partunitofmeasureviz;
|
||||||
item.WarehouseViz = await ct.PartWarehouse.AsNoTracking().Where(x => x.Id == item.PartWarehouseId).Select(x => x.Name).FirstOrDefaultAsync();
|
item.WarehouseViz = await ct.PartWarehouse.AsNoTracking().Where(x => x.Id == item.PartWarehouseId).Select(x => x.Name).FirstOrDefaultAsync();
|
||||||
if (item.WorkOrderItemPartRequestId != null)
|
if (item.WorkOrderItemPartRequestId != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ namespace AyaNova.Models
|
|||||||
[NotMapped]
|
[NotMapped]
|
||||||
public string PartNameViz { get; set; }
|
public string PartNameViz { get; set; }
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
|
public string PartUnitOfMeasureViz { get; set; }
|
||||||
|
[NotMapped]
|
||||||
public string WarehouseViz { get; set; }
|
public string WarehouseViz { get; set; }
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
public string PartRequestedByViz { get; set; }//DisplayRequestUser
|
public string PartRequestedByViz { get; set; }//DisplayRequestUser
|
||||||
|
|||||||
Reference in New Issue
Block a user