From c2692dd9cc5bf11dbfbbc064d9edd91a10b79267 Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Tue, 26 Apr 2022 10:00:34 +0200 Subject: [PATCH] =?UTF-8?q?MH:=20Neues=20Flag=20f=C3=BCr=20InfoButton=20im?= =?UTF-8?q?=20Kalender=20erstellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/BeWoApp.xaml.cs | 13 ++++++++++--- BeWo/Core/Config/AppSettings.cs | 2 ++ BeWo/Scheduler/View/NewSchedulerView.xaml | 10 +++++----- BeWo/Scheduler/View/NewSchedulerView.xaml.cs | 18 ++++++++++++++++++ .../ViewModel/NewSchedulerViewModel.cs | 1 + Service/Plugins/PluginLoader.cs | 4 ++-- Shared/Core/SettingsKeys.cs | 2 ++ 7 files changed, 40 insertions(+), 10 deletions(-) diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index b9573581d..002e1f606 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -201,6 +201,7 @@ namespace BeWo bool showDienstplanung = false; var showEmployeeSignature = false; var showMultipleResourceColors = false; + var showInfoButtonInCalender = false; AppSettings.ShowAdvisedAttendedFlag = false; @@ -451,7 +452,11 @@ namespace BeWo { AppSettings.ShowKlientenBetreuungszeiten = true; } - + val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ShowInfoButtonInCalender); + if (val != null && val.Equals("1")) + { + AppSettings.ShowInfoButtonInCalender = true; + } val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.AllowStorno); AppSettings.AllowStorno = val != null && val.Equals("1"); @@ -513,6 +518,7 @@ namespace BeWo showMarker = true; showUrlaubsplanung = true; showDienstplanung = true; + showInfoButtonInCalender = true; #endif AppSettings.ShowDatevFields = showDatevFields; @@ -548,8 +554,9 @@ namespace BeWo AppSettings.ShowUrlaubsplanung = showUrlaubsplanung; AppSettings.DontShowSpitzabrechnung = dontShowSpitzabrechnung; AppSettings.ShowDienstplanung = showDienstplanung; - AppSettings.ShowEmployeeSignature = showEmployeeSignature; - AppSettings.ShowMultipleResourceColors = showMultipleResourceColors; + AppSettings.ShowEmployeeSignature = showEmployeeSignature; + AppSettings.ShowMultipleResourceColors = showMultipleResourceColors; + AppSettings.ShowInfoButtonInCalender = showInfoButtonInCalender; BS.Shared.Settings.ApplicationSettings.SupportConceptExpirationLimitInMonths = AppSettings.HilfeplanAuslaufAuswahl; } diff --git a/BeWo/Core/Config/AppSettings.cs b/BeWo/Core/Config/AppSettings.cs index 94215dce6..0bec27fdc 100644 --- a/BeWo/Core/Config/AppSettings.cs +++ b/BeWo/Core/Config/AppSettings.cs @@ -388,6 +388,8 @@ namespace BeWo.Core.Config public int DienstplanungStandardZeilenAnzahl { get; set; } + public bool ShowInfoButtonInCalender{ get; set; } + public bool AllowStorno { get; set; } public bool ShowEmployeeSignature { get; set; } diff --git a/BeWo/Scheduler/View/NewSchedulerView.xaml b/BeWo/Scheduler/View/NewSchedulerView.xaml index 623d4f8fd..1c061af61 100644 --- a/BeWo/Scheduler/View/NewSchedulerView.xaml +++ b/BeWo/Scheduler/View/NewSchedulerView.xaml @@ -26,8 +26,8 @@ - - + + @@ -689,7 +689,7 @@ -