diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index 19ff28c1f..2204004c0 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -962,12 +962,14 @@ BSLogoControl.xaml + + diff --git a/BeWo/BeWoApp.xaml b/BeWo/BeWoApp.xaml index 18ebcba2b..8ae49c75d 100644 --- a/BeWo/BeWoApp.xaml +++ b/BeWo/BeWoApp.xaml @@ -90,6 +90,11 @@ + + + + + diff --git a/BeWo/View/Controls/YearMonthFilter.xaml b/BeWo/View/Controls/YearMonthFilter.xaml index a437793f7..06d9c2196 100644 --- a/BeWo/View/Controls/YearMonthFilter.xaml +++ b/BeWo/View/Controls/YearMonthFilter.xaml @@ -1,7 +1,8 @@  + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + x:Name="root"> @@ -22,7 +23,7 @@ Grid.Column="1" Margin="8,0,0,0" Content="Nach Monat filtern" - IsChecked="True" + IsChecked="{Binding Path=FilterMonth, ElementName=root}" IsEnabled="{Binding Path=IsChecked, ElementName=checkbox_yearfilter}" /> public partial class YearMonthFilter : UserControl { - public YearMonthFilter() + public bool FilterMonth + { + get { return (bool)GetValue(FilterMonthProperty); } + set { SetValue(FilterMonthProperty, value); } + } + + public static readonly DependencyProperty FilterMonthProperty = + DependencyProperty.Register("FilterMonth", typeof(bool), typeof(YearMonthFilter), new PropertyMetadata(true)); + + public YearMonthFilter() { this.InitializeComponent(); this.InitDateCombos(); @@ -55,7 +65,7 @@ namespace BeWo.View private void FireFilterSpanChanged() { - if (this.FilterSpanChanged != null) + if (this.FilterSpanChanged != null && IsLoaded) { this.FilterSpanChanged(this, new EventArgs(this.FilterSpan)); } diff --git a/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml b/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml index 8aace39ea..39b3164a2 100644 --- a/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml +++ b/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml @@ -13,6 +13,7 @@ xmlns:proxy="clr-namespace:BeWo.ServiceProxy" xmlns:r="clr-namespace:BeWo.Security" xmlns:s="clr-namespace:System;assembly=mscorlib" + xmlns:shared="clr-namespace:BS.Shared;assembly=BS.Shared" xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" xmlns:val="clr-namespace:BeWo.Validation" Width="Auto" @@ -46,6 +47,7 @@ Margin="3,0,0,3" HorizontalAlignment="Left" VerticalAlignment="Bottom" + FilterMonth="False" FilterSpanChanged="YearMonthFilter_FilterSpanChanged" /> + ToolTip="Neue GKV-Abrechnung erstellen" + Visibility="{Binding Converter={StaticResource UserRightType2Visible}, ConverterParameter={x:Static shared:UserRightType.Finance_Gkv_Create}}" />