Na most jó a blokkolós cucc
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -127,6 +127,15 @@ function renderActionButtonsforCheckListHeader(data, rowId) {
|
||||
<i class="bi bi-arrow-clockwise"></i>
|
||||
</button>`;
|
||||
}
|
||||
if (data === 1) {
|
||||
return `
|
||||
<button class="btn btn-primary edit-btn btn-sm" data-id="${rowId}">
|
||||
<i class="bi bi-pencil-fill"></i>
|
||||
</button>
|
||||
<button class="btn btn-danger block-btn btn-sm" data-id="${rowId}">
|
||||
<i class="bi bi bi-sign-stop"></i>
|
||||
</button>`;
|
||||
}
|
||||
if (data === 5) {
|
||||
return `
|
||||
<button class="btn btn-danger pdf-btn btn-sm" data-id="${rowId}">
|
||||
|
||||
Reference in New Issue
Block a user