Tätigkeiten überarbeitet.
This commit is contained in:
@@ -23,8 +23,11 @@
|
||||
<DataTemplate DataType="{x:Type model:Taetigkeiten}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding LeistungsverzeichnisPosition.Beschreibung}" />
|
||||
<TextBlock Text=" " />
|
||||
<TextBlock Text="{Binding ZeitStempel, Converter={StaticResource IstFertigZuTextConverter}}" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
|
||||
</TreeView.Resources>
|
||||
|
||||
</TreeView>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<ControlTemplate TargetType="{x:Type Calendar}">
|
||||
<StackPanel HorizontalAlignment="Center" Name="PART_Root">
|
||||
<CalendarItem Background="{TemplateBinding Control.Background}" BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="{TemplateBinding Control.BorderThickness}" Name="PART_CalendarItem" Style="{TemplateBinding Calendar.CalendarItemStyle}" />
|
||||
<Button Content="Heute" Command="local:CalendarCommands.SelectToday" CommandParameter="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
|
||||
<Button Content="Heute" Background="{Binding Erledigt, Converter={StaticResource IstFertigZuBackgroundConverter}}" Command="local:CalendarCommands.SelectToday" CommandParameter="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
|
||||
</StackPanel>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
@@ -51,6 +51,7 @@
|
||||
<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"/>
|
||||
<Button Grid.Row="2" Grid.Column="1" Content="Löschen" Margin="400,100,10,20" Name="ErledigtLöschen" Click="ErledigtLöschen_Click" />
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" ItemsSource="{Binding LVPositionen}" DisplayMemberPath="Beschreibung" SelectedValuePath="Beschreibung" SelectedItem="{Binding Leistungsverzeichnis, Mode=TwoWay}">
|
||||
<!--<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
@@ -62,7 +63,7 @@
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding Anzahl}" />
|
||||
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding Bemerkung}"/>
|
||||
<Button Grid.Row="6" Grid.ColumnSpan="2" Content="Speichern" Name="Speichern" Click="Speichern_Click" />
|
||||
<Button Grid.Row="7" Grid.ColumnSpan="2" Content="Güteschutzprotokoll" IsEnabled="{Binding HatGueteschutzProtokoll}" />
|
||||
<Button Grid.Row="7" Grid.ColumnSpan="2" Content="Güteschutzprotokoll" IsEnabled="{Binding HatGueteschutzProtokoll}" Name="Güteschutzprotokoll" Click="Güteschutzprotokoll_Click" />
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace KanSan.UI
|
||||
{
|
||||
InitializeComponent();
|
||||
this.DataContext = new TaetigkeitEditViewModel(taetigkeit);
|
||||
|
||||
}
|
||||
|
||||
private void Speichern_Click(object sender, RoutedEventArgs e)
|
||||
@@ -55,5 +56,16 @@ namespace KanSan.UI
|
||||
{
|
||||
e.CanExecute = true;
|
||||
}
|
||||
|
||||
private void Güteschutzprotokoll_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ErledigtLöschen_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
(DataContext as TaetigkeitEditViewModel).LöscheErledigt();
|
||||
MessageBox.Show("Eintrag wurde als gelöscht Markiert");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user