MOBILE BUGFIX-ek

This commit is contained in:
2025-04-25 10:29:14 +02:00
parent 1294a00219
commit 62419a2c28
10 changed files with 266 additions and 67 deletions
+20 -1
View File
@@ -34,7 +34,7 @@ namespace WorkFlowCheck.MAUI.Services
await SyncEquipments_Down(reportProgress);
await SyncCheckListTemplates_Down(reportProgress);
await SyncCheckListHeader_Down(reportProgress);
await SyncUsers_Down(reportProgress);
await SyncUsers_Down(reportProgress);
}
public async Task DownloadAPK(Action<double, string> reportProgress)
{
@@ -290,6 +290,25 @@ namespace WorkFlowCheck.MAUI.Services
reportProgress(itemPercentage, "Adatbázis szinkronizáció..."); // Közvetlen progress jelentés
i++;
}
foreach (var checkListHeaderDTO in responseList.Data)
{
var checkListHeader = await _dbContext.CheckListHeaders.Where(w => w.Id == checkListHeaderDTO.Id).FirstOrDefaultAsync();
if (checkListHeader != null)
{
checkListHeader.CheckStatus = checkListHeaderDTO.CheckStatus;
await _dbContext.SaveChangesAsync();
//foreach (var checkListRow in checkListHeader.CheckListRows)
//{
// var checkListRowDTO = checkListHeaderDTO.CheckListRowDTO.Where(w => w.GuidNumber == checkListRow.GuidNumber).FirstOrDefault();
// if (checklistrow{
// }
//}
}
}
}
}
catch (Exception ex)