From 31a69def41bb02bfeef48d1f7f589b3ea7a08896 Mon Sep 17 00:00:00 2001 From: Lyndon Date: Fri, 11 Jul 2025 18:48:37 +0200 Subject: [PATCH] DebuggingTools in DevTools umbenannt --- BeWoPlanerMobil/BeWoPlanerMobil.csproj | 27 ++-- ...olsController.cs => DevToolsController.cs} | 23 +++- ...ebuggingToolsModel.cs => DevToolsModel.cs} | 2 +- .../Service/ASPHibernateSessionManager.cs | 8 +- .../Util/FormCollectionConstants.cs | 2 +- .../DevTools.cshtml} | 2 +- .../DevToolsDataGenerationPartial.cshtml | 2 +- .../DevToolsSettingsPartial.cshtml | 2 +- .../DevToolsUserRightsPartial.cshtml | 2 +- BeWoPlanerMobil/Web.config | 32 +++-- BeWoPlanerMobil/packages.config | 8 +- Dakota/app.config | 36 ++++-- Data/Access/GenericDAO.cs | 1 - Data/App.config | 36 ++++-- Data/Data.csproj | 93 +++++++------- Data/packages.config | 48 +++---- Model/Change_2021_09_28_DienstInfo.txt | 3 +- Model/Changes_2016_06_22.txt | 3 +- Model/Changes_2016_09_20_all.txt | 9 +- Model/Changes_2016_12_05.txt | 4 +- Model/Changes_2016_12_21.txt | 28 ++-- Model/Changes_2017_02_01.txt | 2 +- Model/Changes_2017_03_24.txt | 26 ++-- Model/Changes_2017_03_30.txt | 1 - Model/Changes_2017_04_03_2.txt | 32 ++--- Model/Changes_2017_05_11.txt | 4 +- Model/Changes_2017_06_01.txt | 2 +- Model/Changes_2017_06_22.txt | 67 ++++------ Model/Changes_2017_07_12.txt | 2 +- Model/Changes_2017_08_08.txt | 19 +-- Model/Changes_2017_08_09.txt | 6 +- Model/Changes_2017_08_21.txt | 2 +- Model/Changes_2017_10_09.txt | 1 - Model/Changes_2017_10_13.txt | 4 +- Model/Changes_2017_11_08.txt | 27 ++-- Model/Changes_2018_06_30.txt | 11 +- Model/Changes_2018_08_29.txt | 4 +- Model/Changes_2018_12_19.txt | 12 +- Model/Changes_2019_01_03.txt | 2 +- Model/Changes_2019_01_07.txt | 6 +- Model/Changes_2019_05_20.txt | 2 +- ...y und EmployeeHistory Tabelle erstellt.txt | 4 +- ...ry und ContactHistory Tabelle erstellt.txt | 4 +- ...ges_2019_06_07 Budget Tabelle erstellt.txt | 2 +- ...07_12 FlexibleReportLayout hinzugefügt.txt | 2 +- ...s_2019_08_12 HomeViewPanel hinzugefügt.txt | 2 +- ..._2019_08_26 ReportTemplate hinzugefügt.txt | 2 +- ...Changes_2020_02_26 Dienste hinzugefügt.txt | 2 +- ..._2020_02_26 Diensteinträge hinzugefügt.txt | 2 +- Model/Changes_2020_08_17_Rating.txt | 6 +- ...09_18_Quittierungsbelegsunterschriften.txt | 4 +- ...es_2020_10_22_Quittierungsbelegsstatus.txt | 2 +- Model/Changes_2021_03_10_Dienstvertretung.txt | 2 +- Model/Changes_2021_03_10_Dokumentvorlage.txt | 2 +- Model/Changes_2021_03_10_Vorlagentabelle.txt | 2 +- ...hanges_2021_04_20_RegelmaessigerDienst.txt | 2 +- Model/Changes_2021_05_20_EmploymentType.txt | 2 +- Model/Changes_2021_05_20_EmploymentType2.txt | 2 +- ...anges_2021_05_25_GeschenkterUrlaubstag.txt | 2 +- ...nges_2021_05_25_GeschenkterUrlaubstag2.txt | 2 +- ..._05_25_GeschenkterUrlaubstag_Nachkomma.txt | 2 +- Model/Changes_2021_11_15_ValueListEntry.txt | 2 +- ...anges_2021_11_19_SupportConceptHistory.txt | 2 +- ...11_24_CostBearer2SupportConceptHistory.txt | 2 +- ...25_SupportConceptApprovalPeriodHistory.txt | 2 +- Model/Changes_2021_xx_xx GetNextBelegNr.txt | 2 + Model/Changes_2022_02_11_ContractHistory.txt | 2 +- ...022_03_21_Abwesenheitsinformationprint.txt | 2 +- ...erAppointment (Gruppenbuchung bedacht).txt | 2 +- Model/Changes_2023_03_09_AddressRoute.txt | 2 +- .../Changes_2023_07_03_ValidationMessage.txt | 2 +- ...ges_2023_12_13_AdditionalServiceNotice.txt | 2 +- ..._2024_02_06_Bargeldtransaktionshistory.txt | 2 +- Model/Changes_2024_07_15 Wohneinheit.txt | 4 +- Model/Changes_2024_07_16_TwoFactorCode.txt | 2 +- ...2024_09_23 Customer Vermittlung Arbeit.txt | 2 +- .../Changes_2024_09_23 Customer Wohnhilfe.txt | 2 +- Model/Changes_2024_09_26 AiSettings.txt | 2 +- ...ges_2024_10_31 CustomerFalldaten DROPP.txt | 2 +- .../Changes_2024_11_06 ALLE GKV TABELLEN.txt | 6 +- .../Changes_2025_03_07 AbsenceTimeHistory.txt | 2 +- Model/Changes_2025_03_26 SignatureHistory.sql | 4 +- Model/Changes_2025_04_01 AI Feature.txt | 10 +- Model/Changes_alle_fuer_neue_db.txt | 120 +++++++++--------- Model/changes_2021_10_22_Preis.sql | 2 +- Report/app.config | 16 ++- ReportImp/HausDuelken/HausDuelken.csproj | 3 + ReportImp/HausDuelken/app.config | 71 +++++++++++ ReportImp/SynpraxReports/app.config | 58 ++++++++- ReportService/app.config | 6 +- Service/Service.csproj | 8 +- Service/app.config | 14 +- Service/packages.config | 5 +- 93 files changed, 580 insertions(+), 436 deletions(-) rename BeWoPlanerMobil/Controllers/{DebuggingToolsController.cs => DevToolsController.cs} (74%) rename BeWoPlanerMobil/Models/{DebuggingToolsModel.cs => DevToolsModel.cs} (99%) rename BeWoPlanerMobil/Views/{DebuggingTools/DebuggingTools.cshtml => DevTools/DevTools.cshtml} (97%) rename BeWoPlanerMobil/Views/{DebuggingTools => DevTools}/DevToolsDataGenerationPartial.cshtml (86%) rename BeWoPlanerMobil/Views/{DebuggingTools => DevTools}/DevToolsSettingsPartial.cshtml (99%) rename BeWoPlanerMobil/Views/{DebuggingTools => DevTools}/DevToolsUserRightsPartial.cshtml (74%) create mode 100644 ReportImp/HausDuelken/app.config diff --git a/BeWoPlanerMobil/BeWoPlanerMobil.csproj b/BeWoPlanerMobil/BeWoPlanerMobil.csproj index 21b639966..3102cfb14 100644 --- a/BeWoPlanerMobil/BeWoPlanerMobil.csproj +++ b/BeWoPlanerMobil/BeWoPlanerMobil.csproj @@ -184,8 +184,8 @@ ..\packages\EntityFramework.6.5.1\lib\net45\EntityFramework.SqlServer.dll - - ..\packages\log4net.3.0.4\lib\net462\log4net.dll + + ..\packages\log4net.3.1.0\lib\net462\log4net.dll ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.4.1.0\lib\net472\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll @@ -220,9 +220,6 @@ - - ..\packages\System.Memory.4.6.2\lib\net462\System.Memory.dll - ..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Extensions.dll @@ -237,13 +234,7 @@ ..\packages\System.Numerics.Vectors.4.6.1\lib\net462\System.Numerics.Vectors.dll - - ..\packages\System.Runtime.CompilerServices.Unsafe.6.1.1\lib\net462\System.Runtime.CompilerServices.Unsafe.dll - - - ..\packages\System.Threading.Tasks.Extensions.4.6.2\lib\net462\System.Threading.Tasks.Extensions.dll - @@ -305,7 +296,7 @@ - + @@ -319,7 +310,7 @@ - + @@ -671,10 +662,10 @@ - - - - + + + + @@ -763,7 +754,7 @@ - False + True False 8808 / diff --git a/BeWoPlanerMobil/Controllers/DebuggingToolsController.cs b/BeWoPlanerMobil/Controllers/DevToolsController.cs similarity index 74% rename from BeWoPlanerMobil/Controllers/DebuggingToolsController.cs rename to BeWoPlanerMobil/Controllers/DevToolsController.cs index 21a68fb19..23f9c131b 100644 --- a/BeWoPlanerMobil/Controllers/DebuggingToolsController.cs +++ b/BeWoPlanerMobil/Controllers/DevToolsController.cs @@ -1,13 +1,15 @@ using System.Web.Mvc; using BeWoPlanerMobil.Models; using BeWoPlanerMobil.Service; +using Bogus; +using BS.Shared.DataContracts; namespace BeWoPlanerMobil.Controllers { - public class DebuggingToolsController : AbstractBaseController + public class DevToolsController : AbstractBaseController { - private DebuggingToolsModel _Model; - public DebuggingToolsModel Model + private DevToolsModel _Model; + public DevToolsModel Model { get { @@ -19,7 +21,7 @@ namespace BeWoPlanerMobil.Controllers if(_Model is null) { - _Model = new DebuggingToolsModel(); + _Model = new DevToolsModel(); InitModel(_Model); } @@ -28,7 +30,7 @@ namespace BeWoPlanerMobil.Controllers } [Authorize] - public ActionResult DebuggingTools() + public ActionResult DevTools() { if(!MobileSessionFacade.IsUserLoggedIn() || Model is null) { @@ -65,5 +67,16 @@ namespace BeWoPlanerMobil.Controllers return LeerzeichenFuerGetMethoden; } + + private Faker _AddressFaker = new Faker("de"); + + [Authorize] + [HttpPost] + public ActionResult GenerateDemoData() + { + + + return PartialView("DevToolsDataGenerationPartial", Model); + } } } \ No newline at end of file diff --git a/BeWoPlanerMobil/Models/DebuggingToolsModel.cs b/BeWoPlanerMobil/Models/DevToolsModel.cs similarity index 99% rename from BeWoPlanerMobil/Models/DebuggingToolsModel.cs rename to BeWoPlanerMobil/Models/DevToolsModel.cs index 1a8f49bc9..671a1d760 100644 --- a/BeWoPlanerMobil/Models/DebuggingToolsModel.cs +++ b/BeWoPlanerMobil/Models/DevToolsModel.cs @@ -6,7 +6,7 @@ using BS.Shared.Extensions; namespace BeWoPlanerMobil.Models { - public class DebuggingToolsModel : AbstractModel + public class DevToolsModel : AbstractModel { // Rechtegruppen // Benutzer diff --git a/BeWoPlanerMobil/Service/ASPHibernateSessionManager.cs b/BeWoPlanerMobil/Service/ASPHibernateSessionManager.cs index 49d935d54..29c551d02 100644 --- a/BeWoPlanerMobil/Service/ASPHibernateSessionManager.cs +++ b/BeWoPlanerMobil/Service/ASPHibernateSessionManager.cs @@ -42,10 +42,10 @@ namespace BeWoPlanerMobil.Service if(!SessionFactories.ContainsKey(MobileSessionFacade.Tenant)) { #if DEBUG - //var hierarchy = (Hierarchy) LogManager.GetRepository(); - //var logger = (Logger) hierarchy.GetLogger("NHibernate.SQL"); - //logger.AddAppender(new TraceAppender { Layout = new SimpleLayout() }); - //hierarchy.Configured = true; + var hierarchy = (Hierarchy)LogManager.GetRepository(); + var logger = (Logger)hierarchy.GetLogger("NHibernate.SQL"); + logger.AddAppender(new TraceAppender { Layout = new SimpleLayout() }); + hierarchy.Configured = true; #endif var serverPath = HttpContext.Current.Server.MapPath(null); diff --git a/BeWoPlanerMobil/Util/FormCollectionConstants.cs b/BeWoPlanerMobil/Util/FormCollectionConstants.cs index 382f80294..69cbaca95 100644 --- a/BeWoPlanerMobil/Util/FormCollectionConstants.cs +++ b/BeWoPlanerMobil/Util/FormCollectionConstants.cs @@ -65,7 +65,7 @@ // public static string DevelopmentModelKey => "DevelopmentModel"; // public static string DevExpressReportModelKey => "DevExpressReportModel"; // public static string ReportViewerModelKey => "ReportViewerModel"; - // public static string DebuggingToolsModelKey => "DebuggingToolsModel"; + // public static string DebuggingToolsModelKey => "DevToolsModel"; //} public class TempDataConstants diff --git a/BeWoPlanerMobil/Views/DebuggingTools/DebuggingTools.cshtml b/BeWoPlanerMobil/Views/DevTools/DevTools.cshtml similarity index 97% rename from BeWoPlanerMobil/Views/DebuggingTools/DebuggingTools.cshtml rename to BeWoPlanerMobil/Views/DevTools/DevTools.cshtml index a5a62df22..9739aa8ec 100644 --- a/BeWoPlanerMobil/Views/DebuggingTools/DebuggingTools.cshtml +++ b/BeWoPlanerMobil/Views/DevTools/DevTools.cshtml @@ -1,5 +1,5 @@ @using BeWoPlanerMobil.Util -@model BeWoPlanerMobil.Models.DebuggingToolsModel +@model BeWoPlanerMobil.Models.DevToolsModel @{ if(TempData[TempDataConstants.DoLogoutKey] is bool doLogout && doLogout) diff --git a/BeWoPlanerMobil/Views/DebuggingTools/DevToolsDataGenerationPartial.cshtml b/BeWoPlanerMobil/Views/DevTools/DevToolsDataGenerationPartial.cshtml similarity index 86% rename from BeWoPlanerMobil/Views/DebuggingTools/DevToolsDataGenerationPartial.cshtml rename to BeWoPlanerMobil/Views/DevTools/DevToolsDataGenerationPartial.cshtml index 13310ccff..316f19079 100644 --- a/BeWoPlanerMobil/Views/DebuggingTools/DevToolsDataGenerationPartial.cshtml +++ b/BeWoPlanerMobil/Views/DevTools/DevToolsDataGenerationPartial.cshtml @@ -1,7 +1,7 @@ @using BeWoPlanerMobil.Models @using BeWoPlanerMobil.Util @using BS.Shared -@model DebuggingToolsModel +@model DevToolsModel

Hier kann man bald Daten zum Testen generieren ... diff --git a/BeWoPlanerMobil/Views/DebuggingTools/DevToolsSettingsPartial.cshtml b/BeWoPlanerMobil/Views/DevTools/DevToolsSettingsPartial.cshtml similarity index 99% rename from BeWoPlanerMobil/Views/DebuggingTools/DevToolsSettingsPartial.cshtml rename to BeWoPlanerMobil/Views/DevTools/DevToolsSettingsPartial.cshtml index fb4017912..661e41d50 100644 --- a/BeWoPlanerMobil/Views/DebuggingTools/DevToolsSettingsPartial.cshtml +++ b/BeWoPlanerMobil/Views/DevTools/DevToolsSettingsPartial.cshtml @@ -1,6 +1,6 @@ @using BeWoPlanerMobil.Models @using BeWoPlanerMobil.Util -@model DebuggingToolsModel +@model DevToolsModel