Subversion Repositories Integrator Subversion

Rev

Rev 259 | Rev 467 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 259 Rev 462
Line 4... Line 4...
4
4
5
public class NotaFiscalDTO implements Serializable {
5
public class NotaFiscalDTO implements Serializable {
6
6
7
        private static final long serialVersionUID = 1L;
7
        private static final long serialVersionUID = 1L;
8
8
9
        /*
-
 
10
        private Long sequencialNotaFiscal;
9
        private Long sequencialNotaFiscal;
-
 
10
        private String chave;
-
 
11
       
-
 
12
        /*
11
        private Venda venda;
13
        private Venda venda;
12
       
14
       
13
        private Pessoa pessoaJuridica;
15
        private Pessoa pessoaJuridica;
14
        private Endereco enderecoEmitente;
16
        private Endereco enderecoEmitente;
15
        private List<NfceItemDTO> itens = new ArrayList<NfceItemDTO>();
17
        private List<NfceItemDTO> itens = new ArrayList<NfceItemDTO>();
16
        private List<NfcePagamentoDTO> pagamentos = new ArrayList<NfcePagamentoDTO>();
18
        private List<NfcePagamentoDTO> pagamentos = new ArrayList<NfcePagamentoDTO>();
17
       
19
       
18
        private String numero = "";
20
        private String numero = "";
19
        private String serie = "";
21
        private String serie = "";
20
        private String dataHoraEmissao = "";
22
        private String dataHoraEmissao = "";
21
        private String chave = "";
-
 
22
        private String protocoloAutorizacao = "";
23
        private String protocoloAutorizacao = "";
23
        private String cpfCnpjConsumidor = "";
24
        private String cpfCnpjConsumidor = "";
24
        private String caminhoQrCode = "";
25
        private String caminhoQrCode = "";
25
        */
26
        */
26
       
27
       
27
        public NotaFiscalDTO() {}
-
 
-
 
28
        public NotaFiscalDTO() {
-
 
29
                setChave("");
-
 
30
        }
-
 
31
       
-
 
32
        public static String CONSULTA_DTO_SIMPLES = "e.sequencial, e.chave";
-
 
33
        public NotaFiscalDTO(Long sequencial, String chave) {
-
 
34
                this.sequencialNotaFiscal = sequencial;
-
 
35
                this.chave = chave;
-
 
36
        }
-
 
37
       
-
 
38
        public Long getSequencialNotaFiscal() {
-
 
39
                return sequencialNotaFiscal;
-
 
40
        }
-
 
41
        public void setSequencialNotaFiscal(Long sequencialNotaFiscal) {
-
 
42
                this.sequencialNotaFiscal = sequencialNotaFiscal;
-
 
43
        }
-
 
44
       
-
 
45
        public String getChave() {
-
 
46
                return chave;
-
 
47
        }
-
 
48
        public void setChave(String chave) {
-
 
49
                this.chave = chave;
-
 
50
        }
-
 
51
       
28
        /*
52
        /*
29
        public NotaFiscalDTO(Venda venda) {
53
        public NotaFiscalDTO(Venda venda) {
30
                this.venda = venda;
54
                this.venda = venda;
31
                if (VerificadorUtil.naoEstaNulo(venda.getCliente())) {
55
                if (VerificadorUtil.naoEstaNulo(venda.getCliente())) {
32
                        this.setCpfCnpjConsumidor(venda.getCliente().getCpfCnpj());
56
                        this.setCpfCnpjConsumidor(venda.getCliente().getCpfCnpj());