Implentata scansione barcode e lista articoli nel form scheda
This commit is contained in:
@@ -17,6 +17,7 @@ public class Scheda : EntityBase<Scheda>
|
||||
public string Rilevatore { get; set; } = string.Empty;
|
||||
public Ispezione? Ispezione { get; set; }
|
||||
|
||||
public List<SchedaArticolo> Articoli { get; set; } = [];
|
||||
public List<string>? ImageNames { get; set; }
|
||||
|
||||
public string? DescrizioneReparto { get; set; }
|
||||
|
||||
24
SteUp.Shared/Core/Entities/SchedaArticolo.cs
Normal file
24
SteUp.Shared/Core/Entities/SchedaArticolo.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace SteUp.Shared.Core.Entities;
|
||||
|
||||
public class SchedaArticolo
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public int SchedaId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(SchedaId))]
|
||||
public Scheda Scheda { get; set; } = null!;
|
||||
|
||||
[Required]
|
||||
[MaxLength(64)]
|
||||
public string Barcode { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[MaxLength(256)]
|
||||
public string Descrizione { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user