Gestite immagini allegate
This commit is contained in:
@@ -13,6 +13,9 @@ public class AttachedDto
|
||||
|
||||
public string? TempPath { get; set; }
|
||||
public string? ThumbPath { get; set; }
|
||||
|
||||
public bool SavedOnAppData { get; set; }
|
||||
public bool ToRemove { get; set; }
|
||||
|
||||
public Stream? FileContent =>
|
||||
FileBytes is null ? null : new MemoryStream(FileBytes);
|
||||
|
||||
@@ -16,7 +16,9 @@ public class Scheda : EntityBase<Scheda>
|
||||
[Required]
|
||||
public string Rilevatore { get; set; } = string.Empty;
|
||||
public Ispezione? Ispezione { get; set; }
|
||||
|
||||
|
||||
public List<string>? ImageNames { get; set; }
|
||||
|
||||
public string? DescrizioneReparto { get; set; }
|
||||
public string? ActivityTypeId { get; set; }
|
||||
public string? Note { get; set; }
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using SteUp.Shared.Core.Dto;
|
||||
using SteUp.Shared.Core.Entities;
|
||||
|
||||
namespace SteUp.Shared.Core.Interface.System;
|
||||
|
||||
@@ -6,6 +7,10 @@ public interface IAttachedService
|
||||
{
|
||||
Task<AttachedDto?> SelectImageFromCamera();
|
||||
Task<List<AttachedDto>?> SelectImageFromGallery();
|
||||
|
||||
Task<List<AttachedDto>?> GetInspectionFiles(Ispezione ispezione);
|
||||
Task<string?> SaveInspectionFile(Ispezione ispezione, byte[] file, string fileName, CancellationToken ct = default);
|
||||
bool RemoveInspectionFile(Ispezione ispezione, string fileName);
|
||||
|
||||
Task<string> SaveToTempStorage(Stream file, string fileName, CancellationToken ct = default);
|
||||
Task CleanTempStorageAsync(CancellationToken ct = default);
|
||||
|
||||
Reference in New Issue
Block a user