UI BUGFIX

This commit is contained in:
2025-04-09 15:37:30 +02:00
parent d383ccccbd
commit e3ee93c74c
5 changed files with 74 additions and 15 deletions
@@ -5,6 +5,7 @@ using Newtonsoft.Json;
using System.Net.Http.Json;
using System.Runtime.CompilerServices;
using WorkFlowCheck.Common.DTO;
using WorkFlowCheck.Common.Enums;
using WorkFlowCheck.MAUI.DataLayer;
using WorkFlowCheck.MAUI.Services.Interfaces;
@@ -94,7 +95,11 @@ namespace WorkFlowCheck.MAUI.Services
var retVal = new List<CheckListHeaderDTO>();
try
{
var res = await _dbContext.CheckListHeaders.ToListAsync();
var res = await _dbContext.CheckListHeaders
.Where(w => w.CheckStatus == CheckStatus.Open ||
w.CheckStatus == CheckStatus.InProgress ||
w.CheckStatus == CheckStatus.Blocked)
.ToListAsync();
retVal = _mapper.Map<List<CheckListHeaderDTO>>(res);
}
catch (Exception ex)