29 lines
587 B
C#
29 lines
587 B
C#
namespace LaaProductionWeb.Services.Models
|
|
{
|
|
public class SerialNr
|
|
{
|
|
private int id;
|
|
|
|
public int Id
|
|
{
|
|
get => this.id;
|
|
set
|
|
{
|
|
this.id = value;
|
|
this.IsScaned = this.id > 0;
|
|
}
|
|
}
|
|
|
|
public int Nr { get; set; }
|
|
|
|
public int PositionNr { get; set; }
|
|
|
|
public int? PalletNr { get; set; }
|
|
|
|
public string ClientNr { get; set; }
|
|
|
|
public bool IsScaned { get; set; }
|
|
|
|
public string BarcodeNr => this.ClientNr ?? $"{this.Nr}";
|
|
}
|
|
} |