| @item.IdxMacchina |
@@ -111,30 +110,47 @@
|
}
- @cIobInfo.iType |
+ @item.OS |
-
- @cIobInfo.name
-
- @cIobInfo.IP
- |
-
- @if (MacIobConf(item.IdxMacchina, "IobVersion").Length > 1)
+ @if (!string.IsNullOrEmpty(item.IobName))
{
- @* @MacIobConf(item.IdxMacchina, "IobExe") *@
- @IobExeTrim(item.IdxMacchina)
-
-
- @MacIobConf(item.IdxMacchina, "IobType") | @MacIobConf(item.IdxMacchina, "IobVersion")
+ @item.IobName
+ @item.IobIpv4
+ }
+ else
+ {
+ -
}
|
- @MacIobConf(item.IdxMacchina, "MachIp")
-
- port: @MacIobConf(item.IdxMacchina, "MachPort")
-
+ @if (!string.IsNullOrEmpty(item.AdapName))
+ {
+
+ @item.AdapName
+
+
+ @item.AdapType | @item.AdapVers
+
+ }
+ else
+ {
+ -
+ }
+ |
+
+ @if (!string.IsNullOrEmpty(item.TargetIp))
+ {
+ @item.TargetIp
+
+ port: @item.TargetPort
+
+ }
+ else
+ {
+ -
+ }
|
diff --git a/MP.Land/Pages/IobList.razor.cs b/MP.Land/Pages/IobList.razor.cs
index 9d1ad14b..58886ae0 100644
--- a/MP.Land/Pages/IobList.razor.cs
+++ b/MP.Land/Pages/IobList.razor.cs
@@ -6,6 +6,7 @@ using Microsoft.Extensions.Configuration;
using Microsoft.JSInterop;
using MP.AppAuth.Models;
using MP.AppAuth.Services;
+using MP.Data.DTO;
using MP.Data.Services;
using MP.Land.Data;
using NLog;
@@ -26,6 +27,7 @@ namespace MP.Land.Pages
GC.Collect();
}
+#if false
public string MacIobConf(string idxMacc, string kReq)
{
string answ = "-";
@@ -38,15 +40,18 @@ namespace MP.Land.Pages
}
}
return answ;
- }
+ }
+#endif
#endregion Public Methods
#region Protected Fields
+#if false
protected Dictionary DictIobInfo = new Dictionary();
- protected Dictionary> DictMachData = new Dictionary>();
+ protected Dictionary> DictMachData = new Dictionary>();
+#endif
#endregion Protected Fields
@@ -55,6 +60,9 @@ namespace MP.Land.Pages
[Inject]
protected AppAuthService AppDService { get; set; }
+ [Inject]
+ protected LandDataService LDService { get; set; }
+
[Inject]
protected LMessageService AppMService { get; set; }
@@ -147,7 +155,7 @@ namespace MP.Land.Pages
#region Protected Methods
- protected string checkSelect(MacchineModel IdxODL)
+ protected string checkSelect(IobDTO IdxODL)
{
string answ = "";
#if false
@@ -164,6 +172,7 @@ namespace MP.Land.Pages
return answ;
}
+#if false
protected Core.Objects.IOB_data CurrIobInfo(string idxMacc)
{
Core.Objects.IOB_data answ = new Core.Objects.IOB_data();
@@ -172,13 +181,17 @@ namespace MP.Land.Pages
answ = DictIobInfo[idxMacc];
}
return answ;
- }
+ }
+#endif
protected void DataInit()
{
isLoading = true;
- // importante altrimenti NON mostra update UI
- AllRecords = AppDService.MacchineGetAll();
+ // recupero TUTTI i dati IobList già completi anche on i RemoteRebootLog
+ AllRecords = LDService.IobListAll();
+
+
+#if false
// leggo i remoteRebootLog e cerco IdxMacc NON presenti, aggiungendo...
// fare!!! FixMe ToDo: aggiungere modello RRL, e query specifica x recuperare record con idxMacchina non presenti in tab Macchine..
@@ -188,6 +201,7 @@ namespace MP.Land.Pages
// 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));
+#endif
RefreshDisplay();
isLoading = false;
}
@@ -204,6 +218,7 @@ namespace MP.Land.Pages
return answ;
}
+#if false
protected string IobExeTrim(string IdxMacchina)
{
string answ = MacIobConf(IdxMacchina, "IobExe");
@@ -212,7 +227,8 @@ namespace MP.Land.Pages
answ = answ.Substring(0, answ.IndexOf(','));
}
return answ;
- }
+ }
+#endif
protected override async Task OnInitializedAsync()
{
@@ -261,12 +277,12 @@ namespace MP.Land.Pages
///
private static Logger Log = LogManager.GetCurrentClassLogger();
- private List AllRecords = new List();
+ private List AllRecords = new List();
private int currPage = 1;
private bool isLoading = false;
- private List ListRecords = new List();
+ private List ListRecords = new List();
private int numRecord = 10;
- private List SearchRecords = new List();
+ private List SearchRecords = new List();
private string searchVal = "";
///
@@ -300,8 +316,9 @@ namespace MP.Land.Pages
// in primis filtro conddizioni da selettori...
SearchRecords = AllRecords
.Where(x => (!string.IsNullOrEmpty(x.Locazione) || showEmptyLoc)
- && (showMulti || !x.IdxMacchina.Contains("#")))
- .ToList();
+ && (showMulti || !x.IdxMacchina.Contains("#"))
+ && (showExtra || x.IsMachine)
+ ).ToList();
// se ho ricerca filtro...
if (!string.IsNullOrEmpty(searchVal))
@@ -356,8 +373,53 @@ namespace MP.Land.Pages
}
break;
+ case "OS":
+ if (sortAsc)
+ {
+ SearchRecords = SearchRecords.OrderBy(x => x.OS).ToList();
+ }
+ else
+ {
+ SearchRecords = SearchRecords.OrderByDescending(x => x.OS).ToList();
+ }
+ break;
+
+ case "IobName":
+ if (sortAsc)
+ {
+ SearchRecords = SearchRecords.OrderBy(x => x.IobName).ToList();
+ }
+ else
+ {
+ SearchRecords = SearchRecords.OrderByDescending(x => x.IobName).ToList();
+ }
+ break;
+
+ case "AdapName":
+ if (sortAsc)
+ {
+ SearchRecords = SearchRecords.OrderBy(x => x.AdapName).ToList();
+ }
+ else
+ {
+ SearchRecords = SearchRecords.OrderByDescending(x => x.AdapName).ToList();
+ }
+ break;
+
+ case "TargetIp":
+ if (sortAsc)
+ {
+ SearchRecords = SearchRecords.OrderBy(x => x.TargetIp).ToList();
+ }
+ else
+ {
+ SearchRecords = SearchRecords.OrderByDescending(x => x.TargetIp).ToList();
+ }
+ break;
+
default:
+ SearchRecords = SearchRecords.OrderBy(x => x.IdxMacchina).ToList();
break;
}
}
diff --git a/MP.Land/Resources/ChangeLog.html b/MP.Land/Resources/ChangeLog.html
index c16065ca..2e989fd7 100644
--- a/MP.Land/Resources/ChangeLog.html
+++ b/MP.Land/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo Tablet MAPO - DotNet6
- Versione: 6.16.2507.0108
+ Versione: 6.16.2507.0111
Note di rilascio:
diff --git a/MP.Land/Resources/VersNum.txt b/MP.Land/Resources/VersNum.txt
index 97c92218..0d6c22cc 100644
--- a/MP.Land/Resources/VersNum.txt
+++ b/MP.Land/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2507.0108
+6.16.2507.0111
diff --git a/MP.Land/Resources/manifest.xml b/MP.Land/Resources/manifest.xml
index 64bea6eb..ee8bb1c0 100644
--- a/MP.Land/Resources/manifest.xml
+++ b/MP.Land/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2507.0108
+ 6.16.2507.0111
https://nexus.steamware.net/repository/SWS/MP-LAND/stable/LAST/MP.Land.zip
https://nexus.steamware.net/repository/SWS/MP-LAND/stable/LAST/ChangeLog.html
false
|