Subversion Repositories Integrator Subversion

Rev

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

Rev 472 Rev 474
Line 13... Line 13...
13
import javax.persistence.GeneratedValue;
13
import javax.persistence.GeneratedValue;
14
import javax.persistence.GenerationType;
14
import javax.persistence.GenerationType;
15
import javax.persistence.Id;
15
import javax.persistence.Id;
16
import javax.persistence.JoinColumn;
16
import javax.persistence.JoinColumn;
17
import javax.persistence.ManyToOne;
17
import javax.persistence.ManyToOne;
-
 
18
import javax.persistence.OneToOne;
18
import javax.persistence.SequenceGenerator;
19
import javax.persistence.SequenceGenerator;
19
import javax.persistence.Table;
20
import javax.persistence.Table;
20
import javax.persistence.Transient;
21
import javax.persistence.Transient;
21
import javax.validation.constraints.NotNull;
22
import javax.validation.constraints.NotNull;
22
import javax.validation.constraints.Size;
23
import javax.validation.constraints.Size;
Line 72... Line 73...
72
       
73
       
73
        private Venda venda;
74
        private Venda venda;
74
        private Pessoa pessoaEmitente;
75
        private Pessoa pessoaEmitente;
75
        private Pessoa pessoaDestinatario;
76
        private Pessoa pessoaDestinatario;
76
        private String observacaoVenda;
77
        private String observacaoVenda;
77
//      private Transporte transporte;
-
 
-
 
78
78
        private String descricaoComplementares;
79
        private String descricaoComplementares;
79
       
80
       
80
        private String textoXml;
81
        private String textoXml;
81
        private String tipoNotaFiscal;
82
        private String tipoNotaFiscal;
82
       
83
       
Line 85... Line 86...
85
       
86
       
86
        private String statusRetorno;
87
        private String statusRetorno;
87
        private String motivoRetorno;
88
        private String motivoRetorno;
88
        private Date dataHoraEvento;
89
        private Date dataHoraEvento;
89
        private String textoXmlEvento;
90
        private String textoXmlEvento;
-
 
91
       
-
 
92
        private Double valorFrete;
-
 
93
        private Double valorSeguro;
-
 
94
        private Double valorDesconto;
-
 
95
        private Double outrasDespesas;
-
 
96
       
-
 
97
        private Transporte transporte;
90
       
98
       
91
        private byte[] arquivoXml;
99
        private byte[] arquivoXml;
92
       
100
       
93
//      private List<Parcela> listaParcelas;
101
//      private List<Parcela> listaParcelas;
94
//      private List<CompraProduto> listaCompraProduto;
102
//      private List<CompraProduto> listaCompraProduto;
Line 318... Line 326...
318
                return textoXmlEvento;
326
                return textoXmlEvento;
319
        }
327
        }
320
        public void setTextoXmlEvento(String textoXmlEvento) {
328
        public void setTextoXmlEvento(String textoXmlEvento) {
321
                this.textoXmlEvento = textoXmlEvento;
329
                this.textoXmlEvento = textoXmlEvento;
322
        }
330
        }
-
 
331
       
-
 
332
        @OneToOne
-
 
333
        @JoinColumn(name="seq_transporte", referencedColumnName="seq_transporte", insertable=true, updatable=true,  nullable=true)
-
 
334
        public Transporte getTransporte() {
-
 
335
                return transporte;
-
 
336
        }
-
 
337
        public void setTransporte(Transporte transporte) {
-
 
338
                this.transporte = transporte;
-
 
339
        }
-
 
340
       
-
 
341
        /********************************************/
323
       
342
       
324
        @Transient
343
        @Transient
325
        public Boolean temPessoaJuridica() {
344
        public Boolean temPessoaJuridica() {
326
                if (VerificadorUtil.estaNulo(getVenda())) return false;
345
                if (VerificadorUtil.estaNulo(getVenda())) return false;
327
                if (VerificadorUtil.estaNulo(getVenda().getLoja())) return false;
346
                if (VerificadorUtil.estaNulo(getVenda().getLoja())) return false;