Gestiti allegati nel form
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user