From 4e67684b6efb8c3a809ee7fcec1d629621730158 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 17 Aug 2023 01:03:19 +0200 Subject: [PATCH] =?UTF-8?q?Todos=20f=C3=BCr=20Release:=20Ziele=20und=20Sch?= =?UTF-8?q?nittmenge=20der=20Leistungen=20bei=20Gruppenbuchungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/BeWoApp.xaml.cs | 5 + BeWo/Core/Config/AppSettings.cs | 10 +- ...ultiSupportConceptSelectionControl.xaml.cs | 14 +++ .../ServiceRecordGroupEditView.xaml | 5 + .../ServiceRecordGroupEditView.xaml.cs | 22 +++- .../Zeiterfassung/ServiceRecordView2.xaml | 2 +- .../Zeiterfassung/ServiceRecordView2.xaml.cs | 19 ++- .../ListViewModel/ServiceRecordListVM.cs | 115 ++++++++++++++++++ Service/Security/SecurityUtils.cs | 77 ++---------- .../OperationsServiceImp.cs | 8 +- Shared/Core/SettingsKeys.cs | 3 + 11 files changed, 204 insertions(+), 76 deletions(-) diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index b04310a29..1afe3a89e 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -457,6 +457,11 @@ namespace BeWo { AppSettings.ShowKlientenBetreuungszeiten = true; } + val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.FilterGroupServiceCategories); + if (val != null && val.Equals("0")) + { + AppSettings.FilterGroupServiceCategories = false; + } val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ShowInfoButtonInCalender); if (val != null && val.Equals("1")) { diff --git a/BeWo/Core/Config/AppSettings.cs b/BeWo/Core/Config/AppSettings.cs index aeb8c55a6..384fd8106 100644 --- a/BeWo/Core/Config/AppSettings.cs +++ b/BeWo/Core/Config/AppSettings.cs @@ -26,7 +26,8 @@ namespace BeWo.Core.Config private bool _showExpiredSupportConcepts = true; private bool _showServiceRecordGridControl; - + private bool _filterGroupServiceCategories = true; + private WindowStateType mWindowStateType = WindowStateType.Default; private ServiceRecordTimeInterval mLastSelectedServiceRecordTimeInterval = ServiceRecordTimeInterval.All; @@ -462,5 +463,12 @@ namespace BeWo.Core.Config } public bool ShowKlientenBetreuungszeiten { get; set; } + + public bool FilterGroupServiceCategories + { + get { return _filterGroupServiceCategories; } + + set { _filterGroupServiceCategories = value; } + } } } \ No newline at end of file diff --git a/BeWo/View/Controls/MultiSupportConceptSelectionControl.xaml.cs b/BeWo/View/Controls/MultiSupportConceptSelectionControl.xaml.cs index d6b13e9e7..7cb7c01f1 100644 --- a/BeWo/View/Controls/MultiSupportConceptSelectionControl.xaml.cs +++ b/BeWo/View/Controls/MultiSupportConceptSelectionControl.xaml.cs @@ -62,6 +62,8 @@ namespace BeWo.View.Controls public event EventHandler> ItemSelected; + public event EventHandler>> ListChanged; + public CompactSupportConceptDC SelectedItem { get @@ -94,6 +96,8 @@ namespace BeWo.View.Controls this.SelectedSupportConcepts.Add(e.Data); this.listBoxSupportConcepts.ScrollIntoView(e.Data); + + FireListChangedEvent(); } } @@ -116,6 +120,7 @@ namespace BeWo.View.Controls this.SelectedSupportConcepts.Add(sc); } } + FireListChangedEvent(); } })); @@ -166,6 +171,15 @@ namespace BeWo.View.Controls if (dc != null) { this.SelectedSupportConcepts.Remove(dc); + FireListChangedEvent(); + } + } + + private void FireListChangedEvent() + { + if (ListChanged != null) + { + ListChanged(this, new EventArgs>(SelectedSupportConcepts)); } } diff --git a/BeWo/View/Detail/Zeiterfassung/ServiceRecordGroupEditView.xaml b/BeWo/View/Detail/Zeiterfassung/ServiceRecordGroupEditView.xaml index e7536b596..f78464cf4 100644 --- a/BeWo/View/Detail/Zeiterfassung/ServiceRecordGroupEditView.xaml +++ b/BeWo/View/Detail/Zeiterfassung/ServiceRecordGroupEditView.xaml @@ -84,6 +84,11 @@ +