BUGFIX valu mentésére
This commit is contained in:
@@ -162,6 +162,7 @@
|
||||
<Entry Grid.Column="3"
|
||||
Text="{Binding Answer}"
|
||||
HorizontalTextAlignment="Center"
|
||||
TextChanged="V_Entry_Text_Changed"
|
||||
VerticalOptions="Center" />
|
||||
</Grid>
|
||||
</Frame>
|
||||
|
||||
@@ -124,14 +124,19 @@ public partial class CheckListWorkPage : ContentPage
|
||||
|
||||
if (checkListRowDTO != null)
|
||||
{
|
||||
checkListRowDTO.Answer = checkListRowCS.Answer;
|
||||
if (checkListRowCS.AnswerYes == true)
|
||||
{
|
||||
checkListRowDTO.Answer = "Igen";
|
||||
}
|
||||
if (checkListRowCS.AnswerNo == true)
|
||||
else if (checkListRowCS.AnswerNo == true)
|
||||
{
|
||||
checkListRowDTO.Answer = "Nem";
|
||||
}
|
||||
else
|
||||
{
|
||||
checkListRowDTO.Answer = checkListRowCS.Answer;
|
||||
}
|
||||
await _checkListService.UpdateCheckListRow(checkListRowDTO, withReload);
|
||||
}
|
||||
}
|
||||
@@ -192,7 +197,7 @@ public partial class CheckListWorkPage : ContentPage
|
||||
var checkListRowDTO = CheckListRowDTOs.FirstOrDefault(w => w.Id == checkListRowCS.Id);
|
||||
if (checkListRowDTO != null)
|
||||
{
|
||||
checkListRowDTO.Photo = checkListRowCS.PhotoBytes;
|
||||
checkListRowDTO.Photo = checkListRowCS.PhotoBytes;
|
||||
checkListRowDTO.Answer = "Igen";
|
||||
|
||||
await _checkListService.UpdateCheckListRow(checkListRowDTO, true);
|
||||
@@ -249,6 +254,15 @@ public partial class CheckListWorkPage : ContentPage
|
||||
IsLoading = false;
|
||||
}
|
||||
|
||||
private void V_Entry_Text_Changed(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
var entry = sender as Entry;
|
||||
var model = entry?.BindingContext as CheckListRowCS;
|
||||
if (model != null)
|
||||
{
|
||||
model.Answer = e.NewTextValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
public class BindableRadioButton : RadioButton
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user