diff --git a/EgwCoreLib.Lux.Data/Services/Items/IItemService.cs b/EgwCoreLib.Lux.Data/Services/Items/IItemService.cs index 059d02cf..6099243f 100644 --- a/EgwCoreLib.Lux.Data/Services/Items/IItemService.cs +++ b/EgwCoreLib.Lux.Data/Services/Items/IItemService.cs @@ -4,20 +4,67 @@ { #region Public Methods + /// + /// Eliminazione record + /// + /// + /// Task DeleteAsync(ItemModel model); + /// + /// Recupera alternative per item specifico + /// + /// ID Record da cercare + /// Task> GetAltAsync(int recId); + /// + /// Fissa ItemID mancanti nella BOM cercando corrispondenze per codice esterno + /// + /// Lista BOM originale da correggere + /// Task> GetBomFixItemIdAsync(List listOrg); + /// + /// Filtra items per gruppo e tipo classe + /// + /// Codice gruppo filtro + /// Tipo classe item + /// Task> GetFiltAsync(string CodGroup, ItemClassType ItemType); + /// + /// Cerca items tramite termine di ricerca + /// + /// Termine di ricerca + /// Task> GetSearchAsync(string term); + /// + /// Aggiornamento massivo costi e parametri item + /// + /// Lista items da aggiornare + /// Costo da impostare + /// Margine di default + /// Quantità massima default + /// Unità di misura default + /// Valore per arrotondamento + /// Fattore di scala + /// Task MassUpdateAsync(List list2upd, double setCost, double defMargin, double defQtyMax, string defUM, int roundVal = 0, double scaleFactor = 1_000_000.0); + /// + /// Upsert record Item (aggiorna o inserisce) + /// + /// + /// Task UpsertAsync(ItemModel upsRec); + /// + /// Inserisce/aggiorna items dalla BOM + /// + /// Lista BOM da processare + /// Task UpsertFromBomAsync(List bomList); #endregion Public Methods diff --git a/EgwCoreLib.Lux.Data/Services/Items/ISellingItemService.cs b/EgwCoreLib.Lux.Data/Services/Items/ISellingItemService.cs index 2b788bbc..40375f66 100644 --- a/EgwCoreLib.Lux.Data/Services/Items/ISellingItemService.cs +++ b/EgwCoreLib.Lux.Data/Services/Items/ISellingItemService.cs @@ -4,14 +4,40 @@ { #region Public Methods + /// + /// Eliminazione record + /// + /// + /// Task DeleteAsync(SellingItemModel model); + /// + /// Recupera items filtrati per ambiente ed tipo sorgente + /// + /// Ambiente di esecuzione + /// Tipo sorgente item + /// Task> GetFiltAsync(Constants.EXECENVIRONMENTS envir, ItemSourceType sourceType); + /// + /// Recupera items per ambiente di esecuzione + /// + /// Ambiente di esecuzione + /// Task> GetByEnvirAsync(Constants.EXECENVIRONMENTS envir); + /// + /// Aggiorna dati file per item vendibile + /// + /// Record con nuovi dati file + /// Task UpdateFileDataAsync(SellingItemModel upsRec); + /// + /// Upsert record SellingItem (aggiorna o inserisce) + /// + /// + /// Task UpsertAsync(SellingItemModel upsRec); #endregion Public Methods diff --git a/EgwCoreLib.Lux.Data/Services/Items/ItemService.cs b/EgwCoreLib.Lux.Data/Services/Items/ItemService.cs index d65ed51c..cb921e68 100644 --- a/EgwCoreLib.Lux.Data/Services/Items/ItemService.cs +++ b/EgwCoreLib.Lux.Data/Services/Items/ItemService.cs @@ -17,6 +17,7 @@ #region Public Methods + /// public async Task DeleteAsync(ItemModel rec2del) { return await TraceAsync($"{_className}.Delete", async (activity) => @@ -35,6 +36,7 @@ }); } + /// public async Task> GetAltAsync(int recId) { // Uso helper TraceAsync che gestisce automaticamente StartActivity, Log e Exception tracking @@ -48,6 +50,7 @@ }); } + /// public async Task> GetBomFixItemIdAsync(List listOrg) { return await TraceAsync($"{_className}.GetBomFixItemIdAsync", async (activity) => @@ -68,6 +71,7 @@ }); } + /// public async Task> GetFiltAsync(string CodGroup, ItemClassType ItemType) { return await TraceAsync($"{_className}.GetFilt", async (activity) => @@ -80,6 +84,7 @@ }); } + /// public async Task> GetSearchAsync(string term) { return await TraceAsync($"{_className}.GetSearch", async (activity) => @@ -92,6 +97,7 @@ }); } + /// public async Task MassUpdateAsync(List list2upd, double setCost, double defMargin, double defQtyMax, string defUM, int roundVal = 0, double scaleFactor = 1_000_000.0) { return await TraceAsync($"{_className}.MassUpdate", async (activity) => @@ -110,6 +116,7 @@ }); } + /// public async Task UpsertAsync(ItemModel upsRec) { return await TraceAsync($"{_className}.Upsert", async (activity) => @@ -141,7 +148,7 @@ }); } - + /// public async Task UpsertFromBomAsync(List bomList) { return await TraceAsync($"{_className}.UpsertFromBomAsync", async (activity) => diff --git a/EgwCoreLib.Lux.Data/Services/Items/SellingItemService.cs b/EgwCoreLib.Lux.Data/Services/Items/SellingItemService.cs index c0456ebf..48f900f1 100644 --- a/EgwCoreLib.Lux.Data/Services/Items/SellingItemService.cs +++ b/EgwCoreLib.Lux.Data/Services/Items/SellingItemService.cs @@ -17,6 +17,7 @@ #region Public Methods + /// public async Task DeleteAsync(SellingItemModel rec2del) { return await TraceAsync($"{_className}.Delete", async (activity) => @@ -35,6 +36,7 @@ }); } + /// public async Task> GetByEnvirAsync(Constants.EXECENVIRONMENTS envir) { // Uso helper TraceAsync che gestisce automaticamente StartActivity, Log e Exception tracking @@ -48,6 +50,7 @@ }); } + /// public async Task> GetFiltAsync(Constants.EXECENVIRONMENTS envir, ItemSourceType sourceType) { // Uso helper TraceAsync che gestisce automaticamente StartActivity, Log e Exception tracking @@ -61,6 +64,7 @@ }); } + /// public async Task UpdateFileDataAsync(SellingItemModel updRec) { return await TraceAsync($"{_className}.UpdateFileData", async (activity) => @@ -101,6 +105,7 @@ }); } + /// public async Task UpsertAsync(SellingItemModel upsRec) { return await TraceAsync($"{_className}.Upsert", async (activity) =>