Gestiti allegati nel form

This commit is contained in:
2026-02-20 15:29:32 +01:00
parent eef5055bfa
commit b39b7ba751
26 changed files with 512 additions and 263 deletions

View File

@@ -4,7 +4,7 @@ using SteUp.Shared.Core.Dto;
namespace SteUp.Shared.Core.Entities;
public class Scheda
public class Scheda : EntityBase<Scheda>
{
[Key]
public int Id { get; set; }
@@ -28,24 +28,24 @@ public class Scheda
{
get
{
if (_reparto == null && CodJfas != null)
if (field == null && CodJfas != null)
{
_reparto = new JtbFasiDto
field = new JtbFasiDto
{
CodJfas = CodJfas,
Descrizione = DescrizioneReparto
};
}
return _reparto;
return field;
}
set
{
_reparto = value;
field = value;
if (value == null) return;
CodJfas = value.CodJfas;
DescrizioneReparto = value.Descrizione;
}
}
private JtbFasiDto? _reparto;
}