From 4f1251e2b9900feca7b4b1d9ba808b9eb97fb481 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 22 Jun 2023 09:35:51 +0200 Subject: [PATCH] Neues Fehlerfenster --- BeWo/BeWo.csproj | 13 +- BeWo/BeWoApp.xaml.cs | 18 +- BeWo/MainControl.xaml | 2 +- BeWo/MainControl.xaml.cs | 42 ++--- BeWo/View/ExceptionMessageBox.xaml | 1 - .../ExceptionMessageBoxWithSupportMail.xaml | 79 ++++++++ ...ExceptionMessageBoxWithSupportMail.xaml.cs | 111 +++++++++++ BeWo/View/Master/ReportView.xaml.cs | 174 ++++++++++++++---- BeWo/ViewModel/UserGroupVM.cs | 18 +- BeWoPlanerMobil/BeWoPlanerMobil.csproj.user | 2 +- .../SHKService/Quittierungsbeleg.Designer.cs | 30 +-- Service/Plugins/PluginLoader.cs | 7 +- Service/Service.csproj | 1 + .../DownloadServiceImp.cs | 6 +- Service/ServiceUtils/ServiceTranslator.cs | 78 ++++++++ Shared/Core/EnumTranslations.cs | 36 ++-- 16 files changed, 518 insertions(+), 100 deletions(-) create mode 100644 BeWo/View/ExceptionMessageBoxWithSupportMail.xaml create mode 100644 BeWo/View/ExceptionMessageBoxWithSupportMail.xaml.cs create mode 100644 Service/ServiceUtils/ServiceTranslator.cs diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index e721c24a9..dcb2f1b48 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -42,13 +42,13 @@ https://app.ownsoft.de/ de-DE BeWoPlaner - beyondSoft GmbH - 2.0.1.221 + ownSoft GmbH + 2.0.1.224 true publish.htm false true - 222 + 225 2.0.1.%2a false true @@ -455,6 +455,10 @@ MSBuild:Compile Designer + + MSBuild:Compile + Designer + MSBuild:Compile Designer @@ -1164,6 +1168,9 @@ SupportConceptGoalRatingView.xaml + + ExceptionMessageBoxWithSupportMail.xaml + HomeView.xaml diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index 4987aea08..a6f19ae5a 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -763,7 +763,23 @@ namespace BeWo { if (MainControl != null) { - MainControl.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action) (() => MainControl.ShowControlAsModalPopup(new ExceptionMessageBox(message, ex, showDetails)))); + + + + MainControl.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action) (() => + { + UserControl exControl = null; + if (showDetails && BeWoApp.LoggedOnUser != null && BeWoApp.LoggedOnUser.HasRight(BS.Shared.UserRightType.Support_View)) + { + exControl = new ExceptionMessageBoxWithSupportMail(ex); + } + else + { + exControl = new ExceptionMessageBox(message, ex, showDetails); + } + + MainControl.ShowControlAsModalPopup(exControl); + })); } else if (LoginControl != null) { diff --git a/BeWo/MainControl.xaml b/BeWo/MainControl.xaml index 8c40b18fb..20728c592 100644 --- a/BeWo/MainControl.xaml +++ b/BeWo/MainControl.xaml @@ -309,7 +309,7 @@ - (); diff --git a/BeWo/View/ExceptionMessageBox.xaml b/BeWo/View/ExceptionMessageBox.xaml index c603e00c9..f2dc7a2f3 100644 --- a/BeWo/View/ExceptionMessageBox.xaml +++ b/BeWo/View/ExceptionMessageBox.xaml @@ -27,7 +27,6 @@ -