diff --git a/Wonky.Client/HttpRepository/ISystemLabelsRepository.cs b/Wonky.Client/HttpRepository/ISystemLabelsRepository.cs new file mode 100644 index 00000000..39e9854b --- /dev/null +++ b/Wonky.Client/HttpRepository/ISystemLabelsRepository.cs @@ -0,0 +1,31 @@ +using Wonky.Entity.DTO; + +namespace Wonky.Client.HttpRepository; + +public interface ISystemLabelsRepository +{ + Task GetKrvEmergencyLabels(); + Task UpdateKrvEmergencyLabels(KrvEmergencyLabels model); + + Task GetKrvFirstAidLabels(); + Task UpdateKrvFirstAidLabels(KrvFirstAidLabels model); + + Task GetKrvKapvLabels(); + Task UpdateKrvKapvLabels(KrvKapvLabels model); + + Task GetKrvProductLabels(); + Task UpdateKrvProductLabels(KrvProductLabels model); + + Task GetKrvProtectionLabels(); + Task UpdateKrvProtectionLabels(KrvProtectionLabels model); + + Task GetKrvSignatureLabels(); + Task UpdateKrvSignatureLabels(KrvSignatureLabels model); + + Task GetKrvWasteLabels(); + Task UpdateKrvWasteLabels(KrvWasteLabels model); + + Task GetSystemQuoteLabels(); + Task UpdateSystemQuoteLabels(SystemQuoteLabels model); + +} \ No newline at end of file diff --git a/Wonky.Client/HttpRepository/ISystemTextsRepository.cs b/Wonky.Client/HttpRepository/ISystemTextsRepository.cs new file mode 100644 index 00000000..2627f947 --- /dev/null +++ b/Wonky.Client/HttpRepository/ISystemTextsRepository.cs @@ -0,0 +1,72 @@ +using Wonky.Entity.DTO; + +namespace Wonky.Client.HttpRepository; + +public interface ISystemTextsRepository +{ + Task GetKrvEmergencyTexts(); + Task UpdateKrvEmergencyTexts(KrvEmergencyTexts model); + + Task GetKrvFirstAidTexts(); + Task UpdateKrvFirstAidTexts(KrvFirstAidTexts model); + + Task GetKrvWasteTexts(); + Task UpdateKrvWasteTexts(KrvWasteTexts model); + + Task GetKrvClpPictogramTexts(); + Task UpdateKrvClpPictogramTexts(KrvClpPictogramTexts model); + + Task GetKrvCommonPrintTexts(); + Task UpdateKrvCommonPrintTexts(KrvCommonPrintTexts model); + + Task GetKrvCommonProductTexts(); + Task UpdateKrvCommonProductTexts(KrvCommonProductTexts model); + + Task GetKrvKapvDefaultTexts(); + Task UpdateKrvKapvDefaultTexts(KrvKapvDefaultTexts model); + + Task GetKrvKapvSection0Texts(); + Task UpdateKrvKapvSection0Texts(KrvSection0Texts model); + + Task GetKrvKapvSection1Texts(); + Task UpdateKrvKapvSection1Texts(KrvSection1Texts model); + + Task GetKrvKapvSection2Texts(); + Task UpdateKrvKapvSection2Texts(KrvSection2Texts model); + + Task GetKrvKapvSection3Texts(); + Task UpdateKrvKapvSection3Texts(KrvSection3Texts model); + + Task GetKrvKapvSection4Texts(); + Task UpdateKrvKapvSection4Texts(KrvSection4Texts model); + + Task GetKrvKapvSection5Texts(); + Task UpdateKrvKapvSection5Texts(KrvSection5Texts model); + + Task GetKrvKapvSection6Texts(); + Task UpdateKrvKapvSection6Texts(KrvSection6Texts model); + + Task GetKrvKapvSection7Texts(); + Task UpdateKrvKapvSection7Texts(KrvSection7Texts model); + + Task GetKrvKapvSection8Texts(); + Task UpdateKrvKapvSection8Texts(KrvSection8Texts model); + + Task GetKrvKapvSection9Texts(); + Task UpdateKrvKapvSection9Texts(KrvSection9Texts model); + + Task GetKrvEPhraseTexts(); + Task UpdateKrvEPhraseTexts(KrvEPhraseTexts model); + + Task GetKrvHPhraseTexts(); + Task UpdateKrvHPhraseTexts(KrvHPhraseTexts model); + + Task GetKrvPPhraseTexts(); + Task UpdateKrvPPhraseTexts(KrvPPhraseTexts model); + + Task GetSystemQuoteTexts(); + Task UpdateSystemQuoteTexts(SystemQuoteTexts model); + + Task GetSystemQuoteMailTexts(); + Task UpdateSystemQuoteMailTexts(SystemQuoteMailTexts model); +} \ No newline at end of file diff --git a/Wonky.Client/HttpRepository/OrderProcessRepository.cs b/Wonky.Client/HttpRepository/OrderProcessRepository.cs index 7e9e7a90..9dcc4d12 100644 --- a/Wonky.Client/HttpRepository/OrderProcessRepository.cs +++ b/Wonky.Client/HttpRepository/OrderProcessRepository.cs @@ -14,6 +14,7 @@ // using System.Net.Http.Json; +using System.Reflection.Metadata.Ecma335; using System.Text.Json; using Microsoft.AspNetCore.Components; using Microsoft.Extensions.Options; @@ -53,7 +54,8 @@ public class OrderProcessRepository : IOrderProcessRepository /// public async Task> GetWarehouseOrderListByDate(string date) { - return await _client.GetFromJsonAsync>($"{_api.Warehouse}/date?date={date}", _options); + var result = await _client.GetFromJsonAsync>($"{_api.Warehouse}/date?date={date}", _options); + return result ?? new List(); } /// @@ -64,8 +66,9 @@ public class OrderProcessRepository : IOrderProcessRepository /// public async Task> GetWarehouseOrderListByStatus(string status, string express = "") { - return await _client.GetFromJsonAsync>( + var result = await _client.GetFromJsonAsync>( $"{_api.Warehouse}?status={status}&express={express}/state", _options); + return result ?? new List(); } /// @@ -75,7 +78,8 @@ public class OrderProcessRepository : IOrderProcessRepository /// public async Task GetWarehouseOrder(string orderId) { - return await _client.GetFromJsonAsync($"{_api.Warehouse}/{orderId}", _options); + var result = await _client.GetFromJsonAsync($"{_api.Warehouse}/{orderId}", _options); + return result ?? new WarehouseOrderView(); } /// diff --git a/Wonky.Client/HttpRepository/SystemLabelsRepository.cs b/Wonky.Client/HttpRepository/SystemLabelsRepository.cs new file mode 100644 index 00000000..3da026ae --- /dev/null +++ b/Wonky.Client/HttpRepository/SystemLabelsRepository.cs @@ -0,0 +1,118 @@ +using System.Net.Http.Json; +using System.Text.Json; +using Microsoft.AspNetCore.Components; +using Microsoft.Extensions.Options; +using Wonky.Entity.Configuration; +using Wonky.Entity.DTO; + +namespace Wonky.Client.HttpRepository; + +public class SystemLabelsRepository : ISystemLabelsRepository +{ + private readonly JsonSerializerOptions? _options = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true + }; + + private readonly NavigationManager _navigation; + private ILogger _logger; + private readonly HttpClient _client; + private readonly ApiConfig _api; + + public SystemLabelsRepository(HttpClient client, ILogger logger, + NavigationManager navigation, IOptions configuration) + { + _client = client; + _logger = logger; + _navigation = navigation; + _api = configuration.Value; + } + + public async Task GetKrvEmergencyLabels() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemLabels}/emergency", _options); + return result ?? new KrvEmergencyLabels(); + } + + public async Task UpdateKrvEmergencyLabels(KrvEmergencyLabels model) + { + await _client.PutAsJsonAsync($"{_api.SystemLabels}/emergency", model, _options); + } + + public async Task GetKrvFirstAidLabels() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemLabels}/firstaid", _options); + return result ?? new KrvFirstAidLabels(); + } + + public async Task UpdateKrvFirstAidLabels(KrvFirstAidLabels model) + { + await _client.PutAsJsonAsync($"{_api.SystemLabels}/firstaid", model, _options); + } + + public async Task GetKrvKapvLabels() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemLabels}/kapv", _options); + return result ?? new KrvKapvLabels(); + } + + public async Task UpdateKrvKapvLabels(KrvKapvLabels model) + { + await _client.PutAsJsonAsync($"{_api.SystemLabels}/kapv", model, _options); + } + + public async Task GetKrvProductLabels() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemLabels}/product", _options); + return result ?? new KrvProductLabels(); + } + + public async Task UpdateKrvProductLabels(KrvProductLabels model) + { + await _client.PutAsJsonAsync($"{_api.SystemLabels}/product", model, _options); + } + + public async Task GetKrvProtectionLabels() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemLabels}/protection", _options); + return result ?? new KrvProtectionLabels(); + } + + public async Task UpdateKrvProtectionLabels(KrvProtectionLabels model) + { + await _client.PutAsJsonAsync($"{_api.SystemLabels}/protection", model, _options); + } + + public async Task GetKrvSignatureLabels() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemLabels}/signature", _options); + return result ?? new KrvSignatureLabels(); + } + + public async Task UpdateKrvSignatureLabels(KrvSignatureLabels model) + { + await _client.PutAsJsonAsync($"{_api.SystemLabels}/signature", model, _options); + } + + public async Task GetKrvWasteLabels() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemLabels}/waste", _options); + return result ?? new KrvWasteLabels(); + } + + public async Task UpdateKrvWasteLabels(KrvWasteLabels model) + { + await _client.PutAsJsonAsync($"{_api.SystemLabels}/waste", model, _options); + } + + public async Task GetSystemQuoteLabels() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemLabels}/quote", _options); + return result ?? new SystemQuoteLabels(); + } + + public async Task UpdateSystemQuoteLabels(SystemQuoteLabels model) + { + await _client.PutAsJsonAsync($"{_api.SystemLabels}/quote", model, _options); + } +} \ No newline at end of file diff --git a/Wonky.Client/HttpRepository/SystemTextsRepository.cs b/Wonky.Client/HttpRepository/SystemTextsRepository.cs new file mode 100644 index 00000000..ed5a9c1a --- /dev/null +++ b/Wonky.Client/HttpRepository/SystemTextsRepository.cs @@ -0,0 +1,272 @@ +using System.Net.Http.Json; +using System.Text.Json; +using Microsoft.AspNetCore.Components; +using Microsoft.Extensions.Options; +using Wonky.Entity.Configuration; +using Wonky.Entity.DTO; + +namespace Wonky.Client.HttpRepository; + +public class SystemTextsRepository : ISystemTextsRepository +{ + private readonly JsonSerializerOptions? _options = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true + }; + + private readonly NavigationManager _navigation; + private ILogger _logger; + private readonly HttpClient _client; + private readonly ApiConfig _api; + + public SystemTextsRepository(HttpClient client, ILogger logger, + NavigationManager navigation, IOptions configuration) + { + _client = client; + _logger = logger; + _navigation = navigation; + _api = configuration.Value; + } + + public async Task GetKrvEmergencyTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/emergency", _options); + return result ?? new KrvEmergencyTexts(); + } + + public async Task UpdateKrvEmergencyTexts(KrvEmergencyTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/emergency", model, _options); + } + + public async Task GetKrvFirstAidTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/firstaid", _options); + return result ?? new KrvFirstAidTexts(); + } + + public async Task UpdateKrvFirstAidTexts(KrvFirstAidTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/firstaid", model, _options); + } + + public async Task GetKrvWasteTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/waste", _options); + return result ?? new KrvWasteTexts(); + } + + public async Task UpdateKrvWasteTexts(KrvWasteTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/waste", model, _options); + } + + public async Task GetKrvClpPictogramTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/clp", _options); + return result ?? new KrvClpPictogramTexts(); + } + + public async Task UpdateKrvClpPictogramTexts(KrvClpPictogramTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/clp", model, _options); + } + + public async Task GetKrvCommonPrintTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/print", _options); + return result ?? new KrvCommonPrintTexts(); + } + + public async Task UpdateKrvCommonPrintTexts(KrvCommonPrintTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/print", model, _options); + } + + public async Task GetKrvCommonProductTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/product", _options); + return result ?? new KrvCommonProductTexts(); + } + + public async Task UpdateKrvCommonProductTexts(KrvCommonProductTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/product", model, _options); + } + + public async Task GetKrvKapvDefaultTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/kapv", _options); + return result ?? new KrvKapvDefaultTexts(); + } + + public async Task UpdateKrvKapvDefaultTexts(KrvKapvDefaultTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/kapv", model, _options); + } + + public async Task GetKrvKapvSection0Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s0", _options); + return result ?? new KrvSection0Texts(); + } + + public async Task UpdateKrvKapvSection0Texts(KrvSection0Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s0", model, _options); + } + + public async Task GetKrvKapvSection1Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s1", _options); + return result ?? new KrvSection1Texts(); + } + + public async Task UpdateKrvKapvSection1Texts(KrvSection1Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s1", model, _options); + } + + public async Task GetKrvKapvSection2Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s2", _options); + return result ?? new KrvSection2Texts(); + } + + public async Task UpdateKrvKapvSection2Texts(KrvSection2Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s0", model, _options); + } + + public async Task GetKrvKapvSection3Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s3", _options); + return result ?? new KrvSection3Texts(); + } + + public async Task UpdateKrvKapvSection3Texts(KrvSection3Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s3", model, _options); + } + + public async Task GetKrvKapvSection4Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s4", _options); + return result ?? new KrvSection4Texts(); + } + + public async Task UpdateKrvKapvSection4Texts(KrvSection4Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s4", model, _options); + } + + public async Task GetKrvKapvSection5Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s5", _options); + return result ?? new KrvSection5Texts(); + } + + public async Task UpdateKrvKapvSection5Texts(KrvSection5Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s5", model, _options); + } + + public async Task GetKrvKapvSection6Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s6", _options); + return result ?? new KrvSection6Texts(); + } + + public async Task UpdateKrvKapvSection6Texts(KrvSection6Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s6", model, _options); + } + + public async Task GetKrvKapvSection7Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s7", _options); + return result ?? new KrvSection7Texts(); + } + + public async Task UpdateKrvKapvSection7Texts(KrvSection7Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s7", model, _options); + } + + public async Task GetKrvKapvSection8Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s8", _options); + return result ?? new KrvSection8Texts(); + } + + public async Task UpdateKrvKapvSection8Texts(KrvSection8Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s8", model, _options); + } + + public async Task GetKrvKapvSection9Texts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/s9", _options); + return result ?? new KrvSection9Texts(); + } + + public async Task UpdateKrvKapvSection9Texts(KrvSection9Texts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/s9", model, _options); + } + + public async Task GetKrvEPhraseTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/erisk", _options); + return result ?? new KrvEPhraseTexts(); + } + + public async Task UpdateKrvEPhraseTexts(KrvEPhraseTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/erisk", model, _options); + } + + public async Task GetKrvHPhraseTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/hrisk", _options); + return result ?? new KrvHPhraseTexts(); + } + + public async Task UpdateKrvHPhraseTexts(KrvHPhraseTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/hrisk", model, _options); + } + + public async Task GetKrvPPhraseTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/prisk", _options); + return result ?? new KrvPPhraseTexts(); + } + + public async Task UpdateKrvPPhraseTexts(KrvPPhraseTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/prisk", model, _options); + } + + public async Task GetSystemQuoteTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/quote", _options); + return result ?? new SystemQuoteTexts(); + } + + public async Task UpdateSystemQuoteTexts(SystemQuoteTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/quote", model, _options); + } + + public async Task GetSystemQuoteMailTexts() + { + var result = await _client.GetFromJsonAsync($"{_api.SystemTexts}/quotemail", _options); + return result ?? new SystemQuoteMailTexts(); + } + + public async Task UpdateSystemQuoteMailTexts(SystemQuoteMailTexts model) + { + await _client.PutAsJsonAsync($"{_api.SystemTexts}/quotemail", model, _options); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemClpPictogramTextsViewEditPage.razor b/Wonky.Client/Pages/SystemClpPictogramTextsViewEditPage.razor new file mode 100644 index 00000000..5a04f617 --- /dev/null +++ b/Wonky.Client/Pages/SystemClpPictogramTextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/danger" + +Tekster for 'Faremærkning Tekster' +
+
+
+

