Aggiunto XLSX a esportazione CMD2Export
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit is unstable

This commit is contained in:
2025-01-10 19:40:29 +01:00
parent e7e683f3bb
commit 067c88ae08
3 changed files with 20 additions and 0 deletions

16
.idea/runConfigurations/Tomcat9__1.xml generated Normal file
View File

@@ -0,0 +1,16 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Tomcat9 #1" type="Remote" folderName="Frudis">
<module name="ems-engine" />
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="false" />
<option name="SHMEM_ADDRESS" />
<option name="HOST" value="127.0.0.1" />
<option name="PORT" value="8001" />
<option name="AUTO_RESTART" value="false" />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="8001" />
<option name="LOCAL" value="false" />
</RunnerSettings>
<method v="2" />
</configuration>
</component>

View File

@@ -8,6 +8,7 @@ public class ConvertQueryDTO {
public enum Format {
XLS("XLS"),
XLSX("XLSX"),
XML("XML"),
CSV("CSV"),
TXT("TXT"),

View File

@@ -1619,6 +1619,9 @@ public class SystemController {
case XLS:
fileContent = UtilityResultSet.mapResultSetToXls(resultSet, "Foglio 1", false);
break;
case XLSX:
fileContent = UtilityResultSet.mapResultSetToXlsx(resultSet, "Foglio 1", false);
break;
case XML:
String xmlContent = UtilityResultSet.mapResultSetToXML(resultSet, "element");
fileContent = xmlContent.getBytes();