Napol
This commit is contained in:
@@ -5,12 +5,13 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using EveryThing.Models.CodeTable;
|
||||
using MessagePack;
|
||||
|
||||
namespace EveryThing.Models.Transport
|
||||
{
|
||||
public class TransportLoadingOrder
|
||||
{
|
||||
[Key]
|
||||
[System.ComponentModel.DataAnnotations.Key]
|
||||
public int IdTransportLoadingOrder { get; set; }
|
||||
|
||||
[Required]
|
||||
@@ -28,6 +29,9 @@ namespace EveryThing.Models.Transport
|
||||
[Required]
|
||||
public int OrderYear { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string OrderNumberDisplay => $"{OrderYear}-{OrderNumber:D5}";
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Kraj naloga")]
|
||||
public string OrderCity { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user