MAPO-IOC: inizio configurazione x porting metodi su nuova classe IOC

This commit is contained in:
Samuele Locatelli
2026-04-03 09:40:21 +02:00
parent 8134102fbc
commit 64ed5cffb2
11 changed files with 48 additions and 11 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2603.411</Version>
<Version>6.16.2604.217</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB3</RootNamespace>
</PropertyGroup>
+1 -1
View File
@@ -46,7 +46,7 @@
<script>
Blazor.start({
reconnectionOptions: {
maxRetries: 600,
maxRetries: 3600,
retryIntervalMilliseconds: 1000
},
}).then(() => {
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2603.411</h4>
<h4>Versione: 6.16.2604.217</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2603.411
6.16.2604.217
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2603.411</version>
<version>6.16.2604.217</version>
<url>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+5 -2
View File
@@ -29,7 +29,9 @@ namespace MP.IOC.Controllers
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet("CountKeys")]
[HttpGet]
[Route("CountKeys")]
[Route("CNTKEY")]
public string CountKeys(string? id)
{
string answ = "ND";
@@ -74,7 +76,8 @@ namespace MP.IOC.Controllers
answ = "";
try
{
Dictionary<string, string> valori = DService.ResetDatiMacchina(id);
Dictionary<string, string> valori = DService.mDatiMacchine(id);
//Dictionary<string, string> valori = DService.ResetDatiMacchina(id);
foreach (var item in valori)
{
answ += $"{item.Key}|{item.Value}{Environment.NewLine}";
+33
View File
@@ -73,6 +73,39 @@ namespace MP.IOC.Controllers
return answ;
}
/// <summary>
/// GET: IOB/enabled/SIMUL_03
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet("enabled/{id}")]
public string enabled(string id)
{
string answ = "ND";
// se id nullo --> KO!
if (id == null)
{
answ = "KO";
}
else
{
try
{
answ = DService.IobInsEnab(id) ? "OK" : "NO";
//// 2025.03.04 aggiunto keepalive x evitare C101
//MapoDb.MapoDb connDb = new MapoDb.MapoDb();
//connDb.scriviKeepAlive(id, DateTime.Now);
}
catch (Exception exc)
{
Log.Error($"Errore in enabled{Environment.NewLine}{exc}");
answ = "NO";
}
}
return answ;
}
///// <summary> AGGIUNGE TASK richiesto x macchina:
/////
///// GET: IOB/addTask2Exe/3010?taskName=startSetup&taskVal=T190406101512
+2 -1
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
@@ -22,6 +22,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components" Version="8.0.25" />
<PackageReference Include="NLog" Version="5.3.4" />
<PackageReference Include="NLog.Web.AspNetCore" Version="5.3.14" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MP-IOC </i>
<h4>Versione: 6.16.2602.2510</h4>
<h4>Versione: 6.16.2604.309</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2602.2510
6.16.2604.309
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2602.2510</version>
<version>6.16.2604.309</version>
<url>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>