Backend BUGFIX
This commit is contained in:
@@ -413,8 +413,8 @@ namespace WorkFlowCheck.BL.Services
|
||||
}
|
||||
await _dbContext.SaveChangesAsync();
|
||||
retVal = _mapper.Map<CheckListHeaderDTO>(res);
|
||||
|
||||
if (NeedBlocking(checkListHeaderDTO))
|
||||
string Answer = "";
|
||||
if (NeedBlocking(checkListHeaderDTO, out Answer))
|
||||
{
|
||||
/// TODO: blokkolás miatt
|
||||
res.CheckStatus = CheckStatus.Blocked;
|
||||
@@ -429,7 +429,7 @@ namespace WorkFlowCheck.BL.Services
|
||||
var deviceMessageDTO = new DeviceMessageDTO()
|
||||
{
|
||||
IsReaded = false,
|
||||
Message = $"Ellenőrző lap blokkolva! [{checkListHeaderDTO.DocumentNumber}]",
|
||||
Message = $"Ellenőrző lap blokkolva! [{checkListHeaderDTO.DocumentNumber}]\n({Answer})",
|
||||
SendDate = DateTime.UtcNow,
|
||||
ExtraDataJSON = "",
|
||||
RoleId = item.ParentId,
|
||||
@@ -451,7 +451,7 @@ namespace WorkFlowCheck.BL.Services
|
||||
}
|
||||
|
||||
res.CheckStatus = CheckStatus.InProgress;
|
||||
|
||||
|
||||
if (CheckIfLastReached(checkListHeaderDTO))
|
||||
{
|
||||
/// TODO: most kell a CheckStatust állítani és menjen üzenet !
|
||||
@@ -474,9 +474,10 @@ namespace WorkFlowCheck.BL.Services
|
||||
|
||||
return retVal;
|
||||
}
|
||||
private bool NeedBlocking(CheckListHeaderDTO checkListHeaderDTO)
|
||||
private bool NeedBlocking(CheckListHeaderDTO checkListHeaderDTO, out string Answer)
|
||||
{
|
||||
var retVal = false;
|
||||
Answer = "";
|
||||
if (checkListHeaderDTO.CheckListRowDTO != null && checkListHeaderDTO.CheckListRowDTO.Count > 0)
|
||||
{
|
||||
var checkListRows = checkListHeaderDTO.CheckListRowDTO;
|
||||
@@ -486,6 +487,7 @@ namespace WorkFlowCheck.BL.Services
|
||||
{
|
||||
if (row.CheckListTemplateRowDTO != null)
|
||||
{
|
||||
Answer = row.CheckListTemplateRowDTO.OperationDescription;
|
||||
if (row.CheckListTemplateRowDTO.AnswerType == "PI-N" && row.Answer == "Igen")
|
||||
{
|
||||
retVal = true;
|
||||
|
||||
Reference in New Issue
Block a user