WIP: KRV administration - page organizing

This commit is contained in:
Frede Hundewadt 2023-04-08 12:39:44 +02:00
parent cd6df8c643
commit 7e3daba6e3
111 changed files with 442 additions and 614 deletions

View file

@ -23,7 +23,7 @@
d. @(SelectedDate.Day)/@(SelectedDate.Month) d. @(SelectedDate.Day)/@(SelectedDate.Month)
</div> </div>
<div class="col-sm-5"> <div class="col-sm-5">
<InputDate class="form-control calendar" @bind-Value="SelectedDate" @oninput="OnDateChanged"/> <InputDate class="form-control calendar" @bind-Value="SelectedDate" @oninput="WorkDateChanged"/>
</div> </div>
</div> </div>
</div> </div>

View file

@ -35,7 +35,7 @@ public partial class WorkDateComponent : IDisposable
/// <summary> /// <summary>
/// OnChanged callback function /// OnChanged callback function
/// </summary> /// </summary>
[Parameter] public EventCallback<string> OnChangedCallback { get; set; } [Parameter] public EventCallback<string> OnWorkDateChangedCallback { get; set; }
/// <summary> /// <summary>
/// work date context holding the edit value /// work date context holding the edit value
@ -69,13 +69,12 @@ public partial class WorkDateComponent : IDisposable
/// OnDateChanged function call to invoke the event callback /// OnDateChanged function call to invoke the event callback
/// </summary> /// </summary>
/// <param name="e"></param> /// <param name="e"></param>
private async Task OnDateChanged(ChangeEventArgs e) private async Task WorkDateChanged(ChangeEventArgs e)
{ {
if (DateTime.TryParse(e.Value.ToString(), out var setDate)) if (DateTime.TryParse(e.Value.ToString(), out var setDate))
{ {
await UserPreference.SetWorkDate(setDate); await UserPreference.SetWorkDate(setDate);
await OnChangedCallback.InvokeAsync($"{setDate:yyyy-MM-dd}"); await OnWorkDateChangedCallback.InvokeAsync($"{setDate:yyyy-MM-dd}");
} }
} }

View file

@ -25,7 +25,7 @@
<div class="row bg-dark text-white rounded-2 mb-2 py-2 align-items-center"> <div class="row bg-dark text-white rounded-2 mb-2 py-2 align-items-center">
<div class="col"> <div class="col">
<WorkDateComponent OnChangedCallback="WorkDateComponentCallback"/> <WorkDateComponent OnWorkDateChangedCallback="WorkDateChangedCallback"/>
</div> </div>
</div> </div>

View file

