ManuelleKontenBearbeiten.xaml 6.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <Window x:Class="GCHR.View.ManuelleKontenBearbeiten"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:konto="clr-namespace:GCHR.Model.Konto"
  6. mc:Ignorable="d"
  7. x:Name="Root"
  8. Title="Manuelle Konten bearbeiten" Height="480" Width="780">
  9. <Grid Name="GridManuelle">
  10. <Grid.Background>
  11. <LinearGradientBrush StartPoint="0,1" EndPoint="0,0">
  12. <GradientStop Color="#FF9EBFDE" Offset=".5"/>
  13. <GradientStop Color="#FF30567A" Offset="1"/>
  14. </LinearGradientBrush>
  15. </Grid.Background>
  16. <Label Margin="12,12,12,0" VerticalAlignment="Top" Foreground="White">Bitte geben Sie die aktuellen Werte für die manuellen Konten ein:</Label>
  17. <ListView Name="LvManuelle" Opacity="1.0" Margin="12,36,12,42" Focusable="True" KeyboardNavigation.TabNavigation="Continue" HorizontalContentAlignment="Stretch">
  18. <ListView.ItemContainerStyle>
  19. <Style TargetType="{x:Type ListViewItem}">
  20. <Setter Property="IsTabStop" Value="False" />
  21. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  22. <Setter Property="VerticalContentAlignment" Value="Stretch" />
  23. </Style>
  24. </ListView.ItemContainerStyle>
  25. <ListView.View>
  26. <GridView AllowsColumnReorder="False">
  27. <GridViewColumn Width="90" Header="Kontonummer">
  28. <GridViewColumn.CellTemplate>
  29. <DataTemplate DataType="konto:HaendlerKonto">
  30. <Label HorizontalContentAlignment="Left" VerticalAlignment="Bottom" Content="{Binding Path=Kontonummer}" FontSize="18"/>
  31. </DataTemplate>
  32. </GridViewColumn.CellTemplate>
  33. </GridViewColumn>
  34. <GridViewColumn Header="Beschriftung">
  35. <GridViewColumn.CellTemplate>
  36. <DataTemplate>
  37. <Grid d:DataContext="{d:DesignData HaendlerKonto}">
  38. <Grid.ColumnDefinitions>
  39. <ColumnDefinition />
  40. </Grid.ColumnDefinitions>
  41. <Grid.RowDefinitions>
  42. <RowDefinition />
  43. <RowDefinition />
  44. </Grid.RowDefinitions>
  45. <Label HorizontalContentAlignment="Left" Content="{Binding Path=Bezeichnung}" FontSize="12" />
  46. <WrapPanel Grid.Row="1" TextElement.FontSize="9">
  47. <TextBox HorizontalContentAlignment="Right" IsReadOnly="True" IsTabStop="False" TextAlignment="Right" Width="70" Text="{Binding Path=Vormonat5, Mode=OneWay}" ToolTip="{Binding ElementName=Root, Path=Vormonat5, Mode=OneWay}" />
  48. <TextBox HorizontalContentAlignment="Right" IsReadOnly="True" IsTabStop="False" TextAlignment="Right" Width="70" Text="{Binding Path=Vormonat4, Mode=OneWay}" ToolTip="{Binding ElementName=Root, Path=Vormonat4, Mode=OneWay}" />
  49. <TextBox HorizontalContentAlignment="Right" IsReadOnly="True" IsTabStop="False" TextAlignment="Right" Width="70" Text="{Binding Path=Vormonat3, Mode=OneWay}" ToolTip="{Binding ElementName=Root, Path=Vormonat3, Mode=OneWay}" />
  50. <TextBox HorizontalContentAlignment="Right" IsReadOnly="True" IsTabStop="False" TextAlignment="Right" Width="70" Text="{Binding Path=Vormonat2, Mode=OneWay}" ToolTip="{Binding ElementName=Root, Path=Vormonat2, Mode=OneWay}" />
  51. <TextBox HorizontalContentAlignment="Right" IsReadOnly="True" IsTabStop="False" TextAlignment="Right" Width="70" Text="{Binding Path=Vormonat1, Mode=OneWay}" ToolTip="{Binding ElementName=Root, Path=Vormonat1, Mode=OneWay}" />
  52. </WrapPanel>
  53. </Grid>
  54. </DataTemplate>
  55. </GridViewColumn.CellTemplate>
  56. </GridViewColumn>
  57. <GridViewColumn Width="100" Header="Aktuelle Periode">
  58. <GridViewColumn.CellTemplate>
  59. <DataTemplate DataType="konto:HaendlerKonto">
  60. <TextBox HorizontalContentAlignment="Right" Text="{Binding Path=Saldo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" GotFocus="TextBoxGotFocus" KeyUp="TextBox_KeyUp" TextAlignment="Right" FontSize="12" VerticalAlignment="Bottom" Width="90"/>
  61. </DataTemplate>
  62. </GridViewColumn.CellTemplate>
  63. </GridViewColumn>
  64. <!--<GridViewColumn Width="100" Header="Vormonat">
  65. <GridViewColumn.CellTemplate>
  66. <DataTemplate>
  67. <TextBox HorizontalContentAlignment="Right" Text="{Binding Path=Vormonat, StringFormat=\{0:0.00\}, Mode=OneTime}" BorderThickness="0" TextAlignment="Right" FontSize="9" Focusable="False" IsTabStop="False" IsReadOnly="True" IsEnabled="True" />
  68. </DataTemplate>
  69. </GridViewColumn.CellTemplate>
  70. </GridViewColumn>-->
  71. </GridView>
  72. </ListView.View>
  73. </ListView>
  74. <WrapPanel VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="12,0,12,6">
  75. <Button IsTabStop="False" Margin="3" Width="80" Height="24" Template="{DynamicResource GlassButton}" Click="BtnManuelleDruckenClick" Foreground="White" Name="BtnManuelleDrucken">Drucken</Button>
  76. <!--<Button IsTabStop="False" Margin="3" Width="80" Height="24" Template="{DynamicResource GlassButton}" Click="BtnManuelleIgnorierenClick" Foreground="White" Name="BtnManuelleIgnorieren">Ignorieren</Button>-->
  77. <Button Margin="3" Width="80" Height="24" Template="{DynamicResource GlassButton}" Click="BtnManuelleSpeichernClick" Name="BtnManuelleSpeichern" Foreground="White">Speichern</Button>
  78. </WrapPanel>
  79. </Grid>
  80. </Window>