From 7e3daba6e33a4a654922ccbae4fc0e7aa21dd140 Mon Sep 17 00:00:00 2001 From: Frede Hundewadt Date: Sat, 8 Apr 2023 12:39:44 +0200 Subject: [PATCH] WIP: KRV administration - page organizing --- .../Components/WorkDateComponent.razor | 2 +- .../Components/WorkDateComponent.razor.cs | 7 +- .../Pages/AdvisorActivityCreatePage.razor | 2 +- .../Pages/AdvisorActivityCreatePage.razor.cs | 2 +- .../Pages/AdvisorActivityTodayListPage.razor | 2 +- .../AdvisorActivityTodayListPage.razor.cs | 4 +- ...orCustomerWorkplaceDocumentListPage.razor} | 0 ...ustomerWorkplaceDocumentListPage.razor.cs} | 2 +- ...=> AdvisorCustomerWorkplaceListPage.razor} | 0 ...AdvisorCustomerWorkplaceListPage.razor.cs} | 2 +- ...dvisorCustomerWorkplaceViewEditPage.razor} | 0 ...sorCustomerWorkplaceViewEditPage.razor.cs} | 2 +- .../Pages/AdvisorReportCreatePage.razor | 2 +- .../Pages/AdvisorReportViewPage.razor | 2 +- .../Pages/AdvisorTaskItemListCrmPage.razor | 2 +- Wonky.Client/Pages/KrvItemViewPage.razor | 68 ------------------- Wonky.Client/Pages/KrvItemViewPage.razor.cs | 53 --------------- Wonky.Client/Pages/KrvItemViewPage.razor.css | 10 --- .../Pages/OfficeAdvisorReportViewPage.razor | 2 +- .../Pages/System/Krv/LandingPage.razor | 54 --------------- .../Krv/Product/ProductVariantListPage.razor | 20 ------ .../Product/ProductVariantViewEditPage.razor | 20 ------ .../Protection/ProtectionItemListPage.razor | 20 ------ .../Protection/ProtectionTypeListPage.razor | 39 ----------- .../ProtectionTypeListPage.razor.cs | 21 ------ .../Krv/SystemKrvProductsAdminPage.razor.cs | 6 -- .../SystemKrvProtectionsAdminPage.razor.cs | 6 -- .../Texts/RiskPhraseEViewEditPage.razor.cs | 21 ------ .../Texts/RiskPhraseHViewEditPage.razor.cs | 21 ------ .../Texts/RiskPhrasePViewEditPage.razor.cs | 21 ------ .../Krv/Texts/Section3ViewEditPage.razor.cs | 21 ------ .../Krv/Texts/Section4ViewEditPage.razor.cs | 21 ------ .../Krv/Texts/Section5ViewEditPage.razor.cs | 21 ------ .../Krv/Texts/Section6ViewEditPage.razor.cs | 21 ------ .../Krv/Texts/Section7ViewEditPage.razor.cs | 21 ------ .../Krv/Texts/Section8ViewEditPage.razor.cs | 21 ------ .../Krv/Texts/SectionAViewEditPage.razor.cs | 22 ------ .../SystemKrvProtectionItemListPage.razor | 29 ++++++++ ... SystemKrvProtectionItemListPage.razor.cs} | 4 +- .../SystemKrvProtectionItemViewEditPage.razor | 30 ++++++++ ...temKrvProtectionItemViewEditPage.razor.cs} | 4 +- ...azor => SystemKrvProtectionListPage.razor} | 0 .../SystemKrvProtectionListPage.razor.cs | 6 ++ ... => SystemKrvProtectionTypeListPage.razor} | 12 +++- ... SystemKrvProtectionTypeListPage.razor.cs} | 4 +- ...SystemKrvProtectionTypeViewEditPage.razor} | 14 +++- ...temKrvProtectionTypeViewEditPage.razor.cs} | 4 +- ... SystemKrvTextsAccidentViewEditPage.razor} | 0 ...stemKrvTextsAccidentViewEditPage.razor.cs} | 4 +- .../Pages/SystemKrvTextsAdminPage.razor | 47 +++++++++++++ .../Krv => }/SystemKrvTextsAdminPage.razor.cs | 2 +- ...emKrvTextsDangerMarkingViewEditPage.razor} | 0 ...rvTextsDangerMarkingViewEditPage.razor.cs} | 4 +- ... SystemKrvTextsFirstAidViewEditPage.razor} | 0 ...stemKrvTextsFirstAidViewEditPage.razor.cs} | 4 +- ... SystemKrvTextsPrintingViewEditPage.razor} | 0 ...stemKrvTextsPrintingViewEditPage.razor.cs} | 4 +- ...stemKrvTextsRiskPhraseEViewEditPage.razor} | 0 ...mKrvTextsRiskPhraseEViewEditPage.razor.cs} | 4 +- ...stemKrvTextsRiskPhraseHViewEditPage.razor} | 0 ...mKrvTextsRiskPhraseHViewEditPage.razor.cs} | 4 +- ...stemKrvTextsRiskPhrasePViewEditPage.razor} | 0 ...emKrvTextsRiskPhrasePViewEditPage.razor.cs | 21 ++++++ ... SystemKrvTextsSection0ViewEditPage.razor} | 0 ...stemKrvTextsSection0ViewEditPage.razor.cs} | 4 +- ... SystemKrvTextsSection1ViewEditPage.razor} | 0 ...ystemKrvTextsSection1ViewEditPage.razor.cs | 21 ++++++ ... SystemKrvTextsSection2ViewEditPage.razor} | 0 ...ystemKrvTextsSection2ViewEditPage.razor.cs | 21 ++++++ ... SystemKrvTextsSection3ViewEditPage.razor} | 0 ...ystemKrvTextsSection3ViewEditPage.razor.cs | 21 ++++++ ... SystemKrvTextsSection4ViewEditPage.razor} | 0 ...ystemKrvTextsSection4ViewEditPage.razor.cs | 21 ++++++ ... SystemKrvTextsSection5ViewEditPage.razor} | 0 ...ystemKrvTextsSection5ViewEditPage.razor.cs | 21 ++++++ ... SystemKrvTextsSection6ViewEditPage.razor} | 0 ...ystemKrvTextsSection6ViewEditPage.razor.cs | 21 ++++++ ... SystemKrvTextsSection7ViewEditPage.razor} | 0 ...ystemKrvTextsSection7ViewEditPage.razor.cs | 21 ++++++ ... SystemKrvTextsSection8ViewEditPage.razor} | 0 ...ystemKrvTextsSection8ViewEditPage.razor.cs | 21 ++++++ ... SystemKrvTextsSectionAViewEditPage.razor} | 0 ...ystemKrvTextsSectionAViewEditPage.razor.cs | 22 ++++++ ...vTextsSystemKrvSection9ViewEditPage.razor} | 0 ...xtsSystemKrvSection9ViewEditPage.razor.cs} | 4 +- .../SystemManagerLandingPage.razor | 12 ++-- .../SystemManagerLandingPage.razor.cs | 2 +- ...Page.razor => SystemProductListPage.razor} | 0 .../Pages/SystemProductListPage.razor.cs | 6 ++ ...zor => SystemProductVariantListPage.razor} | 12 +++- ... => SystemProductVariantListPage.razor.cs} | 5 +- ...=> SystemProductVariantViewEditPage.razor} | 12 +++- ...SystemProductVariantViewEditPage.razor.cs} | 4 +- ....razor => SystemProductViewEditPage.razor} | 6 +- ....cs => SystemProductViewEditPage.razor.cs} | 5 +- ...age.razor => SystemShortMessagePage.razor} | 0 ...zor.cs => SystemShortMessagePage.razor.cs} | 6 +- .../Users => }/SystemSupervisorListPage.razor | 0 .../SystemSupervisorListPage.razor.cs | 2 +- .../SystemSupervisorViewEditPage.razor | 0 .../SystemSupervisorViewEditPage.razor.cs | 2 +- .../Users => }/SystemUserCreatePage.razor | 0 .../Users => }/SystemUserCreatePage.razor.cs | 2 +- .../Users => }/SystemUserListPage.razor | 0 .../Users => }/SystemUserListPage.razor.cs | 2 +- .../Users => }/SystemUserViewEditPage.razor | 0 .../SystemUserViewEditPage.razor.cs | 2 +- .../Texts => }/WasteSpillViewEditPage.razor | 0 .../WasteSpillViewEditPage.razor.cs | 2 +- Wonky.Client/Wonky.Client.csproj | 11 +-- Wonky.Client/_Imports.razor | 3 +- 111 files changed, 442 insertions(+), 614 deletions(-) rename Wonky.Client/Pages/{KrvWorkplaceDocumentListPage.razor => AdvisorCustomerWorkplaceDocumentListPage.razor} (100%) rename Wonky.Client/Pages/{KrvWorkplaceDocumentListPage.razor.cs => AdvisorCustomerWorkplaceDocumentListPage.razor.cs} (97%) rename Wonky.Client/Pages/{KrvWorkplaceListPage.razor => AdvisorCustomerWorkplaceListPage.razor} (100%) rename Wonky.Client/Pages/{KrvWorkplaceListPage.razor.cs => AdvisorCustomerWorkplaceListPage.razor.cs} (96%) rename Wonky.Client/Pages/{KrvWorkplaceViewEditPage.razor => AdvisorCustomerWorkplaceViewEditPage.razor} (100%) rename Wonky.Client/Pages/{KrvWorkplaceViewEditPage.razor.cs => AdvisorCustomerWorkplaceViewEditPage.razor.cs} (97%) delete mode 100644 Wonky.Client/Pages/KrvItemViewPage.razor delete mode 100644 Wonky.Client/Pages/KrvItemViewPage.razor.cs delete mode 100644 Wonky.Client/Pages/KrvItemViewPage.razor.css delete mode 100644 Wonky.Client/Pages/System/Krv/LandingPage.razor delete mode 100644 Wonky.Client/Pages/System/Krv/Product/ProductVariantListPage.razor delete mode 100644 Wonky.Client/Pages/System/Krv/Product/ProductVariantViewEditPage.razor delete mode 100644 Wonky.Client/Pages/System/Krv/Protection/ProtectionItemListPage.razor delete mode 100644 Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeListPage.razor delete mode 100644 Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeListPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/SystemKrvProductsAdminPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/SystemKrvProtectionsAdminPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/RiskPhraseEViewEditPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/RiskPhraseHViewEditPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/RiskPhrasePViewEditPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/Section3ViewEditPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/Section4ViewEditPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/Section5ViewEditPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/Section6ViewEditPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/Section7ViewEditPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/Section8ViewEditPage.razor.cs delete mode 100644 Wonky.Client/Pages/System/Krv/Texts/SectionAViewEditPage.razor.cs create mode 100644 Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor rename Wonky.Client/Pages/{System/Krv/Protection/ProtectionItemListPage.razor.cs => SystemKrvProtectionItemListPage.razor.cs} (90%) create mode 100644 Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor rename Wonky.Client/Pages/{System/Krv/Protection/ProtectionItemViewEditPage.razor.cs => SystemKrvProtectionItemViewEditPage.razor.cs} (90%) rename Wonky.Client/Pages/{System/Krv/SystemKrvProtectionsAdminPage.razor => SystemKrvProtectionListPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvProtectionListPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Protection/ProtectionItemViewEditPage.razor => SystemKrvProtectionTypeListPage.razor} (77%) rename Wonky.Client/Pages/{System/Krv/Product/ProductListPage.razor.cs => SystemKrvProtectionTypeListPage.razor.cs} (90%) rename Wonky.Client/Pages/{System/Krv/Product/ProductLIstPage.razor => SystemKrvProtectionTypeViewEditPage.razor} (75%) rename Wonky.Client/Pages/{System/Krv/Protection/ProtectionTypeViewEditPage.razor.cs => SystemKrvProtectionTypeViewEditPage.razor.cs} (89%) rename Wonky.Client/Pages/{System/Krv/Texts/AccidentViewEditPage.razor => SystemKrvTextsAccidentViewEditPage.razor} (100%) rename Wonky.Client/Pages/{System/Krv/Texts/Section1ViewEditPage.razor.cs => SystemKrvTextsAccidentViewEditPage.razor.cs} (89%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsAdminPage.razor rename Wonky.Client/Pages/{System/Krv => }/SystemKrvTextsAdminPage.razor.cs (56%) rename Wonky.Client/Pages/{System/Krv/Texts/DangerMarkingViewEditPage.razor => SystemKrvTextsDangerMarkingViewEditPage.razor} (100%) rename Wonky.Client/Pages/{System/Krv/Texts/Section9ViewEditPage.razor.cs => SystemKrvTextsDangerMarkingViewEditPage.razor.cs} (89%) rename Wonky.Client/Pages/{System/Krv/Texts/FirstAidViewEditPage.razor => SystemKrvTextsFirstAidViewEditPage.razor} (100%) rename Wonky.Client/Pages/{System/Krv/Texts/FirstAidViewEditPage.razor.cs => SystemKrvTextsFirstAidViewEditPage.razor.cs} (89%) rename Wonky.Client/Pages/{System/Krv/Texts/PrintingViewEditPage.razor => SystemKrvTextsPrintingViewEditPage.razor} (100%) rename Wonky.Client/Pages/{System/Krv/Texts/PrintingViewEditPage.razor.cs => SystemKrvTextsPrintingViewEditPage.razor.cs} (89%) rename Wonky.Client/Pages/{System/Krv/Texts/RiskPhraseEViewEditPage.razor => SystemKrvTextsRiskPhraseEViewEditPage.razor} (100%) rename Wonky.Client/Pages/{System/Krv/Texts/Section2ViewEditPage.razor.cs => SystemKrvTextsRiskPhraseEViewEditPage.razor.cs} (89%) rename Wonky.Client/Pages/{System/Krv/Texts/RiskPhraseHViewEditPage.razor => SystemKrvTextsRiskPhraseHViewEditPage.razor} (100%) rename Wonky.Client/Pages/{System/Krv/Texts/AccidentViewEditPage.razor.cs => SystemKrvTextsRiskPhraseHViewEditPage.razor.cs} (89%) rename Wonky.Client/Pages/{System/Krv/Texts/RiskPhrasePViewEditPage.razor => SystemKrvTextsRiskPhrasePViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/Section0ViewEditPage.razor => SystemKrvTextsSection0ViewEditPage.razor} (100%) rename Wonky.Client/Pages/{System/Krv/Texts/Section0ViewEditPage.razor.cs => SystemKrvTextsSection0ViewEditPage.razor.cs} (89%) rename Wonky.Client/Pages/{System/Krv/Texts/Section1ViewEditPage.razor => SystemKrvTextsSection1ViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/Section2ViewEditPage.razor => SystemKrvTextsSection2ViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/Section3ViewEditPage.razor => SystemKrvTextsSection3ViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/Section4ViewEditPage.razor => SystemKrvTextsSection4ViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/Section5ViewEditPage.razor => SystemKrvTextsSection5ViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/Section6ViewEditPage.razor => SystemKrvTextsSection6ViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/Section7ViewEditPage.razor => SystemKrvTextsSection7ViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/Section8ViewEditPage.razor => SystemKrvTextsSection8ViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/SectionAViewEditPage.razor => SystemKrvTextsSectionAViewEditPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Texts/Section9ViewEditPage.razor => SystemKrvTextsSystemKrvSection9ViewEditPage.razor} (100%) rename Wonky.Client/Pages/{System/Krv/Texts/DangerMarkingViewEditPage.razor.cs => SystemKrvTextsSystemKrvSection9ViewEditPage.razor.cs} (89%) rename Wonky.Client/Pages/{System => }/SystemManagerLandingPage.razor (59%) rename Wonky.Client/Pages/{System => }/SystemManagerLandingPage.razor.cs (96%) rename Wonky.Client/Pages/{System/Krv/SystemKrvProductsAdminPage.razor => SystemProductListPage.razor} (100%) create mode 100644 Wonky.Client/Pages/SystemProductListPage.razor.cs rename Wonky.Client/Pages/{System/Krv/Protection/ProtectionTypeViewEditPage.razor => SystemProductVariantListPage.razor} (76%) rename Wonky.Client/Pages/{System/Krv/Product/ProductViewEditPage.razor.cs => SystemProductVariantListPage.razor.cs} (90%) rename Wonky.Client/Pages/{System/Krv/Product/ProductViewEditPage.razor => SystemProductVariantViewEditPage.razor} (75%) rename Wonky.Client/Pages/{System/Krv/Product/ProductVariantViewEditPage.razor.cs => SystemProductVariantViewEditPage.razor.cs} (90%) rename Wonky.Client/Pages/{System/Krv/SystemKrvTextsAdminPage.razor => SystemProductViewEditPage.razor} (86%) rename Wonky.Client/Pages/{System/Krv/Product/ProductVariantListPage.razor.cs => SystemProductViewEditPage.razor.cs} (90%) rename Wonky.Client/Pages/{System/SystemMaintenanceMessagePage.razor => SystemShortMessagePage.razor} (100%) rename Wonky.Client/Pages/{System/SystemMaintenanceMessagePage.razor.cs => SystemShortMessagePage.razor.cs} (94%) rename Wonky.Client/Pages/{System/Users => }/SystemSupervisorListPage.razor (100%) rename Wonky.Client/Pages/{System/Users => }/SystemSupervisorListPage.razor.cs (97%) rename Wonky.Client/Pages/{System/Users => }/SystemSupervisorViewEditPage.razor (100%) rename Wonky.Client/Pages/{System/Users => }/SystemSupervisorViewEditPage.razor.cs (98%) rename Wonky.Client/Pages/{System/Users => }/SystemUserCreatePage.razor (100%) rename Wonky.Client/Pages/{System/Users => }/SystemUserCreatePage.razor.cs (98%) rename Wonky.Client/Pages/{System/Users => }/SystemUserListPage.razor (100%) rename Wonky.Client/Pages/{System/Users => }/SystemUserListPage.razor.cs (97%) rename Wonky.Client/Pages/{System/Users => }/SystemUserViewEditPage.razor (100%) rename Wonky.Client/Pages/{System/Users => }/SystemUserViewEditPage.razor.cs (99%) rename Wonky.Client/Pages/{System/Krv/Texts => }/WasteSpillViewEditPage.razor (100%) rename Wonky.Client/Pages/{System/Krv/Texts => }/WasteSpillViewEditPage.razor.cs (94%) diff --git a/Wonky.Client/Components/WorkDateComponent.razor b/Wonky.Client/Components/WorkDateComponent.razor index 801c7516..58f4931b 100644 --- a/Wonky.Client/Components/WorkDateComponent.razor +++ b/Wonky.Client/Components/WorkDateComponent.razor @@ -23,7 +23,7 @@ d. @(SelectedDate.Day)/@(SelectedDate.Month)
- +
diff --git a/Wonky.Client/Components/WorkDateComponent.razor.cs b/Wonky.Client/Components/WorkDateComponent.razor.cs index 44512a32..78e105a7 100644 --- a/Wonky.Client/Components/WorkDateComponent.razor.cs +++ b/Wonky.Client/Components/WorkDateComponent.razor.cs @@ -35,7 +35,7 @@ public partial class WorkDateComponent : IDisposable /// /// OnChanged callback function /// - [Parameter] public EventCallback OnChangedCallback { get; set; } + [Parameter] public EventCallback OnWorkDateChangedCallback { get; set; } /// /// work date context holding the edit value @@ -69,13 +69,12 @@ public partial class WorkDateComponent : IDisposable /// OnDateChanged function call to invoke the event callback /// /// - private async Task OnDateChanged(ChangeEventArgs e) + private async Task WorkDateChanged(ChangeEventArgs e) { - if (DateTime.TryParse(e.Value.ToString(), out var setDate)) { await UserPreference.SetWorkDate(setDate); - await OnChangedCallback.InvokeAsync($"{setDate:yyyy-MM-dd}"); + await OnWorkDateChangedCallback.InvokeAsync($"{setDate:yyyy-MM-dd}"); } } diff --git a/Wonky.Client/Pages/AdvisorActivityCreatePage.razor b/Wonky.Client/Pages/AdvisorActivityCreatePage.razor index e4ec6ea5..fed52a55 100644 --- a/Wonky.Client/Pages/AdvisorActivityCreatePage.razor +++ b/Wonky.Client/Pages/AdvisorActivityCreatePage.razor @@ -25,7 +25,7 @@
- +
diff --git a/Wonky.Client/Pages/AdvisorActivityCreatePage.razor.cs b/Wonky.Client/Pages/AdvisorActivityCreatePage.razor.cs index c872e53e..ee186637 100644 --- a/Wonky.Client/Pages/AdvisorActivityCreatePage.razor.cs +++ b/Wonky.Client/Pages/AdvisorActivityCreatePage.razor.cs @@ -352,7 +352,7 @@ public partial class AdvisorActivityCreatePage : IDisposable } - private async Task WorkDateComponentCallback(string workDate) + private async Task WorkDateChangedCallback(string workDate) { ReportClosed = await ReportRepo.ReportExist(workDate); SelectedDate = DateTime.Parse(workDate); diff --git a/Wonky.Client/Pages/AdvisorActivityTodayListPage.razor b/Wonky.Client/Pages/AdvisorActivityTodayListPage.razor index 98fd8464..9937cc88 100644 --- a/Wonky.Client/Pages/AdvisorActivityTodayListPage.razor +++ b/Wonky.Client/Pages/AdvisorActivityTodayListPage.razor @@ -21,7 +21,7 @@ Aktiviteter for @($"{SelectedDate:yyyy-MM-dd}")
- +
diff --git a/Wonky.Client/Pages/AdvisorActivityTodayListPage.razor.cs b/Wonky.Client/Pages/AdvisorActivityTodayListPage.razor.cs index 401c5f83..2fa27958 100644 --- a/Wonky.Client/Pages/AdvisorActivityTodayListPage.razor.cs +++ b/Wonky.Client/Pages/AdvisorActivityTodayListPage.razor.cs @@ -51,11 +51,11 @@ public partial class AdvisorActivityTodayListPage : IDisposable ? DateTime.Now : DateTime.Parse(UserPreference.WorkDate); ReportExist = await ReportRepo.ReportExist($"{SelectedDate:yyyy-MM-dd}"); - await GetActivities($"{SelectedDate:yyyy-MM-dd}"); + await GetWorkDateActivities($"{SelectedDate:yyyy-MM-dd}"); Working = false; } - private async Task GetActivities(string workDate) + private async Task GetWorkDateActivities(string workDate) { Working = true; Toaster.ShowInfo("Vent nogle sekunder for data"); diff --git a/Wonky.Client/Pages/KrvWorkplaceDocumentListPage.razor b/Wonky.Client/Pages/AdvisorCustomerWorkplaceDocumentListPage.razor similarity index 100% rename from Wonky.Client/Pages/KrvWorkplaceDocumentListPage.razor rename to Wonky.Client/Pages/AdvisorCustomerWorkplaceDocumentListPage.razor diff --git a/Wonky.Client/Pages/KrvWorkplaceDocumentListPage.razor.cs b/Wonky.Client/Pages/AdvisorCustomerWorkplaceDocumentListPage.razor.cs similarity index 97% rename from Wonky.Client/Pages/KrvWorkplaceDocumentListPage.razor.cs rename to Wonky.Client/Pages/AdvisorCustomerWorkplaceDocumentListPage.razor.cs index 5d19d504..57365a6b 100644 --- a/Wonky.Client/Pages/KrvWorkplaceDocumentListPage.razor.cs +++ b/Wonky.Client/Pages/AdvisorCustomerWorkplaceDocumentListPage.razor.cs @@ -23,7 +23,7 @@ using Wonky.Entity.Views; namespace Wonky.Client.Pages; -public partial class KrvWorkplaceDocumentListPage : IDisposable +public partial class AdvisorCustomerWorkplaceDocumentListPage : IDisposable { // ################################################################## [Inject] public HttpInterceptorService Interceptor { get; set; } diff --git a/Wonky.Client/Pages/KrvWorkplaceListPage.razor b/Wonky.Client/Pages/AdvisorCustomerWorkplaceListPage.razor similarity index 100% rename from Wonky.Client/Pages/KrvWorkplaceListPage.razor rename to Wonky.Client/Pages/AdvisorCustomerWorkplaceListPage.razor diff --git a/Wonky.Client/Pages/KrvWorkplaceListPage.razor.cs b/Wonky.Client/Pages/AdvisorCustomerWorkplaceListPage.razor.cs similarity index 96% rename from Wonky.Client/Pages/KrvWorkplaceListPage.razor.cs rename to Wonky.Client/Pages/AdvisorCustomerWorkplaceListPage.razor.cs index e0d16b09..06805ca1 100644 --- a/Wonky.Client/Pages/KrvWorkplaceListPage.razor.cs +++ b/Wonky.Client/Pages/AdvisorCustomerWorkplaceListPage.razor.cs @@ -23,7 +23,7 @@ using Wonky.Entity.Views; namespace Wonky.Client.Pages; -public partial class KrvWorkplaceListPage : IDisposable +public partial class AdvisorCustomerWorkplaceListPage : IDisposable { [Parameter] public string CompanyId { get; set; } = ""; [Inject] public IAdvisorWorkplaceRepository WorkplaceRepo { get; set; } diff --git a/Wonky.Client/Pages/KrvWorkplaceViewEditPage.razor b/Wonky.Client/Pages/AdvisorCustomerWorkplaceViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/KrvWorkplaceViewEditPage.razor rename to Wonky.Client/Pages/AdvisorCustomerWorkplaceViewEditPage.razor diff --git a/Wonky.Client/Pages/KrvWorkplaceViewEditPage.razor.cs b/Wonky.Client/Pages/AdvisorCustomerWorkplaceViewEditPage.razor.cs similarity index 97% rename from Wonky.Client/Pages/KrvWorkplaceViewEditPage.razor.cs rename to Wonky.Client/Pages/AdvisorCustomerWorkplaceViewEditPage.razor.cs index ab434f8f..9b5c9722 100644 --- a/Wonky.Client/Pages/KrvWorkplaceViewEditPage.razor.cs +++ b/Wonky.Client/Pages/AdvisorCustomerWorkplaceViewEditPage.razor.cs @@ -23,7 +23,7 @@ using Wonky.Entity.DTO; #pragma warning disable CS8618 namespace Wonky.Client.Pages; -public partial class KrvWorkplaceViewEditPage : IDisposable +public partial class AdvisorCustomerWorkplaceViewEditPage : IDisposable { // ############################################################# [Inject] public IAdvisorWorkplaceRepository Workplaces { get; set; } diff --git a/Wonky.Client/Pages/AdvisorReportCreatePage.razor b/Wonky.Client/Pages/AdvisorReportCreatePage.razor index b3fd1f17..e135aeda 100644 --- a/Wonky.Client/Pages/AdvisorReportCreatePage.razor +++ b/Wonky.Client/Pages/AdvisorReportCreatePage.razor @@ -24,7 +24,7 @@ @* report header *@
- +
diff --git a/Wonky.Client/Pages/AdvisorReportViewPage.razor b/Wonky.Client/Pages/AdvisorReportViewPage.razor index ce759bd9..990771e6 100644 --- a/Wonky.Client/Pages/AdvisorReportViewPage.razor +++ b/Wonky.Client/Pages/AdvisorReportViewPage.razor @@ -22,7 +22,7 @@ @Report.ReportData.Name
- +
diff --git a/Wonky.Client/Pages/AdvisorTaskItemListCrmPage.razor b/Wonky.Client/Pages/AdvisorTaskItemListCrmPage.razor index 428bd421..18a74e50 100644 --- a/Wonky.Client/Pages/AdvisorTaskItemListCrmPage.razor +++ b/Wonky.Client/Pages/AdvisorTaskItemListCrmPage.razor @@ -26,7 +26,7 @@ @*

@(string.IsNullOrWhiteSpace(_workDate) ? "" : $"{DateTime.Parse(_workDate).ToLongDateString()}")

*@ @*
*@
- +
NY OPGAVE diff --git a/Wonky.Client/Pages/KrvItemViewPage.razor b/Wonky.Client/Pages/KrvItemViewPage.razor deleted file mode 100644 index 89f03ffa..00000000 --- a/Wonky.Client/Pages/KrvItemViewPage.razor +++ /dev/null @@ -1,68 +0,0 @@ -@* -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// -*@ - -@page "/krv/{CountryCode}/items/{salesItemId}" -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Advisor,Advisor")] - - -
-
-

@_item.Name

-
-
- - - - - - - - - - - - - - - - - - - -
Navn@_item.Name
Varenr@_item.Sku
@_item.ProductGroup
Kort Navn@_item.ShortName
- - - - - - - - @foreach (var rate in _item.Rates) - { - - - - - } - -
Priser
@rate.Quantity@rate.Rate
-
- -
\ No newline at end of file diff --git a/Wonky.Client/Pages/KrvItemViewPage.razor.cs b/Wonky.Client/Pages/KrvItemViewPage.razor.cs deleted file mode 100644 index c73cdc69..00000000 --- a/Wonky.Client/Pages/KrvItemViewPage.razor.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -using Wonky.Client.HttpInterceptors; -using Wonky.Client.HttpRepository; -using Microsoft.AspNetCore.Components; -using Wonky.Entity.Views; - -#pragma warning disable CS8618 -namespace Wonky.Client.Pages; - -public partial class KrvItemViewPage : IDisposable -{ - // ################################################################## - [Inject] private ICountryCatalogRepository _itemRepo { get; set; } - [Inject] private HttpInterceptorService _interceptor { get; set; } - - // ################################################################## - [Parameter] public string SalesItemId { get; set; } = ""; - [Parameter] public string CountryCode { get; set; } = ""; - - // ################################################################## - private SalesItemView _item { get; set; } = new (); - - - protected override async Task OnInitializedAsync() - { - _interceptor.RegisterEvent(); - _interceptor.RegisterBeforeSendEvent(); - _item = await _itemRepo.GetSalesItemId(CountryCode, SalesItemId); - } - - - /// - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - /// - public void Dispose() - { - _interceptor!.DisposeEvent(); - } -} \ No newline at end of file diff --git a/Wonky.Client/Pages/KrvItemViewPage.razor.css b/Wonky.Client/Pages/KrvItemViewPage.razor.css deleted file mode 100644 index 50839936..00000000 --- a/Wonky.Client/Pages/KrvItemViewPage.razor.css +++ /dev/null @@ -1,10 +0,0 @@ -/* item image preview */ -.image-name { - margin-left: 10px; -} -.image-preview { - width: auto; - max-width: 200px; - height: 100px; - margin-top: 15px; -} \ No newline at end of file diff --git a/Wonky.Client/Pages/OfficeAdvisorReportViewPage.razor b/Wonky.Client/Pages/OfficeAdvisorReportViewPage.razor index ff24535c..433f7547 100644 --- a/Wonky.Client/Pages/OfficeAdvisorReportViewPage.razor +++ b/Wonky.Client/Pages/OfficeAdvisorReportViewPage.razor @@ -21,7 +21,7 @@
- +
diff --git a/Wonky.Client/Pages/System/Krv/LandingPage.razor b/Wonky.Client/Pages/System/Krv/LandingPage.razor deleted file mode 100644 index 1564522d..00000000 --- a/Wonky.Client/Pages/System/Krv/LandingPage.razor +++ /dev/null @@ -1,54 +0,0 @@ -@* Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/krv" - -

Kemisk Risiko Administration

- - - - -@code { - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Product/ProductVariantListPage.razor b/Wonky.Client/Pages/System/Krv/Product/ProductVariantListPage.razor deleted file mode 100644 index aa3ce441..00000000 --- a/Wonky.Client/Pages/System/Krv/Product/ProductVariantListPage.razor +++ /dev/null @@ -1,20 +0,0 @@ -@* Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/krv/products/{ProductId}/variants" -

Produkt varianter

diff --git a/Wonky.Client/Pages/System/Krv/Product/ProductVariantViewEditPage.razor b/Wonky.Client/Pages/System/Krv/Product/ProductVariantViewEditPage.razor deleted file mode 100644 index e1d1c0bd..00000000 --- a/Wonky.Client/Pages/System/Krv/Product/ProductVariantViewEditPage.razor +++ /dev/null @@ -1,20 +0,0 @@ -@* Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/krv/products/{ProductId}/variants/{VariantId}" -

Ændre produkt variant

diff --git a/Wonky.Client/Pages/System/Krv/Protection/ProtectionItemListPage.razor b/Wonky.Client/Pages/System/Krv/Protection/ProtectionItemListPage.razor deleted file mode 100644 index 24c420ce..00000000 --- a/Wonky.Client/Pages/System/Krv/Protection/ProtectionItemListPage.razor +++ /dev/null @@ -1,20 +0,0 @@ -@* Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/krv/protective-equipment/{ProtectionId}/items" -

Værnemidler

diff --git a/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeListPage.razor b/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeListPage.razor deleted file mode 100644 index 37725b03..00000000 --- a/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeListPage.razor +++ /dev/null @@ -1,39 +0,0 @@ -@* Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/krv/protective-equipment" -

Værnemidler

- -@code { - // Copyright (C) 2022 FCS Frede's Computer Services. - // This program is free software: you can redistribute it and/or modify - // it under the terms of the GNU Affero General Public License as - // published by the Free Software Foundation, either version 3 of the - // License, or (at your option) any later version. - // - // This program is distributed in the hope that it will be useful, - // but WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // GNU Affero General Public License for more details. - // - // You should have received a copy of the GNU Affero General Public License - // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] - // - - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeListPage.razor.cs b/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeListPage.razor.cs deleted file mode 100644 index d0c82ad9..00000000 --- a/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeListPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Protection; - -public partial class ProtectionTypeListPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/SystemKrvProductsAdminPage.razor.cs b/Wonky.Client/Pages/System/Krv/SystemKrvProductsAdminPage.razor.cs deleted file mode 100644 index c622859c..00000000 --- a/Wonky.Client/Pages/System/Krv/SystemKrvProductsAdminPage.razor.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Wonky.Client.Pages.System.Krv; - -public partial class SystemKrvProductsAdminPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/SystemKrvProtectionsAdminPage.razor.cs b/Wonky.Client/Pages/System/Krv/SystemKrvProtectionsAdminPage.razor.cs deleted file mode 100644 index 91154ec9..00000000 --- a/Wonky.Client/Pages/System/Krv/SystemKrvProtectionsAdminPage.razor.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Wonky.Client.Pages.System.Krv; - -public partial class SystemKrvProtectionsAdminPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/RiskPhraseEViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/RiskPhraseEViewEditPage.razor.cs deleted file mode 100644 index 0392e2b3..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/RiskPhraseEViewEditPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class RiskPhraseEViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/RiskPhraseHViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/RiskPhraseHViewEditPage.razor.cs deleted file mode 100644 index 87c95bd9..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/RiskPhraseHViewEditPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class RiskPhraseHViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/RiskPhrasePViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/RiskPhrasePViewEditPage.razor.cs deleted file mode 100644 index c3c6636c..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/RiskPhrasePViewEditPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class RiskPhrasePViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section3ViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/Section3ViewEditPage.razor.cs deleted file mode 100644 index 1ba068b9..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/Section3ViewEditPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class Section3ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section4ViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/Section4ViewEditPage.razor.cs deleted file mode 100644 index c7646166..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/Section4ViewEditPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class Section4ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section5ViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/Section5ViewEditPage.razor.cs deleted file mode 100644 index 6d6d06d0..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/Section5ViewEditPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class Section5ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section6ViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/Section6ViewEditPage.razor.cs deleted file mode 100644 index d73e33d2..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/Section6ViewEditPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class Section6ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section7ViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/Section7ViewEditPage.razor.cs deleted file mode 100644 index 126e5e15..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/Section7ViewEditPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class Section7ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section8ViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/Section8ViewEditPage.razor.cs deleted file mode 100644 index 7be741aa..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/Section8ViewEditPage.razor.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class Section8ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/SectionAViewEditPage.razor.cs b/Wonky.Client/Pages/System/Krv/Texts/SectionAViewEditPage.razor.cs deleted file mode 100644 index a7c376d6..00000000 --- a/Wonky.Client/Pages/System/Krv/Texts/SectionAViewEditPage.razor.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2022 FCS Frede's Computer Services. -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] -// - - -namespace Wonky.Client.Pages.System.Krv.Texts; - -public partial class Section9ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor b/Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor new file mode 100644 index 00000000..4bed1d0d --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor @@ -0,0 +1,29 @@ +@* Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +*@ + +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize(Roles = "Admin")] + +@page "/system/krv/protective-equipment/{ProtectionId}/items" + +
+
+
+ Værnemiddel varianter +
+
+
+
+
diff --git a/Wonky.Client/Pages/System/Krv/Protection/ProtectionItemListPage.razor.cs b/Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor.cs similarity index 90% rename from Wonky.Client/Pages/System/Krv/Protection/ProtectionItemListPage.razor.cs rename to Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor.cs index 8ffa7c90..b6aba9a3 100644 --- a/Wonky.Client/Pages/System/Krv/Protection/ProtectionItemListPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor.cs @@ -15,9 +15,9 @@ using Microsoft.AspNetCore.Components; -namespace Wonky.Client.Pages.System.Krv.Protection; +namespace Wonky.Client.Pages; -public partial class ProtectionItemListPage +public partial class SystemKrvProtectionItemListPage { [Parameter] public string ProtectionId { get; set; } = ""; } \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor b/Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor new file mode 100644 index 00000000..2b7c00b1 --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor @@ -0,0 +1,30 @@ +@* Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +*@ + +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize(Roles = "Admin")] + +@page "/system/krv/protective-equipment/{ProtectionId}/items/{ItemId}" + +
+
+
+ Værnemiddel variant +
+
+
+
+
+ diff --git a/Wonky.Client/Pages/System/Krv/Protection/ProtectionItemViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor.cs similarity index 90% rename from Wonky.Client/Pages/System/Krv/Protection/ProtectionItemViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor.cs index dd30a7ff..6b80b368 100644 --- a/Wonky.Client/Pages/System/Krv/Protection/ProtectionItemViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor.cs @@ -15,9 +15,9 @@ using Microsoft.AspNetCore.Components; -namespace Wonky.Client.Pages.System.Krv.Protection; +namespace Wonky.Client.Pages; -public partial class ProtectionItemViewEditPage +public partial class SystemKrvProtectionItemViewEditPage { [Parameter] public string ProtectionId { get; set; } = ""; [Parameter] public string ItemId { get; set; } = ""; diff --git a/Wonky.Client/Pages/System/Krv/SystemKrvProtectionsAdminPage.razor b/Wonky.Client/Pages/SystemKrvProtectionListPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/SystemKrvProtectionsAdminPage.razor rename to Wonky.Client/Pages/SystemKrvProtectionListPage.razor diff --git a/Wonky.Client/Pages/SystemKrvProtectionListPage.razor.cs b/Wonky.Client/Pages/SystemKrvProtectionListPage.razor.cs new file mode 100644 index 00000000..0ffe2c04 --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvProtectionListPage.razor.cs @@ -0,0 +1,6 @@ +namespace Wonky.Client.Pages; + +public partial class SystemKrvProtectionListPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Protection/ProtectionItemViewEditPage.razor b/Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor similarity index 77% rename from Wonky.Client/Pages/System/Krv/Protection/ProtectionItemViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor index f5dd3429..e06192fc 100644 --- a/Wonky.Client/Pages/System/Krv/Protection/ProtectionItemViewEditPage.razor +++ b/Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor @@ -16,6 +16,14 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/krv/protective-equipment/{ProtectionId}/items/{ItemId}" -

Ændre værnemiddel

+@page "/system/krv/protective-equipment" +
+
+
+ Værnemiddel grupper +
+
+
+
+
\ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Product/ProductListPage.razor.cs b/Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor.cs similarity index 90% rename from Wonky.Client/Pages/System/Krv/Product/ProductListPage.razor.cs rename to Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor.cs index 844f506a..6d5903af 100644 --- a/Wonky.Client/Pages/System/Krv/Product/ProductListPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor.cs @@ -13,9 +13,9 @@ // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // -namespace Wonky.Client.Pages.System.Krv.Product; +namespace Wonky.Client.Pages; -public partial class ProductListPage +public partial class SystemKrvProtectionTypeListPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Product/ProductLIstPage.razor b/Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor similarity index 75% rename from Wonky.Client/Pages/System/Krv/Product/ProductLIstPage.razor rename to Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor index ea474ff1..268e9ff0 100644 --- a/Wonky.Client/Pages/System/Krv/Product/ProductLIstPage.razor +++ b/Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor @@ -16,5 +16,15 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/krv/products" -

Produkt oversigt

+@page "/system/krv/protective-equipment/{ProtectionId}/" + +
+
+
+ Værnemiddel gruppe +
+
+
+
+
+ diff --git a/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor.cs similarity index 89% rename from Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor.cs index e51542a1..28bd1990 100644 --- a/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor.cs @@ -16,9 +16,9 @@ using Microsoft.AspNetCore.Components; -namespace Wonky.Client.Pages.System.Krv.Protection; +namespace Wonky.Client.Pages; -public partial class ProtectionTypeViewEditPage +public partial class SystemKrvProtectionTypeViewEditPage { [Parameter] public string ProtectionId { get; set; } = ""; } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/AccidentViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/AccidentViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section1ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor.cs similarity index 89% rename from Wonky.Client/Pages/System/Krv/Texts/Section1ViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor.cs index 69bb1764..a65138b4 100644 --- a/Wonky.Client/Pages/System/Krv/Texts/Section1ViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor.cs @@ -13,9 +13,9 @@ // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // -namespace Wonky.Client.Pages.System.Krv.Texts; +namespace Wonky.Client.Pages; -public partial class Section1ViewEditPage +public partial class SystemKrvTextsAccidentViewEditPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor b/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor new file mode 100644 index 00000000..d5237ab4 --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor @@ -0,0 +1,47 @@ +@* Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +*@ + + +@page "/system/krv/texts/" + \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/SystemKrvTextsAdminPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor.cs similarity index 56% rename from Wonky.Client/Pages/System/Krv/SystemKrvTextsAdminPage.razor.cs rename to Wonky.Client/Pages/SystemKrvTextsAdminPage.razor.cs index 5d6388aa..4fc46ce6 100644 --- a/Wonky.Client/Pages/System/Krv/SystemKrvTextsAdminPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor.cs @@ -1,4 +1,4 @@ -namespace Wonky.Client.Pages.System.Krv; +namespace Wonky.Client.Pages; public partial class SystemKrvTextsAdminPage { diff --git a/Wonky.Client/Pages/System/Krv/Texts/DangerMarkingViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/DangerMarkingViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section9ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.razor.cs similarity index 89% rename from Wonky.Client/Pages/System/Krv/Texts/Section9ViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.razor.cs index a7c376d6..93cd7896 100644 --- a/Wonky.Client/Pages/System/Krv/Texts/Section9ViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.razor.cs @@ -14,9 +14,9 @@ // -namespace Wonky.Client.Pages.System.Krv.Texts; +namespace Wonky.Client.Pages; -public partial class Section9ViewEditPage +public partial class SystemKrvTextsDangerMarkingViewEditPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/FirstAidViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/FirstAidViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Krv/Texts/FirstAidViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor.cs similarity index 89% rename from Wonky.Client/Pages/System/Krv/Texts/FirstAidViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor.cs index 52bf0c4e..b2575ec1 100644 --- a/Wonky.Client/Pages/System/Krv/Texts/FirstAidViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor.cs @@ -14,9 +14,9 @@ // -namespace Wonky.Client.Pages.System.Krv.Texts; +namespace Wonky.Client.Pages; -public partial class FirstAidViewEditPage +public partial class SystemKrvTextsFirstAidViewEditPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/PrintingViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/PrintingViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Krv/Texts/PrintingViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor.cs similarity index 89% rename from Wonky.Client/Pages/System/Krv/Texts/PrintingViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor.cs index 7877965e..92d73f3d 100644 --- a/Wonky.Client/Pages/System/Krv/Texts/PrintingViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor.cs @@ -14,9 +14,9 @@ // -namespace Wonky.Client.Pages.System.Krv.Texts; +namespace Wonky.Client.Pages; -public partial class PrintingViewEditPage +public partial class SystemKrvTextsPrintingViewEditPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/RiskPhraseEViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/RiskPhraseEViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section2ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor.cs similarity index 89% rename from Wonky.Client/Pages/System/Krv/Texts/Section2ViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor.cs index d6d650e1..39d4e9b3 100644 --- a/Wonky.Client/Pages/System/Krv/Texts/Section2ViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor.cs @@ -13,9 +13,9 @@ // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // -namespace Wonky.Client.Pages.System.Krv.Texts; +namespace Wonky.Client.Pages; -public partial class Section2ViewEditPage +public partial class SystemKrvTextsRiskPhraseEViewEditPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/RiskPhraseHViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/RiskPhraseHViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Krv/Texts/AccidentViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor.cs similarity index 89% rename from Wonky.Client/Pages/System/Krv/Texts/AccidentViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor.cs index feced722..0684f48b 100644 --- a/Wonky.Client/Pages/System/Krv/Texts/AccidentViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor.cs @@ -13,9 +13,9 @@ // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // -namespace Wonky.Client.Pages.System.Krv.Texts; +namespace Wonky.Client.Pages; -public partial class AccidentViewEditPage +public partial class SystemKrvTextsRiskPhraseHViewEditPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/RiskPhrasePViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/RiskPhrasePViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor.cs new file mode 100644 index 00000000..b9385d15 --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor.cs @@ -0,0 +1,21 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsRiskPhrasePViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section0ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section0ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section0ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor.cs similarity index 89% rename from Wonky.Client/Pages/System/Krv/Texts/Section0ViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor.cs index 943a1c66..e1db082d 100644 --- a/Wonky.Client/Pages/System/Krv/Texts/Section0ViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor.cs @@ -14,9 +14,9 @@ // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // -namespace Wonky.Client.Pages.System.Krv.Texts; +namespace Wonky.Client.Pages; -public partial class Section0ViewEditPage +public partial class SystemKrvTextsSection0ViewEditPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section1ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section1ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor.cs new file mode 100644 index 00000000..11143051 --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor.cs @@ -0,0 +1,21 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsSection1ViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section2ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section2ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor.cs new file mode 100644 index 00000000..7ef4851b --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor.cs @@ -0,0 +1,21 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsSection2ViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section3ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section3ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor.cs new file mode 100644 index 00000000..0840aab7 --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor.cs @@ -0,0 +1,21 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsSection3ViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section4ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section4ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor.cs new file mode 100644 index 00000000..0cd87ceb --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor.cs @@ -0,0 +1,21 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsSection4ViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section5ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section5ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor.cs new file mode 100644 index 00000000..28d470b9 --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor.cs @@ -0,0 +1,21 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsSection5ViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section6ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section6ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor.cs new file mode 100644 index 00000000..2ceaed0f --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor.cs @@ -0,0 +1,21 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsSection6ViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section7ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section7ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor.cs new file mode 100644 index 00000000..3865da2e --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor.cs @@ -0,0 +1,21 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsSection7ViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section8ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section8ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor.cs new file mode 100644 index 00000000..faec663f --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor.cs @@ -0,0 +1,21 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsSection8ViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/SectionAViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/SectionAViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor diff --git a/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor.cs new file mode 100644 index 00000000..fb444428 --- /dev/null +++ b/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor.cs @@ -0,0 +1,22 @@ +// Copyright (C) 2022 FCS Frede's Computer Services. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] +// + + +namespace Wonky.Client.Pages; + +public partial class SystemKrvTextsSectionAViewEditPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Texts/Section9ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/Section9ViewEditPage.razor rename to Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Krv/Texts/DangerMarkingViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.razor.cs similarity index 89% rename from Wonky.Client/Pages/System/Krv/Texts/DangerMarkingViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.razor.cs index b5c1a913..df4efac9 100644 --- a/Wonky.Client/Pages/System/Krv/Texts/DangerMarkingViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.razor.cs @@ -14,9 +14,9 @@ // -namespace Wonky.Client.Pages.System.Krv.Texts; +namespace Wonky.Client.Pages; -public partial class DangerMarkingViewEditPage +public partial class SystemKrvTextsSystemKrvSection9ViewEditPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/SystemManagerLandingPage.razor b/Wonky.Client/Pages/SystemManagerLandingPage.razor similarity index 59% rename from Wonky.Client/Pages/System/SystemManagerLandingPage.razor rename to Wonky.Client/Pages/SystemManagerLandingPage.razor index c5215301..4afbeee1 100644 --- a/Wonky.Client/Pages/System/SystemManagerLandingPage.razor +++ b/Wonky.Client/Pages/SystemManagerLandingPage.razor @@ -20,9 +20,9 @@ System Mmanager \ No newline at end of file + Bruger Admin + Supervisor Admin + Produkt Admin + Kemi Værnemiddel Admin + Kemi Tekst Admin +
diff --git a/Wonky.Client/Pages/System/SystemManagerLandingPage.razor.cs b/Wonky.Client/Pages/SystemManagerLandingPage.razor.cs similarity index 96% rename from Wonky.Client/Pages/System/SystemManagerLandingPage.razor.cs rename to Wonky.Client/Pages/SystemManagerLandingPage.razor.cs index 24b2e204..5006143b 100644 --- a/Wonky.Client/Pages/System/SystemManagerLandingPage.razor.cs +++ b/Wonky.Client/Pages/SystemManagerLandingPage.razor.cs @@ -17,7 +17,7 @@ using Microsoft.AspNetCore.Components; #pragma warning disable CS8618 -namespace Wonky.Client.Pages.System; +namespace Wonky.Client.Pages; public partial class SystemManagerLandingPage { diff --git a/Wonky.Client/Pages/System/Krv/SystemKrvProductsAdminPage.razor b/Wonky.Client/Pages/SystemProductListPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/SystemKrvProductsAdminPage.razor rename to Wonky.Client/Pages/SystemProductListPage.razor diff --git a/Wonky.Client/Pages/SystemProductListPage.razor.cs b/Wonky.Client/Pages/SystemProductListPage.razor.cs new file mode 100644 index 00000000..1229c963 --- /dev/null +++ b/Wonky.Client/Pages/SystemProductListPage.razor.cs @@ -0,0 +1,6 @@ +namespace Wonky.Client.Pages; + +public partial class SystemProductListPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeViewEditPage.razor b/Wonky.Client/Pages/SystemProductVariantListPage.razor similarity index 76% rename from Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeViewEditPage.razor rename to Wonky.Client/Pages/SystemProductVariantListPage.razor index 4e28e01f..36a9b741 100644 --- a/Wonky.Client/Pages/System/Krv/Protection/ProtectionTypeViewEditPage.razor +++ b/Wonky.Client/Pages/SystemProductVariantListPage.razor @@ -16,6 +16,14 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/krv/protective-equipment/{ProtectionId}/" -

Ændre gruppe beskrivelse

+@page "/system/krv/products/{ProductId}/variants" +
+
+
+ Produkt varianter +
+
+
+
+
diff --git a/Wonky.Client/Pages/System/Krv/Product/ProductViewEditPage.razor.cs b/Wonky.Client/Pages/SystemProductVariantListPage.razor.cs similarity index 90% rename from Wonky.Client/Pages/System/Krv/Product/ProductViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemProductVariantListPage.razor.cs index feed2854..c12f2c82 100644 --- a/Wonky.Client/Pages/System/Krv/Product/ProductViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemProductVariantListPage.razor.cs @@ -15,9 +15,10 @@ using Microsoft.AspNetCore.Components; -namespace Wonky.Client.Pages.System.Krv.Product; +namespace Wonky.Client.Pages; -public partial class ProductViewEditPage +public partial class SystemProductVariantListPage { [Parameter] public string ProductId { get; set; } = ""; + } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/Krv/Product/ProductViewEditPage.razor b/Wonky.Client/Pages/SystemProductVariantViewEditPage.razor similarity index 75% rename from Wonky.Client/Pages/System/Krv/Product/ProductViewEditPage.razor rename to Wonky.Client/Pages/SystemProductVariantViewEditPage.razor index f7f4daa0..7e761117 100644 --- a/Wonky.Client/Pages/System/Krv/Product/ProductViewEditPage.razor +++ b/Wonky.Client/Pages/SystemProductVariantViewEditPage.razor @@ -16,5 +16,13 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/krv/products/{ProductId}" -

Ændre produkt

+@page "/system/krv/products/{ProductId}/variants/{VariantId}" +
+
+
+ Produkt variant +
+
+
+
+
diff --git a/Wonky.Client/Pages/System/Krv/Product/ProductVariantViewEditPage.razor.cs b/Wonky.Client/Pages/SystemProductVariantViewEditPage.razor.cs similarity index 90% rename from Wonky.Client/Pages/System/Krv/Product/ProductVariantViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemProductVariantViewEditPage.razor.cs index da69a8b0..7cba016b 100644 --- a/Wonky.Client/Pages/System/Krv/Product/ProductVariantViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemProductVariantViewEditPage.razor.cs @@ -15,9 +15,9 @@ using Microsoft.AspNetCore.Components; -namespace Wonky.Client.Pages.System.Krv.Product; +namespace Wonky.Client.Pages; -public partial class ProductVariantViewEditPage +public partial class SystemProductVariantViewEditPage { [Parameter] public string ProductId { get; set; } = ""; diff --git a/Wonky.Client/Pages/System/Krv/SystemKrvTextsAdminPage.razor b/Wonky.Client/Pages/SystemProductViewEditPage.razor similarity index 86% rename from Wonky.Client/Pages/System/Krv/SystemKrvTextsAdminPage.razor rename to Wonky.Client/Pages/SystemProductViewEditPage.razor index 7acde8e6..c983012a 100644 --- a/Wonky.Client/Pages/System/Krv/SystemKrvTextsAdminPage.razor +++ b/Wonky.Client/Pages/SystemProductViewEditPage.razor @@ -13,12 +13,14 @@ // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] *@ +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize(Roles = "Admin")] -@page "/system/krv/texts/" +@page "/system/krv/products/{ProductId}"
- KRV Risiko Tekst Vedligeholdelse + Produkt
diff --git a/Wonky.Client/Pages/System/Krv/Product/ProductVariantListPage.razor.cs b/Wonky.Client/Pages/SystemProductViewEditPage.razor.cs similarity index 90% rename from Wonky.Client/Pages/System/Krv/Product/ProductVariantListPage.razor.cs rename to Wonky.Client/Pages/SystemProductViewEditPage.razor.cs index 8d355e62..e2ae9930 100644 --- a/Wonky.Client/Pages/System/Krv/Product/ProductVariantListPage.razor.cs +++ b/Wonky.Client/Pages/SystemProductViewEditPage.razor.cs @@ -15,10 +15,9 @@ using Microsoft.AspNetCore.Components; -namespace Wonky.Client.Pages.System.Krv.Product; +namespace Wonky.Client.Pages; -public partial class ProductVariantListPage +public partial class SystemProductViewEditPage { [Parameter] public string ProductId { get; set; } = ""; - } \ No newline at end of file diff --git a/Wonky.Client/Pages/System/SystemMaintenanceMessagePage.razor b/Wonky.Client/Pages/SystemShortMessagePage.razor similarity index 100% rename from Wonky.Client/Pages/System/SystemMaintenanceMessagePage.razor rename to Wonky.Client/Pages/SystemShortMessagePage.razor diff --git a/Wonky.Client/Pages/System/SystemMaintenanceMessagePage.razor.cs b/Wonky.Client/Pages/SystemShortMessagePage.razor.cs similarity index 94% rename from Wonky.Client/Pages/System/SystemMaintenanceMessagePage.razor.cs rename to Wonky.Client/Pages/SystemShortMessagePage.razor.cs index d6a832f7..fed87e0e 100644 --- a/Wonky.Client/Pages/System/SystemMaintenanceMessagePage.razor.cs +++ b/Wonky.Client/Pages/SystemShortMessagePage.razor.cs @@ -7,15 +7,15 @@ using Wonky.Client.HttpRepository; using Wonky.Entity.DTO; using Wonky.Entity.Views; -namespace Wonky.Client.Pages.System; +namespace Wonky.Client.Pages; #pragma warning disable CS8618 -public partial class SystemMaintenanceMessagePage : IDisposable +public partial class SystemShortMessagePage : IDisposable { // ############################################################# [Inject] public HttpInterceptorService Interceptor { get; set; } [Inject] public ISystemUserRepository UserRepo { get; set; } [Inject] public ISystemSendSmsService SmsService { get; set; } - [Inject] public ILogger Logger { get; set; } + [Inject] public ILogger Logger { get; set; } [Inject] public IToastService Toaster { get; set; } // ############################################################# diff --git a/Wonky.Client/Pages/System/Users/SystemSupervisorListPage.razor b/Wonky.Client/Pages/SystemSupervisorListPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Users/SystemSupervisorListPage.razor rename to Wonky.Client/Pages/SystemSupervisorListPage.razor diff --git a/Wonky.Client/Pages/System/Users/SystemSupervisorListPage.razor.cs b/Wonky.Client/Pages/SystemSupervisorListPage.razor.cs similarity index 97% rename from Wonky.Client/Pages/System/Users/SystemSupervisorListPage.razor.cs rename to Wonky.Client/Pages/SystemSupervisorListPage.razor.cs index 4d787816..6a72538d 100644 --- a/Wonky.Client/Pages/System/Users/SystemSupervisorListPage.razor.cs +++ b/Wonky.Client/Pages/SystemSupervisorListPage.razor.cs @@ -19,7 +19,7 @@ using Wonky.Client.HttpRepository; using Wonky.Entity.Views; #pragma warning disable CS8618 -namespace Wonky.Client.Pages.System.Users; +namespace Wonky.Client.Pages; public partial class SystemSupervisorListPage : IDisposable { diff --git a/Wonky.Client/Pages/System/Users/SystemSupervisorViewEditPage.razor b/Wonky.Client/Pages/SystemSupervisorViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Users/SystemSupervisorViewEditPage.razor rename to Wonky.Client/Pages/SystemSupervisorViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Users/SystemSupervisorViewEditPage.razor.cs b/Wonky.Client/Pages/SystemSupervisorViewEditPage.razor.cs similarity index 98% rename from Wonky.Client/Pages/System/Users/SystemSupervisorViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemSupervisorViewEditPage.razor.cs index 24548e4d..7ef03e4e 100644 --- a/Wonky.Client/Pages/System/Users/SystemSupervisorViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemSupervisorViewEditPage.razor.cs @@ -23,7 +23,7 @@ using Wonky.Entity.DTO; #pragma warning disable CS8618 -namespace Wonky.Client.Pages.System.Users; +namespace Wonky.Client.Pages; public partial class SystemSupervisorViewEditPage : IDisposable { diff --git a/Wonky.Client/Pages/System/Users/SystemUserCreatePage.razor b/Wonky.Client/Pages/SystemUserCreatePage.razor similarity index 100% rename from Wonky.Client/Pages/System/Users/SystemUserCreatePage.razor rename to Wonky.Client/Pages/SystemUserCreatePage.razor diff --git a/Wonky.Client/Pages/System/Users/SystemUserCreatePage.razor.cs b/Wonky.Client/Pages/SystemUserCreatePage.razor.cs similarity index 98% rename from Wonky.Client/Pages/System/Users/SystemUserCreatePage.razor.cs rename to Wonky.Client/Pages/SystemUserCreatePage.razor.cs index 750d4937..76d2e571 100644 --- a/Wonky.Client/Pages/System/Users/SystemUserCreatePage.razor.cs +++ b/Wonky.Client/Pages/SystemUserCreatePage.razor.cs @@ -26,7 +26,7 @@ using Wonky.Entity.DTO; #pragma warning disable CS8618 -namespace Wonky.Client.Pages.System.Users; +namespace Wonky.Client.Pages; public partial class SystemUserCreatePage : IDisposable { diff --git a/Wonky.Client/Pages/System/Users/SystemUserListPage.razor b/Wonky.Client/Pages/SystemUserListPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Users/SystemUserListPage.razor rename to Wonky.Client/Pages/SystemUserListPage.razor diff --git a/Wonky.Client/Pages/System/Users/SystemUserListPage.razor.cs b/Wonky.Client/Pages/SystemUserListPage.razor.cs similarity index 97% rename from Wonky.Client/Pages/System/Users/SystemUserListPage.razor.cs rename to Wonky.Client/Pages/SystemUserListPage.razor.cs index 8fdb51bf..ad18df8c 100644 --- a/Wonky.Client/Pages/System/Users/SystemUserListPage.razor.cs +++ b/Wonky.Client/Pages/SystemUserListPage.razor.cs @@ -20,7 +20,7 @@ using Wonky.Client.HttpRepository; using Wonky.Entity.Views; #pragma warning disable CS8618 -namespace Wonky.Client.Pages.System.Users; +namespace Wonky.Client.Pages; public partial class SystemUserListPage : IDisposable { diff --git a/Wonky.Client/Pages/System/Users/SystemUserViewEditPage.razor b/Wonky.Client/Pages/SystemUserViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Users/SystemUserViewEditPage.razor rename to Wonky.Client/Pages/SystemUserViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Users/SystemUserViewEditPage.razor.cs b/Wonky.Client/Pages/SystemUserViewEditPage.razor.cs similarity index 99% rename from Wonky.Client/Pages/System/Users/SystemUserViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemUserViewEditPage.razor.cs index 43aec7fb..348278f6 100644 --- a/Wonky.Client/Pages/System/Users/SystemUserViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemUserViewEditPage.razor.cs @@ -26,7 +26,7 @@ using Wonky.Entity.DTO; #pragma warning disable CS8618 -namespace Wonky.Client.Pages.System.Users; +namespace Wonky.Client.Pages; public partial class SystemUserViewEditPage : IDisposable { diff --git a/Wonky.Client/Pages/System/Krv/Texts/WasteSpillViewEditPage.razor b/Wonky.Client/Pages/WasteSpillViewEditPage.razor similarity index 100% rename from Wonky.Client/Pages/System/Krv/Texts/WasteSpillViewEditPage.razor rename to Wonky.Client/Pages/WasteSpillViewEditPage.razor diff --git a/Wonky.Client/Pages/System/Krv/Texts/WasteSpillViewEditPage.razor.cs b/Wonky.Client/Pages/WasteSpillViewEditPage.razor.cs similarity index 94% rename from Wonky.Client/Pages/System/Krv/Texts/WasteSpillViewEditPage.razor.cs rename to Wonky.Client/Pages/WasteSpillViewEditPage.razor.cs index ec31e130..a60b701d 100644 --- a/Wonky.Client/Pages/System/Krv/Texts/WasteSpillViewEditPage.razor.cs +++ b/Wonky.Client/Pages/WasteSpillViewEditPage.razor.cs @@ -14,7 +14,7 @@ // -namespace Wonky.Client.Pages.System.Krv.Texts; +namespace Wonky.Client.Pages; public partial class WasteSpillViewEditPage { diff --git a/Wonky.Client/Wonky.Client.csproj b/Wonky.Client/Wonky.Client.csproj index 56b26d62..134fae18 100644 --- a/Wonky.Client/Wonky.Client.csproj +++ b/Wonky.Client/Wonky.Client.csproj @@ -12,6 +12,7 @@ + @@ -3797,14 +3798,4 @@ - - - - - - - - - - diff --git a/Wonky.Client/_Imports.razor b/Wonky.Client/_Imports.razor index b22f3fd6..54e6dbc8 100644 --- a/Wonky.Client/_Imports.razor +++ b/Wonky.Client/_Imports.razor @@ -16,6 +16,7 @@ @using System.Net.Http @using System.Net.Http.Json +@using Microsoft.AspNetCore.Components @using Microsoft.AspNetCore.Components.Forms @using Microsoft.AspNetCore.Components.Routing @using Microsoft.AspNetCore.Components.Web @@ -30,4 +31,4 @@ @using Microsoft.AspNetCore.Components.WebAssembly.Hosting @using Microsoft.AspNetCore.Components.Authorization @using Wonky.Entity - +@using Wonky.Client.Pages \ No newline at end of file