Fix gestione allegati e creato metodo di esportazione log

This commit is contained in:
2026-03-04 11:51:42 +01:00
parent 3760e38c8d
commit 2d938fb210
26 changed files with 986 additions and 384 deletions

View File

@@ -9,7 +9,7 @@
@inject IIspezioniService IspezioniService
@inject IIntegrySteupService IntegrySteupService
@inject IDialogService Dialog
@inject IAttachedService AttachedService
@inject IFileManager FileManager
<div class="scheda-card">
<div class="scheda-body-section">
@@ -104,7 +104,7 @@
{
foreach (var fileName in Scheda.ImageNames)
{
AttachedService.RemoveInspectionFile(Ispezione, fileName);
FileManager.RemoveInspectionFile(Ispezione, fileName);
}
}
@@ -159,7 +159,7 @@
{
if (Scheda.ImageNames == null) return;
var fileList = (await AttachedService.GetInspectionFiles(Ispezione, Scheda.ImageNames))?
var fileList = (await FileManager.GetInspectionFiles(Ispezione, Scheda.ImageNames))?
.Where(x => x.ToUpload).ToList();
if (fileList == null) return;