CheckListRow megjelenítése
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user