1.1.033 Fényképek beküldése javítása

This commit is contained in:
2025-07-01 08:30:34 +02:00
parent 4f149f4eef
commit 8208b31d08
13 changed files with 34 additions and 13 deletions
@@ -109,7 +109,7 @@ public partial class CheckListWorkPage : ContentPage
}
}
private async Task OnSave()
private async Task OnSave(bool withReload = true)
{
IsLoading = true;
try
@@ -126,9 +126,9 @@ public partial class CheckListWorkPage : ContentPage
{
checkListRow.Answer = "Nem";
}
await _checkListService.UpdateCheckListRow(checkListRow);
await _checkListService.UpdateCheckListRow(checkListRow, withReload);
}
await LoadCheckPointCheckListRows();
if (withReload) await LoadCheckPointCheckListRows();
});
}
catch (Exception)
@@ -175,14 +175,14 @@ public partial class CheckListWorkPage : ContentPage
{
if (MediaPicker.IsCaptureSupported)
{
//await OnSave();
await OnSave(false);
var photo = await MediaPicker.CapturePhotoAsync();
if (photo != null)
{
checkListRowDTO.Photo = await ResizePicture(photo, 500);
checkListRowDTO.Answer = "Igen";
await _checkListService.UpdateCheckListRow(checkListRowDTO);
await _checkListService.UpdateCheckListRow(checkListRowDTO, true);
await LoadCheckPointCheckListRows();
}
}