CheckListRow megjelenítése

This commit is contained in:
2025-03-26 09:14:27 +01:00
parent ace4130f31
commit 83980667d7
4 changed files with 215 additions and 2 deletions
@@ -38,9 +38,22 @@ namespace WorkFlowCheck.BL.Services
var res = await _dbContext.CheckListHeaders
.Where(w => w.Id == Id)
.Include(i => i.CheckListRows)
.ThenInclude(r => r.CheckListTemplateRow)
.ThenInclude(r => r.CheckPoint)
.Include(i => i.CheckListRows)
.ThenInclude(r => r.CheckListTemplateRow)
.ThenInclude(r => r.Equipment)
.AsNoTracking()
.FirstOrDefaultAsync();
if (res != null)
{
res.CheckListRows = res.CheckListRows
.OrderBy(r => r.CheckListTemplateRow.CheckPoint?.ShortName ?? string.Empty)
.ThenBy(r => r.CheckListTemplateRow.RowIndex)
.ToList();
}
if (res != null)
{
retVal = _mapper.Map<CheckListHeaderDTO>(res);