diff --git a/Wonky.Client/Components/ReportActivityLedgerComponent.razor.cs b/Wonky.Client/Components/AdvisorActivityListComponent.razor.cs
similarity index 81%
rename from Wonky.Client/Components/ReportActivityLedgerComponent.razor.cs
rename to Wonky.Client/Components/AdvisorActivityListComponent.razor.cs
index 870de4ef..c7c528e9 100644
--- a/Wonky.Client/Components/ReportActivityLedgerComponent.razor.cs
+++ b/Wonky.Client/Components/AdvisorActivityListComponent.razor.cs
@@ -13,12 +13,14 @@
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
-using Wonky.Entity.Views;
using Microsoft.AspNetCore.Components;
+using Wonky.Entity.Views;
namespace Wonky.Client.Components;
-public partial class ReportActivityLedgerComponent
+public partial class AdvisorActivityListComponent
{
- [Parameter] public ReportData ReportData { get; set; } = new();
+ [Parameter] public List ActivityList { get; set; } = new();
+ [Inject] private NavigationManager Navigator { get; set; }
+
}
\ No newline at end of file
diff --git a/Wonky.Client/Components/AdvisorCompanyTableComponent.razor b/Wonky.Client/Components/AdvisorCustomerListComponent.razor
similarity index 94%
rename from Wonky.Client/Components/AdvisorCompanyTableComponent.razor
rename to Wonky.Client/Components/AdvisorCustomerListComponent.razor
index 6475f738..db093cce 100644
--- a/Wonky.Client/Components/AdvisorCompanyTableComponent.razor
+++ b/Wonky.Client/Components/AdvisorCustomerListComponent.razor
@@ -42,7 +42,7 @@
diff --git a/Wonky.Client/Components/AdvisorCompanyTableComponent.razor.cs b/Wonky.Client/Components/AdvisorCustomerListComponent.razor.cs
similarity index 88%
rename from Wonky.Client/Components/AdvisorCompanyTableComponent.razor.cs
rename to Wonky.Client/Components/AdvisorCustomerListComponent.razor.cs
index f09fd526..4cfb03fb 100644
--- a/Wonky.Client/Components/AdvisorCompanyTableComponent.razor.cs
+++ b/Wonky.Client/Components/AdvisorCustomerListComponent.razor.cs
@@ -27,13 +27,13 @@ using Wonky.Entity.Views;
namespace Wonky.Client.Components
{
- public partial class AdvisorCompanyTableComponent
+ public partial class AdvisorCustomerListComponent
{
[Parameter] public List CompanyList { get; set; } = new();
[Parameter] public EventCallback OnDelete { get; set; }
[Parameter] public EventCallback OnSelect { get; set; }
- [Inject] public NavigationManager Navigator { get; set; }
- [Inject] public IJSRuntime Js { get; set; }
+ [Inject] private NavigationManager Navigator { get; set; }
+ [Inject] private IJSRuntime Js { get; set; }
private Lazy BsTooltip = new();
@@ -43,7 +43,7 @@ namespace Wonky.Client.Components
private void ViewCustomer(string companyId)
{
- Navigator.NavigateTo($"/companies/{companyId}");
+ Navigator.NavigateTo($"/advisor/customers/{companyId}");
}
private void CallInformationModal(string info)
diff --git a/Wonky.Client/Components/AdvisorReportActivityLedgerComponent.razor b/Wonky.Client/Components/AdvisorReportActivityLedgerComponent.razor
new file mode 100644
index 00000000..bb2f8831
--- /dev/null
+++ b/Wonky.Client/Components/AdvisorReportActivityLedgerComponent.razor
@@ -0,0 +1,93 @@
+@using Wonky.Entity.Views
+@using Wonky.Entity.DTO
+@*
+// 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]
+//
+*@
+
+
+
+
+
+
Dagens Demo @(ReportData.NewDemoCount + ReportData.RecallDemoCount)
+
Dagens Resultat
+
Måneds Resultat
+
+
+
+
+
+
Besøg
+
Demo
+
Salg
+
Beløb
+
Besøg
+
Demo
+
Salg
+
Beløb
+
+
+
N
+
@ReportData.NewVisitCount
+
@ReportData.NewDemoCount
+
@ReportData.NewSaleCount
+
@ReportData.NewTurnover
+
@ReportData.NewVisitCountMonth
+
@ReportData.NewDemoCountMonth
+
@ReportData.NewSaleCountMonth
+
@ReportData.NewTurnoverMonth
+
+
+
R
+
@ReportData.RecallVisitCount
+
@ReportData.RecallDemoCount
+
@ReportData.RecallSaleCount
+
@ReportData.RecallTurnover
+
@ReportData.RecallVisitCountMonth
+
@ReportData.RecallDemoCountMonth
+
@ReportData.RecallSaleCountMonth
+
@ReportData.RecallTurnoverMonth
+
+
+
SAS
+
+
+
@ReportData.SasCount
+
@ReportData.SasTurnover
+
+
+
@ReportData.SasCountMonth
+
@ReportData.SasTurnoverMonth
+
+
+
TOTAL
+
@ReportData.TotalVisitCount
+
@ReportData.TotalDemoCount
+
@ReportData.TotalSaleCount
+
@ReportData.TotalTurnover
+
@ReportData.TotalVisitCountMonth
+
@ReportData.TotalDemoCountMonth
+
@ReportData.TotalSaleCountMonth
+
@ReportData.TotalTurnoverMonth
+
+
+
+
+@code{
+
+ [Parameter]
+ public ReportFiguresDto ReportData { get; set; } = new();
+
+}
\ No newline at end of file
diff --git a/Wonky.Client/Components/CatalogGroupComponent.razor.cs b/Wonky.Client/Components/CatalogGroupComponent.razor.cs
index cd9a7b30..72f23c18 100644
--- a/Wonky.Client/Components/CatalogGroupComponent.razor.cs
+++ b/Wonky.Client/Components/CatalogGroupComponent.razor.cs
@@ -22,8 +22,8 @@ namespace Wonky.Client.Components;
public partial class CatalogGroupComponent
{
- [Inject] public ILocalStorageService Storage { get; set; }
- [Inject] public UserProfileService ProfileService { get; set; }
+ [Inject] private ILocalStorageService Storage { get; set; }
+ [Inject] private UserProfileService ProfileService { get; set; }
[Parameter] public EventCallback OnChanged { get; set; }
private Dictionary Items { get; set; } = new();
private UserPref Prefs = new();
diff --git a/Wonky.Client/Components/CatalogTableComponent.razor b/Wonky.Client/Components/CatalogListComponent.razor
similarity index 100%
rename from Wonky.Client/Components/CatalogTableComponent.razor
rename to Wonky.Client/Components/CatalogListComponent.razor
diff --git a/Wonky.Client/Components/CatalogTableComponent.razor.cs b/Wonky.Client/Components/CatalogListComponent.razor.cs
similarity index 83%
rename from Wonky.Client/Components/CatalogTableComponent.razor.cs
rename to Wonky.Client/Components/CatalogListComponent.razor.cs
index ec392daf..1f173552 100644
--- a/Wonky.Client/Components/CatalogTableComponent.razor.cs
+++ b/Wonky.Client/Components/CatalogListComponent.razor.cs
@@ -21,12 +21,8 @@ using Wonky.Entity.Views;
namespace Wonky.Client.Components;
-public partial class CatalogTableComponent
+public partial class CatalogListComponent
{
[Parameter] public List ItemList { get; set; } = new();
- [Inject] public IToastService ToastService { get; set; }
- private void AddToDraft()
- {
- ToastService.ShowInfo("TODO: læg til ordre kladde");
- }
+ [Inject] private IToastService ToastService { get; set; }
}
\ No newline at end of file
diff --git a/Wonky.Client/Components/CatalogTablePrintComponent.razor b/Wonky.Client/Components/CatalogPrintComponent.razor
similarity index 100%
rename from Wonky.Client/Components/CatalogTablePrintComponent.razor
rename to Wonky.Client/Components/CatalogPrintComponent.razor
diff --git a/Wonky.Client/Components/CatalogTablePrintComponent.razor.cs b/Wonky.Client/Components/CatalogPrintComponent.razor.cs
similarity index 95%
rename from Wonky.Client/Components/CatalogTablePrintComponent.razor.cs
rename to Wonky.Client/Components/CatalogPrintComponent.razor.cs
index 450e2732..b92ff6e7 100644
--- a/Wonky.Client/Components/CatalogTablePrintComponent.razor.cs
+++ b/Wonky.Client/Components/CatalogPrintComponent.razor.cs
@@ -21,7 +21,7 @@ using Wonky.Entity.Views;
namespace Wonky.Client.Components;
-public partial class CatalogTablePrintComponent
+public partial class CatalogPrintComponent
{
[Parameter] public List ItemList { get; set; } = new();
[Parameter] public string CountryName { get; set; } = "";
diff --git a/Wonky.Client/Components/CatalogSearchComponent.razor b/Wonky.Client/Components/CatalogSearchComponent.razor
index 64fb9429..e5e76efc 100644
--- a/Wonky.Client/Components/CatalogSearchComponent.razor
+++ b/Wonky.Client/Components/CatalogSearchComponent.razor
@@ -17,7 +17,7 @@
\ No newline at end of file
diff --git a/Wonky.Client/Components/CatalogSearchComponent.razor.cs b/Wonky.Client/Components/CatalogSearchComponent.razor.cs
index dee1c3a4..eee8cf03 100644
--- a/Wonky.Client/Components/CatalogSearchComponent.razor.cs
+++ b/Wonky.Client/Components/CatalogSearchComponent.razor.cs
@@ -24,7 +24,7 @@ public partial class CatalogSearchComponent : IDisposable
///
/// User preference service
///
- [Inject] public UserProfileService ProfileService { get; set; }
+ [Inject] private UserProfileService ProfileService { get; set; }
///
/// OnChanged event callback
diff --git a/Wonky.Client/Components/CatalogSortComponent.razor b/Wonky.Client/Components/CatalogSortComponent.razor
index 09dedc9b..6d92ab1e 100644
--- a/Wonky.Client/Components/CatalogSortComponent.razor
+++ b/Wonky.Client/Components/CatalogSortComponent.razor
@@ -17,6 +17,6 @@
\ No newline at end of file
diff --git a/Wonky.Client/Components/CatalogSortComponent.razor.cs b/Wonky.Client/Components/CatalogSortComponent.razor.cs
index b009fb81..989c3ee1 100644
--- a/Wonky.Client/Components/CatalogSortComponent.razor.cs
+++ b/Wonky.Client/Components/CatalogSortComponent.razor.cs
@@ -24,7 +24,7 @@ public partial class CatalogSortComponent : IDisposable
///
/// User preference service
///
- [Inject] public UserProfileService ProfileService { get; set; }
+ [Inject] private UserProfileService ProfileService { get; set; }
///
/// OnChanged callback function
diff --git a/Wonky.Client/Components/ColorCodingComponent.razor.css b/Wonky.Client/Components/ColorCodingComponent.razor.css
deleted file mode 100644
index 002017f5..00000000
--- a/Wonky.Client/Components/ColorCodingComponent.razor.css
+++ /dev/null
@@ -1,4 +0,0 @@
-
-.color-code {
- max-width: 40px;
-}
\ No newline at end of file
diff --git a/Wonky.Client/Components/CustomerProductTableComponent.razor b/Wonky.Client/Components/CustomerInventoryListComponent.razor
similarity index 82%
rename from Wonky.Client/Components/CustomerProductTableComponent.razor
rename to Wonky.Client/Components/CustomerInventoryListComponent.razor
index ab20dff0..35dd233b 100644
--- a/Wonky.Client/Components/CustomerProductTableComponent.razor
+++ b/Wonky.Client/Components/CustomerInventoryListComponent.razor
@@ -19,7 +19,7 @@
-}
-
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/Wonky.Client/Components/CustomerInvoiceListComponent.razor.cs b/Wonky.Client/Components/CustomerInvoiceListComponent.razor.cs
new file mode 100644
index 00000000..844043b1
--- /dev/null
+++ b/Wonky.Client/Components/CustomerInvoiceListComponent.razor.cs
@@ -0,0 +1,17 @@
+using Microsoft.AspNetCore.Components;
+using Wonky.Client.Shared;
+using Wonky.Entity.Views;
+
+namespace Wonky.Client.Components;
+
+public partial class CustomerInvoiceListComponent
+{
+ [Parameter] public string CompanyId { get; set; } = "";
+ [Parameter] public List InvoiceList { get; set; } = new();
+ [Parameter] public EventCallback OnShowInvoice { get; set; }
+
+ private async Task ShowInvoice(string invoiceId)
+ {
+ await OnShowInvoice.InvokeAsync(invoiceId);
+ }
+}
\ No newline at end of file
diff --git a/Wonky.Client/Components/CustomerProductCheckListComponent.razor.cs b/Wonky.Client/Components/CustomerProductCheckListComponent.razor.cs
index 57fea05e..9559e57a 100644
--- a/Wonky.Client/Components/CustomerProductCheckListComponent.razor.cs
+++ b/Wonky.Client/Components/CustomerProductCheckListComponent.razor.cs
@@ -28,7 +28,7 @@ public partial class CustomerProductCheckListComponent
{
[Parameter] public List ProductList { get; set; } = new();
[Parameter] public string CompanyId { get; set; } = "";
- [Inject] public ILocalStorageService Storage { get; set; }
+ [Inject] private ILocalStorageService Storage { get; set; }
// private variables
private bool Descending { get; set; }
diff --git a/Wonky.Client/Components/CustomerProductLineTableComponent.razor b/Wonky.Client/Components/CustomerProductLineListComponent.razor
similarity index 100%
rename from Wonky.Client/Components/CustomerProductLineTableComponent.razor
rename to Wonky.Client/Components/CustomerProductLineListComponent.razor
diff --git a/Wonky.Client/Components/CustomerProductLineTableComponent.razor.cs b/Wonky.Client/Components/CustomerProductLineListComponent.razor.cs
similarity index 94%
rename from Wonky.Client/Components/CustomerProductLineTableComponent.razor.cs
rename to Wonky.Client/Components/CustomerProductLineListComponent.razor.cs
index a846338e..8d7e8ebd 100644
--- a/Wonky.Client/Components/CustomerProductLineTableComponent.razor.cs
+++ b/Wonky.Client/Components/CustomerProductLineListComponent.razor.cs
@@ -19,7 +19,7 @@ using Wonky.Entity.Views;
namespace Wonky.Client.Components;
-public partial class CustomerProductLineTableComponent
+public partial class CustomerProductLineListComponent
{
[Parameter] public List ProductHistory { get; set; } = new();
diff --git a/Wonky.Client/Components/CompanySearchColumnComponent.razor b/Wonky.Client/Components/CustomerSearchColumnComponent.razor
similarity index 81%
rename from Wonky.Client/Components/CompanySearchColumnComponent.razor
rename to Wonky.Client/Components/CustomerSearchColumnComponent.razor
index 3d6d41b6..bd08fc0a 100644
--- a/Wonky.Client/Components/CompanySearchColumnComponent.razor
+++ b/Wonky.Client/Components/CustomerSearchColumnComponent.razor
@@ -17,9 +17,9 @@
diff --git a/Wonky.Client/Components/CompanySearchColumnComponent.razor.cs b/Wonky.Client/Components/CustomerSearchColumnComponent.razor.cs
similarity index 90%
rename from Wonky.Client/Components/CompanySearchColumnComponent.razor.cs
rename to Wonky.Client/Components/CustomerSearchColumnComponent.razor.cs
index 3b4777bb..e771be7d 100644
--- a/Wonky.Client/Components/CompanySearchColumnComponent.razor.cs
+++ b/Wonky.Client/Components/CustomerSearchColumnComponent.razor.cs
@@ -22,10 +22,10 @@ using Wonky.Client.Services;
namespace Wonky.Client.Components;
-public partial class CompanySearchColumnComponent : IDisposable
+public partial class CustomerSearchColumnComponent : IDisposable
{
- [Inject] public ILocalStorageService Storage { get; set; }
- [Inject] public UserProfileService ProfileService { get; set; }
+ [Inject] private ILocalStorageService Storage { get; set; }
+ [Inject] private UserProfileService ProfileService { get; set; }
[Parameter] public EventCallback OnChanged { get; set; }
private Dictionary Items { get; set; } = new();
private UserPref Prefs { get; set; } = new();
diff --git a/Wonky.Client/Components/CompanySearchPhraseComponent.razor b/Wonky.Client/Components/CustomerSearchPhraseComponent.razor
similarity index 100%
rename from Wonky.Client/Components/CompanySearchPhraseComponent.razor
rename to Wonky.Client/Components/CustomerSearchPhraseComponent.razor
diff --git a/Wonky.Client/Components/CompanySearchPhraseComponent.razor.cs b/Wonky.Client/Components/CustomerSearchPhraseComponent.razor.cs
similarity index 94%
rename from Wonky.Client/Components/CompanySearchPhraseComponent.razor.cs
rename to Wonky.Client/Components/CustomerSearchPhraseComponent.razor.cs
index aceec932..158b33eb 100644
--- a/Wonky.Client/Components/CompanySearchPhraseComponent.razor.cs
+++ b/Wonky.Client/Components/CustomerSearchPhraseComponent.razor.cs
@@ -20,12 +20,12 @@ using Timer = System.Timers.Timer;
namespace Wonky.Client.Components
{
- public partial class CompanySearchPhraseComponent
+ public partial class CustomerSearchPhraseComponent
{
private Timer InputTimer { get; set; } = new();
private string SearchTerm { get; set; } = "";
private UserPref Prefs { get; set; } = new ();
- [Inject] public UserProfileService ProfileService { get; set; }
+ [Inject] private UserProfileService ProfileService { get; set; }
[Parameter] public EventCallback OnChanged { get; set; }
protected override async Task OnInitializedAsync()
diff --git a/Wonky.Client/Components/CompanySortComponent.razor b/Wonky.Client/Components/CustomerSortComponent.razor
similarity index 91%
rename from Wonky.Client/Components/CompanySortComponent.razor
rename to Wonky.Client/Components/CustomerSortComponent.razor
index 4540f25c..0fe514a0 100644
--- a/Wonky.Client/Components/CompanySortComponent.razor
+++ b/Wonky.Client/Components/CustomerSortComponent.razor
@@ -17,6 +17,6 @@
\ No newline at end of file
diff --git a/Wonky.Client/Components/CompanySortComponent.razor.cs b/Wonky.Client/Components/CustomerSortComponent.razor.cs
similarity index 90%
rename from Wonky.Client/Components/CompanySortComponent.razor.cs
rename to Wonky.Client/Components/CustomerSortComponent.razor.cs
index 045ce0d7..f2f5567f 100644
--- a/Wonky.Client/Components/CompanySortComponent.razor.cs
+++ b/Wonky.Client/Components/CustomerSortComponent.razor.cs
@@ -21,10 +21,10 @@ using Wonky.Client.Services;
namespace Wonky.Client.Components
{
- public partial class CompanySortComponent : IDisposable
+ public partial class CustomerSortComponent : IDisposable
{
- [Inject] public ILocalStorageService Storage { get; set; }
- [Inject] public UserProfileService ProfileService { get; set; }
+ [Inject] private ILocalStorageService Storage { get; set; }
+ [Inject] private UserProfileService ProfileService { get; set; }
[Parameter] public EventCallback OnChanged { get; set; }
private Dictionary Items { get; set; } = new();
private UserPref Prefs = new();
diff --git a/Wonky.Client/Components/CustomerVisitListComponent.razor b/Wonky.Client/Components/CustomerVisitListComponent.razor
new file mode 100644
index 00000000..2d50f39f
--- /dev/null
+++ b/Wonky.Client/Components/CustomerVisitListComponent.razor
@@ -0,0 +1,75 @@
+@*
+// Copyright (C) 2022 FCS Frede's Computer Services.
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as
+// published by the Free Software Foundation, either version 3 of the
+// License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
+//
+*@
+
+
+
+
\ No newline at end of file
diff --git a/Wonky.Client/Components/CustomerVisitListComponent.razor.cs b/Wonky.Client/Components/CustomerVisitListComponent.razor.cs
new file mode 100644
index 00000000..e33aaf63
--- /dev/null
+++ b/Wonky.Client/Components/CustomerVisitListComponent.razor.cs
@@ -0,0 +1,41 @@
+// 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.Globalization;
+using System.Runtime.InteropServices;
+using Blazored.LocalStorage;
+using Microsoft.AspNetCore.Components;
+using Wonky.Client.HttpInterfaces;
+using Wonky.Client.Models;
+using Wonky.Client.Shared;
+using Wonky.Entity.DTO;
+using Wonky.Entity.Views;
+
+namespace Wonky.Client.Components;
+
+public partial class CustomerVisitListComponent
+{
+ [Parameter] public List Activities { get; set; } = new();
+ private CustomerActivityViewModalOverlay ActivityViewOverlay { get; set; } = new();
+
+ private ReportItemView Activity { get; set; } = new();
+
+ private void ShowVisitOverlay(string activityId)
+ {
+ Activity = Activities.First(x => x.ActivityId == activityId);
+ ActivityViewOverlay.Show();
+ }
+
+}
\ No newline at end of file
diff --git a/Wonky.Client/Components/InfoAdvisorComponent.razor b/Wonky.Client/Components/InfoAdvisorComponent.razor
new file mode 100644
index 00000000..092c4913
--- /dev/null
+++ b/Wonky.Client/Components/InfoAdvisorComponent.razor
@@ -0,0 +1,47 @@
+
Sælger
+
+
+
+
Symbol
+
Betydning
+
+
+
+
+
+
+
+
ToDo liste
+
+
+
+
+
+
Pris katalog
+
+
+
+
+
+
Firmaer/Kunder
+
+
+
+
+
+
Aftaler/Tilbud
+
+
+
+
+
+
Aktivitet
+
+
+
+
+
+
Dagsrapporter
+
+
+
\ No newline at end of file
diff --git a/Wonky.Client/Components/InfoBrowserComponent.razor b/Wonky.Client/Components/InfoBrowserComponent.razor
new file mode 100644
index 00000000..c89a7e63
--- /dev/null
+++ b/Wonky.Client/Components/InfoBrowserComponent.razor
@@ -0,0 +1,9 @@
+
Testede browsere
+
+
Safari (macOS, iOS)
+
Chrome (Linux, Windows, Android)
+
Edge (Linux, Windows, Android)
+
Firefox (Linux, Windows, Android)
+
Chromium (Linux)
+
Vivaldi (Linux)
+
\ No newline at end of file
diff --git a/Wonky.Client/Components/ColorCodingComponent.razor b/Wonky.Client/Components/InfoColorCustomerComponent.razor
similarity index 71%
rename from Wonky.Client/Components/ColorCodingComponent.razor
rename to Wonky.Client/Components/InfoColorCustomerComponent.razor
index c05bd7c7..e4071b09 100644
--- a/Wonky.Client/Components/ColorCodingComponent.razor
+++ b/Wonky.Client/Components/InfoColorCustomerComponent.razor
@@ -16,14 +16,23 @@
*@
@using Wonky.Client.Components
+
Kunde Info
-
Kunde / Besøg Status
-
Pakning / Forsendelse
+
Symbol
+
Betydning
+
+
+
+
+
+ Vigtig info registreret
+
+
@@ -31,12 +40,6 @@
Er nylig besøgt
-
-
-
-
-
-
Ubehandlet
@@ -45,12 +48,6 @@
Planlæg
-
-
-
-
-
-
Varer er plukket
@@ -59,12 +56,6 @@
Interval Overskredet
-
-
-
-
-
-
Varer er pakket
@@ -73,12 +64,6 @@
Ajourfør besøgsdato/interval
-
-
-
-
-
-
Varer er afsendt
@@ -87,8 +72,6 @@
Virksomhed ophørt
-
-
@@ -97,8 +80,6 @@
CVR/ORG nummer ugyldig
-
-
\ No newline at end of file
diff --git a/Wonky.Client/Components/InfoColorCustomerComponent.razor.css b/Wonky.Client/Components/InfoColorCustomerComponent.razor.css
new file mode 100644
index 00000000..d28e2116
--- /dev/null
+++ b/Wonky.Client/Components/InfoColorCustomerComponent.razor.css
@@ -0,0 +1,6 @@
+.pictogram {
+ max-width: 30px;
+}
+.color-code {
+ max-width: 30px;
+}
\ No newline at end of file
diff --git a/Wonky.Client/Components/InfoColorPackageComponent.razor b/Wonky.Client/Components/InfoColorPackageComponent.razor
new file mode 100644
index 00000000..7b70594e
--- /dev/null
+++ b/Wonky.Client/Components/InfoColorPackageComponent.razor
@@ -0,0 +1,61 @@
+@*
+// 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.Components
+
+
Pakning / Forsendelse
+
+
+
+
Symbol
+
Betydning
+
+
+
+
+
+
+
+
+
+
Ubehandlet
+
+
+
+
+
+
+
+
Varer er plukket
+
+
+
+
+
+
+
+
Varer er pakket
+
+
+
+
+
+
+
+
Varer er afsendt
+
+
+
\ No newline at end of file
diff --git a/Wonky.Client/Components/InfoColorPackageComponent.razor.css b/Wonky.Client/Components/InfoColorPackageComponent.razor.css
new file mode 100644
index 00000000..d28e2116
--- /dev/null
+++ b/Wonky.Client/Components/InfoColorPackageComponent.razor.css
@@ -0,0 +1,6 @@
+.pictogram {
+ max-width: 30px;
+}
+.color-code {
+ max-width: 30px;
+}
\ No newline at end of file
diff --git a/Wonky.Client/Components/InfoCommonComponent.razor b/Wonky.Client/Components/InfoCommonComponent.razor
new file mode 100644
index 00000000..e1f25bd4
--- /dev/null
+++ b/Wonky.Client/Components/InfoCommonComponent.razor
@@ -0,0 +1,41 @@
+
Fælles
+
+
+
+
Symbol
+
Betydning
+
+
+
+
Gem data
+
+
+
+
Søg
+
+
+
+
Opret
+
+
+
+
Notat
+
+
+
+
Udskrivning
+
+
+
+
Indstillinger
+
+
+
+
Log af
+
+
+
+
Hjælp/Info
+
+
+
diff --git a/Wonky.Client/Components/InfoOfficeComponent.razor b/Wonky.Client/Components/InfoOfficeComponent.razor
new file mode 100644
index 00000000..abe77131
--- /dev/null
+++ b/Wonky.Client/Components/InfoOfficeComponent.razor
@@ -0,0 +1,17 @@
+
Kontor
+
+
+
+
Symbol
+
Betydning
+
+
+
+
+
+
+
+
Brugere
+
+
+
\ No newline at end of file
diff --git a/Wonky.Client/Components/InfoOpenSourceComponent.razor b/Wonky.Client/Components/InfoOpenSourceComponent.razor
new file mode 100644
index 00000000..ca542448
--- /dev/null
+++ b/Wonky.Client/Components/InfoOpenSourceComponent.razor
@@ -0,0 +1,12 @@
+
\ No newline at end of file
diff --git a/Wonky.Client/Components/InfoProcessStateComponent.razor b/Wonky.Client/Components/InfoProcessStateComponent.razor
new file mode 100644
index 00000000..95e75e79
--- /dev/null
+++ b/Wonky.Client/Components/InfoProcessStateComponent.razor
@@ -0,0 +1,38 @@
+
+
Bestilling Status
+
+
+
+
Symbol
+
Betydning
+
+
+
+
Ekspress
+
+
+
+
Telefon
+
+
+
+
Ubehandlet
+
+
+
+
Accepteret
+
+
+
+
Plukket
+
+
+
+
Pakket
+
+
+
+
Leveret
+
+
+
diff --git a/Wonky.Client/Components/InfoQuoteToolbarComponent.razor b/Wonky.Client/Components/InfoQuoteToolbarComponent.razor
new file mode 100644
index 00000000..5f76cc6e
--- /dev/null
+++ b/Wonky.Client/Components/InfoQuoteToolbarComponent.razor
@@ -0,0 +1,33 @@
+
Aftaler / Tilbud
+
+
+
+
Symbol
+
Betydning
+
+
+
+
Alle tilbud
+
+
+
+
Tabte tilbud
+
+
+
+
Ingen svar
+
+
+
+
Åbne tilbud
+
+
+
+
Aktive aftaler
+
+
+
+
Åbne tilbud / Aktive aftaler
+
+
+
diff --git a/Wonky.Client/Components/InfoWarehouseComponent.razor b/Wonky.Client/Components/InfoWarehouseComponent.razor
new file mode 100644
index 00000000..ee8efefd
--- /dev/null
+++ b/Wonky.Client/Components/InfoWarehouseComponent.razor
@@ -0,0 +1,17 @@
+
Lager
+
+
+
+
Symbol
+
Betydning
+
+
+
+
+
+
+
+
Pakning / Forsendelse
+
+
+
\ No newline at end of file
diff --git a/Wonky.Client/Components/InvoiceTableComponent.razor.cs b/Wonky.Client/Components/InvoiceTableComponent.razor.cs
deleted file mode 100644
index 8bebb139..00000000
--- a/Wonky.Client/Components/InvoiceTableComponent.razor.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using Microsoft.AspNetCore.Components;
-using Wonky.Client.Shared;
-using Wonky.Entity.Views;
-
-namespace Wonky.Client.Components;
-
-public partial class InvoiceTableComponent
-{
- [Parameter] public string CompanyId { get; set; } = "";
- [Parameter] public List InvoiceList { get; set; } = new();
- private InvoiceViewModal InvoiceView { get; set; } = new();
- private string InvoiceId { get; set; } = "";
- private void ShowInvoice(string invoiceId)
- {
- Console.WriteLine($"invoiceId => {invoiceId}");
- Console.WriteLine($"companyId => {CompanyId}");
- InvoiceId = invoiceId;
- InvoiceView.Show();
- }
-}
\ No newline at end of file
diff --git a/Wonky.Client/Components/LandingComponentAdmin.razor b/Wonky.Client/Components/LandingComponentAdmin.razor
deleted file mode 100644
index 62f24364..00000000
--- a/Wonky.Client/Components/LandingComponentAdmin.razor
+++ /dev/null
@@ -1,60 +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
-@using Wonky.Client.Components
-
-Innotec Admin
-
-@*
-
-
-
-
-
-
- Danmark
-
-
-
-
-
-
-
-
-
-
-
-
- Norge
-
-
-
-
-
-
-
-
-
-
-
-
- Sverige
-
-
-
-
*@
\ No newline at end of file
diff --git a/Wonky.Client/Components/LandingComponentAdmin.razor.css b/Wonky.Client/Components/LandingComponentAdmin.razor.css
deleted file mode 100644
index 6d753f3d..00000000
--- a/Wonky.Client/Components/LandingComponentAdmin.razor.css
+++ /dev/null
@@ -1,6 +0,0 @@
-
-.workDate {
- font-size: 1.2em;
- font-weight: bold;
- font-variant: small-caps;
-}
\ No newline at end of file
diff --git a/Wonky.Client/Components/LandingComponentAdvisor.razor b/Wonky.Client/Components/LandingComponentAdvisor.razor
index 5ddd8c37..a97d1535 100644
--- a/Wonky.Client/Components/LandingComponentAdvisor.razor
+++ b/Wonky.Client/Components/LandingComponentAdvisor.razor
@@ -18,12 +18,8 @@
@using Microsoft.AspNetCore.Authorization
@using Wonky.Client.Components
-Innotec Rådgiver
-
-
+
-
\ No newline at end of file
diff --git a/Wonky.Client/Components/LandingComponentAdvisor.razor.cs b/Wonky.Client/Components/LandingComponentAdvisor.razor.cs
index c471c4fd..d341023e 100644
--- a/Wonky.Client/Components/LandingComponentAdvisor.razor.cs
+++ b/Wonky.Client/Components/LandingComponentAdvisor.razor.cs
@@ -30,14 +30,9 @@ using Wonky.Entity.Models;
using Wonky.Entity.Views;
namespace Wonky.Client.Components;
-public partial class LandingComponentAdvisor : IDisposable
+public partial class LandingComponentAdvisor
{
- [Inject] public UserProfileService ProfileService { get; set; }
- [Inject] public ILogger Logger { get; set; }
- [Inject] public HttpInterceptorService Inteceptor { get; set; }
- [Inject] public IToastService Toaster { get; set; }
- [Inject] public ICrmTaskItemHttpRepository TaskItemRepo { get; set; }
- [Inject] public NavigationManager Navigator { get; set; }
+ [Inject] private UserProfileService ProfileService { get; set; }
private readonly JsonSerializerOptions JsonOptions = new JsonSerializerOptions
{
@@ -47,59 +42,12 @@ public partial class LandingComponentAdvisor : IDisposable
private UserPref Prefs { get; set; } = new();
private DateTime SelectedDate { get; set; }
- private List TaskItems { get; set; } = new();
protected override async Task OnInitializedAsync()
{
Prefs = await ProfileService.GetPreferences();
SelectedDate = string.IsNullOrWhiteSpace(Prefs.WorkDate) ? DateTime.Now : DateTime.Parse(Prefs.WorkDate);
- Inteceptor.RegisterEvent();
- Inteceptor.RegisterBeforeSendEvent();
-
- //await GetTaskItems(_workDate);
- await GetAllTasks();
}
-
- private async Task GetAllTasks()
- {
- TaskItems = await TaskItemRepo.GetTaskList();
- }
-
- private async Task OnCompleteTask(string taskItemId)
- {
- await ProfileService.SetWorkDate(DateTime.Now);
- var item = TaskItems.Find(x => x.TaskItemId == taskItemId);
- Navigator.NavigateTo($"/companies/{item.ReferenceId}/activities/new");
- }
-
- private async Task GetWorkdayTasks(string workDate)
- {
- SelectedDate = DateTime.Parse(workDate);
- TaskItems = new List();
- TaskItems = await TaskItemRepo.GetTaskList($"{SelectedDate:yyyy-MM-dd}");
- }
-
- private async Task OnTaskCompleted(string taskItemId)
- {
- var item = TaskItems.Find(x => x.TaskItemId == taskItemId);
- item.IsCompleted = true;
- await TaskItemRepo.UpdateTaskItem(taskItemId, item);
- TaskItems.Remove(item);
- Toaster.ShowInfo("Opgaven er markeret som udført.");
- }
-
- private async Task OnDeleteConfirmed(string taskItemId)
- {
- var item = TaskItems.First(x => x.TaskItemId == taskItemId);
- TaskItems.Remove(item);
- await TaskItemRepo.DeleteTaskItem(taskItemId);
- Toaster.ShowInfo("Opgaven er slettet.");
- }
-
- public void Dispose()
- {
- Inteceptor.DisposeEvent();
- }
}
diff --git a/Wonky.Client/Components/LandingComponentOffice.razor b/Wonky.Client/Components/LandingComponentOffice.razor
new file mode 100644
index 00000000..8cd7ab49
--- /dev/null
+++ b/Wonky.Client/Components/LandingComponentOffice.razor
@@ -0,0 +1,91 @@
+@*
+// 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
+@using Wonky.Client.Components
+
+
\ No newline at end of file
diff --git a/Wonky.Client/Components/LandingComponentAdmin.razor.cs b/Wonky.Client/Components/LandingComponentOffice.razor.cs
similarity index 68%
rename from Wonky.Client/Components/LandingComponentAdmin.razor.cs
rename to Wonky.Client/Components/LandingComponentOffice.razor.cs
index a342cae0..b210bb90 100644
--- a/Wonky.Client/Components/LandingComponentAdmin.razor.cs
+++ b/Wonky.Client/Components/LandingComponentOffice.razor.cs
@@ -30,14 +30,9 @@ using Wonky.Entity.Models;
using Wonky.Entity.Views;
namespace Wonky.Client.Components;
-public partial class LandingComponentAdmin : IDisposable
+public partial class LandingComponentOffice
{
- [Inject] public UserProfileService ProfileService { get; set; }
- [Inject] public ILogger Logger { get; set; }
- [Inject] public HttpInterceptorService Interceptor { get; set; }
- [Inject] public IToastService Toaster { get; set; }
- [Inject] public ICrmTaskItemHttpRepository CrmTaskItemRepo { get; set; }
- [Inject] public NavigationManager Navigator { get; set; }
+ [Inject] private UserProfileService ProfileService { get; set; }
private readonly JsonSerializerOptions _options = new JsonSerializerOptions
{
@@ -46,23 +41,23 @@ public partial class LandingComponentAdmin : IDisposable
};
private UserPref Prefs { get; set; } = new();
- private string WordDate { get; set; } = $"{DateTime.Now:yyyy-MM-dd}";
+ private string WorkDate { get; set; } = $"{DateTime.Now:yyyy-MM-dd}";
private string Today { get; set; } = $"{DateTime.Now:yyyy-MM-dd}";
-
protected override async Task OnInitializedAsync()
{
+ ProfileService.OnChange += ProfileChanged;
Prefs = await ProfileService.GetPreferences();
- if(!string.IsNullOrWhiteSpace(Prefs.WorkDate))
- WordDate = Prefs.WorkDate;
-
- Interceptor.RegisterEvent();
- Interceptor.RegisterBeforeSendEvent();
+ if (string.IsNullOrWhiteSpace(Prefs.WorkDate))
+ {
+ await ProfileService.SetWorkDate(DateTime.Now);
+ }
}
-
- public void Dispose()
+
+ private void ProfileChanged(UserPref newPrefs)
{
- Interceptor.DisposeEvent();
- }
+ Prefs = newPrefs;
+ WorkDate = Prefs.WorkDate;
+ }
}
diff --git a/Wonky.Client/Components/OfficeActivityListComponent.razor b/Wonky.Client/Components/OfficeActivityListComponent.razor
new file mode 100644
index 00000000..13ed7bfa
--- /dev/null
+++ b/Wonky.Client/Components/OfficeActivityListComponent.razor
@@ -0,0 +1,92 @@
+@*
+// 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.Entity.Views
+
+@* Report activities *@
+
+
+@code {
+
+ [Parameter]
+ public List Activities { get; set; } = new();
+
+}
\ No newline at end of file
diff --git a/Wonky.Client/Components/OfficeAdvisorTableComponent.razor b/Wonky.Client/Components/OfficeAdvisorTableComponent.razor
deleted file mode 100644
index b645e485..00000000
--- a/Wonky.Client/Components/OfficeAdvisorTableComponent.razor
+++ /dev/null
@@ -1,58 +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]
-//
-*@
-
-@if (UserList.Any())
-{
-
-}
\ No newline at end of file
diff --git a/Wonky.Client/Components/OfficeCountryAdvisorListComponent.razor b/Wonky.Client/Components/OfficeCountryAdvisorListComponent.razor
new file mode 100644
index 00000000..63e0165e
--- /dev/null
+++ b/Wonky.Client/Components/OfficeCountryAdvisorListComponent.razor
@@ -0,0 +1,49 @@
+@*
+// 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]
+//
+*@
+
+
+ @if (UserList.Any())
+ {
+ foreach (var user in UserList)
+ {
+
\ No newline at end of file
diff --git a/Wonky.Client/Components/OfficeUserTableComponent.razor.cs b/Wonky.Client/Components/OfficeCountryAdvisorListComponent.razor.cs
similarity index 94%
rename from Wonky.Client/Components/OfficeUserTableComponent.razor.cs
rename to Wonky.Client/Components/OfficeCountryAdvisorListComponent.razor.cs
index 8c3ff7ec..b8a57bbc 100644
--- a/Wonky.Client/Components/OfficeUserTableComponent.razor.cs
+++ b/Wonky.Client/Components/OfficeCountryAdvisorListComponent.razor.cs
@@ -19,7 +19,7 @@ using Wonky.Entity.Views;
namespace Wonky.Client.Components;
-public partial class OfficeUserTableComponent
+public partial class OfficeCountryAdvisorListComponent
{
[Parameter] public List UserList { get; set; } = new();
}
\ No newline at end of file
diff --git a/Wonky.Client/Components/OfficeCustomerTableComponent.razor b/Wonky.Client/Components/OfficeCountryCustomerListComponent.razor
similarity index 50%
rename from Wonky.Client/Components/OfficeCustomerTableComponent.razor
rename to Wonky.Client/Components/OfficeCountryCustomerListComponent.razor
index 002cd873..6127319b 100644
--- a/Wonky.Client/Components/OfficeCustomerTableComponent.razor
+++ b/Wonky.Client/Components/OfficeCountryCustomerListComponent.razor
@@ -20,19 +20,20 @@
@if (CompanyList.Any())
{
+ @*
}
@@ -89,19 +89,3 @@
}
-@code {
-
- [Parameter]
- public List Quotes { get; set; } = new();
- [Parameter] public EventCallback OnChangedCallback { get; set; }
-
- private async Task SetQuote(string eSalesNumber, QStatus status)
- {
- var args = new QuoteCallbackArgs()
- {
- ESalesNumber = eSalesNumber,
- Status = status
- };
- await OnChangedCallback.InvokeAsync(args);
- }
-}
diff --git a/Wonky.Client/Components/QuoteListComponent.razor.cs b/Wonky.Client/Components/QuoteListComponent.razor.cs
new file mode 100644
index 00000000..d5fcb0d6
--- /dev/null
+++ b/Wonky.Client/Components/QuoteListComponent.razor.cs
@@ -0,0 +1,22 @@
+using Microsoft.AspNetCore.Components;
+using Wonky.Client.Models;
+using Wonky.Entity.Views;
+
+namespace Wonky.Client.Components;
+
+public partial class QuoteListComponent
+{
+ [Parameter]
+ public List Quotes { get; set; } = new();
+ [Parameter] public EventCallback OnChangedCallback { get; set; }
+
+ private async Task SetQuote(string eSalesNumber, QStatus status)
+ {
+ var args = new QCallbackArgs()
+ {
+ ESalesNumber = eSalesNumber,
+ Status = status
+ };
+ await OnChangedCallback.InvokeAsync(args);
+ }
+}
\ No newline at end of file
diff --git a/Wonky.Client/Components/ReportActivityLedgerComponent.razor b/Wonky.Client/Components/ReportActivityLedgerComponent.razor
index 153d2759..6e804234 100644
--- a/Wonky.Client/Components/ReportActivityLedgerComponent.razor
+++ b/Wonky.Client/Components/ReportActivityLedgerComponent.razor
@@ -1,3 +1,4 @@
+@using Wonky.Entity.Views
@*
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
@@ -84,4 +85,8 @@
-
\ No newline at end of file
+
+
+@code{
+ [Parameter] public ReportData ReportData { get; set; } = new();
+}
\ No newline at end of file
diff --git a/Wonky.Client/Components/ReportActivityTableOfficeComponent.razor.cs b/Wonky.Client/Components/ReportActivityTableOfficeComponent.razor.cs
deleted file mode 100644
index 2246eb19..00000000
--- a/Wonky.Client/Components/ReportActivityTableOfficeComponent.razor.cs
+++ /dev/null
@@ -1,43 +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.Components;
-using Wonky.Entity.Views;
-
-namespace Wonky.Client.Components;
-
-public partial class ReportActivityTableOfficeComponent
-{
- [Parameter] public List ActivityList { get; set; } = new();
- [Inject] public NavigationManager Navigator { get; set; }
-
- private static string GetProcessStatus(string processStatus)
- {
- return processStatus.ToLower() switch
- {
- "express" => "the-fast",
- "none" => "the-good",
- "picked" => "the-bad",
- "packed" => "the-ugly",
- "shipped" => "the-dead",
- _ => "the-draw"
- };
- }
-
- private void ShowOrder(string companyId, string orderId)
- {
- Navigator.NavigateTo($"office/customers/{companyId}/orders/{orderId}");
- }
-}
\ No newline at end of file
diff --git a/Wonky.Client/Components/ReportItemComponent.razor b/Wonky.Client/Components/ReportItemComponent.razor
index 264d686d..d37c73e6 100644
--- a/Wonky.Client/Components/ReportItemComponent.razor
+++ b/Wonky.Client/Components/ReportItemComponent.razor
@@ -22,7 +22,7 @@
\ No newline at end of file
diff --git a/Wonky.Client/Components/WarehouseListComponent.razor b/Wonky.Client/Components/WarehouseListComponent.razor
index 283e34ee..552bb7ef 100644
--- a/Wonky.Client/Components/WarehouseListComponent.razor
+++ b/Wonky.Client/Components/WarehouseListComponent.razor
@@ -1,3 +1,4 @@
+@using Wonky.Client.Models
@*
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
@@ -15,104 +16,86 @@
//
*@
-