Faremærkning CLP

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemClpPictogramTextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemClpPictogramTextsViewEditPage.razor.cs new file mode 100644 index 00000000..f1c41051 --- /dev/null +++ b/Wonky.Client/Pages/SystemClpPictogramTextsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemClpPictogramTextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + private KrvClpPictogramTexts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvClpPictogramTexts(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemCommonPrintTextsiewEditPage.razor b/Wonky.Client/Pages/SystemCommonPrintTextsiewEditPage.razor new file mode 100644 index 00000000..a9837f52 --- /dev/null +++ b/Wonky.Client/Pages/SystemCommonPrintTextsiewEditPage.razor @@ -0,0 +1,56 @@ +@* 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/texts/print" + +Tekster for 'Udskrift Tekster' +
+
+
+

Udskrift tekster

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
+ + diff --git a/Wonky.Client/Pages/SystemCommonPrintTextsiewEditPage.razor.cs b/Wonky.Client/Pages/SystemCommonPrintTextsiewEditPage.razor.cs new file mode 100644 index 00000000..d3ca027c --- /dev/null +++ b/Wonky.Client/Pages/SystemCommonPrintTextsiewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemCommonPrintTextsiewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + private KrvCommonPrintTexts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvCommonPrintTexts(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentEmergencyLabelsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentEmergencyLabelsViewEditPage.razor new file mode 100644 index 00000000..aa51cf08 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentEmergencyLabelsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/labels/emergency" + +Labels for 'Nødsituationer APB Dokument' +
+
+
+

Ved Uheld

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentEmergencyLabelsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentEmergencyLabelsViewEditPage.razor.cs new file mode 100644 index 00000000..b4d7ce59 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentEmergencyLabelsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentEmergencyLabelsViewEditPage +{ + [Inject] public ISystemLabelsRepository LabelsRepo { get; set; } + private KrvEmergencyLabels Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await LabelsRepo.GetKrvEmergencyLabels(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentFirstAidLabelsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentFirstAidLabelsViewEditPage.razor new file mode 100644 index 00000000..52b1ccbc --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentFirstAidLabelsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/labels/firstaid" + +Labels for 'Førstehjælp APB Dokument' +
+
+
+

Førstehjælp

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentFirstAidLabelsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentFirstAidLabelsViewEditPage.razor.cs new file mode 100644 index 00000000..14f77c7a --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentFirstAidLabelsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentFirstAidLabelsViewEditPage +{ + [Inject] public ISystemLabelsRepository LabelsRepo { get; set; } + private KrvFirstAidLabels Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await LabelsRepo.GetKrvFirstAidLabels(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentLabelsAdminPage.razor b/Wonky.Client/Pages/SystemDocumentLabelsAdminPage.razor new file mode 100644 index 00000000..f51eade4 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentLabelsAdminPage.razor @@ -0,0 +1,40 @@ +@* 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/labels/" +
+
+
+ Dokument Labels (beskrivelse af feltindhold) +
+
+ +
+ +
+
diff --git a/Wonky.Client/Pages/SystemDocumentLabelsAdminPage.razor.cs b/Wonky.Client/Pages/SystemDocumentLabelsAdminPage.razor.cs new file mode 100644 index 00000000..056cb27d --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentLabelsAdminPage.razor.cs @@ -0,0 +1,8 @@ +namespace Wonky.Client.Pages; + +#pragma warning disable CS8618 + +public partial class SystemDocumentLabelsAdminPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentLabelsKapvViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentLabelsKapvViewEditPage.razor new file mode 100644 index 00000000..4930e22c --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentLabelsKapvViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/labels/kapv" + +Labels for 'KRV Dokument' +
+
+
+

Kemisk Risiko Vurdering

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentLabelsKapvViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentLabelsKapvViewEditPage.razor.cs new file mode 100644 index 00000000..98db4ffc --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentLabelsKapvViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentLabelsKapvViewEditPage +{ + [Inject] public ISystemLabelsRepository LabelsRepo { get; set; } + private KrvKapvLabels Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await LabelsRepo.GetKrvKapvLabels(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentProductLabelsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentProductLabelsViewEditPage.razor new file mode 100644 index 00000000..f7599a9e --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentProductLabelsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/labels/product" + +Labels for 'Produkt APB Dokument' +
+
+
+

Produkt

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentProductLabelsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProductLabelsViewEditPage.razor.cs new file mode 100644 index 00000000..4f9faec0 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentProductLabelsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentProductLabelsViewEditPage +{ + [Inject] public ISystemLabelsRepository LabelsRepo { get; set; } + private KrvProductLabels Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await LabelsRepo.GetKrvProductLabels(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemProductListPage.razor b/Wonky.Client/Pages/SystemDocumentProductListPage.razor similarity index 97% rename from Wonky.Client/Pages/SystemProductListPage.razor rename to Wonky.Client/Pages/SystemDocumentProductListPage.razor index 116eec58..6afcee41 100644 --- a/Wonky.Client/Pages/SystemProductListPage.razor +++ b/Wonky.Client/Pages/SystemDocumentProductListPage.razor @@ -14,7 +14,7 @@ *@ -@page "/system/krv/products" +@page "/system/products"
diff --git a/Wonky.Client/Pages/SystemDocumentProductListPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProductListPage.razor.cs new file mode 100644 index 00000000..bf16566b --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentProductListPage.razor.cs @@ -0,0 +1,6 @@ +namespace Wonky.Client.Pages; + +public partial class SystemDocumentProductListPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemProductVariantListPage.razor b/Wonky.Client/Pages/SystemDocumentProductVariantListPage.razor similarity index 95% rename from Wonky.Client/Pages/SystemProductVariantListPage.razor rename to Wonky.Client/Pages/SystemDocumentProductVariantListPage.razor index 36a9b741..47239db8 100644 --- a/Wonky.Client/Pages/SystemProductVariantListPage.razor +++ b/Wonky.Client/Pages/SystemDocumentProductVariantListPage.razor @@ -16,7 +16,7 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/system/krv/products/{ProductId}/variants" +@page "/system/products/{ProductId}/variants"
diff --git a/Wonky.Client/Pages/SystemProductViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProductVariantListPage.razor.cs similarity index 93% rename from Wonky.Client/Pages/SystemProductViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemDocumentProductVariantListPage.razor.cs index e2ae9930..07b07b1b 100644 --- a/Wonky.Client/Pages/SystemProductViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemDocumentProductVariantListPage.razor.cs @@ -17,7 +17,8 @@ using Microsoft.AspNetCore.Components; namespace Wonky.Client.Pages; -public partial class SystemProductViewEditPage +public partial class SystemDocumentProductVariantListPage { [Parameter] public string ProductId { get; set; } = ""; + } \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemProductVariantViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentProductVariantViewEditPage.razor similarity index 94% rename from Wonky.Client/Pages/SystemProductVariantViewEditPage.razor rename to Wonky.Client/Pages/SystemDocumentProductVariantViewEditPage.razor index 7e761117..bb5f471c 100644 --- a/Wonky.Client/Pages/SystemProductVariantViewEditPage.razor +++ b/Wonky.Client/Pages/SystemDocumentProductVariantViewEditPage.razor @@ -16,7 +16,7 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/system/krv/products/{ProductId}/variants/{VariantId}" +@page "/system/products/{ProductId}/variants/{VariantId}"
diff --git a/Wonky.Client/Pages/SystemProductVariantViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProductVariantViewEditPage.razor.cs similarity index 94% rename from Wonky.Client/Pages/SystemProductVariantViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemDocumentProductVariantViewEditPage.razor.cs index 7cba016b..5b42dce1 100644 --- a/Wonky.Client/Pages/SystemProductVariantViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemDocumentProductVariantViewEditPage.razor.cs @@ -17,7 +17,7 @@ using Microsoft.AspNetCore.Components; namespace Wonky.Client.Pages; -public partial class SystemProductVariantViewEditPage +public partial class SystemDocumentProductVariantViewEditPage { [Parameter] public string ProductId { get; set; } = ""; diff --git a/Wonky.Client/Pages/SystemProductViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentProductViewEditPage.razor similarity index 96% rename from Wonky.Client/Pages/SystemProductViewEditPage.razor rename to Wonky.Client/Pages/SystemDocumentProductViewEditPage.razor index c983012a..f0413e86 100644 --- a/Wonky.Client/Pages/SystemProductViewEditPage.razor +++ b/Wonky.Client/Pages/SystemDocumentProductViewEditPage.razor @@ -16,7 +16,7 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/system/krv/products/{ProductId}" +@page "/system/products/{ProductId}"
diff --git a/Wonky.Client/Pages/SystemProductVariantListPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProductViewEditPage.razor.cs similarity index 94% rename from Wonky.Client/Pages/SystemProductVariantListPage.razor.cs rename to Wonky.Client/Pages/SystemDocumentProductViewEditPage.razor.cs index c12f2c82..99c6d5b3 100644 --- a/Wonky.Client/Pages/SystemProductVariantListPage.razor.cs +++ b/Wonky.Client/Pages/SystemDocumentProductViewEditPage.razor.cs @@ -17,8 +17,7 @@ using Microsoft.AspNetCore.Components; namespace Wonky.Client.Pages; -public partial class SystemProductVariantListPage +public partial class SystemDocumentProductViewEditPage { [Parameter] public string ProductId { get; set; } = ""; - } \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor b/Wonky.Client/Pages/SystemDocumentProtectionItemListPage.razor similarity index 94% rename from Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor rename to Wonky.Client/Pages/SystemDocumentProtectionItemListPage.razor index 4bed1d0d..376c4406 100644 --- a/Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor +++ b/Wonky.Client/Pages/SystemDocumentProtectionItemListPage.razor @@ -16,7 +16,7 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/system/krv/protective-equipment/{ProtectionId}/items" +@page "/system/protective-equipment/{ProtectionId}/items"
diff --git a/Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProtectionItemListPage.razor.cs similarity index 94% rename from Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor.cs rename to Wonky.Client/Pages/SystemDocumentProtectionItemListPage.razor.cs index b6aba9a3..b306b4ef 100644 --- a/Wonky.Client/Pages/SystemKrvProtectionItemListPage.razor.cs +++ b/Wonky.Client/Pages/SystemDocumentProtectionItemListPage.razor.cs @@ -17,7 +17,7 @@ using Microsoft.AspNetCore.Components; namespace Wonky.Client.Pages; -public partial class SystemKrvProtectionItemListPage +public partial class SystemDocumentProtectionItemListPage { [Parameter] public string ProtectionId { get; set; } = ""; } \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentProtectionItemViewEditPage.razor similarity index 93% rename from Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor rename to Wonky.Client/Pages/SystemDocumentProtectionItemViewEditPage.razor index 2b7c00b1..6f23ef8e 100644 --- a/Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor +++ b/Wonky.Client/Pages/SystemDocumentProtectionItemViewEditPage.razor @@ -16,7 +16,7 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/system/krv/protective-equipment/{ProtectionId}/items/{ItemId}" +@page "/system/protective-equipment/{ProtectionId}/items/{ItemId}"
diff --git a/Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProtectionItemViewEditPage.razor.cs similarity index 93% rename from Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemDocumentProtectionItemViewEditPage.razor.cs index 6b80b368..c39d303b 100644 --- a/Wonky.Client/Pages/SystemKrvProtectionItemViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemDocumentProtectionItemViewEditPage.razor.cs @@ -17,7 +17,7 @@ using Microsoft.AspNetCore.Components; namespace Wonky.Client.Pages; -public partial class SystemKrvProtectionItemViewEditPage +public partial class SystemDocumentProtectionItemViewEditPage { [Parameter] public string ProtectionId { get; set; } = ""; [Parameter] public string ItemId { get; set; } = ""; diff --git a/Wonky.Client/Pages/SystemDocumentProtectionLabelsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentProtectionLabelsViewEditPage.razor new file mode 100644 index 00000000..c9182793 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentProtectionLabelsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/labels/protection" + +Labels for 'Værnemidler APB Dokument' +
+
+
+

Værnemidlerd

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentProtectionLabelsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProtectionLabelsViewEditPage.razor.cs new file mode 100644 index 00000000..10562fea --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentProtectionLabelsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentProtectionLabelsViewEditPage +{ + [Inject] public ISystemLabelsRepository LabelsRepo { get; set; } + private KrvProtectionLabels Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await LabelsRepo.GetKrvProtectionLabels(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvProtectionListPage.razor b/Wonky.Client/Pages/SystemDocumentProtectionListPage.razor similarity index 96% rename from Wonky.Client/Pages/SystemKrvProtectionListPage.razor rename to Wonky.Client/Pages/SystemDocumentProtectionListPage.razor index 978a7f7d..2fa9502e 100644 --- a/Wonky.Client/Pages/SystemKrvProtectionListPage.razor +++ b/Wonky.Client/Pages/SystemDocumentProtectionListPage.razor @@ -14,7 +14,7 @@ *@ -@page "/system/krv/protections" +@page "/system/protections"
diff --git a/Wonky.Client/Pages/SystemDocumentProtectionListPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProtectionListPage.razor.cs new file mode 100644 index 00000000..89729836 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentProtectionListPage.razor.cs @@ -0,0 +1,6 @@ +namespace Wonky.Client.Pages; + +public partial class SystemDocumentProtectionListPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor b/Wonky.Client/Pages/SystemDocumentProtectionTypeListPage.razor similarity index 96% rename from Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor rename to Wonky.Client/Pages/SystemDocumentProtectionTypeListPage.razor index e06192fc..2666d68f 100644 --- a/Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor +++ b/Wonky.Client/Pages/SystemDocumentProtectionTypeListPage.razor @@ -16,7 +16,7 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/system/krv/protective-equipment" +@page "/system/protective-equipment"
diff --git a/Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProtectionTypeListPage.razor.cs similarity index 93% rename from Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor.cs rename to Wonky.Client/Pages/SystemDocumentProtectionTypeListPage.razor.cs index 6d5903af..259ecdc0 100644 --- a/Wonky.Client/Pages/SystemKrvProtectionTypeListPage.razor.cs +++ b/Wonky.Client/Pages/SystemDocumentProtectionTypeListPage.razor.cs @@ -15,7 +15,7 @@ namespace Wonky.Client.Pages; -public partial class SystemKrvProtectionTypeListPage +public partial class SystemDocumentProtectionTypeListPage { } \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentProtectionTypeViewEditPage.razor similarity index 94% rename from Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor rename to Wonky.Client/Pages/SystemDocumentProtectionTypeViewEditPage.razor index 268e9ff0..38fd3589 100644 --- a/Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor +++ b/Wonky.Client/Pages/SystemDocumentProtectionTypeViewEditPage.razor @@ -16,7 +16,7 @@ @using Microsoft.AspNetCore.Authorization @attribute [Authorize(Roles = "Admin")] -@page "/system/krv/protective-equipment/{ProtectionId}/" +@page "/system/protective-equipment/{ProtectionId}/"
diff --git a/Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentProtectionTypeViewEditPage.razor.cs similarity index 93% rename from Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor.cs rename to Wonky.Client/Pages/SystemDocumentProtectionTypeViewEditPage.razor.cs index 28bd1990..69bbfe00 100644 --- a/Wonky.Client/Pages/SystemKrvProtectionTypeViewEditPage.razor.cs +++ b/Wonky.Client/Pages/SystemDocumentProtectionTypeViewEditPage.razor.cs @@ -18,7 +18,7 @@ using Microsoft.AspNetCore.Components; namespace Wonky.Client.Pages; -public partial class SystemKrvProtectionTypeViewEditPage +public partial class SystemDocumentProtectionTypeViewEditPage { [Parameter] public string ProtectionId { get; set; } = ""; } \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentQuoteLabelsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentQuoteLabelsViewEditPage.razor new file mode 100644 index 00000000..120843e7 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentQuoteLabelsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/labels/quote" + +Labels for 'Affald og Spild APB/KRV Dokument' +
+
+
+

Affald og Spild

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentQuoteLabelsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentQuoteLabelsViewEditPage.razor.cs new file mode 100644 index 00000000..5ee998c1 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentQuoteLabelsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentQuoteLabelsViewEditPage +{ + [Inject] public ISystemLabelsRepository LabelsRepo { get; set; } + private SystemQuoteLabels Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await LabelsRepo.GetSystemQuoteLabels(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentRiskETextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentRiskETextsViewEditPage.razor new file mode 100644 index 00000000..6db7a4be --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentRiskETextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/riske" + +Tekster for 'Risiko Tekster EUH' +
+
+
+

Risiko tekster gruppe EUH

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentRiskETextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentRiskETextsViewEditPage.razor.cs new file mode 100644 index 00000000..69046be4 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentRiskETextsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentRiskETextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + private KrvEPhraseTexts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvEPhraseTexts(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentRiskHTextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentRiskHTextsViewEditPage.razor new file mode 100644 index 00000000..bc904a81 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentRiskHTextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/riskh" + +Tekster for 'Risiko Tekster H' +
+
+
+

Risiko tekster gruppe H

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentRiskHTextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentRiskHTextsViewEditPage.razor.cs new file mode 100644 index 00000000..8c34546c --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentRiskHTextsViewEditPage.razor.cs @@ -0,0 +1,37 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentRiskHTextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + private KrvHPhraseTexts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvHPhraseTexts(); + TextProps = Section.GetType().GetProperties(); + + } + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentRiskPTextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentRiskPTextsViewEditPage.razor new file mode 100644 index 00000000..ec8d1054 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentRiskPTextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/riskp" + +Tekster for 'Risiko Tekster P' +
+
+
+

Risiko tekster gruppe P

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentRiskPTextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentRiskPTextsViewEditPage.razor.cs new file mode 100644 index 00000000..dc7e95c3 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentRiskPTextsViewEditPage.razor.cs @@ -0,0 +1,36 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentRiskPTextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + private KrvPPhraseTexts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvPPhraseTexts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection0TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection0TextsViewEditPage.razor new file mode 100644 index 00000000..db728242 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection0TextsViewEditPage.razor @@ -0,0 +1,58 @@ +@* 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/texts/section0" + +Tekster for 'Forudsætninger for risikovurdering' +
+
+
+

Forudsætninger for udarbejdelse af risikovurdering

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
+ + + diff --git a/Wonky.Client/Pages/SystemDocumentSection0TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection0TextsViewEditPage.razor.cs new file mode 100644 index 00000000..0becafb9 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection0TextsViewEditPage.razor.cs @@ -0,0 +1,37 @@ + +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection0TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection0Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection0Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection1TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection1TextsViewEditPage.razor new file mode 100644 index 00000000..21727b5e --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection1TextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/section1" + +Tekster for 'Produkt/Anvendelse' +
+
+
+

Produkt/Anvendelse

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSection1TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection1TextsViewEditPage.razor.cs new file mode 100644 index 00000000..b7403bfd --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection1TextsViewEditPage.razor.cs @@ -0,0 +1,36 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection1TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection1Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection1Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection2TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection2TextsViewEditPage.razor new file mode 100644 index 00000000..b600baf6 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection2TextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/section2" + +Tekster for 'Egenskaber' +
+
+
+

Egenskaber

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSection2TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection2TextsViewEditPage.razor.cs new file mode 100644 index 00000000..8929d5f0 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection2TextsViewEditPage.razor.cs @@ -0,0 +1,36 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection2TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection2Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection2Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection3TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection3TextsViewEditPage.razor new file mode 100644 index 00000000..b91fb0b4 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection3TextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/section3" + +Tekster for 'Påvirkning/Mængde' +
+
+
+

Påvirkning og Mængde

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSection3TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection3TextsViewEditPage.razor.cs new file mode 100644 index 00000000..c5ea045c --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection3TextsViewEditPage.razor.cs @@ -0,0 +1,37 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection3TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection3Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection3Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection4TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection4TextsViewEditPage.razor new file mode 100644 index 00000000..84a846b2 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection4TextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/section4" + +Tekster for 'Forebyggelse' +
+
+
+

Forebyggelse

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSection4TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection4TextsViewEditPage.razor.cs new file mode 100644 index 00000000..11241e1b --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection4TextsViewEditPage.razor.cs @@ -0,0 +1,37 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection4TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection5Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection5Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection5TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection5TextsViewEditPage.razor new file mode 100644 index 00000000..0b1f5e66 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection5TextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/section5" + +Tekster for 'Arbejdsmedicinske Referencer' +
+
+
+

Arbejdsmedicinske undersøgelser og referencer

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSection5TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection5TextsViewEditPage.razor.cs new file mode 100644 index 00000000..a0065265 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection5TextsViewEditPage.razor.cs @@ -0,0 +1,37 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection5TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection5Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection5Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection6TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection6TextsViewEditPage.razor new file mode 100644 index 00000000..e844dbfe --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection6TextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/section6" + +Tekster for 'Substitution/Alternativer' +
+
+
+

Substitution/Alternativer

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSection6TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection6TextsViewEditPage.razor.cs new file mode 100644 index 00000000..d4dfdd9d --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection6TextsViewEditPage.razor.cs @@ -0,0 +1,37 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection6TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection6Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection6Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection7TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection7TextsViewEditPage.razor new file mode 100644 index 00000000..e09d0477 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection7TextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/section7" + +Tekster for 'Fastsatte grænseværdier' +
+
+
+

Grænseværdier fastsat af arbejdstilsynet

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSection7TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection7TextsViewEditPage.razor.cs new file mode 100644 index 00000000..79ea8d23 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection7TextsViewEditPage.razor.cs @@ -0,0 +1,37 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection7TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection7Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection7Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection8TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection8TextsViewEditPage.razor new file mode 100644 index 00000000..de94fa19 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection8TextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/section8" + +Tekster for 'Uddannelse' +
+
+
+

Kræves særlig uddannnelse

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSection8TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection8TextsViewEditPage.razor.cs new file mode 100644 index 00000000..82413bd2 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection8TextsViewEditPage.razor.cs @@ -0,0 +1,37 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection8TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection8Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection8Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSection9TextsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSection9TextsViewEditPage.razor new file mode 100644 index 00000000..0daddfa3 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection9TextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/section9" + +Tekster for 'Afvigelser' +
+
+
+

Er der afvigelser

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSection9TextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSection9TextsViewEditPage.razor.cs new file mode 100644 index 00000000..8237c1e6 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSection9TextsViewEditPage.razor.cs @@ -0,0 +1,37 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSection9TextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + + private KrvSection9Texts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvKapvSection9Texts(); + TextProps = Section.GetType().GetProperties(); + + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentSignatureLabelsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentSignatureLabelsViewEditPage.razor new file mode 100644 index 00000000..a18b75a6 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSignatureLabelsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/labels/signature" + +Labels for 'Signatur APB/KRV Dokument' +
+
+
+

Signaturer

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentSignatureLabelsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentSignatureLabelsViewEditPage.razor.cs new file mode 100644 index 00000000..588a27c3 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentSignatureLabelsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentSignatureLabelsViewEditPage +{ + [Inject] public ISystemLabelsRepository LabelsRepo { get; set; } + private KrvSignatureLabels Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await LabelsRepo.GetKrvSignatureLabels(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor b/Wonky.Client/Pages/SystemDocumentTextsAdminPage.razor similarity index 53% rename from Wonky.Client/Pages/SystemKrvTextsAdminPage.razor rename to Wonky.Client/Pages/SystemDocumentTextsAdminPage.razor index d5237ab4..4f7b5224 100644 --- a/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor +++ b/Wonky.Client/Pages/SystemDocumentTextsAdminPage.razor @@ -14,34 +14,47 @@ *@ -@page "/system/krv/texts/" +@page "/system/texts/" \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentTextsAdminPage.razor.cs b/Wonky.Client/Pages/SystemDocumentTextsAdminPage.razor.cs new file mode 100644 index 00000000..963c8033 --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentTextsAdminPage.razor.cs @@ -0,0 +1,6 @@ +namespace Wonky.Client.Pages; + +public partial class SystemDocumentTextsAdminPage +{ + +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemDocumentWasteLabelsViewEditPage.razor b/Wonky.Client/Pages/SystemDocumentWasteLabelsViewEditPage.razor new file mode 100644 index 00000000..2b6ca21b --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentWasteLabelsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/labels/waste" + +Labels for 'Affald og Spild APB/KRV Dokument' +
+
+
+

Affald og Spild

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemDocumentWasteLabelsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemDocumentWasteLabelsViewEditPage.razor.cs new file mode 100644 index 00000000..c863c71e --- /dev/null +++ b/Wonky.Client/Pages/SystemDocumentWasteLabelsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemDocumentWasteLabelsViewEditPage +{ + [Inject] public ISystemLabelsRepository LabelsRepo { get; set; } + private KrvWasteLabels Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await LabelsRepo.GetKrvWasteLabels(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemEmergcencyTextsViewEditPage.razor b/Wonky.Client/Pages/SystemEmergcencyTextsViewEditPage.razor new file mode 100644 index 00000000..1131c4ed --- /dev/null +++ b/Wonky.Client/Pages/SystemEmergcencyTextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/accident" + +Tekster for 'Nødsituationer' +
+
+
+

Ved Uheld

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemEmergcencyTextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemEmergcencyTextsViewEditPage.razor.cs new file mode 100644 index 00000000..273b731f --- /dev/null +++ b/Wonky.Client/Pages/SystemEmergcencyTextsViewEditPage.razor.cs @@ -0,0 +1,33 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +namespace Wonky.Client.Pages; + +public partial class SystemEmergcencyTextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + private KrvEmergencyTexts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvEmergencyTexts(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemFirstAidTextsViewEditPage.razor b/Wonky.Client/Pages/SystemFirstAidTextsViewEditPage.razor new file mode 100644 index 00000000..2dab7d1d --- /dev/null +++ b/Wonky.Client/Pages/SystemFirstAidTextsViewEditPage.razor @@ -0,0 +1,54 @@ +@* 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/texts/firstaid" + +Tekster for 'Førstehjælp Tekster' +
+
+
+

Førstehjælp

+
+
+
+ @if (TextProps.Any()) + { + + + + + + + + + @foreach (var textProp in TextProps) + { + + + + + } + +
NavnTekst
@textProp.Name
+ } + else + { +
Ingen data!
+ } +
+
diff --git a/Wonky.Client/Pages/SystemFirstAidTextsViewEditPage.razor.cs b/Wonky.Client/Pages/SystemFirstAidTextsViewEditPage.razor.cs new file mode 100644 index 00000000..3799d6e6 --- /dev/null +++ b/Wonky.Client/Pages/SystemFirstAidTextsViewEditPage.razor.cs @@ -0,0 +1,35 @@ +// 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 System.Reflection; +using Microsoft.AspNetCore.Components; +using Wonky.Client.HttpRepository; +using Wonky.Entity.DTO; + +#pragma warning disable CS8618 + +namespace Wonky.Client.Pages; + +public partial class SystemFirstAidTextsViewEditPage +{ + [Inject] public ISystemTextsRepository TextsRepo { get; set; } + private KrvFirstAidTexts Section { get; set; } = new(); + private PropertyInfo[] TextProps { get; set; } + protected override async Task OnInitializedAsync() + { + Section = await TextsRepo.GetKrvFirstAidTexts(); + TextProps = Section.GetType().GetProperties(); + } +} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvProtectionListPage.razor.cs b/Wonky.Client/Pages/SystemKrvProtectionListPage.razor.cs deleted file mode 100644 index 0ffe2c04..00000000 --- a/Wonky.Client/Pages/SystemKrvProtectionListPage.razor.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Wonky.Client.Pages; - -public partial class SystemKrvProtectionListPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor deleted file mode 100644 index e12ec495..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor +++ /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] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/system/krv/texts/accident" -

Ved Uheld

- diff --git a/Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.razor.cs deleted file mode 100644 index a65138b4..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsAccidentViewEditPage.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; - -public partial class SystemKrvTextsAccidentViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor.cs deleted file mode 100644 index 4fc46ce6..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsAdminPage.razor.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Wonky.Client.Pages; - -public partial class SystemKrvTextsAdminPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.razor deleted file mode 100644 index a5926c4f..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.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 "/system/krv/texts/danger" -

Faremærkning CLP

diff --git a/Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.razor.cs deleted file mode 100644 index 93cd7896..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsDangerMarkingViewEditPage.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; - -public partial class SystemKrvTextsDangerMarkingViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor deleted file mode 100644 index 409fef7f..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor +++ /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] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/system/krv/texts/firstaid" -

Førstehjælp

- diff --git a/Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.razor.cs deleted file mode 100644 index b2575ec1..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsFirstAidViewEditPage.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; - -public partial class SystemKrvTextsFirstAidViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor deleted file mode 100644 index 781cb4b1..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor +++ /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] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/system/krv/texts/print" -

Udskrift tekster

- diff --git a/Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.razor.cs deleted file mode 100644 index 92d73f3d..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsPrintingViewEditPage.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; - -public partial class SystemKrvTextsPrintingViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor deleted file mode 100644 index b0c762bd..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor +++ /dev/null @@ -1,25 +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 "/system/krv/texts/riske" - -

Risiko tekster gruppe EUH

- -@code { - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.razor.cs deleted file mode 100644 index 39d4e9b3..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsRiskPhraseEViewEditPage.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; - -public partial class SystemKrvTextsRiskPhraseEViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor deleted file mode 100644 index 30ee2221..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor +++ /dev/null @@ -1,25 +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 "/system/krv/texts/riskh" - -

Risiko tekster gruppe H

- -@code { - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.razor.cs deleted file mode 100644 index 0684f48b..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsRiskPhraseHViewEditPage.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; - -public partial class SystemKrvTextsRiskPhraseHViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor deleted file mode 100644 index fcb86fcf..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor +++ /dev/null @@ -1,25 +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 "/system/krv/texts/riskp" - -

Risiko tekster gruppe P

- -@code { - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.razor.cs deleted file mode 100644 index b9385d15..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsRiskPhrasePViewEditPage.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; - -public partial class SystemKrvTextsRiskPhrasePViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor deleted file mode 100644 index d689c90d..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor +++ /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] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/system/krv/texts/section0" -

Forudsætninger for udarbejdelse af risikovurdering

- diff --git a/Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.razor.cs deleted file mode 100644 index e1db082d..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection0ViewEditPage.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; - -public partial class SystemKrvTextsSection0ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor deleted file mode 100644 index ab885267..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.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 "/system/krv/texts/section1" -

Produkt/Anvendelse

diff --git a/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.razor.cs deleted file mode 100644 index 11143051..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection1ViewEditPage.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; - -public partial class SystemKrvTextsSection1ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor deleted file mode 100644 index 6823f9c9..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor +++ /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] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/system/krv/texts/section2" -

Egenskaber

- diff --git a/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.razor.cs deleted file mode 100644 index 7ef4851b..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection2ViewEditPage.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; - -public partial class SystemKrvTextsSection2ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor deleted file mode 100644 index c48a758f..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor +++ /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] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/system/krv/texts/section3" -

Påvirkning og mængde

- diff --git a/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.razor.cs deleted file mode 100644 index 0840aab7..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection3ViewEditPage.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; - -public partial class SystemKrvTextsSection3ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor deleted file mode 100644 index 68d8fa50..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.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 "/system/krv/texts/section4" -

Forebyggelse

diff --git a/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.razor.cs deleted file mode 100644 index 0cd87ceb..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection4ViewEditPage.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; - -public partial class SystemKrvTextsSection4ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor deleted file mode 100644 index dbb69514..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor +++ /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] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/system/krv/texts/section5" -

Arbejdsmedicinske undersøgelser og referencer

- diff --git a/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.razor.cs deleted file mode 100644 index 28d470b9..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection5ViewEditPage.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; - -public partial class SystemKrvTextsSection5ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor deleted file mode 100644 index d244eae4..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor +++ /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] -*@ - -@using Microsoft.AspNetCore.Authorization -@attribute [Authorize(Roles = "Admin")] - -@page "/system/krv/texts/section6" -

substitution/Alternativer

- diff --git a/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.razor.cs deleted file mode 100644 index 2ceaed0f..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection6ViewEditPage.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; - -public partial class SystemKrvTextsSection6ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor deleted file mode 100644 index a870b57f..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.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 "/system/krv/texts/section7" -

Grænseværdier fastsat af arbejdstilsynet

diff --git a/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.razor.cs deleted file mode 100644 index 3865da2e..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection7ViewEditPage.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; - -public partial class SystemKrvTextsSection7ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor deleted file mode 100644 index 9be71d8b..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.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 "/system/krv/texts/section8" -

Kræves særlig uddannnelse

diff --git a/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.razor.cs deleted file mode 100644 index faec663f..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSection8ViewEditPage.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; - -public partial class SystemKrvTextsSection8ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor deleted file mode 100644 index 3db00a2f..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.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 "/system/krv/texts/sectiona" -

Anslået mængde anvendt årligt

diff --git a/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.razor.cs deleted file mode 100644 index fb444428..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSectionAViewEditPage.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; - -public partial class SystemKrvTextsSectionAViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.razor b/Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.razor deleted file mode 100644 index 0171a35e..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.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 "/system/krv/texts/section9" -

Er der afvigelser

diff --git a/Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.razor.cs b/Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.razor.cs deleted file mode 100644 index df4efac9..00000000 --- a/Wonky.Client/Pages/SystemKrvTextsSystemKrvSection9ViewEditPage.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; - -public partial class SystemKrvTextsSystemKrvSection9ViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/SystemManagerLandingPage.razor b/Wonky.Client/Pages/SystemManagerLandingPage.razor index 4afbeee1..00402aa1 100644 --- a/Wonky.Client/Pages/SystemManagerLandingPage.razor +++ b/Wonky.Client/Pages/SystemManagerLandingPage.razor @@ -19,10 +19,28 @@ @page "/system" System Mmanager -
- Bruger Admin - Supervisor Admin - Produkt Admin - Kemi Værnemiddel Admin - Kemi Tekst Admin +
+
+
+

System Administration

+
+
+ + +
diff --git a/Wonky.Client/Pages/SystemManagerLandingPage.razor.cs b/Wonky.Client/Pages/SystemManagerLandingPage.razor.cs index 5006143b..1f4e5f89 100644 --- a/Wonky.Client/Pages/SystemManagerLandingPage.razor.cs +++ b/Wonky.Client/Pages/SystemManagerLandingPage.razor.cs @@ -17,6 +17,7 @@ using Microsoft.AspNetCore.Components; #pragma warning disable CS8618 + namespace Wonky.Client.Pages; public partial class SystemManagerLandingPage diff --git a/Wonky.Client/Pages/SystemProductListPage.razor.cs b/Wonky.Client/Pages/SystemProductListPage.razor.cs deleted file mode 100644 index 1229c963..00000000 --- a/Wonky.Client/Pages/SystemProductListPage.razor.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Wonky.Client.Pages; - -public partial class SystemProductListPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Pages/WasteSpillViewEditPage.razor b/Wonky.Client/Pages/WasteSpillViewEditPage.razor deleted file mode 100644 index 97b7c3a2..00000000 --- a/Wonky.Client/Pages/WasteSpillViewEditPage.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 "/system/krv/texts/waste" -

Affald og Spild

diff --git a/Wonky.Client/Pages/WasteSpillViewEditPage.razor.cs b/Wonky.Client/Pages/WasteSpillViewEditPage.razor.cs deleted file mode 100644 index a60b701d..00000000 --- a/Wonky.Client/Pages/WasteSpillViewEditPage.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; - -public partial class WasteSpillViewEditPage -{ - -} \ No newline at end of file diff --git a/Wonky.Client/Program.cs b/Wonky.Client/Program.cs index 47c47d53..99a6584d 100644 --- a/Wonky.Client/Program.cs +++ b/Wonky.Client/Program.cs @@ -70,6 +70,8 @@ builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); +builder.Services.AddScoped(); +builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); // warehouse repository diff --git a/Wonky.Client/Shared/NavMenu.razor b/Wonky.Client/Shared/NavMenu.razor index 0711e622..faa47d80 100644 --- a/Wonky.Client/Shared/NavMenu.razor +++ b/Wonky.Client/Shared/NavMenu.razor @@ -111,7 +111,7 @@ diff --git a/Wonky.Client/_Imports.razor b/Wonky.Client/_Imports.razor index 54e6dbc8..5c31552f 100644 --- a/Wonky.Client/_Imports.razor +++ b/Wonky.Client/_Imports.razor @@ -23,12 +23,12 @@ @using Microsoft.AspNetCore.Components.Web.Virtualization @using Microsoft.AspNetCore.Components.WebAssembly.Http @using Microsoft.JSInterop -@using Wonky.Client -@using Wonky.Client.Shared @using Blazored.Toast @using Blazored.Toast.Services @using Blazored.Toast.Configuration @using Microsoft.AspNetCore.Components.WebAssembly.Hosting @using Microsoft.AspNetCore.Components.Authorization +@using Wonky.Client +@using Wonky.Client.Pages +@using Wonky.Client.Shared @using Wonky.Entity -@using Wonky.Client.Pages \ No newline at end of file diff --git a/Wonky.Client/wwwroot/appsettings.json b/Wonky.Client/wwwroot/appsettings.json index 83dd3547..b2d0d273 100644 --- a/Wonky.Client/wwwroot/appsettings.json +++ b/Wonky.Client/wwwroot/appsettings.json @@ -1,7 +1,7 @@ { "appInfo": { "name": "Wonky Online", - "version": "0.132.3", + "version": "0.133.1", "rc": true, "sandBox": false, "image": "grumpy-coder.png" @@ -19,7 +19,7 @@ } }, "apiConfig": { - "baseUrl": "https://eta.innotec.dk", + "baseUrl": "https://zeta.innotec.dk", "catalog": "api/v2/catalog/country", "crmCustomers": "api/v2/crm/companies", "crmInventoryExt": "history/inventory", @@ -43,6 +43,8 @@ "servicesAuth": "v2/token", "syncRpc": "api/v2/rpc", "syncRpcInvoiceExt": "invoices", + "systemLabels": "api/v2/admin/doc/labels", + "systemTexts": "api/v2/admin/doc/texts", "userData": "/api/v2/client/users", "userInfo": "api/v2/auth/userinfo", "userManager": "api/v2/app/manage/users", diff --git a/Wonky.Entity/Configuration/ApiConfig.cs b/Wonky.Entity/Configuration/ApiConfig.cs index f154c81e..a5974700 100644 --- a/Wonky.Entity/Configuration/ApiConfig.cs +++ b/Wonky.Entity/Configuration/ApiConfig.cs @@ -137,6 +137,16 @@ public class ApiConfig ///
public string SyncRpcInvoiceExt { get; set; } = ""; + /// + /// Get system document labels for translation + /// + public string SystemLabels { get; set; } = ""; + + /// + /// Get system document texts for translation + /// + public string SystemTexts { get; set; } = ""; + /// /// Application uri for user information request /// diff --git a/Wonky.Entity/DTO/KrvDefaultTexts.cs b/Wonky.Entity/DTO/KrvKapvDefaultTexts.cs similarity index 94% rename from Wonky.Entity/DTO/KrvDefaultTexts.cs rename to Wonky.Entity/DTO/KrvKapvDefaultTexts.cs index 9134b1fb..d799ef93 100644 --- a/Wonky.Entity/DTO/KrvDefaultTexts.cs +++ b/Wonky.Entity/DTO/KrvKapvDefaultTexts.cs @@ -2,7 +2,7 @@ using System.Runtime; namespace Wonky.Entity.DTO; -public class KrvDefaultTexts +public class KrvKapvDefaultTexts { public string S1UsedFor { get; set; } = ""; public string S2TypeAndProperties { get; set; } = ""; diff --git a/Wonky.Entity/DTO/QuoteMailTexts.cs b/Wonky.Entity/DTO/QuoteMailTexts.cs deleted file mode 100644 index e0adf0e5..00000000 --- a/Wonky.Entity/DTO/QuoteMailTexts.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace Wonky.Entity.DTO; - -public class QuoteMailTexts -{ - public string OfferMailGreeting1 { get; set; } = ""; - public string OfferMailGreeting2 { get; set; } = ""; - public string OfferMailText1 { get; set; } = ""; - public string OfferMailText2 { get; set; } = ""; - public string OfferMailLinkReference { get; set; } = ""; - public string OfferMailSalute { get; set; } = ""; - public string OfferMailSender { get; set; } = ""; - public string OfferMailFooter { get; set; } = ""; - public string OfferMailCopyHeader { get; set; } = ""; - public string OfferMailCopySalesNumber { get; set; } = ""; - public string OfferMailCopyCreatedBy { get; set; } = ""; -} \ No newline at end of file diff --git a/Wonky.Entity/DTO/QuotePrintTexts.cs b/Wonky.Entity/DTO/QuotePrintTexts.cs deleted file mode 100644 index 355d2a6a..00000000 --- a/Wonky.Entity/DTO/QuotePrintTexts.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Wonky.Entity.DTO; - -public class QuotePrintTexts -{ - public string OfferHtmlTitle { get; set; } = ""; - public string OfferDocumentName { get; set; } = ""; - public string OfferDocumentNumber { get; set; } = ""; - public string OfferDocumentDate { get; set; } = ""; - public string OfferCustomerName { get; set; } = ""; - public string OfferCustomerPhone { get; set; } = ""; - public string OfferCustomerEMail { get; set; } = ""; - public string OfferConsultantName { get; set; } = ""; - public string OfferConsultantPhone { get; set; } = ""; - public string OfferConsultantEMail { get; set; } = ""; - public string OfferTotalSum { get; set; } = ""; - - public string OfferConditionVatExclusive { get; set; } = ""; - public string OfferConditionValidityPeriod { get; set; } = ""; - public string OfferConditionValidityQuantity { get; set; } = ""; - public string OfferConditionQuestion { get; set; } = ""; - public string OfferGreeting { get; set; } = ""; - public string OfferFooterCompanyName { get; set; } = ""; - public string OfferFooterCompanyPostalAddress { get; set; } = ""; - public string OfferFooterCompanyPhone { get; set; } = ""; - public string OfferFooterCompanyWeb { get; set; } = ""; - public string OfferFooterCompanyVat { get; set; } = ""; -} \ No newline at end of file diff --git a/Wonky.Entity/DTO/SystemQuoteLabels.cs b/Wonky.Entity/DTO/SystemQuoteLabels.cs new file mode 100644 index 00000000..08171add --- /dev/null +++ b/Wonky.Entity/DTO/SystemQuoteLabels.cs @@ -0,0 +1,18 @@ +namespace Wonky.Entity.DTO; + +public class SystemQuoteLabels +{ + public string DocumentDateLabel { get; set; } = ""; + public string NameLabel { get; set; } = ""; + public string EMailLabel { get; set; } = ""; + public string PhoneLabel { get; set; } = ""; + public string ConsultantLabel { get; set; } = ""; + + public string ItemColumnLabel { get; set; } = ""; + public string QuantityColumnLabel { get; set; } = ""; + public string DescriptionColumnLabel { get; set; } = ""; + public string PriceColumnLabel { get; set; } = ""; + public string DiscountColumnLabel { get; set; } = ""; + public string LineSumColumnLabel { get; set; } = ""; + public string ConditionsLabel { get; set; } = ""; +} \ No newline at end of file diff --git a/Wonky.Entity/DTO/SystemQuoteMailTexts.cs b/Wonky.Entity/DTO/SystemQuoteMailTexts.cs new file mode 100644 index 00000000..79341be4 --- /dev/null +++ b/Wonky.Entity/DTO/SystemQuoteMailTexts.cs @@ -0,0 +1,16 @@ +namespace Wonky.Entity.DTO; + +public class SystemQuoteMailTexts +{ + public string MailGreeting1 { get; set; } = ""; + public string MailGreeting2 { get; set; } = ""; + public string MailText1 { get; set; } = ""; + public string MailText2 { get; set; } = ""; + public string MailLinkReference { get; set; } = ""; + public string MailSalute { get; set; } = ""; + public string MailSender { get; set; } = ""; + public string MailFooter { get; set; } = ""; + public string MailCopyHeader { get; set; } = ""; + public string MailCopySalesNumber { get; set; } = ""; + public string MailCopyCreatedBy { get; set; } = ""; +} \ No newline at end of file diff --git a/Wonky.Entity/DTO/SystemQuoteTexts.cs b/Wonky.Entity/DTO/SystemQuoteTexts.cs new file mode 100644 index 00000000..5e931284 --- /dev/null +++ b/Wonky.Entity/DTO/SystemQuoteTexts.cs @@ -0,0 +1,28 @@ +namespace Wonky.Entity.DTO; + +public class SystemQuoteTexts +{ + public string HtmlTitle { get; set; } = ""; + public string DocumentName { get; set; } = ""; + public string DocumentNumber { get; set; } = ""; + public string DocumentDate { get; set; } = ""; + public string CustomerName { get; set; } = ""; + public string CustomerPhone { get; set; } = ""; + public string CustomerEMail { get; set; } = ""; + public string ConsultantName { get; set; } = ""; + public string ConsultantPhone { get; set; } = ""; + public string ConsultantEMail { get; set; } = ""; + public string TotalSum { get; set; } = ""; + + public string ConditionVatExclusive { get; set; } = ""; + public string ConditionValidityPeriod { get; set; } = ""; + public string ConditionValidityQuantity { get; set; } = ""; + public string ConditionQuestion { get; set; } = ""; + public string Greeting { get; set; } = ""; + public string FooterCompanyName { get; set; } = ""; + public string FooterCompanyPostalAddress { get; set; } = ""; + public string FooterCompanyPhone { get; set; } = ""; + public string FooterCompanyWeb { get; set; } = ""; + public string FooterCompanyVat { get; set; } = ""; + +} \ No newline at end of file