From 7ef594326dc808bb03b2739e6300dfd26087b9d2 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 24 Mar 2026 13:03:51 +0100 Subject: [PATCH] Fix interface IIDataLayerServices x metodi non riportati + Fix save TemplateRow --- .../Services/General/IDataLayerServices.cs | 32 +++++++++++++++++-- Lux.API/Services/ExternalMessageProcessor.cs | 7 ++-- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/EgwCoreLib.Lux.Data/Services/General/IDataLayerServices.cs b/EgwCoreLib.Lux.Data/Services/General/IDataLayerServices.cs index 7668ec03..21b7a5d8 100644 --- a/EgwCoreLib.Lux.Data/Services/General/IDataLayerServices.cs +++ b/EgwCoreLib.Lux.Data/Services/General/IDataLayerServices.cs @@ -60,6 +60,15 @@ namespace EgwCoreLib.Lux.Data.Services.General /// Task di completamento Task SaveBomAsync(string uID, Egw.Window.Data.Enums.QuestionModes qMode, Constants.EXECENVIRONMENTS execEnvironment, string bomContent); + /// + /// Esegue salvataggio HardwareModelList sul DB + /// + /// UID dell'item offerta di cui si è ricevuto la BOM + /// Environment dell'item + /// HardwareModelList serializzata + /// + Task SaveHmlAsync(string uID, Constants.EXECENVIRONMENTS execEnvironment, string rawContent); + /// /// Esegue salvataggio ProdBalance (di un gruppo lavorazioni per riga ordine) sul DB /// @@ -73,12 +82,31 @@ namespace EgwCoreLib.Lux.Data.Services.General /// /// Esegue salvataggio ProdEstimate (per riga ordine) sul DB /// - /// UID dell'item offerta + /// UID dell'item offerta di cui si è ricevuto la ProdEstim /// Environment dell'item /// Stima ProdEstimate serializzata - /// True se salvato con successo + /// Task SaveProdEstimateAsync(string uID, Constants.EXECENVIRONMENTS execEnvironment, string prodEstim); + /// + /// MockUp (fake) salvataggio ProfileListAsync sul DB + /// + /// UID ricezione (default tipicamente) + /// Environment dell'item + /// ProfileListAsync serializzata + /// + Task SaveProfileListAsync(string uID, Constants.EXECENVIRONMENTS execEnvironment, string rawContent); + + /// + /// MockUp (fake) salvataggio ProfileThreshold sul DB + /// + /// UID del profilo + /// Environment dell'item + /// ThresholdList serializzata + /// Info profile data serializzati + /// + Task SaveProfileThreshAsync(string uID, Constants.EXECENVIRONMENTS execEnvironment, string rawThreshold, string rawData); + #endregion Public Methods } } \ No newline at end of file diff --git a/Lux.API/Services/ExternalMessageProcessor.cs b/Lux.API/Services/ExternalMessageProcessor.cs index a7c7ba5b..cd7b8f3f 100644 --- a/Lux.API/Services/ExternalMessageProcessor.cs +++ b/Lux.API/Services/ExternalMessageProcessor.cs @@ -1,5 +1,4 @@ using EgwCoreLib.Lux.Core.RestPayload; -using EgwCoreLib.Lux.Data.Services; using EgwCoreLib.Lux.Data.Services.General; using EgwMultiEngineManager.Data; using Newtonsoft.Json; @@ -20,7 +19,9 @@ namespace Lux.API.Services /// /// /// - public ExternalMessageProcessor(IImageCacheService imgService, DataLayerServices dlService, ICalcRuidService crService, IProdService prodService) + /// + /// + public ExternalMessageProcessor(IImageCacheService imgService, IDataLayerServices dlService, ICalcRuidService crService, IProdService prodService) { cacheService = imgService; dbService = dlService; @@ -303,7 +304,7 @@ namespace Lux.API.Services private readonly ICalcRuidService _calcRuidService; private readonly IProdService _prodService; private readonly IImageCacheService cacheService; - private readonly DataLayerServices dbService; + private readonly IDataLayerServices dbService; private string redisBaseKey = "Lux:Cache"; #endregion Private Fields