From 43d613eb675224f7035bc09791331e92ae0a01f5 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 2 Apr 2026 17:45:13 +0200 Subject: [PATCH] Update IIOBController x migrazione --- MP-IO/Controllers/BENCH.cs | 1 - MP-IO/Controllers/HomeController.cs | 5 ++--- MP-IO/Controllers/IOBController.cs | 1 + MP-IO/Interfaces/IHomeService.cs | 5 ++++- MP-IO/Interfaces/IIOBService.cs | 34 ++++++++++++++++++++++++++--- MP-IO/MP-IO.csproj | 3 +++ 6 files changed, 41 insertions(+), 8 deletions(-) diff --git a/MP-IO/Controllers/BENCH.cs b/MP-IO/Controllers/BENCH.cs index 5d9502ce..949f25c0 100644 --- a/MP-IO/Controllers/BENCH.cs +++ b/MP-IO/Controllers/BENCH.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Web.Mvc; - using MP_IO.Interfaces; namespace MP_IO.Controllers diff --git a/MP-IO/Controllers/HomeController.cs b/MP-IO/Controllers/HomeController.cs index 83281385..28889f94 100644 --- a/MP-IO/Controllers/HomeController.cs +++ b/MP-IO/Controllers/HomeController.cs @@ -1,11 +1,10 @@ -using System; +using MP_IO.Interfaces; +using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; -using MP_IO.Interfaces; - namespace MP_IO.Controllers { public class HomeController : Controller, IHomeService diff --git a/MP-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs index 74292e79..8e7038d3 100644 --- a/MP-IO/Controllers/IOBController.cs +++ b/MP-IO/Controllers/IOBController.cs @@ -1,6 +1,7 @@ using MagData; using MapoDb; using MapoSDK; +using MP_IO.Interfaces; using Newtonsoft.Json; using StackExchange.Redis; using SteamWare; diff --git a/MP-IO/Interfaces/IHomeService.cs b/MP-IO/Interfaces/IHomeService.cs index 61e7a39b..f97aff56 100644 --- a/MP-IO/Interfaces/IHomeService.cs +++ b/MP-IO/Interfaces/IHomeService.cs @@ -1,3 +1,6 @@ + +using System.Web.Mvc; + namespace MP_IO.Interfaces { public interface IHomeService @@ -5,6 +8,6 @@ namespace MP_IO.Interfaces /// /// GET: Home /// - string Index(); + RedirectResult Index(); } } diff --git a/MP-IO/Interfaces/IIOBService.cs b/MP-IO/Interfaces/IIOBService.cs index 2271bb4c..072b3e83 100644 --- a/MP-IO/Interfaces/IIOBService.cs +++ b/MP-IO/Interfaces/IIOBService.cs @@ -41,11 +41,39 @@ namespace MP_IO.Interfaces string getM2IOB(string id); string getObjItems(string id); string getObjItems2Write(string id); + string getOdlAtDate(string id, string dateRif); string getOptPar(string id); + string getPODL(string id, int idxPODL); + string getPOdlAct(string id); string getPOdlNext(string id); string getTask2Exe(string id); - bool insDisab(string id, bool stato); - string processInput(string id, int valore, string dtEve, string dtCurr, string cnt); - string setProg(string id, string prog, string art, string comm, string disabKA = "false"); + string getXdlNum(string id, string CodXdl = ""); + string Index(); + string input(string id, string valore, string dtEve, string dtCurr, string cnt); + string liveJson(string id); + string liveRec(string id, string liveData); + string rawTransfJson(string id); + string remOptPar(string id, string pName); + string remTask2Exe(string id, string taskName); + string resetCurrODL(string id); + string saveConf(string id); + string saveConfYaml(string id); + string saveDataItems(string id); + string saveMachineIobConf(string id); + string savePzCountInc(string id, string qty); + string savePzCountIncAtDate(string id, string qty, string dtEve = "", string dtCurr = ""); + string sendAlarmBankUpdate(string id, string memAddr, int index, int currStatus); + string sendReboot(string id, string mac); + string sendRebootGateway(string GWIP); + string setCounter(string id, string counter); + string setM2IOB(string id, string IOB_name); + string setObjItems(string id); + string setRedisHashDict(string id); + string slog(string id); + string takeFlogSnapshot(string id); + string ulog(string id, string flux, string valore, string dtEve, string dtCurr, string cnt, string matrOpr, string label, string valNum); + string ulogJson(string id); + string uploadFile(string id); + string upsertObjItems(string id); } } diff --git a/MP-IO/MP-IO.csproj b/MP-IO/MP-IO.csproj index 4cbf2a64..1d8cc4ce 100644 --- a/MP-IO/MP-IO.csproj +++ b/MP-IO/MP-IO.csproj @@ -350,6 +350,9 @@ inputIOB.aspx + + + lastUpdate.aspx ASPXCodeBehind