diff --git a/MP.Land/Pages/IobList.razor b/MP.Land/Pages/IobList.razor
index 3d7c0110..99e8ac87 100644
--- a/MP.Land/Pages/IobList.razor
+++ b/MP.Land/Pages/IobList.razor
@@ -50,6 +50,9 @@
IOB Type |
IOB IP |
IOB Name |
+ Count |
+ Tipo |
+ Vers |
@@ -77,12 +80,20 @@
@cIobInfo.iType |
@cIobInfo.IP |
@cIobInfo.name |
+
+ @{
+ string icnCol = cIobInfo.CNC_Counter ? "fa-solid fa-thumbs-up text-success" : "fa-solid fa-thumbs-down text-secondary";
+ }
+
+ |
+ @MacIobConf(item.IdxMacchina, "IobType") |
+ @MacIobConf(item.IdxMacchina, "IobVersion") |
}
- |
+ |
|
diff --git a/MP.Land/Pages/IobList.razor.cs b/MP.Land/Pages/IobList.razor.cs
index bbd67b51..5f07da07 100644
--- a/MP.Land/Pages/IobList.razor.cs
+++ b/MP.Land/Pages/IobList.razor.cs
@@ -103,12 +103,13 @@ namespace MP.Land.Pages
AllRecords = AppDService.MacchineGetAll();
// leggo le info IOB x ogni record trovato...
DictIobInfo = AllRecords.ToDictionary(x => x.IdxMacchina, x => TabSrv.IobInfo(x.IdxMacchina));
+ DictMachData = AllRecords.ToDictionary(x => x.IdxMacchina, x => TabSrv.MachIobConf(x.IdxMacchina));
RefreshDisplay();
isLoading = false;
}
protected Dictionary DictIobInfo = new Dictionary();
-
+ protected Dictionary> DictMachData = new Dictionary>();
protected Core.Objects.IOB_data CurrIobInfo(string idxMacc)
{
Core.Objects.IOB_data answ = new Core.Objects.IOB_data();
@@ -118,6 +119,19 @@ namespace MP.Land.Pages
}
return answ;
}
+ public string MacIobConf(string idxMacc, string kReq)
+ {
+ string answ = "-";
+ if (DictMachData.ContainsKey(idxMacc))
+ {
+ var cRec = DictMachData[idxMacc];
+ if (cRec.ContainsKey(kReq))
+ {
+ answ = cRec[kReq];
+ }
+ }
+ return answ;
+ }
private bool isLoading = false;
private int currPage = 1;