Ausgewählte Leistung wird in tätigkeit dargestellt
This commit is contained in:
@@ -182,9 +182,17 @@ namespace KanSan
|
||||
{
|
||||
|
||||
UI.UCLeistungsverzeichnisPosition uCLeistungsverzeichnisPosition = new UI.UCLeistungsverzeichnisPosition(e.LeistungsverzeichnisPosition);
|
||||
uCLeistungsverzeichnisPosition.SpeichernClicked += UCLeistungsverzeichnisPosition_SpeichernClicked;
|
||||
ContentController.Content = uCLeistungsverzeichnisPosition;
|
||||
}
|
||||
|
||||
private void UCLeistungsverzeichnisPosition_SpeichernClicked(object sender, EventArgs e)
|
||||
{
|
||||
UCLeistungsverzeichnisPosList = new UI.UCLeistungsverzeichnisPosList();
|
||||
UCLeistungsverzeichnisPosList.LeistungsverzeichnisEdited += UCLeistungsverzeichnisPosList_LeistungsverzeichnisEdited;
|
||||
ContentController.Content = UCLeistungsverzeichnisPosList;
|
||||
}
|
||||
|
||||
private void rbLeistungsverzeichnisBaustellen_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
rbBaustellen.IsChecked = false;
|
||||
|
||||
@@ -20,6 +20,14 @@ namespace KanSan.UI
|
||||
/// </summary>
|
||||
public partial class UCLeistungsverzeichnisPosition : UserControl
|
||||
{
|
||||
public event EventHandler SpeichernClicked;
|
||||
|
||||
protected virtual void OnSpeichernClicked(EventArgs e)
|
||||
{
|
||||
EventHandler handler = SpeichernClicked;
|
||||
if (handler != null)
|
||||
handler(this, e);
|
||||
}
|
||||
public UCLeistungsverzeichnisPosition(LeistungsverzeichnisPosition leistungsverzeichnisPosition)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -30,6 +38,7 @@ namespace KanSan.UI
|
||||
private void Save_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
(DataContext as LeistungsverzeichnisPositionViewModel).Speichern();
|
||||
OnSpeichernClicked(EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,12 +50,12 @@
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Mitarbeiter}" />
|
||||
|
||||
<Calendar Style="{StaticResource DefaultCalendar}" Grid.Row="2" Grid.Column="1" Name="Calender" SelectedDate="{Binding ZeitStempel}" Margin="-220,0,0,0"/>
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" ItemsSource="{Binding LVPositionen}" SelectedItem="{Binding Leistungsverzeichnis}" IsSynchronizedWithCurrentItem="True">
|
||||
<ComboBox.ItemTemplate>
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" ItemsSource="{Binding LVPositionen}" DisplayMemberPath="Beschreibung" SelectedValuePath="Beschreibung" SelectedItem="{Binding Leistungsverzeichnis, Mode=TwoWay}">
|
||||
<!--<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Beschreibung}" />
|
||||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox.ItemTemplate>-->
|
||||
</ComboBox>
|
||||
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Anzahl}" />
|
||||
|
||||
Reference in New Issue
Block a user