This commit is contained in:
2024-06-06 16:39:05 +08:00
parent 9e177b69f7
commit 9b4a904b9b
5 changed files with 36 additions and 2 deletions

View File

@@ -473,7 +473,10 @@ namespace Tnb.ProductionMgr
third_equip_code = l.equip_code,
weight_name = l.label_point,
category_id = b.category_id,
as_location_id = f.as_location_id
as_location_id = f.as_location_id,
upmat_location_id = f.upmat_location_id,
downmat_location_id = f.as_location_id,
instock_warehouse_id = f.as_location_id,
})
.MergeTable()
.OrderBy($"{input.sidx} {input.sort}")
@@ -487,6 +490,16 @@ namespace Tnb.ProductionMgr
BasLocation basLocation = await _db.Queryable<BasLocation>().SingleAsync(x => x.id == item.as_location_id);
item.as_location_code = basLocation.location_code;
}
if (item.upmat_location_id!=null && !item.upmat_location_id.IsEmpty())
{
BasLocation basLocation = await _db.Queryable<BasLocation>().SingleAsync(x => x.id == item.upmat_location_id);
item.upmat_location_code = basLocation.location_code;
}
if (item.downmat_location_id!=null && !item.downmat_location_id.IsEmpty())
{
BasLocation basLocation = await _db.Queryable<BasLocation>().SingleAsync(x => x.id == item.downmat_location_id);
item.downmat_location_code = basLocation.location_code;
}
if (item.schedule_type == 2)
{