Na most jó a blokkolós cucc

This commit is contained in:
2025-04-08 15:14:19 +02:00
parent d21ff69cc8
commit ac48e676df
2 changed files with 15 additions and 2 deletions
@@ -302,7 +302,7 @@ namespace WorkFlowCheck.BL.Services
try
{
var checkListHeader = await _dbContext.CheckListHeaders
.Where(w => w.Id == id && w.CheckStatus == CheckStatus.Sent)
.Where(w => w.Id == id && w.CheckStatus == CheckStatus.InProgress)
.FirstOrDefaultAsync();
if (checkListHeader != null && checkListHeader.CheckStatus == CheckStatus.InProgress)
@@ -313,6 +313,10 @@ namespace WorkFlowCheck.BL.Services
Log.Warning($"Ellenőrzési lap blokkolva: Ellenőrzés:{id}, Felhasználó:{userid}");
await _dbContext.SaveChangesAsync();
retVal = true;
}
}
@@ -331,7 +335,7 @@ namespace WorkFlowCheck.BL.Services
try
{
var checkListHeader = await _dbContext.CheckListHeaders
.Where(w => w.Id == id && w.CheckStatus == CheckStatus.Sent)
.Where(w => w.Id == id && w.CheckStatus == CheckStatus.Blocked)
.FirstOrDefaultAsync();
if (checkListHeader != null && checkListHeader.CheckStatus == CheckStatus.Blocked)