fixes bug#24059
dev: Celio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/GeneradorBoletosCNAB/trunk@110844 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
55cda01498
commit
1a7cd9f86e
|
@ -1,9 +1,20 @@
|
||||||
package com.rjconsultores.ventaboletos.blocos;
|
package com.rjconsultores.ventaboletos.blocos;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
public class CabecalhoRetorno {
|
public class CabecalhoRetorno {
|
||||||
|
|
||||||
private String codEmpresa;
|
private String codEmpresa;
|
||||||
private String numeroDoAvisoBancario;
|
private String numeroDoAvisoBancario;
|
||||||
|
private Integer agencia;
|
||||||
|
private Integer conta;
|
||||||
|
private Integer dacConta;
|
||||||
|
private String nomeEmpresa;
|
||||||
|
private String codigoBanco;
|
||||||
|
private String nomeBanco;
|
||||||
|
private Date dataGeracao;
|
||||||
|
private Integer numeroSequencialRegistro;
|
||||||
|
private Integer numeroSequencialRemessa;
|
||||||
|
|
||||||
public String getCodEmpresa() {
|
public String getCodEmpresa() {
|
||||||
return codEmpresa;
|
return codEmpresa;
|
||||||
|
@ -11,11 +22,65 @@ public class CabecalhoRetorno {
|
||||||
public void setCodEmpresa(String codEmpresa) {
|
public void setCodEmpresa(String codEmpresa) {
|
||||||
this.codEmpresa = codEmpresa;
|
this.codEmpresa = codEmpresa;
|
||||||
}
|
}
|
||||||
|
public Integer getConta() {
|
||||||
|
return conta;
|
||||||
|
}
|
||||||
|
public void setConta(Integer conta) {
|
||||||
|
this.conta = conta;
|
||||||
|
}
|
||||||
|
public Integer getDacConta() {
|
||||||
|
return dacConta;
|
||||||
|
}
|
||||||
|
public void setDacConta(Integer dacConta) {
|
||||||
|
this.dacConta = dacConta;
|
||||||
|
}
|
||||||
|
public String getNomeEmpresa() {
|
||||||
|
return nomeEmpresa;
|
||||||
|
}
|
||||||
|
public void setNomeEmpresa(String nomeEmpresa) {
|
||||||
|
this.nomeEmpresa = nomeEmpresa;
|
||||||
|
}
|
||||||
|
public String getCodigoBanco() {
|
||||||
|
return codigoBanco;
|
||||||
|
}
|
||||||
|
public void setCodigoBanco(String codigoBanco) {
|
||||||
|
this.codigoBanco = codigoBanco;
|
||||||
|
}
|
||||||
|
public String getNomeBanco() {
|
||||||
|
return nomeBanco;
|
||||||
|
}
|
||||||
|
public void setNomeBanco(String nomeBanco) {
|
||||||
|
this.nomeBanco = nomeBanco;
|
||||||
|
}
|
||||||
|
public Date getDataGeracao() {
|
||||||
|
return dataGeracao;
|
||||||
|
}
|
||||||
|
public void setDataGeracao(Date dataGeracao) {
|
||||||
|
this.dataGeracao = dataGeracao;
|
||||||
|
}
|
||||||
|
public Integer getNumeroSequencialRegistro() {
|
||||||
|
return numeroSequencialRegistro;
|
||||||
|
}
|
||||||
|
public void setNumeroSequencialRegistro(Integer numeroSequencialRegistro) {
|
||||||
|
this.numeroSequencialRegistro = numeroSequencialRegistro;
|
||||||
|
}
|
||||||
|
public Integer getNumeroSequencialRemessa() {
|
||||||
|
return numeroSequencialRemessa;
|
||||||
|
}
|
||||||
|
public void setNumeroSequencialRemessa(Integer numeroSequencialRemessa) {
|
||||||
|
this.numeroSequencialRemessa = numeroSequencialRemessa;
|
||||||
|
}
|
||||||
public String getNumeroDoAvisoBancario() {
|
public String getNumeroDoAvisoBancario() {
|
||||||
return numeroDoAvisoBancario;
|
return numeroDoAvisoBancario;
|
||||||
}
|
}
|
||||||
public void setNumeroDoAvisoBancario(String numeroDoAvisoBancario) {
|
public void setNumeroDoAvisoBancario(String numeroDoAvisoBancario) {
|
||||||
this.numeroDoAvisoBancario = numeroDoAvisoBancario;
|
this.numeroDoAvisoBancario = numeroDoAvisoBancario;
|
||||||
}
|
}
|
||||||
|
public Integer getAgencia() {
|
||||||
|
return agencia;
|
||||||
|
}
|
||||||
|
public void setAgencia(Integer agencia) {
|
||||||
|
this.agencia = agencia;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,39 +1,11 @@
|
||||||
package com.rjconsultores.ventaboletos.blocos;
|
package com.rjconsultores.ventaboletos.blocos;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
public interface DetalheRetorno {
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.enuns.MotivoOcorrenciaBradesco;
|
public void setIdBoletoFechamento(Integer id);
|
||||||
import com.rjconsultores.ventaboletos.enuns.OcorrenciaBradesco;
|
public Integer getIdBoletoFechamento();
|
||||||
|
public void setNossoNumero(String nossoNumero);
|
||||||
public class DetalheRetorno {
|
public String getNossoNumero();
|
||||||
|
public void setNumeroSequencialRegistro(Integer numeroSequencialRegistro);
|
||||||
private String numeroControleDoParticipante;
|
|
||||||
private OcorrenciaBradesco ocorrencia;
|
|
||||||
private List<MotivoOcorrenciaBradesco> motivoOcorrencias;
|
|
||||||
|
|
||||||
public String getNumeroControleDoParticipante() {
|
|
||||||
return numeroControleDoParticipante;
|
|
||||||
}
|
|
||||||
public void setNumeroControleDoParticipante(String numeroControleDoParticipante) {
|
|
||||||
this.numeroControleDoParticipante = numeroControleDoParticipante;
|
|
||||||
}
|
|
||||||
public OcorrenciaBradesco getOcorrencia() {
|
|
||||||
return ocorrencia;
|
|
||||||
}
|
|
||||||
public void setOcorrencia(OcorrenciaBradesco ocorrencia) {
|
|
||||||
this.ocorrencia = ocorrencia;
|
|
||||||
}
|
|
||||||
public List<MotivoOcorrenciaBradesco> getMotivoOcorrencias() {
|
|
||||||
return motivoOcorrencias;
|
|
||||||
}
|
|
||||||
public void addMotivoOcorrencia(MotivoOcorrenciaBradesco motivoOcorrencias) {
|
|
||||||
|
|
||||||
if(this.motivoOcorrencias == null){
|
|
||||||
this.motivoOcorrencias = new ArrayList<MotivoOcorrenciaBradesco>();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.motivoOcorrencias.add(motivoOcorrencias);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,73 @@
|
||||||
|
package com.rjconsultores.ventaboletos.blocos.bradesco;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.blocos.DetalheRetorno;
|
||||||
|
import com.rjconsultores.ventaboletos.enuns.MotivoOcorrenciaBradesco;
|
||||||
|
import com.rjconsultores.ventaboletos.enuns.OcorrenciaBradesco;
|
||||||
|
|
||||||
|
public class DetalheRetornoBradesco implements DetalheRetorno, Cloneable{
|
||||||
|
|
||||||
|
private String numeroControleDoParticipante;
|
||||||
|
private OcorrenciaBradesco ocorrencia;
|
||||||
|
private List<MotivoOcorrenciaBradesco> motivoOcorrencias;
|
||||||
|
private Integer idBoletoFechamento;
|
||||||
|
private String nossoNumero;
|
||||||
|
private Integer numeroSequencialRegistro;
|
||||||
|
|
||||||
|
public String getNumeroControleDoParticipante() {
|
||||||
|
return numeroControleDoParticipante;
|
||||||
|
}
|
||||||
|
public void setNumeroControleDoParticipante(String numeroControleDoParticipante) {
|
||||||
|
this.numeroControleDoParticipante = numeroControleDoParticipante;
|
||||||
|
}
|
||||||
|
public OcorrenciaBradesco getOcorrencia() {
|
||||||
|
return ocorrencia;
|
||||||
|
}
|
||||||
|
public void setOcorrencia(OcorrenciaBradesco ocorrencia) {
|
||||||
|
this.ocorrencia = ocorrencia;
|
||||||
|
}
|
||||||
|
public List<MotivoOcorrenciaBradesco> getMotivoOcorrencias() {
|
||||||
|
return motivoOcorrencias;
|
||||||
|
}
|
||||||
|
public void addMotivoOcorrencia(MotivoOcorrenciaBradesco motivoOcorrencias) {
|
||||||
|
|
||||||
|
if(this.motivoOcorrencias == null){
|
||||||
|
this.motivoOcorrencias = new ArrayList<MotivoOcorrenciaBradesco>();
|
||||||
|
}
|
||||||
|
|
||||||
|
this.motivoOcorrencias.add(motivoOcorrencias);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getIdBoletoFechamento() {
|
||||||
|
return idBoletoFechamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdBoletoFechamento(Integer idBoletoFechamento) {
|
||||||
|
this.idBoletoFechamento = idBoletoFechamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNossoNumero() {
|
||||||
|
return nossoNumero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNossoNumero(String nossoNumero) {
|
||||||
|
this.nossoNumero = nossoNumero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getNumeroSequencialRegistro() {
|
||||||
|
return numeroSequencialRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumeroSequencialRegistro(Integer numeroSequencialRegistro) {
|
||||||
|
this.numeroSequencialRegistro = numeroSequencialRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMotivoOcorrencias(List<MotivoOcorrenciaBradesco> motivoOcorrencias) {
|
||||||
|
this.motivoOcorrencias = motivoOcorrencias;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
package com.rjconsultores.ventaboletos.blocos.itau;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.blocos.DetalheRetorno;
|
||||||
|
|
||||||
|
public class DetalheRetornoItau implements DetalheRetorno, Cloneable{
|
||||||
|
|
||||||
|
private Integer idBoletoFechamento;
|
||||||
|
private String nossoNumero;
|
||||||
|
private Integer numeroSequencialRegistro;
|
||||||
|
|
||||||
|
|
||||||
|
public Integer getIdBoletoFechamento() {
|
||||||
|
return idBoletoFechamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdBoletoFechamento(Integer idBoletoFechamento) {
|
||||||
|
this.idBoletoFechamento = idBoletoFechamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNossoNumero() {
|
||||||
|
return nossoNumero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNossoNumero(String nossoNumero) {
|
||||||
|
this.nossoNumero = nossoNumero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getNumeroSequencialRegistro() {
|
||||||
|
return numeroSequencialRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumeroSequencialRegistro(Integer numeroSequencialRegistro) {
|
||||||
|
this.numeroSequencialRegistro = numeroSequencialRegistro;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -15,6 +15,7 @@ import com.rjconsultores.ventaboletos.blocos.DetalheRetorno;
|
||||||
import com.rjconsultores.ventaboletos.blocos.RateioDeCredito;
|
import com.rjconsultores.ventaboletos.blocos.RateioDeCredito;
|
||||||
import com.rjconsultores.ventaboletos.blocos.RodapeRemessa;
|
import com.rjconsultores.ventaboletos.blocos.RodapeRemessa;
|
||||||
import com.rjconsultores.ventaboletos.blocos.RodapeRetorno;
|
import com.rjconsultores.ventaboletos.blocos.RodapeRetorno;
|
||||||
|
import com.rjconsultores.ventaboletos.blocos.bradesco.DetalheRetornoBradesco;
|
||||||
import com.rjconsultores.ventaboletos.enuns.BancoLayout;
|
import com.rjconsultores.ventaboletos.enuns.BancoLayout;
|
||||||
import com.rjconsultores.ventaboletos.enuns.MotivoOcorrenciaBradesco;
|
import com.rjconsultores.ventaboletos.enuns.MotivoOcorrenciaBradesco;
|
||||||
import com.rjconsultores.ventaboletos.enuns.OcorrenciaBradesco;
|
import com.rjconsultores.ventaboletos.enuns.OcorrenciaBradesco;
|
||||||
|
@ -70,7 +71,7 @@ public class BradescoProcessaRetorno extends AbstractFlatFile implements Retorno
|
||||||
|
|
||||||
for (Record record : registrosDeTransacoes) {
|
for (Record record : registrosDeTransacoes) {
|
||||||
|
|
||||||
DetalheRetorno detalheRetorno = new DetalheRetorno();
|
DetalheRetornoBradesco detalheRetorno = new DetalheRetornoBradesco();
|
||||||
|
|
||||||
String numeroControleDoParticipante = record.getValue("NumeroControleDoParticipante");
|
String numeroControleDoParticipante = record.getValue("NumeroControleDoParticipante");
|
||||||
String codigoDeOcorrencia = record.getValue("CodigoDeOcorrencia");
|
String codigoDeOcorrencia = record.getValue("CodigoDeOcorrencia");
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class SantanderProcessaRetorno extends AbstractFlatFile implements Retorn
|
||||||
List<DetalheRetorno> retornos = new ArrayList<DetalheRetorno>();
|
List<DetalheRetorno> retornos = new ArrayList<DetalheRetorno>();
|
||||||
|
|
||||||
for (Record record : registrosDeTransacoes) {
|
for (Record record : registrosDeTransacoes) {
|
||||||
|
/*
|
||||||
DetalheRetorno detalheRetorno = new DetalheRetorno();
|
DetalheRetorno detalheRetorno = new DetalheRetorno();
|
||||||
|
|
||||||
String numeroControleDoParticipante = record.getValue("NumeroControleDoParticipante");
|
String numeroControleDoParticipante = record.getValue("NumeroControleDoParticipante");
|
||||||
|
@ -77,7 +77,7 @@ public class SantanderProcessaRetorno extends AbstractFlatFile implements Retorn
|
||||||
String codigoDeMotivo3 = record.getValue("CodigoDeMotivo3");
|
String codigoDeMotivo3 = record.getValue("CodigoDeMotivo3");
|
||||||
String codigoDeMotivo4 = record.getValue("CodigoDeMotivo4");
|
String codigoDeMotivo4 = record.getValue("CodigoDeMotivo4");
|
||||||
String codigoDeMotivo5 = record.getValue("CodigoDeMotivo5");
|
String codigoDeMotivo5 = record.getValue("CodigoDeMotivo5");
|
||||||
/*
|
|
||||||
OcorrenciaSantander ocorrencia = OcorrenciaSantander.getInstance(codigoDeOcorrencia);
|
OcorrenciaSantander ocorrencia = OcorrenciaSantander.getInstance(codigoDeOcorrencia);
|
||||||
detalheRetorno.setNumeroControleDoParticipante(numeroControleDoParticipante);
|
detalheRetorno.setNumeroControleDoParticipante(numeroControleDoParticipante);
|
||||||
detalheRetorno.setOcorrencia(ocorrencia);
|
detalheRetorno.setOcorrencia(ocorrencia);
|
||||||
|
@ -106,9 +106,9 @@ public class SantanderProcessaRetorno extends AbstractFlatFile implements Retorn
|
||||||
MotivoOcorrenciaSantander motivoOcorrencia = MotivoOcorrenciaSantander.getInstance(ocorrencia, codigoDeMotivo5);
|
MotivoOcorrenciaSantander motivoOcorrencia = MotivoOcorrenciaSantander.getInstance(ocorrencia, codigoDeMotivo5);
|
||||||
detalheRetorno.addMotivoOcorrencia(motivoOcorrencia);
|
detalheRetorno.addMotivoOcorrencia(motivoOcorrencia);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
retornos.add(detalheRetorno);
|
retornos.add(detalheRetorno);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
return retornos;
|
return retornos;
|
||||||
|
|
Loading…
Reference in New Issue