From b51b37a6e84df06a96d50061c59fa2dc004587b3 Mon Sep 17 00:00:00 2001 From: Florian Edlmayer Date: Thu, 19 Feb 2026 11:48:44 +0100 Subject: [PATCH] =?UTF-8?q?DB=20Migrtation=20ge=C3=A4ndert=20und=20PDF=20u?= =?UTF-8?q?pload=20funktioniert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApplicationList.razor | 101 ++--- .../Apply.razor | 208 +++-------- .../Index.razor | 11 +- .../ModuleInfo.cs | 5 +- .../EngineerApplicationController.cs | 345 +++++++++++------- .../01000001_AddPremiumTables copy.cs | 42 +++ ...002_RemoveReportingAndMoveToFileManager.cs | 30 ++ .../EngineerApplicationRepository.cs | 47 ++- Server/Repository/PremiumAreaRepository.cs | 15 +- Server/Repository/UserPremiumRepository.cs | 21 +- Server/Services/PremiumService.cs | 98 +++++ .../ServerEngineerApplicationService.cs | 297 +++++++-------- Shared/Models/EngineerApplication.cs | 45 +-- 13 files changed, 741 insertions(+), 524 deletions(-) create mode 100644 Server/Migrations/01000001_AddPremiumTables copy.cs create mode 100644 Server/Migrations/01000002_RemoveReportingAndMoveToFileManager.cs create mode 100644 Server/Services/PremiumService.cs diff --git a/Client/Modules/SZUAbsolventenverein.Module.PremiumArea/ApplicationList.razor b/Client/Modules/SZUAbsolventenverein.Module.PremiumArea/ApplicationList.razor index 57c8cb9..3b60774 100644 --- a/Client/Modules/SZUAbsolventenverein.Module.PremiumArea/ApplicationList.razor +++ b/Client/Modules/SZUAbsolventenverein.Module.PremiumArea/ApplicationList.razor @@ -7,7 +7,7 @@ @if (Oqtane.Security.UserSecurity.IsAuthorized(PageState.User, RoleNames.Admin) || Oqtane.Security.UserSecurity.IsAuthorized(PageState.User, "Premium Member")) { -

Genehmigte Ingenieur-Anträge

+

Ingenieur-Anträge

@if (_applications == null) { @@ -22,27 +22,27 @@ else {
- @foreach (var app in _applications) - { -
-
-
-
Ingenieur-Antrag
-
Benutzer ID: @app.UserId
-

- Datei: @app.PdfFileName
- Status: @app.Status
- Datum: @(app.ApprovedOn?.ToShortDateString() ?? app.CreatedOn.ToShortDateString()) -

-
- - Herunterladen - + @foreach (var app in _applications) + { +
+
+
+
Ingenieur-Antrag
+
Benutzer ID: @app.UserId
+

+ Datei: @app.FileId
+ Status: Veröffentlicht
+ Datum: @(app.ApprovedOn?.ToShortDateString() ?? app.CreatedOn.ToShortDateString()) +

+
+ + Herunterladen + +
-
- } + }
} } @@ -56,22 +56,22 @@ else @if (_selectedApp != null) {