This commit is contained in:
2024-08-15 17:13:28 +08:00
parent 454b39d8f9
commit 787a297ca9
4 changed files with 189 additions and 1 deletions

View File

@@ -483,6 +483,7 @@ namespace Tnb.ProductionMgr
upmat_location_id = f.upmat_location_id,
downmat_location_id = f.as_location_id,
instock_warehouse_id = f.as_location_id,
mold_location_id = g.location_id,
})
.MergeTable()
.OrderBy($"{input.sidx} {input.sort}")
@@ -507,6 +508,12 @@ namespace Tnb.ProductionMgr
item.downmat_location_code = basLocation.location_code;
}
if (!string.IsNullOrEmpty(item.mold_location_id))
{
ToolLocation basLocation = await _db.Queryable<ToolLocation>().SingleAsync(x => x.id == item.mold_location_id);
item.mold_location_code = basLocation.location_code;
}
if (item.schedule_type == 2)
{
PerProcessStandardsH processStandardsH = await _db.Queryable<PerProcessStandardsH>()