From dae03dc91fec208b304be0342e46d8ae5a29c5a7 Mon Sep 17 00:00:00 2001 From: FabioN Date: Mon, 20 Oct 2025 18:06:17 +0200 Subject: [PATCH 1/2] Gestione formato CSV e EXCEL su export ANAGRAFICHE ARTICOLI --- .../it/integry/ems/product/export/ArticoliExporter.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ems-engine/src/main/java/it/integry/ems/product/export/ArticoliExporter.java b/ems-engine/src/main/java/it/integry/ems/product/export/ArticoliExporter.java index 8e2e1bcdca..64c3482992 100644 --- a/ems-engine/src/main/java/it/integry/ems/product/export/ArticoliExporter.java +++ b/ems-engine/src/main/java/it/integry/ems/product/export/ArticoliExporter.java @@ -2,6 +2,7 @@ package it.integry.ems.product.export; import it.integry.ems.export.base.BaseEntityExporter; import it.integry.ems.export.base.EntityExportResponse; +import it.integry.ems.export.base.ExportFromQuery; import it.integry.ems.export.base.IEntityExporter; import it.integry.ems.product.export.services.*; import org.springframework.web.context.ContextLoader; @@ -34,6 +35,10 @@ public class ArticoliExporter extends BaseEntityExporter implements IEntityExpor case SLIM2K: Slim2kService slim2kService = context.getBean(Slim2kService.class); return slim2kService.export(type, format); + case EXCEL: + case CSV: + ExportFromQuery expq = ContextLoader.getCurrentWebApplicationContext().getBean(ExportFromQuery.class); + return expq.export(username, type, format, whereCond); default: throw new Exception(String.format("Formato %s non supportato", format)); } @@ -49,7 +54,9 @@ public class ArticoliExporter extends BaseEntityExporter implements IEntityExpor WBC_STOCK_LIST("GET_STOCK_LIST"), YOCABE("YOCABE"), SLIM2K("SLIM2K"), - WOOCOMMERCE_STOCK("WOOCOMMERCE_STOCK"); + WOOCOMMERCE_STOCK("WOOCOMMERCE_STOCK"), + EXCEL("EXCEL"), + CSV("CSV"); private String text; From 60fb37ad8b08e89889e3254e66006ab917d21cbe Mon Sep 17 00:00:00 2001 From: FabioN Date: Mon, 20 Oct 2025 18:06:17 +0200 Subject: [PATCH 2/2] Gestione formato CSV e EXCEL su export ANAGRAFICHE ARTICOLI (cherry picked from commit dae03dc91fec208b304be0342e46d8ae5a29c5a7) --- .../it/integry/ems/product/export/ArticoliExporter.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ems-engine/src/main/java/it/integry/ems/product/export/ArticoliExporter.java b/ems-engine/src/main/java/it/integry/ems/product/export/ArticoliExporter.java index 8e2e1bcdca..64c3482992 100644 --- a/ems-engine/src/main/java/it/integry/ems/product/export/ArticoliExporter.java +++ b/ems-engine/src/main/java/it/integry/ems/product/export/ArticoliExporter.java @@ -2,6 +2,7 @@ package it.integry.ems.product.export; import it.integry.ems.export.base.BaseEntityExporter; import it.integry.ems.export.base.EntityExportResponse; +import it.integry.ems.export.base.ExportFromQuery; import it.integry.ems.export.base.IEntityExporter; import it.integry.ems.product.export.services.*; import org.springframework.web.context.ContextLoader; @@ -34,6 +35,10 @@ public class ArticoliExporter extends BaseEntityExporter implements IEntityExpor case SLIM2K: Slim2kService slim2kService = context.getBean(Slim2kService.class); return slim2kService.export(type, format); + case EXCEL: + case CSV: + ExportFromQuery expq = ContextLoader.getCurrentWebApplicationContext().getBean(ExportFromQuery.class); + return expq.export(username, type, format, whereCond); default: throw new Exception(String.format("Formato %s non supportato", format)); } @@ -49,7 +54,9 @@ public class ArticoliExporter extends BaseEntityExporter implements IEntityExpor WBC_STOCK_LIST("GET_STOCK_LIST"), YOCABE("YOCABE"), SLIM2K("SLIM2K"), - WOOCOMMERCE_STOCK("WOOCOMMERCE_STOCK"); + WOOCOMMERCE_STOCK("WOOCOMMERCE_STOCK"), + EXCEL("EXCEL"), + CSV("CSV"); private String text;