Completata gestione allegati e riepilogo commessa

This commit is contained in:
2025-09-01 17:38:16 +02:00
parent 588dbe308a
commit 8be3fa9f9e
17 changed files with 341 additions and 60 deletions

View File

@@ -8,8 +8,12 @@ public class AttachedDTO
public string? MimeType { get; set; }
public long? DimensionBytes { get; set; }
public string? Path { get; set; }
public byte[]? FileContent { get; set; }
public byte[]? FileBytes { get; set; }
public Stream? FileContent =>
FileBytes is null ? null : new MemoryStream(FileBytes);
public double? Lat { get; set; }
public double? Lng { get; set; }

View File

@@ -0,0 +1,27 @@
using System.Text.Json.Serialization;
namespace salesbook.Shared.Core.Dto;
public class CRMAttachedResponseDTO
{
[JsonPropertyName("fileName")]
public string FileName { get; set; }
[JsonPropertyName("description")]
public string? Description { get; set; }
[JsonPropertyName("dateAttached")]
public DateTime DateAttached { get; set; }
[JsonPropertyName("fileSize")]
public decimal FileSize { get; set; }
[JsonPropertyName("refUuid")]
public string RefUuid { get; set; }
[JsonPropertyName("refAttached")]
public string RefAttached { get; set; }
[JsonPropertyName("activity")]
public bool IsActivity { get; set; }
}

View File

@@ -0,0 +1,13 @@
using System.Text.Json.Serialization;
using Java.Time;
namespace salesbook.Shared.Core.Dto;
public class CRMRetrieveActivityRequestDTO
{
[JsonPropertyName("dateFilter")]
public string? DateFilter { get; set; }
[JsonPropertyName("codJcom")]
public string? CodJcom { get; set; }
}