-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathNotaFiscalViewModel.cs
More file actions
32 lines (24 loc) · 1007 Bytes
/
NotaFiscalViewModel.cs
File metadata and controls
32 lines (24 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Application.Model
{
public class NotaFiscalViewModel
{
[Key]
public int Id { get; set; }
[Required(ErrorMessage = "O numero da nota fiscal é obrigatório.")]
public string Numero { get; set; }
[Required(ErrorMessage = "O valor total da nota fiscal é obrigatório.")]
public decimal ValorTotal { get; set; }
[Required(ErrorMessage = "A data da nota fiscal é obrigatória.")]
public DateTime Data { get; set; }
[Required(ErrorMessage = "O CNPJ do emissor da nota fiscal é obrigatório.")]
public string CNPJEmissor { get; set; }
[Required(ErrorMessage = "O CNPJ do destinatário da nota fiscal é obrigatório.")]
public string CNPJDestinatario { get; set; }
public DateTime DataCadastro { get; set; }
public bool Ativo { get; set; }
}
}