diff --git a/MP.Stats/MP.Stats.csproj b/MP.Stats/MP.Stats.csproj
index b17391ea..84ec23fb 100644
--- a/MP.Stats/MP.Stats.csproj
+++ b/MP.Stats/MP.Stats.csproj
@@ -4,7 +4,7 @@
net8.0
MP.Stats
826e877c-ba70-4253-84cb-d0b1cafd4440
- 8.16.2605.0412
+ 8.16.2605.0414
true
en
diff --git a/MP.Stats/Pages/Controlli.razor.cs b/MP.Stats/Pages/Controlli.razor.cs
index 40cda38a..80d58b1e 100644
--- a/MP.Stats/Pages/Controlli.razor.cs
+++ b/MP.Stats/Pages/Controlli.razor.cs
@@ -164,7 +164,7 @@ namespace MP.Stats.Pages
numRecord = 10;
MessageService.ShowSearch = false;
MessageService.PageName = "Registro Controlli";
- MessageService.PageIcon = "oi oi-beaker";
+ MessageService.PageIcon = "fa fa-flask";
MessageService.EA_SearchUpdated += OnSeachUpdated;
await reloadData();
}
diff --git a/MP.Stats/Pages/Diario.razor.cs b/MP.Stats/Pages/Diario.razor.cs
index 4eba23a4..d48aa369 100644
--- a/MP.Stats/Pages/Diario.razor.cs
+++ b/MP.Stats/Pages/Diario.razor.cs
@@ -145,7 +145,7 @@ namespace MP.Stats.Pages
numRecord = 10;
MessageService.ShowSearch = false;
MessageService.PageName = "Diario Produzione";
- MessageService.PageIcon = "oi oi-clipboard";
+ MessageService.PageIcon = "fa fa-clipboard";
MessageService.EA_SearchUpdated += OnSeachUpdated;
await reloadData();
}
diff --git a/MP.Stats/Pages/Energy.razor.cs b/MP.Stats/Pages/Energy.razor.cs
index 7bf013a5..195c146b 100644
--- a/MP.Stats/Pages/Energy.razor.cs
+++ b/MP.Stats/Pages/Energy.razor.cs
@@ -2,7 +2,6 @@ using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
using MP.Data.DbModels;
using MP.Data.Services;
-using MP.Stats.Components;
using MP.Stats.Data;
using System;
using System.Collections.Generic;
@@ -119,7 +118,7 @@ namespace MP.Stats.Pages
clearFile();
MServ.ShowSearch = false;
MServ.PageName = "ENERGY";
- MServ.PageIcon = "oi oi-bar-chart";
+ MServ.PageIcon = "fa fa-chart-column";
MServ.EA_SearchUpdated += OnSeachUpdated;
await LoadConfData();
await ReloadData();
diff --git a/MP.Stats/Pages/Index.razor b/MP.Stats/Pages/Index.razor
index 23c0d727..e73a8563 100644
--- a/MP.Stats/Pages/Index.razor
+++ b/MP.Stats/Pages/Index.razor
@@ -52,7 +52,7 @@
{
MessageService.ShowSearch = false;
MessageService.PageName = "Home";
- MessageService.PageIcon = "oi oi-home";
+ MessageService.PageIcon = "fa fa-home";
return base.OnInitializedAsync();
}
}
\ No newline at end of file
diff --git a/MP.Stats/Pages/Oee.razor.cs b/MP.Stats/Pages/Oee.razor.cs
index 1d32b74c..eab2a5b0 100644
--- a/MP.Stats/Pages/Oee.razor.cs
+++ b/MP.Stats/Pages/Oee.razor.cs
@@ -3,14 +3,10 @@ using Microsoft.JSInterop;
using MP.Stats.Data;
using System;
using System.Collections.Generic;
+using System.IO;
using System.Linq;
using System.Threading.Tasks;
-using System.IO;
-using System.Threading;
-using System.Text;
-using System.ComponentModel;
-
namespace MP.Stats.Pages
{
public partial class Oee : ComponentBase, IDisposable
@@ -166,7 +162,7 @@ namespace MP.Stats.Pages
numRecord = 10;
MessageService.ShowSearch = false;
MessageService.PageName = "TRS/OEE %";
- MessageService.PageIcon = "oi oi-monitor";
+ MessageService.PageIcon = "fa fa-display";
MessageService.EA_SearchUpdated += OnSeachUpdated;
await ReloadData();
}
diff --git a/MP.Stats/Pages/ReportODL.razor.cs b/MP.Stats/Pages/ReportODL.razor.cs
index 9bb6b089..12bbfd34 100644
--- a/MP.Stats/Pages/ReportODL.razor.cs
+++ b/MP.Stats/Pages/ReportODL.razor.cs
@@ -133,7 +133,7 @@ namespace MP.Stats.Pages
numRecord = 10;
MessageService.ShowSearch = false;
MessageService.PageName = "Report ODL/Comm.";
- MessageService.PageIcon = "oi oi-book";
+ MessageService.PageIcon = "fa fa-book";
MessageService.EA_SearchUpdated += OnSeachUpdated;
await ReloadData();
}
diff --git a/MP.Stats/Pages/Scarti.razor.cs b/MP.Stats/Pages/Scarti.razor.cs
index 35aac2c7..ab2b296a 100644
--- a/MP.Stats/Pages/Scarti.razor.cs
+++ b/MP.Stats/Pages/Scarti.razor.cs
@@ -11,6 +11,151 @@ namespace MP.Stats.Pages
{
public partial class Scarti : ComponentBase, IDisposable
{
+ #region Public Properties
+
+ [Parameter]
+ public SelectData currFilter
+ {
+ get
+ {
+ return MessageService.DetailFilter;
+ }
+ set
+ {
+ MessageService.DetailFilter = value;
+ }
+ }
+
+ #endregion Public Properties
+
+ #region Public Methods
+
+ public string checkSelect(DateTime DataOraRif, string IdxMacchina, string Causale)
+ {
+ string answ = "";
+ if (currRecord != null)
+ {
+ try
+ {
+ answ = (currRecord.DataOraRif == DataOraRif && currRecord.IdxMacchina == IdxMacchina && currRecord.Causale == Causale) ? "table-info" : "";
+ }
+ catch
+ { }
+ }
+ return answ;
+ }
+
+ public void Dispose()
+ {
+ MessageService.EA_SearchUpdated -= OnSeachUpdated;
+ }
+
+ public async void OnSeachUpdated()
+ {
+ await InvokeAsync(() =>
+ {
+ Task task = UpdateData();
+ StateHasChanged();
+ });
+ }
+
+ #endregion Public Methods
+
+ #region Protected Properties
+
+ [Inject]
+ protected IJSRuntime JSRuntime { get; set; }
+
+ [Inject]
+ protected MessageService MessageService { get; set; }
+
+ [Inject]
+ protected NavigationManager NavManager { get; set; }
+
+ [Inject]
+ protected MpStatsService StatService { get; set; }
+
+ protected int totalCount
+ {
+ get
+ {
+ int answ = 0;
+ if (SearchRecords != null)
+ {
+ answ = SearchRecords.Count;
+ }
+ return answ;
+ }
+ }
+
+ #endregion Protected Properties
+
+ #region Protected Methods
+
+ protected async Task DoFilter(SelectData newFilter)
+ {
+ clearFile();
+ SearchRecords = null;
+ ListRecords = null;
+ currFilter = newFilter;
+ await reloadData();
+ }
+
+ protected void ForceReload(int newNum)
+ {
+ numRecord = newNum;
+ }
+
+ protected void ForceReloadPage(int newNum)
+ {
+ currPage = newNum;
+ }
+
+ protected override async Task OnInitializedAsync()
+ {
+ clearFile();
+ numRecord = 10;
+ MessageService.ShowSearch = false;
+ MessageService.PageName = "Registro Scarti";
+ MessageService.PageIcon = "fa fa-warning";
+ MessageService.EA_SearchUpdated += OnSeachUpdated;
+ await reloadData();
+ }
+
+ protected void ResetData()
+ {
+ clearFile();
+ StatService.rollBackEdit(currRecord);
+ currRecord = null;
+ }
+
+ protected async Task ResetFilter(SelectData newFilter)
+ {
+ clearFile();
+ currRecord = null;
+ SearchRecords = null;
+ ListRecords = null;
+ currFilter = SelectData.Init(5, 7);
+ await reloadData();
+ }
+
+ protected async Task ToggleChart(bool doShow)
+ {
+ ShowCharts = !ShowCharts;
+ if (ShowCharts)
+ {
+ await reloadData();
+ }
+ }
+
+ protected async Task UpdateData()
+ {
+ currRecord = null;
+ await reloadData();
+ }
+
+ #endregion Protected Methods
+
#region Private Fields
private MP.Data.DbModels.ResScarti currRecord = null;
@@ -66,52 +211,6 @@ namespace MP.Stats.Pages
#endregion Private Properties
- #region Protected Properties
-
- [Inject]
- protected IJSRuntime JSRuntime { get; set; }
-
- [Inject]
- protected MessageService MessageService { get; set; }
-
- [Inject]
- protected NavigationManager NavManager { get; set; }
-
- [Inject]
- protected MpStatsService StatService { get; set; }
-
- protected int totalCount
- {
- get
- {
- int answ = 0;
- if (SearchRecords != null)
- {
- answ = SearchRecords.Count;
- }
- return answ;
- }
- }
-
- #endregion Protected Properties
-
- #region Public Properties
-
- [Parameter]
- public SelectData currFilter
- {
- get
- {
- return MessageService.DetailFilter;
- }
- set
- {
- MessageService.DetailFilter = value;
- }
- }
-
- #endregion Public Properties
-
#region Private Methods
private async void clearFile()
@@ -136,104 +235,5 @@ namespace MP.Stats.Pages
}
#endregion Private Methods
-
- #region Protected Methods
-
- protected async Task DoFilter(SelectData newFilter)
- {
- clearFile();
- SearchRecords = null;
- ListRecords = null;
- currFilter = newFilter;
- await reloadData();
- }
-
- protected void ForceReload(int newNum)
- {
- numRecord = newNum;
- }
-
- protected void ForceReloadPage(int newNum)
- {
- currPage = newNum;
- }
-
- protected override async Task OnInitializedAsync()
- {
- clearFile();
- numRecord = 10;
- MessageService.ShowSearch = false;
- MessageService.PageName = "Registro Scarti";
- MessageService.PageIcon = "oi oi-warning";
- MessageService.EA_SearchUpdated += OnSeachUpdated;
- await reloadData();
- }
-
- protected void ResetData()
- {
- clearFile();
- StatService.rollBackEdit(currRecord);
- currRecord = null;
- }
-
- protected async Task ResetFilter(SelectData newFilter)
- {
- clearFile();
- currRecord = null;
- SearchRecords = null;
- ListRecords = null;
- currFilter = SelectData.Init(5, 7);
- await reloadData();
- }
-
- protected async Task ToggleChart(bool doShow)
- {
- ShowCharts = !ShowCharts;
- if (ShowCharts)
- {
- await reloadData();
- }
- }
-
- protected async Task UpdateData()
- {
- currRecord = null;
- await reloadData();
- }
-
- #endregion Protected Methods
-
- #region Public Methods
-
- public string checkSelect(DateTime DataOraRif, string IdxMacchina, string Causale)
- {
- string answ = "";
- if (currRecord != null)
- {
- try
- {
- answ = (currRecord.DataOraRif == DataOraRif && currRecord.IdxMacchina == IdxMacchina && currRecord.Causale == Causale) ? "table-info" : "";
- }
- catch
- { }
- }
- return answ;
- }
-
- public void Dispose()
- {
- MessageService.EA_SearchUpdated -= OnSeachUpdated;
- }
-
- public async void OnSeachUpdated()
- {
- await InvokeAsync(() =>
- {
- Task task = UpdateData();
- StateHasChanged();
- });
- }
-
- #endregion Public Methods
}
}
\ No newline at end of file
diff --git a/MP.Stats/Pages/StatusChecks.razor b/MP.Stats/Pages/StatusChecks.razor
index dd70a135..794a9cd0 100644
--- a/MP.Stats/Pages/StatusChecks.razor
+++ b/MP.Stats/Pages/StatusChecks.razor
@@ -2,14 +2,14 @@
-