From 8f4235cb3cb2cc01ceec3cb16e84c2b14207f2ae Mon Sep 17 00:00:00 2001 From: Lyndon Jetten Date: Wed, 17 May 2023 13:58:10 +0200 Subject: [PATCH] MoK: Bugs bei der Rechtebeachtung im Auswertungsmodul behoben --- BeWo/View/Master/ReportView.xaml.cs | 8 +- .../Employee/EmployeeHourReportView.xaml | 188 +++++++++--------- .../Employee/EmployeeHourReportView.xaml.cs | 67 +++---- .../Controllers/ReportViewerController.cs | 65 ++++-- BeWoPlanerMobil/Models/AbstractModel.cs | 15 ++ .../DocumentWebViewerPartial.cshtml | 12 +- .../Views/ReportViewer/ReportViewer.cshtml | 4 +- .../ReportViewerFormPartial.cshtml | 52 ++--- BeWoPlanerMobil/Views/Shared/_Layout.cshtml | 8 +- Service/ServiceContracts/IEmployeeService.cs | 8 + .../EmployeeServiceImp.cs | 24 +++ 11 files changed, 254 insertions(+), 197 deletions(-) diff --git a/BeWo/View/Master/ReportView.xaml.cs b/BeWo/View/Master/ReportView.xaml.cs index 0c10edf6b..939cff110 100644 --- a/BeWo/View/Master/ReportView.xaml.cs +++ b/BeWo/View/Master/ReportView.xaml.cs @@ -83,7 +83,13 @@ namespace BeWo.View.Master // tabitem_annualReport.Visibility = Visibility.Visible; // } - if (BeWoApp.Tenant == "3010479871" || (!BeWoApp.LoggedOnUser.HasRight(UserRightType.Mitarbeiterstundenkonto_ViewAll) && !BeWoApp.LoggedOnUser.HasRight(UserRightType.Mitarbeiterstundenkonto_ViewSelf) && !BeWoApp.LoggedOnUser.HasRight(UserRightType.Mitarbeiterstundenkonto_ViewTeams))) + if (BeWoApp.Tenant == "3010479871" || + ( + !BeWoApp.LoggedOnUser.HasRight(UserRightType.Mitarbeiterstundenkonto_ViewAll) && + !BeWoApp.LoggedOnUser.HasRight(UserRightType.Mitarbeiterstundenkonto_ViewSelf) && + !BeWoApp.LoggedOnUser.HasRight(UserRightType.Mitarbeiterstundenkonto_ViewTeams) + ) + ) { //Aachener Verein tabitem_makonto.Visibility = Visibility.Collapsed; diff --git a/BeWo/View/Report/Employee/EmployeeHourReportView.xaml b/BeWo/View/Report/Employee/EmployeeHourReportView.xaml index 6ccd14ec6..90fc8e03c 100644 --- a/BeWo/View/Report/Employee/EmployeeHourReportView.xaml +++ b/BeWo/View/Report/Employee/EmployeeHourReportView.xaml @@ -5,121 +5,115 @@ xmlns:localSearchView="clr-namespace:BeWo.View.Search" xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" xmlns:dxp="http://schemas.devexpress.com/winfx/2008/xaml/printing" - xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" xmlns:dxpbars="http://schemas.devexpress.com/winfx/2008/xaml/printing/bars" xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True"> + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + - - + - - - - + - + - - + + - + - + -