Revisionschächte werden nun mit abgelegt.

This commit is contained in:
2023-07-24 19:51:45 +02:00
parent cea3fc448b
commit a0067655b4
5 changed files with 31 additions and 3 deletions

View File

@@ -138,6 +138,19 @@ namespace StammGenerator.ViewModel
}
}
public ESchachtType SchachtType
{
get => _model.SchachtType;
set
{
if(_model.SchachtType != value)
{
_model.SchachtType = value;
OnPropertyChanged();
}
}
}
public ManholeEditViewModel(ISchachtDataService schachtDataService,IActualState actualState, IRenavigator renavigator)
{
_schachtDataService = schachtDataService;

View File

@@ -29,6 +29,7 @@
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition />
</Grid.RowDefinitions>
@@ -42,6 +43,7 @@
<Label Grid.Column="0" Grid.Row="7" Content="Vermesser" />
<Label Grid.Column="0" Grid.Row="8" Content="Aufnahmedatum" />
<Label Grid.Column="0" Grid.Row="9" Content="Entwässerungsart" />
<Label Grid.Column="0" Grid.Row="10" Content="SchachtType" />
<TextBox Margin="2" Grid.Column="1" Grid.Row="0" Text="{Binding Objektbezeichnung}" />
<TextBox Margin="2" Grid.Column="1" Grid.Row="1" Text="{Binding DeckelRechtsWert}" />
@@ -59,8 +61,14 @@
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Mischwasser" IsChecked="{Binding Entwaeserung, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:EEntwaeserung.Mischwasser}}" />
</DockPanel>
<DockPanel Grid.Column="1" Grid.Row="10">
<!-- SchachtType-->
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Hauptkanal" IsChecked="{Binding SchachtType, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:ESchachtType.Hauptkanal}}" />
<RadioButton Style="{StaticResource ToggleButtonList}" Content="Revision" IsChecked="{Binding SchachtType, Converter={StaticResource EqualValueToParameterConverter},ConverterParameter={x:Static stat:ESchachtType.Revisionschacht}}" />
</DockPanel>
<StackPanel Grid.ColumnSpan="2" Grid.Row="10">
<StackPanel Grid.ColumnSpan="2" Grid.Row="11">
<Button Content="Speichern" Command="{Binding Speichern}" />
</StackPanel>

View File

@@ -20,6 +20,7 @@
<!--<DataGridTextColumn Header="Sohlhöhe" Binding="{Binding SohlHoehe}" />-->
<!--<DataGridTextColumn Header="Deckelhöhe" Binding="{Binding DeckelHoehe}" />-->
<DataGridTextColumn Header="Entwässerung" Binding="{Binding Entwaesserung}" />
<DataGridTextColumn Header="SchachtTyp" Binding="{Binding SchachtType}" />
</DataGrid.Columns>
</DataGrid>
<StackPanel Grid.Row="1">