Beküldés és mentés javítása

This commit is contained in:
2025-04-02 16:52:25 +02:00
parent 90637b3848
commit 92c15072b8
@@ -101,19 +101,22 @@ public partial class CheckListWorkPage : ContentPage
IsLoading = true; IsLoading = true;
try try
{ {
foreach (var checkListRow in CheckListRows) await Task.Run(async () =>
{ {
if (checkListRow.AnswerYes == true) foreach (var checkListRow in CheckListRows)
{ {
checkListRow.Answer = "Igen"; if (checkListRow.AnswerYes == true)
{
checkListRow.Answer = "Igen";
}
if (checkListRow.AnswerNo == true)
{
checkListRow.Answer = "Nem";
}
await _checkListService.UpdateCheckListRow(checkListRow);
} }
if (checkListRow.AnswerNo == true) await LoadCheckPointCheckListRows();
{ });
checkListRow.Answer = "Nem";
}
await _checkListService.UpdateCheckListRow(checkListRow);
}
await LoadCheckPointCheckListRows();
} }
catch (Exception) catch (Exception)
{ {
@@ -162,7 +165,7 @@ public partial class CheckListWorkPage : ContentPage
using var resizedImage = surface.Snapshot(); using var resizedImage = surface.Snapshot();
using var data = resizedImage.Encode(SKEncodedImageFormat.Jpeg, 100); using var data = resizedImage.Encode(SKEncodedImageFormat.Jpeg, 100);
checkListRowDTO.Photo = data.ToArray(); checkListRowDTO.Photo = data.ToArray();
await _checkListService.UpdateCheckListRow(checkListRowDTO); await _checkListService.UpdateCheckListRow(checkListRowDTO);
await LoadCheckPointCheckListRows(); await LoadCheckPointCheckListRows();
@@ -201,7 +204,7 @@ public partial class CheckListWorkPage : ContentPage
IsLoading = false; IsLoading = false;
} }
} }
public class BindableRadioButton : RadioButton public class BindableRadioButton : RadioButton
{ {