|
- @**@
+
|
@record.dtEvento
diff --git a/MP.SPEC/Components/ListPARAMS.razor.cs b/MP.SPEC/Components/ListPARAMS.razor.cs
index 6b0b346b..8d2084b1 100644
--- a/MP.SPEC/Components/ListPARAMS.razor.cs
+++ b/MP.SPEC/Components/ListPARAMS.razor.cs
@@ -13,6 +13,9 @@ namespace MP.SPEC.Components
[Parameter]
public EventCallback PagerResetReq { get; set; }
+ [Parameter]
+ public EventCallback RecordSel { get; set; }
+
[Parameter]
public SelectFluxParams SelFilter { get; set; } = null!;
@@ -23,14 +26,14 @@ namespace MP.SPEC.Components
#region Public Methods
- public string checkSelect(string IdxMacchina)
+ public string checkSelect(FluxLog selRecord)
{
string answ = "";
if (currRecord != null)
{
try
{
- answ = (currRecord.IdxMacchina == IdxMacchina) ? "table-info" : "";
+ answ = (currRecord.IdxMacchina == selRecord.IdxMacchina && currRecord.dtEvento == selRecord.dtEvento && currRecord.CodFlux == selRecord.CodFlux) ? "table-info" : "";
}
catch
{ }
@@ -38,6 +41,21 @@ namespace MP.SPEC.Components
return answ;
}
+ protected override async Task OnParametersSetAsync()
+ {
+ await Task.Delay(1);
+ // se sono live + parametri cambiati --> rileggo...
+ if (SelFilter.LiveUpdate)
+ {
+ await reloadData(false);
+ }
+ // se sono live --> elimino record selezionato
+ //if (SelFilter.LiveUpdate)
+ //{
+ // currRecord = null;
+ //}
+ }
+
public void Dispose()
{
aTimer.Elapsed -= ElapsedTimer;
@@ -86,11 +104,9 @@ namespace MP.SPEC.Components
public void StartTimer()
{
- //int.TryParse(Configuration["ReloadStatusTimer"], out tOutPeriod);
aTimer = new System.Timers.Timer(RefreshPeriod);
aTimer.Elapsed += ElapsedTimer;
aTimer.Enabled = true;
- //aTimer.AutoReset = true;
aTimer.Start();
}
@@ -114,8 +130,6 @@ namespace MP.SPEC.Components
#endregion Protected Properties
- //protected int RefreshPeriod { get; set; } = 5000;
-
#region Protected Methods
protected override async Task OnInitializedAsync()
@@ -127,6 +141,7 @@ namespace MP.SPEC.Components
await reloadData(true);
}
+ //protected int RefreshPeriod { get; set; } = 5000;
protected async void OnSeachUpdated()
{
await InvokeAsync(() =>
@@ -138,6 +153,18 @@ namespace MP.SPEC.Components
});
}
+ protected async Task resetSel()
+ {
+ currRecord = null;
+ await RecordSel.InvokeAsync(null);
+ }
+
+ protected async Task selRecord(FluxLog selRec)
+ {
+ currRecord = selRec;
+ await RecordSel.InvokeAsync(selRec);
+ }
+
protected async Task UpdateData()
{
currRecord = null;
diff --git a/MP.SPEC/Data/SelectFluxParams.cs b/MP.SPEC/Data/SelectFluxParams.cs
index 39660b9f..f89ffdf6 100644
--- a/MP.SPEC/Data/SelectFluxParams.cs
+++ b/MP.SPEC/Data/SelectFluxParams.cs
@@ -13,6 +13,7 @@
public string CodFlux { get; set; } = "*";
public int CurrPage { get; set; } = 1;
+ public DateTime? dtRif { get; set; } = null;
public string IdxMacchina { get; set; } = "*";
public string lastUpdate { get; set; } = "-";
public bool LiveUpdate { get; set; } = true;
diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj
index d495b20d..119e0d00 100644
--- a/MP.SPEC/MP.SPEC.csproj
+++ b/MP.SPEC/MP.SPEC.csproj
@@ -5,7 +5,7 @@
enable
enable
MP.SPEC
- 6.16.2209.2209
+ 6.16.2209.2619
diff --git a/MP.SPEC/Pages/PARAMS.razor b/MP.SPEC/Pages/PARAMS.razor
index 2e62bc74..70ddf38a 100644
--- a/MP.SPEC/Pages/PARAMS.razor
+++ b/MP.SPEC/Pages/PARAMS.razor
@@ -25,7 +25,7 @@
}
else
{
-
+
}
|