Exportação Fiscal : ECF e RMD (issue 8120)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@73057 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
222e56b132
commit
a0ee9622cd
|
@ -13,6 +13,7 @@ import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoEC
|
|||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoECFTipoCFC;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoECFTipoICF;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoECFTipoPRC;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRMD;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRMDTipoBPS;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRMDTipoDBP;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRMDTipoPAR;
|
||||
|
@ -47,6 +48,8 @@ public interface FiscalDAO {
|
|||
|
||||
public List<ExportacaoECFTipoPRC> buscarRegistroECFTipoPRC(Connection connection, Date inicio, Date fim, Integer empresaId, String cveestado);
|
||||
|
||||
public ExportacaoRMD buscarRegistroRMD(Connection connection, Date inicio, Date fim, Integer empresaId, String cveestado);
|
||||
|
||||
public List<ExportacaoRMDTipoPAR> buscarRegistroRMDTipoPAR(Connection connection, Date inicio, Date fim, Integer empresaId, String cveestado);
|
||||
|
||||
public List<ExportacaoRMDTipoRMD> buscarRegistroRMDTipoRMD(Connection connection, Date inicio, Date fim, Integer empresaId, String cveestado);
|
||||
|
|
|
@ -42,6 +42,8 @@ import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoEC
|
|||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoECFTipoCFC;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoECFTipoICF;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoECFTipoPRC;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRMD;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRMDBase;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRMDTipoBPS;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRMDTipoDBP;
|
||||
import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRMDTipoPAR;
|
||||
|
@ -1445,7 +1447,7 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
sb.append(" and c.feccreacion >= to_date(?,'DD/MM/YYYY HH24:MI:SS') and c.feccreacion <= to_date(?,'DD/MM/YYYY HH24:MI:SS')");
|
||||
sb.append(" and c.empresacorrida_id = ?");
|
||||
sb.append(" and ((case when s.aliasorigen_id is null then eo.cveestado else eos.cveestado end) = ?)");
|
||||
// sb.append(" and r2.numserie20 = 'BE091410100011220387'");
|
||||
// sb.append(" and r2.numserie20 = 'BE091410100011239069'");
|
||||
|
||||
try {
|
||||
PreparedStatement ps = connection.prepareStatement(sb.toString());
|
||||
|
@ -2373,6 +2375,117 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
return retorno;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExportacaoRMD buscarRegistroRMD(Connection connection, Date inicio, Date fim, Integer empresaId, String cveestado) {
|
||||
ExportacaoRMD exportacaoRMD = new ExportacaoRMD();
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(" select");
|
||||
sb.append(" e.nombempresa as nome_empresa,");
|
||||
sb.append(" c.estado_id as cod_participante_empresa,");
|
||||
sb.append(" eif.codestabelecimento as cod_estabelecimento_empresa,");
|
||||
sb.append(" eof.cveestado as cveestado,");
|
||||
sb.append(" ie.cnpj as cnpj,");
|
||||
sb.append(" ie.numinscricaoestadual as numinscricaoestadual,");
|
||||
sb.append(" ie.logradouro as logradouro,");
|
||||
sb.append(" ie.numero as numero,");
|
||||
sb.append(" ie.complemento as complemento,");
|
||||
sb.append(" ie.bairro as bairro,");
|
||||
sb.append(" ie.cep as cep,");
|
||||
sb.append(" f.folio as num_formulario_bilhete,");
|
||||
sb.append(" cast(f.fechorfolio as date) as data_emissao,");
|
||||
sb.append(" (case when coalesce(f.indcancelacion, 0) = 1 then 'S' else 'N' end) as doc_cancelado,");
|
||||
sb.append(" eo.estado_id cod_participante,");
|
||||
sb.append(" ei.codestabelecimento as cod_estabelecimento,");
|
||||
sb.append(" b.aidf_id,");
|
||||
sb.append(" a.acfiscal as num_aidf,");
|
||||
sb.append(" a.serie as serie,");
|
||||
sb.append(" a.subserie as subserie,");
|
||||
sb.append(" b.boleto_id,");
|
||||
sb.append(" (case when b.indstatusboleto like 'C' then 1 else 0 end) as boleto_cancelado,");
|
||||
sb.append(" b.feccreacion as data_emissao,");
|
||||
sb.append(" b.numfoliopreimpreso as num_formulario,");
|
||||
sb.append(" b.preciopagado as valor_total,");
|
||||
sb.append(" b.rmd_id,");
|
||||
sb.append(" r.acfiscal as num_aidf_rmd,");
|
||||
sb.append(" r.serie as serie_rmd,");
|
||||
sb.append(" r.subserie as subserie_rmd,");
|
||||
sb.append(" b.foliormd as num_rmd,");
|
||||
sb.append(" eo.cveestado as estado_origem,");
|
||||
sb.append(" ed.cveestado as estado_destino,");
|
||||
sb.append(" co.codibge as municipio_origem,");
|
||||
sb.append(" (case when eo.cveestado = ed.cveestado then 5357 else 6357 end) as cod_operacao,");
|
||||
sb.append(" ei.porcredbaseicms as red_base_calc_icms,");
|
||||
sb.append(" ei.porcredmunicipal as porc_red_municipal,");
|
||||
sb.append(" ei.porcredestadual as porc_red_estadual,");
|
||||
sb.append(" ei.tributacaoimportacao as tributacao_importacao,");
|
||||
sb.append(" (case when coalesce(po.regionmetropolitana_id, -1) = coalesce(pd.regionmetropolitana_id ,-2) then 1 else 0 end) as reg_metropolitana_isenta,");
|
||||
sb.append(" (coalesce(b.preciopagado,0) - coalesce(b.importetaxaembarque,0) - coalesce(b.importepedagio,0) - coalesce(b.importeseguro,0) - coalesce(b.importeoutros,0)) as valor_tarifa,");
|
||||
sb.append(" b.preciopagado as valor_total");
|
||||
sb.append(" from folio_consumo_rmd f");
|
||||
sb.append(" join estado eof on eof.estado_id = f.estado_id");
|
||||
sb.append(" join aidf r on r.aidf_id = f.rmd_id");
|
||||
sb.append(" join empresa e on e.empresa_id = f.empresa_id");
|
||||
sb.append(" join ciudad c on c.ciudad_id = e.ciudad_id");
|
||||
sb.append(" left join empresa_imposto eif on eif.activo = 1 and eif.empresa_id = f.empresa_id and eif.estado_id = eof.estado_id");
|
||||
sb.append(" left join inscricao_estadual ie on ie.empresa_id = f.empresa_id and ie.estado_id = eof.estado_id and ie.activo = 1");
|
||||
|
||||
sb.append(" left join boleto b on b.activo = 1 and b.rmd_id = (case when coalesce(f.indcancelacion, 0) = 1 then -1 else f.rmd_id end) and b.empresacorrida_id = f.empresa_id and cast(b.fechorventa as date) = cast(f.fechorfolio as date) and (b.indstatusboleto like 'V' or b.indstatusboleto like 'C')");
|
||||
sb.append(" left join parada po on po.parada_id = b.origen_id");
|
||||
sb.append(" left join ciudad co on co.ciudad_id = po.ciudad_id");
|
||||
sb.append(" left join estado eo on eo.estado_id = co.estado_id");
|
||||
sb.append(" left join parada pd on pd.parada_id = b.destino_id");
|
||||
sb.append(" left join ciudad cd on cd.ciudad_id = pd.ciudad_id");
|
||||
sb.append(" left join estado ed on ed.estado_id = cd.estado_id");
|
||||
sb.append(" left join empresa_imposto ei on ei.activo = 1 and ei.empresa_id = b.empresacorrida_id and ei.estado_id = eo.estado_id");
|
||||
sb.append(" left join aidf a on a.aidf_id = b.aidf_id");
|
||||
|
||||
sb.append(" where");
|
||||
sb.append(" f.activo = 1");
|
||||
sb.append(" and f.indbpr = 1");
|
||||
sb.append(" and f.fechorfolio >= to_date(?,'DD/MM/YYYY HH24:MI:SS') and f.fechorfolio <= to_date(?,'DD/MM/YYYY HH24:MI:SS')");
|
||||
sb.append(" and f.empresa_id = ?");
|
||||
sb.append(" and eof.cveestado like ?");
|
||||
sb.append(" order by");
|
||||
sb.append(" e.nombempresa,");
|
||||
sb.append(" c.estado_id,");
|
||||
sb.append(" eof.cveestado,");
|
||||
sb.append(" f.fechorfolio,");
|
||||
sb.append(" f.folio,");
|
||||
sb.append(" b.fechorventa,");
|
||||
sb.append(" b.numfoliopreimpreso,");
|
||||
sb.append(" (case when eo.cveestado = ed.cveestado then 5357 else 6357 end),");
|
||||
sb.append(" ed.cveestado");
|
||||
|
||||
try {
|
||||
PreparedStatement ps = connection.prepareStatement(sb.toString());
|
||||
ps.setString(1, DateUtil.getStringDate(inicio, DATE_FORMAT_DMY) + " 00:00:00");
|
||||
ps.setString(2, DateUtil.getStringDate(fim, DATE_FORMAT_DMY) + " 23:59:59");
|
||||
ps.setLong(3, Long.valueOf(empresaId));
|
||||
ps.setString(4, cveestado);
|
||||
|
||||
ResultSet rs = ps.executeQuery();
|
||||
|
||||
ExportacaoRMDBase registro = null;
|
||||
|
||||
while (rs.next()) {
|
||||
registro = new ExportacaoRMDBase();
|
||||
|
||||
exportacaoRMD.getListaRegistroRMD().add(registro);
|
||||
}
|
||||
|
||||
rs.close();
|
||||
ps.close();
|
||||
|
||||
exportacaoRMD.gerarListas();
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
|
||||
return exportacaoRMD;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ExportacaoRMDTipoPAR> buscarRegistroRMDTipoPAR(Connection connection, Date inicio, Date fim, Integer empresaId, String cveestado) {
|
||||
List<ExportacaoRMDTipoPAR> retorno = new ArrayList<ExportacaoRMDTipoPAR>();
|
||||
|
@ -2606,17 +2719,17 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
|
||||
ExportacaoRMDTipoBPS registro = null;
|
||||
|
||||
Integer numeroInicial = null;
|
||||
Integer numeroFinal = null;
|
||||
Long numeroInicial = null;
|
||||
Long numeroFinal = null;
|
||||
|
||||
while (rs.next()) {
|
||||
String key = sdf.format(rs.getDate("data_emissao")) + "|" + rs.getInt("num_aidf") + "|" + rs.getInt("num_formulario");
|
||||
String key = sdf.format(rs.getDate("data_emissao")) + "|" + rs.getLong("num_aidf") + "|" + rs.getLong("num_formulario");
|
||||
|
||||
if (group.containsKey(key)) {
|
||||
registro = group.get(key);
|
||||
|
||||
numeroInicial = rs.getInt("num_formulario");
|
||||
numeroFinal = rs.getInt("num_formulario");
|
||||
numeroInicial = rs.getLong("num_formulario");
|
||||
numeroFinal = rs.getLong("num_formulario");
|
||||
|
||||
if (numeroInicial.intValue() > registro.getNumeroInicial().intValue()) {
|
||||
numeroInicial = registro.getNumeroInicial();
|
||||
|
@ -2630,10 +2743,10 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
registro = new ExportacaoRMDTipoBPS();
|
||||
registro.setCodigoEstabelecimento(rs.getInt("cod_estabelecimento"));
|
||||
registro.setEspecie("BPR");
|
||||
registro.setNumeroAIDF(rs.getInt("num_aidf"));
|
||||
registro.setNumeroAIDF(rs.getLong("num_aidf"));
|
||||
registro.setSerieAIDF(rs.getString("serie"));
|
||||
registro.setSubSerieAIDF(rs.getString("subserie"));
|
||||
registro.setNumeroAIDFRMD(rs.getInt("num_aidf_rmd"));
|
||||
registro.setNumeroAIDFRMD(rs.getLong("num_aidf_rmd"));
|
||||
registro.setSerieAIDFRMD(rs.getString("serie_rmd"));
|
||||
registro.setSubSerieAIDFRMD(rs.getString("subserie_rmd"));
|
||||
registro.setNumeroRMD(rs.getInt("num_rmd"));
|
||||
|
@ -2645,8 +2758,8 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
registro.setValorTotal(BigDecimal.ZERO);
|
||||
registro.setResumoMovimentoDiario(null);
|
||||
|
||||
numeroInicial = rs.getInt("num_formulario");
|
||||
numeroFinal = rs.getInt("num_formulario");
|
||||
numeroInicial = rs.getLong("num_formulario");
|
||||
numeroFinal = rs.getLong("num_formulario");
|
||||
}
|
||||
|
||||
registro.setNumeroInicial(numeroInicial);
|
||||
|
@ -2932,8 +3045,8 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
ExportacaoRMDTipoSeqBPS registroBPS = null;
|
||||
ExportacaoRMDTipoSeqDBP registroDBP = null;
|
||||
|
||||
Integer numeroInicial = 0;
|
||||
Integer numeroFinal = 0;
|
||||
Long numeroInicial = 0l;
|
||||
Long numeroFinal = 0l;
|
||||
|
||||
String dataEmissaoControle = "";
|
||||
Integer cfopControle = 0;
|
||||
|
@ -2945,15 +3058,15 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
|
||||
while (rs.next()) {
|
||||
Integer codigoEstabelecimento = rs.getInt("cod_estabelecimento");
|
||||
Integer numeroAIDF = rs.getInt("num_aidf");
|
||||
Long numeroAIDF = rs.getLong("num_aidf");
|
||||
String serieAIDF = rs.getString("serie");
|
||||
String subSerieAIDF = rs.getString("subserie");
|
||||
Integer numeroAIDFRMD = rs.getInt("num_aidf_rmd");
|
||||
Long numeroAIDFRMD = rs.getLong("num_aidf_rmd");
|
||||
String serieAIDFRMD = rs.getString("serie_rmd");
|
||||
String subSerieAIDFRMD = rs.getString("subserie_rmd");
|
||||
Integer numeroRMD = rs.getInt("num_rmd");
|
||||
String dataEmissao = sdf.format(rs.getDate("data_emissao"));
|
||||
Integer numeroFormulario = rs.getInt("num_formulario");
|
||||
Long numeroFormulario = rs.getLong("num_formulario");
|
||||
String ufDestino = rs.getString("estado_destino");
|
||||
Integer cfop = rs.getInt("cod_operacao"); // IM=5357; Serviço IE= 6357
|
||||
String ufOrigem = rs.getString("estado_origem");
|
||||
|
|
|
@ -194,13 +194,15 @@ public class ExportacaoFiscal {
|
|||
BigDecimal baseCalculoICMS = BigDecimal.ZERO;
|
||||
BigDecimal valorBaseCalculoICMS = itemCCF.getValorBaseCalculoICMS() == null ? BigDecimal.ZERO : itemCCF.getValorBaseCalculoICMS();
|
||||
|
||||
if (valoresBaseCalculoICMS.containsKey(itemCCF.getEcf() + "|" + itemCCF.getUfDestino())) {
|
||||
baseCalculoICMS = valoresBaseCalculoICMS.get(itemCCF.getEcf() + "|" + itemCCF.getUfDestino());
|
||||
String key = itemCCF.getEcf() + "|" + itemCCF.getUfDestino() + "|" + itemCCF.getMunicipioOrigem();
|
||||
|
||||
if (valoresBaseCalculoICMS.containsKey(key)) {
|
||||
baseCalculoICMS = valoresBaseCalculoICMS.get(key);
|
||||
}
|
||||
|
||||
baseCalculoICMS = baseCalculoICMS.add(valorBaseCalculoICMS.setScale(2, BigDecimal.ROUND_HALF_EVEN));
|
||||
|
||||
valoresBaseCalculoICMS.put(itemCCF.getEcf() + "|" + itemCCF.getUfDestino(), baseCalculoICMS);
|
||||
valoresBaseCalculoICMS.put(key, baseCalculoICMS);
|
||||
|
||||
adicionarLinhaCCF(writer, itemCCF);
|
||||
|
||||
|
@ -226,8 +228,8 @@ public class ExportacaoFiscal {
|
|||
for (ExportacaoECFTipoICF itemICF : itensICF) {
|
||||
valorBaseCalculoICMS = BigDecimal.ZERO;
|
||||
|
||||
if (valoresBaseCalculoICMS.containsKey(itemICF.getEcf() + "|" + itemICF.getUfDestino())) {
|
||||
valorBaseCalculoICMS = valoresBaseCalculoICMS.get(itemICF.getEcf() + "|" + itemICF.getUfDestino());
|
||||
if (valoresBaseCalculoICMS.containsKey(itemICF.getEcf() + "|" + itemICF.getUfDestino() + "|" + itemICF.getMunicipioOrigem())) {
|
||||
valorBaseCalculoICMS = valoresBaseCalculoICMS.get(itemICF.getEcf() + "|" + itemICF.getUfDestino() + "|" + itemICF.getMunicipioOrigem());
|
||||
}
|
||||
|
||||
adicionarLinhaICF(writer, itemICF, valorBaseCalculoICMS);
|
||||
|
@ -604,16 +606,16 @@ public class ExportacaoFiscal {
|
|||
for (ExportacaoRMDTipoBPS registro : listaRegistroRMDTipoBPS) {
|
||||
Integer codigoEstabelecimento = registro.getCodigoEstabelecimento();
|
||||
String especie = registro.getEspecie();
|
||||
Integer numeroAIDF = registro.getNumeroAIDF();
|
||||
Long numeroAIDF = registro.getNumeroAIDF();
|
||||
String serieAIDF = registro.getSerieAIDF();
|
||||
String subSerieAIDF = registro.getSubSerieAIDF();
|
||||
Integer numeroInicial = registro.getNumeroInicial();
|
||||
Integer numeroFinal = registro.getNumeroFinal();
|
||||
Long numeroInicial = registro.getNumeroInicial();
|
||||
Long numeroFinal = registro.getNumeroFinal();
|
||||
Integer quantidadeCancelados = registro.getQuantidadeCancelados();
|
||||
String dataEmissao = registro.getDataEmissao();
|
||||
BigDecimal valorTotal = registro.getValorTotal();
|
||||
Boolean resumoMovimentoDiario = registro.getResumoMovimentoDiario();
|
||||
Integer numeroAIDFRMD = registro.getNumeroAIDFRMD();
|
||||
Long numeroAIDFRMD = registro.getNumeroAIDFRMD();
|
||||
String serieAIDFRMD = registro.getSerieAIDFRMD();
|
||||
String subSerieAIDFRMD = registro.getSubSerieAIDFRMD();
|
||||
Integer numeroRMD = registro.getNumeroRMD();
|
||||
|
@ -700,16 +702,16 @@ public class ExportacaoFiscal {
|
|||
for (ExportacaoRMDTipoSeqBPS registro : listaRegistroRMDTipoBPS) {
|
||||
Integer codigoEstabelecimento = registro.getCodigoEstabelecimento();
|
||||
String especie = registro.getEspecie();
|
||||
Integer numeroAIDF = registro.getNumeroAIDF();
|
||||
Long numeroAIDF = registro.getNumeroAIDF();
|
||||
String serieAIDF = registro.getSerieAIDF();
|
||||
String subSerieAIDF = registro.getSubSerieAIDF();
|
||||
Integer numeroInicial = registro.getNumeroInicial();
|
||||
Integer numeroFinal = registro.getNumeroFinal();
|
||||
Long numeroInicial = registro.getNumeroInicial();
|
||||
Long numeroFinal = registro.getNumeroFinal();
|
||||
Integer quantidadeCancelados = registro.getQuantidadeCancelados();
|
||||
String dataEmissao = registro.getDataEmissao();
|
||||
BigDecimal valorTotal = registro.getValorTotal();
|
||||
Boolean resumoMovimentoDiario = registro.getResumoMovimentoDiario();
|
||||
Integer numeroAIDFRMD = registro.getNumeroAIDFRMD();
|
||||
Long numeroAIDFRMD = registro.getNumeroAIDFRMD();
|
||||
String serieAIDFRMD = registro.getSerieAIDFRMD();
|
||||
String subSerieAIDFRMD = registro.getSubSerieAIDFRMD();
|
||||
Integer numeroRMD = registro.getNumeroRMD();
|
||||
|
@ -836,6 +838,19 @@ public class ExportacaoFiscal {
|
|||
return retorno;
|
||||
}
|
||||
|
||||
private String formataNumerico(final Long valor, final boolean removeMascara, final int tamanho) {
|
||||
// if (valor == null) {
|
||||
// return formataCaracter(" ", true, tamanho);
|
||||
// } else {
|
||||
// return formataNumerico(valor.toString(), removeMascara, tamanho);
|
||||
// }
|
||||
if (valor == null) {
|
||||
return "0";
|
||||
} else {
|
||||
return formataNumerico(valor.toString(), removeMascara, tamanho);
|
||||
}
|
||||
}
|
||||
|
||||
private String formataNumerico(final Integer valor, final boolean removeMascara, final int tamanho) {
|
||||
// if (valor == null) {
|
||||
// return formataCaracter(" ", true, tamanho);
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
package com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ExportacaoRMD {
|
||||
private List<ExportacaoRMDBase> listaRegistroRMD;
|
||||
|
||||
public ExportacaoRMD() {
|
||||
listaRegistroRMD = new ArrayList<ExportacaoRMDBase>(0);
|
||||
}
|
||||
|
||||
public List<ExportacaoRMDBase> getListaRegistroRMD() {
|
||||
return listaRegistroRMD;
|
||||
}
|
||||
|
||||
public void setListaRegistroRMD(List<ExportacaoRMDBase> listaRegistroRMD) {
|
||||
this.listaRegistroRMD = listaRegistroRMD;
|
||||
}
|
||||
|
||||
public void gerarListas() {
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
package com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo;
|
||||
|
||||
public class ExportacaoRMDBase {
|
||||
|
||||
public ExportacaoRMDBase() {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -5,16 +5,16 @@ import java.math.BigDecimal;
|
|||
public class ExportacaoRMDTipoBPS {
|
||||
private Integer codigoEstabelecimento;
|
||||
private String especie;
|
||||
private Integer numeroAIDF;
|
||||
private Long numeroAIDF;
|
||||
private String serieAIDF;
|
||||
private String subSerieAIDF;
|
||||
private Integer numeroInicial;
|
||||
private Integer numeroFinal;
|
||||
private Long numeroInicial;
|
||||
private Long numeroFinal;
|
||||
private Integer quantidadeCancelados;
|
||||
private String dataEmissao;
|
||||
private BigDecimal valorTotal;
|
||||
private Boolean resumoMovimentoDiario;
|
||||
private Integer numeroAIDFRMD;
|
||||
private Long numeroAIDFRMD;
|
||||
private String serieAIDFRMD;
|
||||
private String subSerieAIDFRMD;
|
||||
private Integer numeroRMD;
|
||||
|
@ -40,11 +40,11 @@ public class ExportacaoRMDTipoBPS {
|
|||
this.especie = especie;
|
||||
}
|
||||
|
||||
public Integer getNumeroAIDF() {
|
||||
public Long getNumeroAIDF() {
|
||||
return numeroAIDF;
|
||||
}
|
||||
|
||||
public void setNumeroAIDF(Integer numeroAIDF) {
|
||||
public void setNumeroAIDF(Long numeroAIDF) {
|
||||
this.numeroAIDF = numeroAIDF;
|
||||
}
|
||||
|
||||
|
@ -64,19 +64,19 @@ public class ExportacaoRMDTipoBPS {
|
|||
this.subSerieAIDF = subSerieAIDF;
|
||||
}
|
||||
|
||||
public Integer getNumeroInicial() {
|
||||
public Long getNumeroInicial() {
|
||||
return numeroInicial;
|
||||
}
|
||||
|
||||
public void setNumeroInicial(Integer numeroInicial) {
|
||||
public void setNumeroInicial(Long numeroInicial) {
|
||||
this.numeroInicial = numeroInicial;
|
||||
}
|
||||
|
||||
public Integer getNumeroFinal() {
|
||||
public Long getNumeroFinal() {
|
||||
return numeroFinal;
|
||||
}
|
||||
|
||||
public void setNumeroFinal(Integer numeroFinal) {
|
||||
public void setNumeroFinal(Long numeroFinal) {
|
||||
this.numeroFinal = numeroFinal;
|
||||
}
|
||||
|
||||
|
@ -112,11 +112,11 @@ public class ExportacaoRMDTipoBPS {
|
|||
this.resumoMovimentoDiario = resumoMovimentoDiario;
|
||||
}
|
||||
|
||||
public Integer getNumeroAIDFRMD() {
|
||||
public Long getNumeroAIDFRMD() {
|
||||
return numeroAIDFRMD;
|
||||
}
|
||||
|
||||
public void setNumeroAIDFRMD(Integer numeroAIDFRMD) {
|
||||
public void setNumeroAIDFRMD(Long numeroAIDFRMD) {
|
||||
this.numeroAIDFRMD = numeroAIDFRMD;
|
||||
}
|
||||
|
||||
|
|
|
@ -7,15 +7,15 @@ import java.util.List;
|
|||
public class ExportacaoRMDTipoSeqBPS {
|
||||
private Integer codigoEstabelecimento;
|
||||
private String especie;
|
||||
private Integer numeroAIDF;
|
||||
private Long numeroAIDF;
|
||||
private String serieAIDF;
|
||||
private String subSerieAIDF;
|
||||
private Integer numeroInicial;
|
||||
private Integer numeroFinal;
|
||||
private Long numeroInicial;
|
||||
private Long numeroFinal;
|
||||
private Integer quantidadeCancelados;
|
||||
private String dataEmissao;
|
||||
private BigDecimal valorTotal;
|
||||
private Integer numeroAIDFRMD;
|
||||
private Long numeroAIDFRMD;
|
||||
private String serieAIDFRMD;
|
||||
private String subSerieAIDFRMD;
|
||||
private Integer numeroRMD;
|
||||
|
@ -46,11 +46,11 @@ public class ExportacaoRMDTipoSeqBPS {
|
|||
this.especie = especie;
|
||||
}
|
||||
|
||||
public Integer getNumeroAIDF() {
|
||||
public Long getNumeroAIDF() {
|
||||
return numeroAIDF;
|
||||
}
|
||||
|
||||
public void setNumeroAIDF(Integer numeroAIDF) {
|
||||
public void setNumeroAIDF(Long numeroAIDF) {
|
||||
this.numeroAIDF = numeroAIDF;
|
||||
}
|
||||
|
||||
|
@ -70,19 +70,19 @@ public class ExportacaoRMDTipoSeqBPS {
|
|||
this.subSerieAIDF = subSerieAIDF;
|
||||
}
|
||||
|
||||
public Integer getNumeroInicial() {
|
||||
public Long getNumeroInicial() {
|
||||
return numeroInicial;
|
||||
}
|
||||
|
||||
public void setNumeroInicial(Integer numeroInicial) {
|
||||
public void setNumeroInicial(Long numeroInicial) {
|
||||
this.numeroInicial = numeroInicial;
|
||||
}
|
||||
|
||||
public Integer getNumeroFinal() {
|
||||
public Long getNumeroFinal() {
|
||||
return numeroFinal;
|
||||
}
|
||||
|
||||
public void setNumeroFinal(Integer numeroFinal) {
|
||||
public void setNumeroFinal(Long numeroFinal) {
|
||||
this.numeroFinal = numeroFinal;
|
||||
}
|
||||
|
||||
|
@ -122,11 +122,11 @@ public class ExportacaoRMDTipoSeqBPS {
|
|||
}
|
||||
}
|
||||
|
||||
public Integer getNumeroAIDFRMD() {
|
||||
public Long getNumeroAIDFRMD() {
|
||||
return numeroAIDFRMD;
|
||||
}
|
||||
|
||||
public void setNumeroAIDFRMD(Integer numeroAIDFRMD) {
|
||||
public void setNumeroAIDFRMD(Long numeroAIDFRMD) {
|
||||
this.numeroAIDFRMD = numeroAIDFRMD;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue