BUGFIX Scroll javítása 1.1.035
This commit is contained in:
@@ -14,7 +14,7 @@ namespace WorkFlowCheck.Common.DTO
|
|||||||
public int CheckListHeaderId { get; set; }
|
public int CheckListHeaderId { get; set; }
|
||||||
public int CheckListTemplateRowId { get; set; }
|
public int CheckListTemplateRowId { get; set; }
|
||||||
public CheckListTemplateRowDTO? CheckListTemplateRowDTO { get; set; }
|
public CheckListTemplateRowDTO? CheckListTemplateRowDTO { get; set; }
|
||||||
public string GroupName => $"AnswerGroup_{CheckListTemplateRowDTO?.RowIndex ?? 0}";
|
public string GroupName => $"AnswerGroup_{CheckListTemplateRowDTO?.Id ?? 0}";
|
||||||
|
|
||||||
[DisplayName("Eredmény")]
|
[DisplayName("Eredmény")]
|
||||||
public string Answer { get; set; } = null!;
|
public string Answer { get; set; } = null!;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace WorkFlowCheck.MAUI.Helper
|
|||||||
public static string DatabaseName = "";
|
public static string DatabaseName = "";
|
||||||
public static bool Syncronised = false;
|
public static bool Syncronised = false;
|
||||||
public static UserDTO SystemUserDTO;
|
public static UserDTO SystemUserDTO;
|
||||||
public static string ProgramVersion = "v1.1.033";
|
public static string ProgramVersion = "v1.1.035";
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
//public static string ApiBaseUrl = $"http://10.0.2.2:59027/";
|
//public static string ApiBaseUrl = $"http://10.0.2.2:59027/";
|
||||||
|
|||||||
@@ -104,14 +104,14 @@
|
|||||||
Content="Igen"
|
Content="Igen"
|
||||||
Value="Igen"
|
Value="Igen"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerYes}"
|
IsChecked="{Binding AnswerYes, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
<local:BindableRadioButton
|
<local:BindableRadioButton
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Content="Nem"
|
Content="Nem"
|
||||||
Value="Nem"
|
Value="Nem"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerNo}"
|
IsChecked="{Binding AnswerNo, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -185,14 +185,14 @@
|
|||||||
Content="Igen"
|
Content="Igen"
|
||||||
Value="Igen"
|
Value="Igen"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerYes}"
|
IsChecked="{Binding AnswerYes, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
<local:BindableRadioButton
|
<local:BindableRadioButton
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Content="Nem"
|
Content="Nem"
|
||||||
Value="Nem"
|
Value="Nem"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerNo}"
|
IsChecked="{Binding AnswerNo, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -219,14 +219,14 @@
|
|||||||
Content="Igen"
|
Content="Igen"
|
||||||
Value="Igen"
|
Value="Igen"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerYes}"
|
IsChecked="{Binding AnswerYes, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
<local:BindableRadioButton
|
<local:BindableRadioButton
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Content="Nem"
|
Content="Nem"
|
||||||
Value="Nem"
|
Value="Nem"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerNo}"
|
IsChecked="{Binding AnswerNo, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -253,14 +253,14 @@
|
|||||||
Content="Igen"
|
Content="Igen"
|
||||||
Value="Igen"
|
Value="Igen"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerYes}"
|
IsChecked="{Binding AnswerYes, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
<local:BindableRadioButton
|
<local:BindableRadioButton
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Content="Nem"
|
Content="Nem"
|
||||||
Value="Nem"
|
Value="Nem"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerNo}"
|
IsChecked="{Binding AnswerNo, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -287,14 +287,14 @@
|
|||||||
Content="Igen"
|
Content="Igen"
|
||||||
Value="Igen"
|
Value="Igen"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerYes}"
|
IsChecked="{Binding AnswerYes, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
<local:BindableRadioButton
|
<local:BindableRadioButton
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Content="Nem"
|
Content="Nem"
|
||||||
Value="Nem"
|
Value="Nem"
|
||||||
BindableGroupName="{Binding GroupName}"
|
BindableGroupName="{Binding GroupName}"
|
||||||
IsChecked="{Binding AnswerNo}"
|
IsChecked="{Binding AnswerNo, Mode=TwoWay}"
|
||||||
HorizontalOptions="Center" VerticalOptions="Center"/>
|
HorizontalOptions="Center" VerticalOptions="Center"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -239,6 +239,33 @@ public class BindableRadioButton : RadioButton
|
|||||||
radioButton.GroupName = newGroupName;
|
radioButton.GroupName = newGroupName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public BindableRadioButton()
|
||||||
|
{
|
||||||
|
CheckedChanged += OnCheckedChangedInternal;
|
||||||
|
}
|
||||||
|
private void OnCheckedChangedInternal(object sender, CheckedChangedEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Value && BindingContext is CheckListRowDTO dto)
|
||||||
|
{
|
||||||
|
if (Value?.ToString() == "Igen")
|
||||||
|
dto.Answer = "Igen";
|
||||||
|
else if (Value?.ToString() == "Nem")
|
||||||
|
dto.Answer = "Nem";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnBindingContextChanged()
|
||||||
|
{
|
||||||
|
base.OnBindingContextChanged();
|
||||||
|
|
||||||
|
if (BindingContext is CheckListRowDTO dto)
|
||||||
|
{
|
||||||
|
if (Value?.ToString() == "Igen")
|
||||||
|
IsChecked = dto.Answer == "Igen";
|
||||||
|
else if (Value?.ToString() == "Nem")
|
||||||
|
IsChecked = dto.Answer == "Nem";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public class ByteArrayToImageSourceConverter : IValueConverter
|
public class ByteArrayToImageSourceConverter : IValueConverter
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user