Rev 465 | Rev 474 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 465 | Rev 472 | ||
|---|---|---|---|
| Line 6... | Line 6... | ||
| 6 | import java.io.Serializable; |
6 | import java.io.Serializable; |
| 7 | import java.io.StringReader; |
7 | import java.io.StringReader; |
| 8 | import java.util.Date; |
8 | import java.util.Date; |
| 9 | import java.util.List; |
9 | import java.util.List; |
| 10 | 10 | ||
| 11 | import javax.persistence.CascadeType; |
- | |
| 12 | import javax.persistence.Column; |
11 | import javax.persistence.Column; |
| 13 | import javax.persistence.Entity; |
12 | import javax.persistence.Entity; |
| 14 | import javax.persistence.GeneratedValue; |
13 | import javax.persistence.GeneratedValue; |
| 15 | import javax.persistence.GenerationType; |
14 | import javax.persistence.GenerationType; |
| 16 | import javax.persistence.Id; |
15 | import javax.persistence.Id; |
| 17 | import javax.persistence.JoinColumn; |
16 | import javax.persistence.JoinColumn; |
| 18 | import javax.persistence.ManyToOne; |
17 | import javax.persistence.ManyToOne; |
| 19 | import javax.persistence.OneToMany; |
- | |
| 20 | import javax.persistence.SequenceGenerator; |
18 | import javax.persistence.SequenceGenerator; |
| 21 | import javax.persistence.Table; |
19 | import javax.persistence.Table; |
| 22 | import javax.persistence.Transient; |
20 | import javax.persistence.Transient; |
| 23 | import javax.validation.constraints.NotNull; |
21 | import javax.validation.constraints.NotNull; |
| 24 | import javax.validation.constraints.Size; |
22 | import javax.validation.constraints.Size; |
| Line 43... | Line 41... | ||
| 43 | import br.com.ec.core.interfaces.Alterar; |
41 | import br.com.ec.core.interfaces.Alterar; |
| 44 | import br.com.ec.core.interfaces.Cadastrar; |
42 | import br.com.ec.core.interfaces.Cadastrar; |
| 45 | import br.com.ec.core.util.StringUtil; |
43 | import br.com.ec.core.util.StringUtil; |
| 46 | import br.com.ec.core.util.VerificadorUtil; |
44 | import br.com.ec.core.util.VerificadorUtil; |
| 47 | import br.com.ec.domain.dto.NotaFiscalProdutoDTO; |
45 | import br.com.ec.domain.dto.NotaFiscalProdutoDTO; |
| 48 | import br.com.ec.domain.dto.NotaFiscalReferenciadaDTO; |
- | |
| 49 | import br.com.ec.domain.model.nfe.TipoModeloNotaFiscal; |
46 | import br.com.ec.domain.model.nfe.TipoModeloNotaFiscal; |
| 50 | import br.com.ec.domain.model.nfe.TipoNotaFiscal; |
47 | import br.com.ec.domain.model.nfe.TipoNotaFiscal; |
| 51 | import br.com.ec.domain.model.nfe.TipoNotaFiscalNaturezaOperacao; |
48 | import br.com.ec.domain.model.nfe.TipoNotaFiscalNaturezaOperacao; |
| 52 | import br.com.ec.domain.model.nfe.TipoNotaFiscalPresencaComprador; |
49 | import br.com.ec.domain.model.nfe.TipoNotaFiscalPresencaComprador; |
| 53 | import br.com.ec.domain.model.nfe.TipoNotaFiscalStatusRetorno; |
50 | import br.com.ec.domain.model.nfe.TipoNotaFiscalStatusRetorno; |
| Line 97... | Line 94... | ||
| 97 | // private List<CompraProduto> listaCompraProduto;
|
94 | // private List<CompraProduto> listaCompraProduto;
|
| 98 | private List<Lancamento> listaLancamento; |
95 | private List<Lancamento> listaLancamento; |
| 99 | private List<VendaFormaPagamento> listaFormaPagamento; |
96 | private List<VendaFormaPagamento> listaFormaPagamento; |
| 100 | 97 | ||
| 101 | private List<NotaFiscalProdutoDTO> listaProdutosVinculadosDTO; |
98 | private List<NotaFiscalProdutoDTO> listaProdutosVinculadosDTO; |
| 102 | private List<NotaFiscalReferenciadaDTO> listaNfeReferenciadasDTO; |
- | |
| 103 | 99 | ||
| 104 | private Boolean notaFiscalPendente; |
100 | private Boolean notaFiscalPendente; |
| 105 | 101 | ||
| 106 | public NotaFiscal() {} |
102 | public NotaFiscal() {} |
| 107 | 103 | ||
| Line 392... | Line 388... | ||
| 392 | public List<NotaFiscalProdutoDTO> getListaProdutosVinculadosDTO() { |
388 | public List<NotaFiscalProdutoDTO> getListaProdutosVinculadosDTO() { |
| 393 | return listaProdutosVinculadosDTO; |
389 | return listaProdutosVinculadosDTO; |
| 394 | }
|
390 | }
|
| 395 | public void setListaProdutosVinculadosDTO(List<NotaFiscalProdutoDTO> listaProdutosVinculadosDTO) { |
391 | public void setListaProdutosVinculadosDTO(List<NotaFiscalProdutoDTO> listaProdutosVinculadosDTO) { |
| 396 | this.listaProdutosVinculadosDTO = listaProdutosVinculadosDTO; |
392 | this.listaProdutosVinculadosDTO = listaProdutosVinculadosDTO; |
| 397 | }
|
- | |
| 398 | - | ||
| 399 | @Transient |
- | |
| 400 | public List<NotaFiscalReferenciadaDTO> getListaNfeReferenciadasDTO() { |
- | |
| 401 | return listaNfeReferenciadasDTO; |
- | |
| 402 | }
|
- | |
| 403 | public void setListaNfeReferenciadasDTO(List<NotaFiscalReferenciadaDTO> listaNfeReferenciadasDTO) { |
- | |
| 404 | this.listaNfeReferenciadasDTO = listaNfeReferenciadasDTO; |
- | |
| 405 | }
|
393 | }
|
| 406 | 394 | ||
| 407 | @Transient |
395 | @Transient |
| 408 | public Boolean getNotaFiscalPendente() { |
396 | public Boolean getNotaFiscalPendente() { |
| 409 | return notaFiscalPendente; |
397 | return notaFiscalPendente; |