- @*@if (showEditPar)
- {
-
-
-
-
-
-
-
- }
- else
- {
-
-
-
- }*@
diff --git a/MP.SPEC/Components/DossiersFilter.razor.cs b/MP.SPEC/Components/DossiersFilter.razor.cs
index 12a155a5..eefd1f4f 100644
--- a/MP.SPEC/Components/DossiersFilter.razor.cs
+++ b/MP.SPEC/Components/DossiersFilter.razor.cs
@@ -1,21 +1,6 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
-using System.Net.Http;
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Components.Authorization;
-using Microsoft.AspNetCore.Components.Forms;
-using Microsoft.AspNetCore.Components.Routing;
-using Microsoft.AspNetCore.Components.Web;
-using Microsoft.AspNetCore.Components.Web.Virtualization;
-using Microsoft.JSInterop;
-using MP.SPEC;
-using MP.SPEC.Shared;
-using MP.SPEC.Components;
-using MP.SPEC.Data;
using MP.Data.DatabaseModels;
+using MP.SPEC.Data;
namespace MP.SPEC.Components
{
@@ -31,15 +16,27 @@ namespace MP.SPEC.Components
#endregion Public Properties
- #region Protected Fields
-
- #endregion Protected Fields
-
#region Protected Properties
[Inject]
protected MpDataService MDService { get; set; } = null!;
+ protected DateTime selDtRef
+ {
+ get
+ {
+ return SelFilterDossier.DtRef;
+ }
+
+ set
+ {
+ if (!SelFilterDossier.DtRef.Equals(value))
+ {
+ SelFilterDossier.DtRef = value;
+ reportChange();
+ }
+ }
+ }
protected string selMacchina
{
@@ -60,7 +57,6 @@ namespace MP.SPEC.Components
}
}
-
protected int selMaxRecord
{
get
@@ -78,23 +74,6 @@ namespace MP.SPEC.Components
}
}
- protected DateTime selDtRef
- {
- get
- {
- return SelFilterDossier.DtRef;
- }
-
- set
- {
- if (!SelFilterDossier.DtRef.Equals(value))
- {
- SelFilterDossier.DtRef = value;
- reportChange();
- }
- }
- }
-
#endregion Protected Properties
#region Protected Methods
diff --git a/MP.SPEC/Components/ListDossiers.razor b/MP.SPEC/Components/ListDossiers.razor
index 03ffa350..16e5bcf8 100644
--- a/MP.SPEC/Components/ListDossiers.razor
+++ b/MP.SPEC/Components/ListDossiers.razor
@@ -22,7 +22,7 @@ else
Macchina |
Data |
ODL |
-
DATA TYPE |
+
DATA TYPE |
@@ -64,8 +64,7 @@ else
Macchina |
Data |
ODL |
- Valore |
- @* | *@
+ Valore |
@@ -84,8 +83,6 @@ else
@record.Valore
|
- @*
- | *@
}
diff --git a/MP.SPEC/Components/ListPARAMS.razor.cs b/MP.SPEC/Components/ListPARAMS.razor.cs
index 8f7048e2..6b0b346b 100644
--- a/MP.SPEC/Components/ListPARAMS.razor.cs
+++ b/MP.SPEC/Components/ListPARAMS.razor.cs
@@ -111,10 +111,11 @@ namespace MP.SPEC.Components
{
get => SelFilter.TempoAgg;
}
- //protected int RefreshPeriod { get; set; } = 5000;
#endregion Protected Properties
+ //protected int RefreshPeriod { get; set; } = 5000;
+
#region Protected Methods
protected override async Task OnInitializedAsync()
diff --git a/MP.SPEC/Components/ListPODL.razor.cs b/MP.SPEC/Components/ListPODL.razor.cs
index 51023f56..01dd5644 100644
--- a/MP.SPEC/Components/ListPODL.razor.cs
+++ b/MP.SPEC/Components/ListPODL.razor.cs
@@ -12,7 +12,6 @@ namespace MP.SPEC.Components
[Parameter]
public EventCallback
PagerResetReq { get; set; }
-
[Parameter]
public EventCallback RecordSel { get; set; }
@@ -35,38 +34,6 @@ namespace MP.SPEC.Components
return answ;
}
- protected async Task resetSel()
- {
- await RecordSel.InvokeAsync(null);
- }
-
- protected bool POdlDelEnabled(int idxOdl)
- {
- return idxOdl == 0;
- }
-
- protected async Task selRecord(PODLModel selRec)
- {
- await RecordSel.InvokeAsync(selRec);
- }
-
-
- ///
- /// Eliminazione record selezioanto (previa conferma)
- ///
- ///
- ///
- protected async Task deleteRecord(PODLModel selRec)
- {
- if (!await JSRuntime.InvokeAsync("confirm", "Eliminazione Record: sei sicuro di voler procedere?"))
- return;
- await Task.Delay(1);
- var done = await MDService.PODLDeleteRecord(selRec);
- currRecord = null;
- await reloadData();
- await Task.Delay(1);
- }
-
#endregion Public Methods
#region Protected Properties
@@ -84,6 +51,22 @@ namespace MP.SPEC.Components
#region Protected Methods
+ ///
+ /// Eliminazione record selezioanto (previa conferma)
+ ///
+ ///
+ ///
+ protected async Task deleteRecord(PODLModel selRec)
+ {
+ if (!await JSRuntime.InvokeAsync("confirm", "Eliminazione Record: sei sicuro di voler procedere?"))
+ return;
+ await Task.Delay(1);
+ var done = await MDService.PODLDeleteRecord(selRec);
+ currRecord = null;
+ await reloadData();
+ await Task.Delay(1);
+ }
+
protected override async Task OnInitializedAsync()
{
MsgService.EA_PageUpdated += MessageService_EA_PageUpdated;
@@ -104,6 +87,21 @@ namespace MP.SPEC.Components
});
}
+ protected bool POdlDelEnabled(int idxOdl)
+ {
+ return idxOdl == 0;
+ }
+
+ protected async Task resetSel()
+ {
+ await RecordSel.InvokeAsync(null);
+ }
+
+ protected async Task selRecord(PODLModel selRec)
+ {
+ await RecordSel.InvokeAsync(selRec);
+ }
+
protected async Task UpdateData()
{
currRecord = null;
@@ -118,6 +116,7 @@ namespace MP.SPEC.Components
private List? ListRecords;
+ private List? ListStati;
private List? SearchRecords;
#endregion Private Fields
@@ -175,6 +174,17 @@ namespace MP.SPEC.Components
});
}
+ private async Task reloadData()
+ {
+ isLoading = true;
+ SearchRecords = await MDService.ListPODLFilt(SearchVal, StatoSel);
+ totalCount = SearchRecords.Count;
+ ListRecords = SearchRecords.Skip(numRecord * (currPage - 1)).Take(numRecord).ToList();
+ await Task.Delay(1);
+ await InvokeAsync(() => StateHasChanged());
+ isLoading = false;
+ }
+
private string tradFase(string codFase)
{
string answ = codFase;
@@ -189,20 +199,6 @@ namespace MP.SPEC.Components
return answ;
}
-
- private List? ListStati;
-
- private async Task reloadData()
- {
- isLoading = true;
- SearchRecords = await MDService.ListPODLFilt(SearchVal, StatoSel);
- totalCount = SearchRecords.Count;
- ListRecords = SearchRecords.Skip(numRecord * (currPage - 1)).Take(numRecord).ToList();
- await Task.Delay(1);
- await InvokeAsync(() => StateHasChanged());
- isLoading = false;
- }
-
#endregion Private Methods
}
}
\ No newline at end of file
diff --git a/MP.SPEC/Components/ParamsFilter.razor.cs b/MP.SPEC/Components/ParamsFilter.razor.cs
index a715db76..9fbb67ff 100644
--- a/MP.SPEC/Components/ParamsFilter.razor.cs
+++ b/MP.SPEC/Components/ParamsFilter.razor.cs
@@ -15,7 +15,7 @@ namespace MP.SPEC.Components
#endregion Public Properties
- #region Protected Fields
+ #region Protected Properties
protected string lastUpdate
{
@@ -23,10 +23,6 @@ namespace MP.SPEC.Components
set => SelFilter.lastUpdate = value;
}
- #endregion Protected Fields
-
- #region Protected Properties
-
protected bool liveUpdate
{
get => SelFilter.LiveUpdate;
@@ -134,6 +130,14 @@ namespace MP.SPEC.Components
await FilterChanged.InvokeAsync(SelFilter);
}
+ protected async Task takeSnapshot()
+ {
+ // fermo udpate
+ liveUpdate = false;
+ await MDService.DossiersTakeParamsSnapshot(selMacchina, 10);
+ lastUpdate = $"Last Snapshot: {DateTime.Now:yyyy/MM/dd HH:mm:ss}";
+ }
+
protected void toggleParams()
{
showEditPar = !showEditPar;
@@ -149,14 +153,6 @@ namespace MP.SPEC.Components
}
}
- protected async Task takeSnapshot()
- {
- // fermo udpate
- liveUpdate = false;
- await MDService.DossiersTakeParamsSnapshot(selMacchina, 10);
- lastUpdate = $"Last Snapshot: {DateTime.Now:yyyy/MM/dd HH:mm:ss}";
- }
-
#endregion Protected Methods
#region Private Fields
diff --git a/MP.SPEC/Data/SelectDossierParams.cs b/MP.SPEC/Data/SelectDossierParams.cs
index ebcf3928..9d55bb87 100644
--- a/MP.SPEC/Data/SelectDossierParams.cs
+++ b/MP.SPEC/Data/SelectDossierParams.cs
@@ -11,13 +11,25 @@
#region Public Properties
+ public int CurrPage { get; set; } = 1;
+
+ public DateTime DtRef { get; set; } = Init(5);
+
+ public string IdxMacchina { get; set; } = "*";
+
+ public int MaxRecord { get; set; } = 100;
+
+ #endregion Public Properties
+
+ #region Public Methods
+
///
- /// Inizializzazione con periodo e arrotondamento
- ///
- ///
- ///
- ///
- public static DateTime Init(int minRound)
+ /// Inizializzazione con periodo e arrotondamento
+ ///
+ ///
+ ///
+ ///
+ public static DateTime Init(int minRound)
{
TimeSpan DayElapsed = DateTime.Now.Subtract(DateTime.Today);
int minDay = (int)Math.Ceiling((double)(DayElapsed.TotalMinutes / minRound)) * minRound;
@@ -25,16 +37,6 @@
return endRounded;
}
- public string IdxMacchina { get; set; } = "*";
-
- public int MaxRecord { get; set; } = 100;
- public DateTime DtRef { get; set; } = Init(5);
- public int CurrPage { get; set; } = 1;
-
- #endregion Public Properties
-
- #region Public Methods
-
public override bool Equals(object obj)
{
if (!(obj is SelectDossierParams item))
diff --git a/MP.SPEC/Data/SelectFluxParams.cs b/MP.SPEC/Data/SelectFluxParams.cs
index 92559e14..39660b9f 100644
--- a/MP.SPEC/Data/SelectFluxParams.cs
+++ b/MP.SPEC/Data/SelectFluxParams.cs
@@ -12,13 +12,13 @@
#region Public Properties
public string CodFlux { get; set; } = "*";
+ public int CurrPage { get; set; } = 1;
public string IdxMacchina { get; set; } = "*";
+ public string lastUpdate { get; set; } = "-";
public bool LiveUpdate { get; set; } = true;
public int MaxRecord { get; set; } = 100;
public int TempoAgg { get; set; } = 2000;
- public int CurrPage { get; set; } = 1;
- public string lastUpdate { get; set; } = "-";
#endregion Public Properties
diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj
index 55d5b54d..611c6c43 100644
--- a/MP.SPEC/MP.SPEC.csproj
+++ b/MP.SPEC/MP.SPEC.csproj
@@ -5,7 +5,7 @@
enable
enable
MP.SPEC
- 6.16.2209.2110
+ 6.16.2209.2114
@@ -17,8 +17,8 @@
-
-
+
+
diff --git a/MP.SPEC/Pages/DOSS.razor b/MP.SPEC/Pages/DOSS.razor
index 0b62dd06..ff778773 100644
--- a/MP.SPEC/Pages/DOSS.razor
+++ b/MP.SPEC/Pages/DOSS.razor
@@ -30,7 +30,7 @@
}
diff --git a/MP.SPEC/Pages/DOSS.razor.cs b/MP.SPEC/Pages/DOSS.razor.cs
index 2038917f..65c77aa6 100644
--- a/MP.SPEC/Pages/DOSS.razor.cs
+++ b/MP.SPEC/Pages/DOSS.razor.cs
@@ -26,6 +26,12 @@ namespace MP.SPEC.Pages
numRecord = newNum;
}
+ protected void ForceReloadPage(int newNum)
+ {
+ currPage = newNum;
+ StateHasChanged();
+ }
+
protected override async Task OnInitializedAsync()
{
isLoading = true;
diff --git a/MP.SPEC/Pages/Error.cshtml.cs b/MP.SPEC/Pages/Error.cshtml.cs
index 655495ec..db2be022 100644
--- a/MP.SPEC/Pages/Error.cshtml.cs
+++ b/MP.SPEC/Pages/Error.cshtml.cs
@@ -8,20 +8,36 @@ namespace MP.SPEC.Pages
[IgnoreAntiforgeryToken]
public class ErrorModel : PageModel
{
- public string? RequestId { get; set; }
-
- public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
-
- private readonly ILogger