DeliveryPart: Add gebunden field
This commit is contained in:
@ -438,6 +438,10 @@
|
||||
<Label Content="Ried:" Margin="10,70,0,10" Grid.Column="0"/>
|
||||
<ComboBox x:Name="WineRdInput" Margin="0,70,10,10" Grid.Column="1"
|
||||
DisplayMemberPath="Name"/>
|
||||
|
||||
<CheckBox x:Name="GebundenInput" Content="Gebunden" Margin="10,105,0,0" Grid.Column="0" Grid.ColumnSpan="2" IsThreeState="True"
|
||||
VerticalAlignment="Top" HorizontalAlignment="Left"
|
||||
Checked="CheckBox_Changed" Unchecked="CheckBox_Changed"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
|
@ -227,6 +227,15 @@ namespace Elwig.Windows {
|
||||
GerebeltGewogenInput.IsEnabled = true;
|
||||
UnsetDefaultValue(GerebeltGewogenInput);
|
||||
}
|
||||
if (App.Client.IsMatzen || App.Client.IsWinzerkeller) {
|
||||
GebundenInput.IsChecked = null;
|
||||
GebundenInput.IsEnabled = false;
|
||||
SetDefaultValue(GebundenInput);
|
||||
} else {
|
||||
GebundenInput.IsChecked = null;
|
||||
GebundenInput.IsEnabled = true;
|
||||
UnsetDefaultValue(GebundenInput);
|
||||
}
|
||||
|
||||
WineQualityLevelInput.IsEnabled = false;
|
||||
|
||||
@ -702,6 +711,7 @@ namespace Elwig.Windows {
|
||||
AcidInput.Text = (p != null && p.Acid != null) ? $"{p.Acid:N1}" : "";
|
||||
LesewagenInput.IsChecked = p?.IsLesewagen ?? false;
|
||||
HandPickedInput.IsChecked = p?.IsHandPicked;
|
||||
GebundenInput.IsChecked = p?.IsGebunden;
|
||||
|
||||
ScaleId = p?.ScaleId;
|
||||
WeighingId = p?.WeighingId;
|
||||
@ -759,6 +769,7 @@ namespace Elwig.Windows {
|
||||
p.IsGerebelt = GerebeltGewogenInput.IsChecked ?? false;
|
||||
p.IsHandPicked = HandPickedInput.IsChecked;
|
||||
p.IsLesewagen = LesewagenInput.IsChecked;
|
||||
p.IsGebunden = GebundenInput.IsChecked;
|
||||
p.Temperature = (TemperatureInput.Text == "") ? null : double.Parse(TemperatureInput.Text);
|
||||
p.Acid = (AcidInput.Text == "") ? null : double.Parse(AcidInput.Text);
|
||||
p.Comment = (PartCommentInput.Text == "") ? null : PartCommentInput.Text;
|
||||
|
Reference in New Issue
Block a user