From 45e72b40b129f1c7f7e4bb9005fe33d29c9a3b6a Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 1 Dec 2025 13:13:38 +0100 Subject: [PATCH 01/16] Bugfix Drag&Drop von Dateien in andere Ordner --- BeWo/View/BeWoFileView.xaml.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/BeWo/View/BeWoFileView.xaml.cs b/BeWo/View/BeWoFileView.xaml.cs index 582d036ec..d1d5d830c 100644 --- a/BeWo/View/BeWoFileView.xaml.cs +++ b/BeWo/View/BeWoFileView.xaml.cs @@ -353,9 +353,17 @@ namespace BeWo.View { return; } - drag = treeview.GetDataItemUnderMouse(e) ?? datagrid_documents.GetRow(datagrid_documents.View.GetRowHandleByMouseEventArgs(e)); - _MouseDownPosition = e.GetPosition(this); + var pos = e.GetPosition(treeview); + bool hatAbstand = pos.X < treeview.ActualWidth - 20 || pos.X > treeview.ActualWidth; + + if (hatAbstand) + { + drag = treeview.GetDataItemUnderMouse(e) ?? datagrid_documents.GetRow(datagrid_documents.View.GetRowHandleByMouseEventArgs(e)); + + _MouseDownPosition = e.GetPosition(this); + } + } private void treeview_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) From 017fffa746deb42befeec47ff6332c3011d92b67 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 1 Dec 2025 13:14:25 +0100 Subject: [PATCH 02/16] =?UTF-8?q?Bugfix,=20nach=201.=20Speichern=20von=20?= =?UTF-8?q?=C3=84nderungen=20im=20Schulbegleitung-Tab=20wurden=20weitere?= =?UTF-8?q?=20=C3=84nderungen=20nicht=20mehr=20erkannt=20und=20gespeichert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/View/Detail/CustomerView.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BeWo/View/Detail/CustomerView.xaml.cs b/BeWo/View/Detail/CustomerView.xaml.cs index efbd6f7f7..c53498b50 100644 --- a/BeWo/View/Detail/CustomerView.xaml.cs +++ b/BeWo/View/Detail/CustomerView.xaml.cs @@ -387,7 +387,10 @@ namespace BeWo.View.Detail stundenplanView.ViewModel = value.Arbeitszeiten; stundenplanView.RefreshView(); } - + if (tabitem_schuldienst.Content != null && tabitem_schuldienst.Content is SchulbegleitenderDienstCustomerView sdView) + { + sdView.ViewModel = value; + } _saveInProgress = false; OnPropertyChanged(nameof(ViewModel)); From c356e1047cfa83fc13d4008d9c92a803dc7c5da3 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 1 Dec 2025 13:16:11 +0100 Subject: [PATCH 03/16] =?UTF-8?q?Modul=20ownChat=20Admin=20Settings=20wird?= =?UTF-8?q?=20nicht=20mehr=20ben=C3=B6tigt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/View/Detail/MandatorView.xaml.cs | 2 +- BeWo/ViewModel/UserGroupVM.cs | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/BeWo/View/Detail/MandatorView.xaml.cs b/BeWo/View/Detail/MandatorView.xaml.cs index 98f8d308a..e2811ea29 100644 --- a/BeWo/View/Detail/MandatorView.xaml.cs +++ b/BeWo/View/Detail/MandatorView.xaml.cs @@ -24,7 +24,7 @@ namespace BeWo.View.Detail _Parent = parent; ViewModel = parent.MandatorVM; - if (BeWoApp.LoggedOnUser.HasRight(BS.Shared.UserRightType.ChatAdminSettings) && BeWoApp.AppSettings.ShowOwnChatSettings) + if (BeWoApp.LoggedOnUser.HasRight(BS.Shared.UserRightType.ChatAdminSettings)) { var url = ServiceFacade.DoOperationsServiceSync(s => s.GetOwnChatSettingsUrl()); HyperlinkOwnChatSettings.NavigateUri = new Uri(url); diff --git a/BeWo/ViewModel/UserGroupVM.cs b/BeWo/ViewModel/UserGroupVM.cs index f56901dc0..943cc3acd 100644 --- a/BeWo/ViewModel/UserGroupVM.cs +++ b/BeWo/ViewModel/UserGroupVM.cs @@ -90,7 +90,6 @@ namespace BeWo.ViewModel {IsSbdRight, BeWoApp.Mandator.AllowSbd}, {IsResourceRight, BeWoApp.AppSettings.ShowRessources}, {IsChatRight, BeWoApp.AppSettings.ShowOwnChat}, - {IsChatSettingsRight, BeWoApp.AppSettings.ShowOwnChatSettings}, {IsHiddenRight, false}, {IsMedicationRight, BeWoApp.AppSettings.IsMedicationAllowed}, {IsPivotGridRight, BeWoApp.AppSettings.ShowPivotGrid}, @@ -191,13 +190,8 @@ namespace BeWo.ViewModel } private static bool IsChatRight(UserRightType userRightType) { - if (userRightType == UserRightType.ChatSettings) - return true; - return false; - } - private static bool IsChatSettingsRight(UserRightType userRightType) - { - if (userRightType == UserRightType.ChatAdminSettings) + if (userRightType == UserRightType.ChatSettings + || userRightType == UserRightType.ChatAdminSettings) return true; return false; } From 9fa8fc966ced07b564c9f8d0130ef4e96a0b285e Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 1 Dec 2025 13:19:53 +0100 Subject: [PATCH 04/16] =?UTF-8?q?Button=20"Passwort=20=C3=A4ndern"=20wird?= =?UTF-8?q?=20jetzt=20ausgeblendet,=20wenn=20das=20Recht=20zum=20=C3=84nde?= =?UTF-8?q?rung=20nicht=20gegeben=20wurde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWoPlanerMobil/BeWoPlanerMobil.csproj.user | 17 +++++++++----- BeWoPlanerMobil/Models/AbstractModel.cs | 2 ++ BeWoPlanerMobil/Views/Shared/_Layout.cshtml | 26 +++++++++++---------- 3 files changed, 27 insertions(+), 18 deletions(-) diff --git a/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user b/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user index 91a3728dd..8d834ae6c 100644 --- a/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user +++ b/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user @@ -1,4 +1,4 @@ - + false @@ -28,16 +28,21 @@ - http://localhost/BeWoPlanerMobil/ + + CurrentPage True False False False - C:\Program Files\Google\Chrome\Application\chrome.exe - http://localhost/BeWoPlanerMobil/Login/demo - --auto-open-devtools-for-tabs - C:\Program Files (x86)\IIS Express + + + + + + + + True False diff --git a/BeWoPlanerMobil/Models/AbstractModel.cs b/BeWoPlanerMobil/Models/AbstractModel.cs index af362507d..8db3ffb99 100644 --- a/BeWoPlanerMobil/Models/AbstractModel.cs +++ b/BeWoPlanerMobil/Models/AbstractModel.cs @@ -158,6 +158,8 @@ namespace BeWoPlanerMobil.Models public bool HasRightToRateGoals => CheckRight(UserRightType.BewertenInZeiterfassung); + public bool HasRightToChangePassword => CheckRight(UserRightType.UserView_AllowChangePassword) || CheckRight(UserRightType.AllowChangeOwnPassword); + public bool HasRightToEditCustomers => CheckRight(UserRightType.CustomerView_Edit); public bool HasRightMitarbeiterstundenkontoViewAll => CheckRight(UserRightType.Mitarbeiterstundenkonto_ViewAll); diff --git a/BeWoPlanerMobil/Views/Shared/_Layout.cshtml b/BeWoPlanerMobil/Views/Shared/_Layout.cshtml index e593b2b70..ea1e0a0d0 100644 --- a/BeWoPlanerMobil/Views/Shared/_Layout.cshtml +++ b/BeWoPlanerMobil/Views/Shared/_Layout.cshtml @@ -380,12 +380,12 @@ } - + using (Html.BeginForm("RedirectToDevTools", "Main", FormMethod.Post)) @@ -471,13 +471,15 @@ - - + @if (Model.HasRightToChangePassword) + { + + }