@ -352,7 +352,7 @@ public partial class AdvisorActivityCreatePage : IDisposable
} }
private async Task WorkDateComponentCallback(string workDate) private async Task WorkDateChangedCallback(string workDate)
{ {
ReportClosed = await ReportRepo.ReportExist(workDate); ReportClosed = await ReportRepo.ReportExist(workDate);
SelectedDate = DateTime.Parse(workDate); SelectedDate = DateTime.Parse(workDate);

View file

@ -21,7 +21,7 @@
<PageTitle>Aktiviteter for @($"{SelectedDate:yyyy-MM-dd}")</PageTitle> <PageTitle>Aktiviteter for @($"{SelectedDate:yyyy-MM-dd}")</PageTitle>
<div class="row bg-dark text-white rounded-2 mb-2 py-2 align-items-center"> <div class="row bg-dark text-white rounded-2 mb-2 py-2 align-items-center">
<div class="col-sm-7"> <div class="col-sm-7">
<WorkDateComponent OnChangedCallback="GetActivities"/> <WorkDateComponent OnWorkDateChangedCallback="GetWorkDateActivities"/>
</div> </div>
<div class="col-sm-3"> <div class="col-sm-3">
<AdvisorActivityKmStartComponent/> <AdvisorActivityKmStartComponent/>

View file

@ -51,11 +51,11 @@ public partial class AdvisorActivityTodayListPage : IDisposable
? DateTime.Now ? DateTime.Now
: DateTime.Parse(UserPreference.WorkDate); : DateTime.Parse(UserPreference.WorkDate);
ReportExist = await ReportRepo.ReportExist($"{SelectedDate:yyyy-MM-dd}"); ReportExist = await ReportRepo.ReportExist($"{SelectedDate:yyyy-MM-dd}");
await GetActivities($"{SelectedDate:yyyy-MM-dd}"); await GetWorkDateActivities($"{SelectedDate:yyyy-MM-dd}");
Working = false; Working = false;
} }
private async Task GetActivities(string workDate) private async Task GetWorkDateActivities(string workDate)
{ {
Working = true; Working = true;
Toaster.ShowInfo("Vent nogle sekunder for data"); Toaster.ShowInfo("Vent nogle sekunder for data");

View file

@ -23,7 +23,7 @@ using Wonky.Entity.Views;
namespace Wonky.Client.Pages; namespace Wonky.Client.Pages;
public partial class KrvWorkplaceDocumentListPage : IDisposable public partial class AdvisorCustomerWorkplaceDocumentListPage : IDisposable
{ {
// ################################################################## // ##################################################################
[Inject] public HttpInterceptorService Interceptor { get; set; } [Inject] public HttpInterceptorService Interceptor { get; set; }

View file

@ -23,7 +23,7 @@ using Wonky.Entity.Views;
namespace Wonky.Client.Pages; namespace Wonky.Client.Pages;
public partial class KrvWorkplaceListPage : IDisposable public partial class AdvisorCustomerWorkplaceListPage : IDisposable
{ {
[Parameter] public string CompanyId { get; set; } = ""; [Parameter] public string CompanyId { get; set; } = "";
[Inject] public IAdvisorWorkplaceRepository WorkplaceRepo { get; set; } [Inject] public IAdvisorWorkplaceRepository WorkplaceRepo { get; set; }

View file

@ -23,7 +23,7 @@ using Wonky.Entity.DTO;
#pragma warning disable CS8618 #pragma warning disable CS8618
namespace Wonky.Client.Pages; namespace Wonky.Client.Pages;
public partial class KrvWorkplaceViewEditPage : IDisposable public partial class AdvisorCustomerWorkplaceViewEditPage : IDisposable
{ {
// ############################################################# // #############################################################
[Inject] public IAdvisorWorkplaceRepository Workplaces { get; set; } [Inject] public IAdvisorWorkplaceRepository Workplaces { get; set; }

View file

@ -24,7 +24,7 @@
@* report header *@ @* report header *@
<div class="row sticky-top bg-dark text-white rounded-2 mb-2 py-2 align-items-center"> <div class="row sticky-top bg-dark text-white rounded-2 mb-2 py-2 align-items-center">
<div class="col-sm-8"> <div class="col-sm-8">
<WorkDateComponent OnChangedCallback="SetWorkDateCallback"/> <WorkDateComponent OnWorkDateChangedCallback="SetWorkDateCallback"/>
</div> </div>
<div class="col-sm-4 text-end"> <div class="col-sm-4 text-end">
<AdvisorActivityKmStartComponent/> <AdvisorActivityKmStartComponent/>

View file

@ -22,7 +22,7 @@
<PageTitle>@Report.ReportData.Name</PageTitle> <PageTitle>@Report.ReportData.Name</PageTitle>
<div class="row bg-dark text-white rounded-2 mb-2 py-2 align-items-center d-print-none"> <div class="row bg-dark text-white rounded-2 mb-2 py-2 align-items-center d-print-none">
<div class="col-sm-6"> <div class="col-sm-6">
<WorkDateComponent OnChangedCallback="FetchReport"/> <WorkDateComponent OnWorkDateChangedCallback="FetchReport"/>
</div> </div>
<div class="col-sm-2 d-grid"> <div class="col-sm-2 d-grid">
<button class="btn btn-warning" @onclick="() => Print(PrintTarget.FrontPage)"><i class="bi-printer"></i> Forside</button> <button class="btn btn-warning" @onclick="() => Print(PrintTarget.FrontPage)"><i class="bi-printer"></i> Forside</button>

View file

@ -26,7 +26,7 @@
@* <h3 class="workDate">@(string.IsNullOrWhiteSpace(_workDate) ? "" : $"{DateTime.Parse(_workDate).ToLongDateString()}")</h3> *@ @* <h3 class="workDate">@(string.IsNullOrWhiteSpace(_workDate) ? "" : $"{DateTime.Parse(_workDate).ToLongDateString()}")</h3> *@
@* </div> *@ @* </div> *@
<div class="col-md-6"> <div class="col-md-6">
<WorkDateComponent OnChangedCallback="GetTaskItems" /> <WorkDateComponent OnWorkDateChangedCallback="GetTaskItems" />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<a class="btn btn-primary" href="/advisor/task-items/new">NY OPGAVE</a> <a class="btn btn-primary" href="/advisor/task-items/new">NY OPGAVE</a>

View file

@ -1,68 +0,0 @@
@*
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
*@
@page "/krv/{CountryCode}/items/{salesItemId}"
@using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Advisor,Advisor")]
<div class="card">
<div class="card-header">
<h1>@_item.Name</h1>
</div>
<div class="card-body">
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th scope="row">Navn</th>
<td>@_item.Name</td>
</tr>
<tr>
<th scope="row">Varenr</th>
<td>@_item.Sku</td>
</tr>
<tr>
<th scope="row"></th>
<td>@_item.ProductGroup</td>
</tr>
<tr>
<th scope="row">Kort Navn</th>
<td>@_item.ShortName</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th scope="col" rowspan="2">Priser</th>
</tr>
</thead>
<tbody>
@foreach (var rate in _item.Rates)
{
<tr>
<th scope="row">@rate.Quantity</th>
<td>@rate.Rate</td>
</tr>
}
</tbody>
</table>
</div>
<div class="card-footer">
<a href="/krvVariants" class="btn btn-success">Tilbage</a>
</div>
</div>

View file

@ -1,53 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
using Wonky.Client.HttpInterceptors;
using Wonky.Client.HttpRepository;
using Microsoft.AspNetCore.Components;
using Wonky.Entity.Views;
#pragma warning disable CS8618
namespace Wonky.Client.Pages;
public partial class KrvItemViewPage : IDisposable
{
// ##################################################################
[Inject] private ICountryCatalogRepository _itemRepo { get; set; }
[Inject] private HttpInterceptorService _interceptor { get; set; }
// ##################################################################
[Parameter] public string SalesItemId { get; set; } = "";
[Parameter] public string CountryCode { get; set; } = "";
// ##################################################################
private SalesItemView _item { get; set; } = new ();
protected override async Task OnInitializedAsync()
{
_interceptor.RegisterEvent();
_interceptor.RegisterBeforeSendEvent();
_item = await _itemRepo.GetSalesItemId(CountryCode, SalesItemId);
}
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
public void Dispose()
{
_interceptor!.DisposeEvent();
}
}

View file

@ -1,10 +0,0 @@
/* item image preview */
.image-name {
margin-left: 10px;
}
.image-preview {
width: auto;
max-width: 200px;
height: 100px;
margin-top: 15px;
}

View file

@ -21,7 +21,7 @@
<div class="row pt-2 pb-2 mb-3 rounded-2 d-print-none bg-dark text-white"> <div class="row pt-2 pb-2 mb-3 rounded-2 d-print-none bg-dark text-white">
<div class="col-sm-6"> <div class="col-sm-6">
<WorkDateComponent OnChangedCallback="FetchUserReport"/> <WorkDateComponent OnWorkDateChangedCallback="FetchUserReport"/>
</div> </div>
<div class="col-sm-2 d-grid"> <div class="col-sm-2 d-grid">
<button class="btn btn-warning" @onclick="() => Print(PrintTarget.FrontPage)"><i class="bi-printer"></i> Forside</button> <button class="btn btn-warning" @onclick="() => Print(PrintTarget.FrontPage)"><i class="bi-printer"></i> Forside</button>

View file

@ -1,54 +0,0 @@
@* Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
*@
@using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Admin")]
@page "/krv"
<h3>Kemisk Risiko Administration</h3>
<div class="row">
<div class="col-sm-12">
<div class="list-group list-group-flush">
<a class="list-group-item list-group-item-action list-group-item-success" href="/krv/products">Produkter</a>
<a class="list-group-item list-group-item-action list-group-item-success" href="/krv/protective-equipment">Værnemidler</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section1">Produkt/Anvendelse</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section2">Egenskaber</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section3">Påvirkning/Mængde</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section4">Forebyggelse</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section5">Arbejdsmedicinske undersøgelser og referencer</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section6">Substitution/Alternativer</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section7">Grænseværdier fastsat af arbejdstilsynet</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section8">Kræves særlig uddannnelse</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section9">Er der afvigelser</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/sectiona">Anslået mængde anvendt årligt</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/section0">Forudsægninger for udarbejdelse af risikovurdering</a>
<a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/texts/firstaid">Førstehjælp</a>
<a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/texts/accident">Ved Uheld</a>
<a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/texts/waste">Affald og Spild</a>
<a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/texts/danger">Faremærkning CLP</a>
<a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/texts/print">Udskrift</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/riskh">Risikosætninger gruppe H</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/riskp">Risikosætninger gruppe P</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/riske">Risikosætninger gruppe EUH</a>
</div>
</div>
</div>
@code {
}

View file

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

View file

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

View file

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

View file

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

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Protection;
public partial class ProtectionTypeListPage
{
}

View file

@ -1,6 +0,0 @@
namespace Wonky.Client.Pages.System.Krv;
public partial class SystemKrvProductsAdminPage
{
}

View file

@ -1,6 +0,0 @@
namespace Wonky.Client.Pages.System.Krv;
public partial class SystemKrvProtectionsAdminPage
{
}

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class RiskPhraseEViewEditPage
{
}

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class RiskPhraseHViewEditPage
{
}

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class RiskPhrasePViewEditPage
{
}

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class Section3ViewEditPage
{
}

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class Section4ViewEditPage
{
}

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class Section5ViewEditPage
{
}

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class Section6ViewEditPage
{
}

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class Section7ViewEditPage
{
}

View file

@ -1,21 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class Section8ViewEditPage
{
}

View file

@ -1,22 +0,0 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages.System.Krv.Texts;
public partial class Section9ViewEditPage
{
}

View file

@ -0,0 +1,29 @@
@* Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
*@
@using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Admin")]
@page "/system/krv/protective-equipment/{ProtectionId}/items"
<div class="card">
<div class="card-header bg-dark text-white">
<div class="mt-3 h3 card-title">
Værnemiddel varianter
</div>
</div>
<div class="card-body">
</div>
</div>

View file

@ -15,9 +15,9 @@
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
namespace Wonky.Client.Pages.System.Krv.Protection; namespace Wonky.Client.Pages;
public partial class ProtectionItemListPage public partial class SystemKrvProtectionItemListPage
{ {
[Parameter] public string ProtectionId { get; set; } = ""; [Parameter] public string ProtectionId { get; set; } = "";
} }

View file

@ -0,0 +1,30 @@
@* Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
*@
@using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Admin")]
@page "/system/krv/protective-equipment/{ProtectionId}/items/{ItemId}"
<div class="card">
<div class="card-header bg-dark text-white">
<div class="mt-3 h3 card-title">
Værnemiddel variant
</div>
</div>
<div class="card-body">
</div>
</div>

View file

@ -15,9 +15,9 @@
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
namespace Wonky.Client.Pages.System.Krv.Protection; namespace Wonky.Client.Pages;
public partial class ProtectionItemViewEditPage public partial class SystemKrvProtectionItemViewEditPage
{ {
[Parameter] public string ProtectionId { get; set; } = ""; [Parameter] public string ProtectionId { get; set; } = "";
[Parameter] public string ItemId { get; set; } = ""; [Parameter] public string ItemId { get; set; } = "";

View file

@ -0,0 +1,6 @@
namespace Wonky.Client.Pages;
public partial class SystemKrvProtectionListPage
{
}

View file

@ -16,6 +16,14 @@
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Admin")] @attribute [Authorize(Roles = "Admin")]
@page "/krv/protective-equipment/{ProtectionId}/items/{ItemId}" @page "/system/krv/protective-equipment"
<h3>Ændre værnemiddel</h3>
<div class="card">
<div class="card-header bg-dark text-white">
<div class="mt-3 h3 card-title">
Værnemiddel grupper
</div>
</div>
<div class="card-body">
</div>
</div>

View file

@ -13,9 +13,9 @@
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
// //
namespace Wonky.Client.Pages.System.Krv.Product; namespace Wonky.Client.Pages;
public partial class ProductListPage public partial class SystemKrvProtectionTypeListPage
{ {
} }

View file

@ -16,5 +16,15 @@
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Admin")] @attribute [Authorize(Roles = "Admin")]
@page "/krv/products" @page "/system/krv/protective-equipment/{ProtectionId}/"
<h3>Produkt oversigt</h3>
<div class="card">
<div class="card-header bg-dark text-white">
<div class="mt-3 h3 card-title">
Værnemiddel gruppe
</div>
</div>
<div class="card-body">
</div>
</div>

View file

@ -16,9 +16,9 @@
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
namespace Wonky.Client.Pages.System.Krv.Protection; namespace Wonky.Client.Pages;
public partial class ProtectionTypeViewEditPage public partial class SystemKrvProtectionTypeViewEditPage
{ {
[Parameter] public string ProtectionId { get; set; } = ""; [Parameter] public string ProtectionId { get; set; } = "";
} }

View file

@ -13,9 +13,9 @@
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
// //
namespace Wonky.Client.Pages.System.Krv.Texts; namespace Wonky.Client.Pages;
public partial class Section1ViewEditPage public partial class SystemKrvTextsAccidentViewEditPage
{ {
} }

View file

@ -0,0 +1,47 @@
@* Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
*@
@page "/system/krv/texts/"
<div class="card">
<div class="card-header bg-dark text-white">
<div class="mt-3 h3 card-title">
KRV Risiko Tekst Vedligeholdelse
</div>
</div>
<div class="card-body">
<div class="list-group">
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section1">Produkt/Anvendelse</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section2">Egenskaber</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section3">Påvirkning/Mængde</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section4">Forebyggelse</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section5">Arbejdsmedicinske undersøgelser og referencer</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section6">Substitution/Alternativer</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section7">Grænseværdier fastsat af arbejdstilsynet</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section8">Kræves særlig uddannnelse</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section9">Er der afvigelser</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/sectiona">Anslået mængde anvendt årligt</a>
<a class="list-group-item list-group-item-action list-group-item-info" href="/system/krv/texts/section0">Forudsætninger for udarbejdelse af risikovurdering</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/firstaid">Førstehjælp</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/accident">Ved Uheld</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/waste">Affald og Spild</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/danger">Faremærkning CLP</a>
<a class="list-group-item list-group-item-action list-group-item-warning" href="/system/krv/texts/print">Udskrift</a>
<a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/texts/riskh">Risikosætninger gruppe H</a>
<a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/texts/riskp">Risikosætninger gruppe P</a>
<a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/texts/riske">Risikosætninger gruppe EUH</a>
</div>
</div>
</div>

View file

@ -1,4 +1,4 @@
namespace Wonky.Client.Pages.System.Krv; namespace Wonky.Client.Pages;
public partial class SystemKrvTextsAdminPage public partial class SystemKrvTextsAdminPage
{ {

View file

@ -14,9 +14,9 @@
// //
namespace Wonky.Client.Pages.System.Krv.Texts; namespace Wonky.Client.Pages;
public partial class Section9ViewEditPage public partial class SystemKrvTextsDangerMarkingViewEditPage
{ {
} }

View file

@ -14,9 +14,9 @@
// //
namespace Wonky.Client.Pages.System.Krv.Texts; namespace Wonky.Client.Pages;
public partial class FirstAidViewEditPage public partial class SystemKrvTextsFirstAidViewEditPage
{ {
} }

View file

@ -14,9 +14,9 @@
// //
namespace Wonky.Client.Pages.System.Krv.Texts; namespace Wonky.Client.Pages;
public partial class PrintingViewEditPage public partial class SystemKrvTextsPrintingViewEditPage
{ {
} }

View file

@ -13,9 +13,9 @@
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
// //
namespace Wonky.Client.Pages.System.Krv.Texts; namespace Wonky.Client.Pages;
public partial class Section2ViewEditPage public partial class SystemKrvTextsRiskPhraseEViewEditPage
{ {
} }

View file

@ -13,9 +13,9 @@
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
// //
namespace Wonky.Client.Pages.System.Krv.Texts; namespace Wonky.Client.Pages;
public partial class AccidentViewEditPage public partial class SystemKrvTextsRiskPhraseHViewEditPage
{ {
} }

View file

@ -0,0 +1,21 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsRiskPhrasePViewEditPage
{
}

View file

@ -14,9 +14,9 @@
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
// //
namespace Wonky.Client.Pages.System.Krv.Texts; namespace Wonky.Client.Pages;
public partial class Section0ViewEditPage public partial class SystemKrvTextsSection0ViewEditPage
{ {
} }

View file

@ -0,0 +1,21 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsSection1ViewEditPage
{
}

View file

@ -0,0 +1,21 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsSection2ViewEditPage
{
}

View file

@ -0,0 +1,21 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsSection3ViewEditPage
{
}

View file

@ -0,0 +1,21 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsSection4ViewEditPage
{
}

View file

@ -0,0 +1,21 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsSection5ViewEditPage
{
}

View file

@ -0,0 +1,21 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsSection6ViewEditPage
{
}

View file

@ -0,0 +1,21 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsSection7ViewEditPage
{
}

View file

@ -0,0 +1,21 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsSection8ViewEditPage
{
}

View file

@ -0,0 +1,22 @@
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
namespace Wonky.Client.Pages;
public partial class SystemKrvTextsSectionAViewEditPage
{
}

View file

@ -14,9 +14,9 @@
// //
namespace Wonky.Client.Pages.System.Krv.Texts; namespace Wonky.Client.Pages;
public partial class DangerMarkingViewEditPage public partial class SystemKrvTextsSystemKrvSection9ViewEditPage
{ {
} }

View file

@ -20,9 +20,9 @@
<PageTitle>System Mmanager</PageTitle> <PageTitle>System Mmanager</PageTitle>
<div class="list-group"> <div class="list-group">
<a class="list-group-item list-group-item-action" href="/system/users">Bruger Admin</a> <a class="list-group-item list-group-item-action list-group-item-info" href="/system/users">Bruger Admin</a>
<a class="list-group-item list-group-item-action" href="/system/supervisors">Supervisor Admin</a> <a class="list-group-item list-group-item-action list-group-item-warning" href="/system/supervisors">Supervisor Admin</a>
<a class="list-group-item list-group-item-action" href="/system/krv/products">Kemi Produkt Admin</a> <a class="list-group-item list-group-item-action list-group-item-success" href="/system/krv/products">Produkt Admin</a>
<a class="list-group-item list-group-item-action" href="/system/krv/protections">Kemi Værnemiddel Admin</a> <a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/protective-equipment">Kemi Værnemiddel Admin</a>
<a class="list-group-item list-group-item-action" href="/system/krv/texts/">Kemi Tekster Admin</a> <a class="list-group-item list-group-item-action list-group-item-danger" href="/system/krv/texts">Kemi Tekst Admin</a>
</div> </div>

View file

@ -17,7 +17,7 @@
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
#pragma warning disable CS8618 #pragma warning disable CS8618
namespace Wonky.Client.Pages.System; namespace Wonky.Client.Pages;
public partial class SystemManagerLandingPage public partial class SystemManagerLandingPage
{ {

View file

@ -0,0 +1,6 @@
namespace Wonky.Client.Pages;
public partial class SystemProductListPage
{
}

View file

@ -16,6 +16,14 @@
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Admin")] @attribute [Authorize(Roles = "Admin")]
@page "/krv/protective-equipment/{ProtectionId}/" @page "/system/krv/products/{ProductId}/variants"
<h3>Ændre gruppe beskrivelse</h3>
<div class="card">
<div class="card-header bg-dark text-white">
<div class="mt-3 h3 card-title">
Produkt varianter
</div>
</div>
<div class="card-body">
</div>
</div>

View file

@ -15,9 +15,10 @@
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
namespace Wonky.Client.Pages.System.Krv.Product; namespace Wonky.Client.Pages;
public partial class ProductViewEditPage public partial class SystemProductVariantListPage
{ {
[Parameter] public string ProductId { get; set; } = ""; [Parameter] public string ProductId { get; set; } = "";
} }

View file

@ -16,5 +16,13 @@
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Admin")] @attribute [Authorize(Roles = "Admin")]
@page "/krv/products/{ProductId}" @page "/system/krv/products/{ProductId}/variants/{VariantId}"
<h3>Ændre produkt</h3> <div class="card">
<div class="card-header bg-dark text-white">
<div class="mt-3 h3 card-title">
Produkt variant
</div>
</div>
<div class="card-body">
</div>
</div>

View file

@ -15,9 +15,9 @@
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
namespace Wonky.Client.Pages.System.Krv.Product; namespace Wonky.Client.Pages;
public partial class ProductVariantViewEditPage public partial class SystemProductVariantViewEditPage
{ {
[Parameter] [Parameter]
public string ProductId { get; set; } = ""; public string ProductId { get; set; } = "";

View file

@ -13,12 +13,14 @@
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
*@ *@
@using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Admin")]
@page "/system/krv/texts/" @page "/system/krv/products/{ProductId}"
<div class="card"> <div class="card">
<div class="card-header bg-dark text-white"> <div class="card-header bg-dark text-white">
<div class="mt-3 h3 card-title"> <div class="mt-3 h3 card-title">
KRV Risiko Tekst Vedligeholdelse Produkt
</div> </div>
</div> </div>
<div class="card-body"> <div class="card-body">

View file

@ -15,10 +15,9 @@
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
namespace Wonky.Client.Pages.System.Krv.Product; namespace Wonky.Client.Pages;
public partial class ProductVariantListPage public partial class SystemProductViewEditPage
{ {
[Parameter] public string ProductId { get; set; } = ""; [Parameter] public string ProductId { get; set; } = "";
} }

View file

@ -7,15 +7,15 @@ using Wonky.Client.HttpRepository;
using Wonky.Entity.DTO; using Wonky.Entity.DTO;
using Wonky.Entity.Views; using Wonky.Entity.Views;
namespace Wonky.Client.Pages.System; namespace Wonky.Client.Pages;
#pragma warning disable CS8618 #pragma warning disable CS8618
public partial class SystemMaintenanceMessagePage : IDisposable public partial class SystemShortMessagePage : IDisposable
{ {
// ############################################################# // #############################################################
[Inject] public HttpInterceptorService Interceptor { get; set; } [Inject] public HttpInterceptorService Interceptor { get; set; }
[Inject] public ISystemUserRepository UserRepo { get; set; } [Inject] public ISystemUserRepository UserRepo { get; set; }
[Inject] public ISystemSendSmsService SmsService { get; set; } [Inject] public ISystemSendSmsService SmsService { get; set; }
[Inject] public ILogger<SystemMaintenanceMessagePage> Logger { get; set; } [Inject] public ILogger<SystemShortMessagePage> Logger { get; set; }
[Inject] public IToastService Toaster { get; set; } [Inject] public IToastService Toaster { get; set; }
// ############################################################# // #############################################################

View file

@ -19,7 +19,7 @@ using Wonky.Client.HttpRepository;
using Wonky.Entity.Views; using Wonky.Entity.Views;
#pragma warning disable CS8618 #pragma warning disable CS8618
namespace Wonky.Client.Pages.System.Users; namespace Wonky.Client.Pages;
public partial class SystemSupervisorListPage : IDisposable public partial class SystemSupervisorListPage : IDisposable
{ {

Some files were not shown because too many files have changed in this diff Show more