diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPeSubstituido.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPeSubstituido.java new file mode 100644 index 000000000..88eee826e --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioBPeSubstituido.java @@ -0,0 +1,225 @@ +package com.rjconsultores.ventaboletos.relatorios.impl; + +import java.sql.Connection; +import java.sql.ResultSet; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.utilerias.DateUtil; +import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; + +public class RelatorioBPeSubstituido extends Relatorio { + + public RelatorioBPeSubstituido(Map parametros, Connection conexao) throws Exception { + + super(parametros, conexao); + + this.setCustomDataSource(new ArrayDataSource(this) { + + public void initDados() throws Exception { + Connection conexao = this.relatorio.getConexao(); + Map parametros = this.relatorio.getParametros(); + + String sql = getSql(parametros); + + Date dtInicio = (Date) parametros.get("DATA_INICIO"); + Date dtFim = (Date) parametros.get("DATA_FIM"); + + NamedParameterStatement ps = new NamedParameterStatement(conexao, sql.toString()); + if(dtInicio != null && dtFim != null) { + ps.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00"); + ps.setString("dataFinal", DateUtil.getStringDate(dtFim, "dd/MM/yyyy") + " 23:59:59"); + } + + ps.setString("empresa_id", (String) parametros.get("EMPRESA_ID") ); + + ResultSet rset = ps.executeQuery(); + + while (rset.next()) { + Map dataResult = new HashMap(); + + dataResult.put("cod_origem_venda", rset.getString("cod_origem_venda")); + dataResult.put("cod_destino_venda", rset.getString("cod_destino_venda")); + dataResult.put("desc_origem_venda", rset.getString("desc_origem_venda")); + dataResult.put("desc_destino_venda", rset.getString("desc_destino_venda")); + dataResult.put("cod_origem_remarcado", rset.getString("cod_origem_remarcado")); + dataResult.put("cod_destino_remarcado", rset.getString("cod_destino_remarcado")); + dataResult.put("desc_origem_remarcado", rset.getString("desc_origem_remarcado")); + dataResult.put("desc_destino_remarcado", rset.getString("desc_destino_remarcado")); + dataResult.put("tpp_venda", rset.getBigDecimal("tpp_venda")); + dataResult.put("tpp_remarcado", rset.getBigDecimal("tpp_remarcado")); + dataResult.put("bilhete_venda", rset.getString("bilhete_venda")); + dataResult.put("bilhete_remarcado", rset.getString("bilhete_remarcado")); + dataResult.put("assento_venda", rset.getString("assento_venda")); + dataResult.put("assento_remarcado", rset.getString("assento_remarcado")); + dataResult.put("data_viagem", rset.getDate("data_viagem")); + dataResult.put("data_viagem_remarcado", rset.getDate("data_viagem_remarcado")); + dataResult.put("tarifa_venda", rset.getBigDecimal("tarifa_venda")); + dataResult.put("tarifa_remarcado", rset.getBigDecimal("tarifa_remarcado")); + dataResult.put("desconto_venda", rset.getBigDecimal("desconto_venda")); + dataResult.put("multa", rset.getBigDecimal("multa")); + dataResult.put("valor_passagem_venda", rset.getBigDecimal("valor_passagem_venda")); + dataResult.put("valor_passagem_remarcado", rset.getBigDecimal("valor_passagem_remarcado")); + dataResult.put("taxa_embarque_venda", rset.getBigDecimal("taxa_embarque_venda")); + dataResult.put("taxa_embarque_remarcado", rset.getBigDecimal("taxa_embarque_remarcado")); + dataResult.put("seguro_venda", rset.getBigDecimal("seguro_venda")); + dataResult.put("seguro_remarcado", rset.getBigDecimal("seguro_remarcado")); + dataResult.put("pedagio_venda", rset.getBigDecimal("pedagio_venda")); + dataResult.put("pedagio_remarcado", rset.getBigDecimal("pedagio_remarcado")); + dataResult.put("cliente_venda", rset.getString("cliente_venda")); + dataResult.put("cliente_remarcado", rset.getString("cliente_remarcado")); + dataResult.put("tipo_documento_venda", rset.getString("tipo_documento_venda")); + dataResult.put("tipo_documento_remarcado", rset.getString("tipo_documento_remarcado")); + dataResult.put("documento_venda", rset.getString("documento_venda")); + dataResult.put("documento_remarcado", rset.getString("documento_remarcado")); + dataResult.put("servico_venda", rset.getString("servico_venda")); + dataResult.put("servico_remarcado", rset.getString("servico_remarcado")); + dataResult.put("data_venda", rset.getDate("data_venda")); + dataResult.put("data_remarcacao", rset.getDate("data_remarcacao")); + dataResult.put("agencia_venda", rset.getString("agencia_venda")); + dataResult.put("agencia_remarcado", rset.getString("agencia_remarcado")); + dataResult.put("chbpe_original", rset.getString("chbpe_original")); + dataResult.put("chbpe_remarcado", rset.getString("chbpe_remarcado")); + dataResult.put("num_bpe_original", rset.getString("num_bpe_original")); + dataResult.put("num_bpe_remarcado", rset.getString("num_bpe_remarcado")); + dataResult.put("numserie_original", rset.getString("numserie_original")); + dataResult.put("numserie_remarcado", rset.getString("numserie_remarcado")); + dataResult.put("qrcode_original", rset.getString("qrcode_original")); + dataResult.put("qrcode_remarcado", rset.getString("qrcode_remarcado")); + dataResult.put("valor_total_venda", rset.getBigDecimal("valor_total_venda")); + dataResult.put("valor_total_remarcado", rset.getBigDecimal("valor_total_remarcado")); + + this.dados.add(dataResult); + } + + this.resultSet = rset; + } + }); + } + + @Override + protected void processaParametros() throws Exception { + } + + private String getSql(Map parametros) { + + StringBuilder sql = new StringBuilder(1400); + + String estados = (String) parametros.get("ESTADOS_ID"); + String empresaId = (String) parametros.get("EMPRESA_ID"); + String puntoVentaId = (String) parametros.get("PUNTOVENTA_ID"); + + sql.append(" SELECT "); + sql.append(" origem.cveparada cod_origem_venda, "); + sql.append(" destino.cveparada cod_destino_venda, "); + sql.append(" origem.descparada desc_origem_venda, "); + sql.append(" destino.descparada desc_destino_venda, "); + sql.append(" po.cveparada cod_origem_remarcado, "); + sql.append(" pd.cveparada cod_destino_remarcado, "); + sql.append(" po.descparada desc_origem_remarcado, "); + sql.append(" pd.descparada desc_destino_remarcado, "); + sql.append(" coalesce(original.importetpp, 0) tpp_venda, "); + sql.append(" coalesce(remarcado.importetpp, 0) tpp_remarcado, "); + sql.append(" remarcado.numfoliosistema bilhete_remarcado, "); + sql.append(" remarcado.fechorviaje data_viagem_remarcado, "); + sql.append(" remarcado.numasiento assento_remarcado, "); + sql.append(" original.numasiento assento_venda, "); + sql.append(" original.numfoliosistema bilhete_venda, "); + sql.append(" original.fechorviaje data_viagem, "); + sql.append(" coalesce(original.preciobase, 0) tarifa_venda, "); + sql.append(" coalesce(original.preciopricing, 0) desconto_venda, "); + sql.append(" coalesce(original.preciopagado, 0) valor_passagem_venda, "); + sql.append(" coalesce(remarcado.preciopagado, 0) valor_passagem_remarcado, "); + sql.append(" coalesce(remarcado.preciobase, 0) tarifa_remarcado, "); + sql.append(" coalesce(original.importetaxaembarque, 0) taxa_embarque_venda, "); + sql.append(" coalesce(remarcado.importetaxaembarque, 0) taxa_embarque_remarcado, "); + sql.append(" coalesce(original.importeseguro, 0) seguro_venda, "); + sql.append(" coalesce(remarcado.importeseguro, 0) seguro_remarcado, "); + sql.append(" coalesce(original.importepedagio, 0) pedagio_venda, "); + sql.append(" coalesce(remarcado.importepedagio, 0) pedagio_remarcado, "); + sql.append(" original.nombpasajero cliente_venda, "); + sql.append(" remarcado.nombpasajero cliente_remarcado, "); + sql.append(" original.desctipodoc tipo_documento_remarcado, "); + sql.append(" remarcado.desctipodoc tipo_documento_venda, "); + sql.append(" remarcado.descnumdoc documento_remarcado, "); + sql.append(" original.descnumdoc documento_venda, "); + sql.append(" original.corrida_id servico_venda, "); + sql.append(" remarcado.corrida_id servico_remarcado, "); + sql.append(" remarcado.fechorventa data_remarcacao, "); + sql.append(" original.fechorventa data_venda, "); + sql.append(" ptv.nombpuntoventa agencia_venda, "); + sql.append(" ptr.nombpuntoventa agencia_remarcado, "); + sql.append(" bpe.chbpe chbpe_original, "); + sql.append(" original.num_bpe num_bpe_original, "); + sql.append(" original.numserie_bpe numserie_original, "); + sql.append(" bpe.qrcode qrcode_original, "); + sql.append(" bper.chbpe chbpe_remarcado, "); + sql.append(" remarcado.num_bpe num_bpe_remarcado, "); + sql.append(" coalesce(remarcado.numserie_bpe, '1') numserie_remarcado, "); + sql.append(" bper.qrcode qrcode_remarcado, "); + sql.append(" ( select "); + sql.append(" coalesce(impingreso, 0) "); + sql.append(" FROM evento_extra "); + sql.append(" WHERE boleto_id = remarcado.boleto_id "); + sql.append(" ) AS multa, "); + sql.append(" ( "); + sql.append(" SELECT "); + sql.append(" SUM(coalesce(bfpv.importe, 0)) "); + sql.append(" FROM "); + sql.append(" boleto_formapago bfpv "); + sql.append(" WHERE "); + sql.append(" bfpv.boleto_id = original.boleto_id "); + sql.append(" AND bfpv.activo = 1 "); + sql.append(" ) AS valor_total_venda, "); + sql.append(" ( "); + sql.append(" SELECT "); + sql.append(" SUM(coalesce(bfpr.importe, 0)) "); + sql.append(" FROM "); + sql.append(" boleto_formapago bfpr "); + sql.append(" WHERE "); + sql.append(" bfpr.boleto_id = remarcado.boleto_id "); + sql.append(" AND bfpr.activo = 1 "); + sql.append(" ) AS valor_total_remarcado "); + sql.append(" FROM "); + sql.append(" bpe bpe "); + sql.append(" INNER JOIN boleto original ON original.boleto_id = bpe.boleto_id AND bpe.activo = 1 "); + sql.append(" INNER JOIN BPE bper on bper.bpesubstituicao_id = bpe.bpe_id and bper.activo = 1 "); + sql.append(" INNER JOIN boleto remarcado ON remarcado.boleto_id = bper.boleto_id "); + sql.append(" INNER JOIN parada origem ON origem.parada_id = original.origen_id "); + sql.append(" INNER JOIN parada destino ON destino.parada_id = original.destino_id "); + sql.append(" INNER JOIN parada po ON po.parada_id = remarcado.origen_id "); + sql.append(" INNER JOIN parada pd ON pd.parada_id = remarcado.destino_id "); + sql.append(" INNER JOIN punto_venta ptv ON ptv.puntoventa_id = original.puntoventa_id "); + sql.append(" INNER JOIN punto_venta ptr ON ptr.puntoventa_id = remarcado.puntoventa_id "); + sql.append(" INNER JOIN empresa e ON remarcado.empresacorrida_id = e.empresa_id "); + sql.append(" INNER JOIN empresa ev ON original.empresacorrida_id = ev.empresa_id "); + sql.append(" INNER JOIN ruta rr ON remarcado.ruta_id = rr.ruta_id "); + sql.append(" INNER JOIN ruta ro ON original.ruta_id = ro.ruta_id "); + sql.append(" "); + sql.append(" WHERE "); + sql.append(" bpe.CODSTAT IN ('100', '102') "); + sql.append(" AND bper.BPE_ID IS NOT NULL "); + + if (empresaId != null) { + sql.append(" AND original.empresacorrida_id = :empresa_id "); + } + + if (puntoVentaId != null) { + sql.append(" AND original.puntoventa_id IN ( " + puntoVentaId + " ) "); + } + + if (estados != null) { + sql.append(" AND bpe.uf IN ( " + estados + " )"); + } + + sql.append(" AND coalesce(original.fechorventa_h, original.fechorventa) >= to_date(:dataInicio, 'DD/MM/YYYY HH24:MI:SS') "); + sql.append(" AND coalesce(original.fechorventa_h, original.fechorventa) <= to_date(:dataFinal, 'DD/MM/YYYY HH24:MI:SS') "); + sql.append(" ORDER BY "); + sql.append(" agencia_remarcado, data_remarcacao "); + + return sql.toString(); + } +} \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeSubstituido_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeSubstituido_es.properties new file mode 100644 index 000000000..cd4e57507 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeSubstituido_es.properties @@ -0,0 +1,56 @@ +#geral +msg.noData=Não foi possivel obter dados com os parâmetros informados. + +#Labels cabeçalho +cabecalho.nome=Relatório BPe Substituído +cabecalho.relatorio=Relatório: +cabecalho.periodo=Período: +cabecalho.periodoA=à +cabecalho.dataHora=Data/Hora: +cabecalho.impressorPor=Impressor por: +cabecalho.pagina=Página +cabecalho.de=de +cabecalho.filtros=Filtros: +cabecalho.puntoventa=Agência +label.nomeVendaAgencia=Agência Atendimento +label.nomeAgenciaEmissao=Agência Emissão +label.documento=Doc. +label.dataRemarcacao=Data Rem. +label.dataVenda=Data Venda +label.dataServico=Data Serv. +label.origem= Origem +label.destino=Destino +label.codOrigem= Cod.O +label.codDestino=Cod.D +label.formaPagamento=Forma Pag. +label.servico=Servi. +label.poltrona= Poltrona +label.dataInicial=Data Inicial: +label.dataFinal=Data Final: +label.empresa=Empresa: +label.agencia=Agência: +label.situacao=Situacao +label.bilhete=Bilhete +label.bilheteiro=Bilheteiro +label.valorDiferenca=Diferenca +label.valorMulta=Multa +label.tarifa=Tarifa +label.tarifaVenda=Tarifa Venda +label.seguro=Seguro +label.pedagio=Pedagio +label.taxaEmbarque=Taxa Emb. +label.cliente=Cliente +label.bilheteOriginal=Bilhete Original +label.bilheteRemarcado=Bilhete Remarcado +label.linha=Linha +label.horaServico=Horário +label.chave=CH.BPe +label.numBpe=Nº BPe +label.tipoDocumento=Tp.Doc +label.tipoVenda=Tp.Venda +label.tipoPassagem=Tp.Pass +label.percentualDesconto=Perc.Desc +label.valorTotal=Vlr.Tot.Cob +label.valorPassagem=Vlr.Passagem +label.tpp=TPP +label.siglaTipoPassagem=Sig.Tp.Pas \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeSubstituido_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeSubstituido_pt_BR.properties new file mode 100644 index 000000000..71acd5d76 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioBPeSubstituido_pt_BR.properties @@ -0,0 +1,55 @@ +#geral +msg.noData=Não foi possivel obter dados com os parâmetros informados. + +#Labels cabeçalho +cabecalho.nome=Relatório BPe Substituído +cabecalho.relatorio=Relatório: +cabecalho.periodo=Período: +cabecalho.periodoA=à +cabecalho.dataHora=Data/Hora: +cabecalho.impressorPor=Impressor por: +cabecalho.pagina=Página +cabecalho.de=de +cabecalho.filtros=Filtros: +cabecalho.puntoventa=Agência +label.nomeVendaAgencia=Agência Atendimento +label.nomeAgenciaEmissao=Agência Emissão +label.documento=Doc. +label.dataRemarcacao=Data Rem. +label.dataVenda=Data Venda +label.dataServico=Data Serv. +label.origem= Origem +label.destino=Destino +label.codOrigem= Cod.O +label.codDestino=Cod.D +label.formaPagamento=Forma Pag. +label.servico=Servi. +label.poltrona= Poltrona +label.dataInicial=Data Inicial: +label.dataFinal=Data Final: +label.empresa=Empresa: +label.agencia=Agência: +label.situacao=Situacao +label.bilhete=Bilhete +label.valorDiferenca=Diferenca +label.valorMulta=Multa +label.tarifa=Tarifa +label.tarifaVenda=Tarifa Venda +label.seguro=Seguro +label.pedagio=Pedagio +label.taxaEmbarque=Taxa Emb. +label.cliente=Cliente +label.bilheteOriginal=Bilhete Original +label.bilheteRemarcado=Bilhete Remarcado +label.linha=Linha +label.horaServico=Horário +label.chave=CH.BPe +label.numBpe=Nº BPe +label.tipoDocumento=Tp.Doc +label.tipoVenda=Tp.Venda +label.tipoPassagem=Tp.Pass +label.percentualDesconto=Perc.Desc +label.valorTotal=Vlr.Tot.Cob +label.valorPassagem=Vlr.Passagem +label.tpp=TPP +label.siglaTipoPassagem=Sig.Tp.Pas \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeSubstituido.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeSubstituido.jasper new file mode 100644 index 000000000..f972cbfc6 Binary files /dev/null and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeSubstituido.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeSubstituido.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeSubstituido.jrxml new file mode 100644 index 000000000..8828d552b --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioBPeSubstituido.jrxml @@ -0,0 +1,781 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <band height="93"> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="49ab1647-150e-479d-a1d6-1911439f9372" mode="Transparent" x="107" y="82" width="54" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.dataRemarcacao}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="36adfbd2-baef-4050-b4dd-b2c17cec1f8f" mode="Transparent" x="248" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="dabaae73-0430-44ac-b5ca-07bb8943d1e1" mode="Transparent" x="379" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="7105fabd-e019-4de6-bb8b-6ac0d194c121" mode="Transparent" x="0" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.agencia}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="24600b7b-f380-4bd5-8d27-9c7e29cb9a59" mode="Transparent" x="486" y="82" width="28" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.poltrona}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="16f23967-8aa7-4eeb-8138-3587989cc6cd" mode="Transparent" x="514" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.bilhete}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="e17fff3d-04bd-4ce0-86a6-81785d6045ed" mode="Transparent" x="1086" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.tarifa}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="70a4673b-db31-4291-be71-17255ce1c03f" mode="Transparent" x="1119" y="82" width="38" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.seguro}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="6495c82f-0698-4a95-ac7a-3c6838c5269c" mode="Transparent" x="1157" y="82" width="31" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.pedagio}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="8d9bd3b8-178e-4e33-a047-35fc979993f7" mode="Transparent" x="161" y="82" width="63" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.dataServico}]]></textFieldExpression> + </textField> + <staticText> + <reportElement uuid="d7f6fbb0-f726-4dca-8903-4f19fc26462e" mode="Opaque" x="0" y="67" width="1242" height="15" backcolor="#33CC00"/> + <textElement textAlignment="Center"> + <font size="8" isBold="true"/> + </textElement> + <text><![CDATA[Bilhete Remarcado]]></text> + </staticText> + <staticText> + <reportElement uuid="03422950-8ba2-4ba7-8f65-447c3458253e" mode="Opaque" x="1242" y="67" width="1209" height="15" backcolor="#FFFF00"/> + <textElement textAlignment="Center"> + <font size="8" isBold="true"/> + </textElement> + <text><![CDATA[Bilhete Original]]></text> + </staticText> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="236d0e6f-34ca-45f4-a6a4-adf15b284342" mode="Transparent" x="547" y="82" width="28" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.numBpe}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="06be7125-9ea5-4635-a8ad-24e1a3945351" mode="Transparent" x="771" y="82" width="171" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.cliente}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="b0058a06-fa48-44f8-b740-1b9559ddc266" mode="Transparent" x="942" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.tipoDocumento}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="93f28873-6879-483a-89ac-45deb0248a4f" mode="Transparent" x="975" y="82" width="45" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.documento}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="7eb33017-a1c9-490e-bf3e-247f53d1a553" mode="Transparent" x="575" y="82" width="196" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.chave}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="6264791d-5f03-4d0f-8440-63e81e60fde3" mode="Transparent" x="1020" y="82" width="31" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.valorPassagem}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="451020ec-55a8-449a-a276-3405eb82cc50" mode="Transparent" x="1051" y="82" width="35" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.valorTotal}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="e5b4dab9-d599-4174-96d6-b1484925b103" mode="Transparent" x="1188" y="82" width="21" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.tpp}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="bb591b6f-5e16-4dbe-942f-11b4bfc0864b" mode="Transparent" x="1209" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.valorMulta}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="8471eaf2-18d7-44c4-9825-950f797e4c54" mode="Transparent" x="224" y="82" width="24" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.codOrigem}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="c841ad4a-de72-4bd2-9171-15ef10523696" mode="Transparent" x="355" y="82" width="24" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.codDestino}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="false"> + <reportElement uuid="d9f2f9b3-255b-4e61-8ced-75a973ce41d0" mode="Transparent" x="0" y="0" width="2158" height="46" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="16" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$P{nome_relatorio}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="dc20d664-f848-4aae-bc5c-3424007aaed3" x="2158" y="0" width="211" height="15"/> + <textElement textAlignment="Right"> + <font size="9" isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="false"> + <reportElement uuid="4b441767-c36f-4834-9377-5d99b4a1cc9c" mode="Transparent" x="2158" y="15" width="267" height="16" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression> + </textField> + <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false"> + <reportElement uuid="52bfc867-bd17-427f-93fd-2f454dfaebba" mode="Transparent" x="2371" y="0" width="80" height="15" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> + </textField> + <textField evaluationTime="Report" pattern="" isBlankWhenNull="false"> + <reportElement uuid="162d6c25-279f-4642-b541-2d46b24382d9" mode="Transparent" x="2425" y="15" width="26" height="16" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> + </textField> + <textField isStretchWithOverflow="true"> + <reportElement uuid="00f6b2c3-d2d1-4a8d-bde4-b83b029ab508" x="0" y="46" width="2451" height="21"/> + <box leftPadding="2"> + <topPen lineWidth="0.75"/> + <bottomPen lineWidth="0.75"/> + </box> + <textElement verticalAlignment="Middle"> + <font size="12" isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="false"> + <reportElement uuid="1607d941-f50d-4023-a70d-7c34b3969260" stretchType="RelativeToBandHeight" mode="Transparent" x="2158" y="31" width="293" height="15" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{usuario_nome}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="543ab691-bfc2-4de1-84ed-5110c0154332" mode="Transparent" x="2399" y="82" width="31" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.pedagio}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="a0f4dfbc-b79c-47f6-a3c1-1011d1f30970" mode="Transparent" x="1756" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.bilhete}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="5e2918f3-1195-4044-9ecd-20eb2e500bc4" mode="Transparent" x="2262" y="82" width="31" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.valorPassagem}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="98855d07-a57a-4fde-b42c-1fa516de7d43" mode="Transparent" x="2328" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.tarifa}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="014faa80-f886-4629-9fbc-f1de7942259e" mode="Transparent" x="1817" y="82" width="196" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.chave}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="e8c02a9e-1919-49f4-b3a9-1e7a8b425afc" mode="Transparent" x="2013" y="82" width="171" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.cliente}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="fc93fe5b-3b99-4a6e-b7e3-af2190acd700" mode="Transparent" x="1728" y="82" width="28" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.poltrona}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="ae2a0538-0666-49ec-b2a5-a460fde316b7" mode="Transparent" x="1621" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="7d8318f7-2d57-48ce-9b29-9eb5e2b6c184" mode="Transparent" x="1466" y="82" width="24" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.codOrigem}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="a8e97f17-f1a9-4b5b-a78c-699e39bbad54" mode="Transparent" x="2293" y="82" width="35" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.valorTotal}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="3a1326ee-27a1-46ea-b0ec-7076da1f746c" mode="Transparent" x="1349" y="82" width="54" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.dataRemarcacao}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="0df0e1eb-7899-4a89-b1ab-bd96b0bf458b" mode="Transparent" x="2430" y="82" width="21" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.tpp}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="80a01629-4b9e-4e3d-b94e-c8eebda58465" mode="Transparent" x="2184" y="82" width="33" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.tipoDocumento}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="b623608f-cdaa-4672-ae99-3cf70628d61a" mode="Transparent" x="1490" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="4d24353a-42f9-41e4-a5b1-3597c45a5c93" mode="Transparent" x="2217" y="82" width="45" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.documento}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="0dd69179-4670-460c-b474-50f068a207fa" mode="Transparent" x="2361" y="82" width="38" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.seguro}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="a115ad10-6cc8-4f5e-bef2-7577c9cf1038" mode="Transparent" x="1403" y="82" width="63" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.dataServico}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="1e7cbf6c-3ecd-40b3-a0a4-f8649e36d353" mode="Transparent" x="1597" y="82" width="24" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.codDestino}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="dc8189f7-334c-46e1-911a-7960ab828d75" mode="Transparent" x="1242" y="82" width="107" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.agencia}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement uuid="277aa553-fd1c-45e1-a306-f992d10741d4" mode="Transparent" x="1789" y="82" width="28" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/> + <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> + <font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$R{label.numBpe}]]></textFieldExpression> + </textField> + </band> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBPeSubstituidoController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBPeSubstituidoController.java new file mode 100644 index 000000000..d50d71da1 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioBPeSubstituidoController.java @@ -0,0 +1,319 @@ +package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.sql.DataSource; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Scope; +import org.springframework.stereotype.Controller; +import org.zkoss.util.resource.Labels; +import org.zkoss.zhtml.Messagebox; +import org.zkoss.zk.ui.Component; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zul.Bandbox; +import org.zkoss.zul.Comboitem; +import org.zkoss.zul.Datebox; +import org.zkoss.zul.Paging; +import org.zkoss.zul.Textbox; + +import com.rjconsultores.ventaboletos.entidad.Empresa; +import com.rjconsultores.ventaboletos.entidad.Estado; +import com.rjconsultores.ventaboletos.entidad.PuntoVenta; +import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBPeSubstituido; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.service.EmpresaService; +import com.rjconsultores.ventaboletos.service.EstadoService; +import com.rjconsultores.ventaboletos.utilerias.DateUtil; +import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; +import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; +import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; +import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; +import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject; +import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper; +import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEstadoSimple; +import com.trg.search.Filter; + +@Controller("relatorioBPeSubstituidoController") +@Scope("prototype") +public class RelatorioBPeSubstituidoController extends MyGenericForwardComposer { + + private static final long serialVersionUID = 1L; + + private Datebox dtInicio; + private Datebox dtFim; + private MyComboboxEstandar cmbEmpresa; + private MyListbox estadoList; + + private List lsEmpresa; + private List lsEstado; + + @Autowired + private DataSource dataSourceRead; + @Autowired + private EmpresaService empresaService; + @Autowired + private EstadoService estadoService; + + @Autowired + private transient PagedListWrapper plwPuntoVenta; + private ArrayList lsNumPuntoVenta = new ArrayList(); + private MyListbox puntoVentaList; + private Paging pagingPuntoVenta; + private Bandbox bbPesquisaPuntoVenta; + private Textbox txtPalavraPesquisa; + private MyListbox puntoVentaSelList; + + @Override + public void doAfterCompose(Component comp) throws Exception { + lsEmpresa = empresaService.obtenerTodos(); + lsEstado = estadoService.obtenerTodos(); + super.doAfterCompose(comp); + + estadoList.setItemRenderer(new RenderEstadoSimple()); + estadoList.setData(lsEstado); + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + private void executarRelatorio() throws Exception { + Map parametros = new HashMap(); + StringBuilder filtro = new StringBuilder(); + + if (!validar()) { + return; + } + + if (dtInicio.getValue() != null && dtFim.getValue() != null) { + filtro.append("Data: ") + .append(DateUtil.getStringDate(dtInicio.getValue(), "dd/MM/yyyy")) + .append(" - ") + .append(DateUtil.getStringDate(dtFim.getValue(), "dd/MM/yyyy")) + .append(";"); + parametros.put("DATA_INICIO", (java.util.Date) dtInicio.getValue()); + parametros.put("DATA_FIM", (java.util.Date) dtFim.getValue()); + } + + parametros.put("nome_relatorio", Labels.getLabel("relatorioBPeSubstituidoController.window.title")); + parametros.put("usuario", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString()); + parametros.put("usuario_nome", UsuarioLogado.getUsuarioLogado().getNombusuario()); + + filtro.append("UF: "); + String estadosIds = ""; + String UFs = ""; + List lsEstadosSelecionados = estadoList.getItensSelecionados(); + + if (!lsEstadosSelecionados.isEmpty()) { + for (int i = 0; i < lsEstadosSelecionados.size(); i++) { + Estado estado = (Estado) lsEstadosSelecionados.get(i); + UFs = UFs + estado.getCveestado() + ","; + estadosIds = estadosIds + estado.getEstadoId() + ","; + } + + estadosIds = estadosIds.substring(0, estadosIds.length() - 1); + UFs = UFs.substring(0, UFs.length() - 1); + parametros.put("ESTADOS_ID", estadosIds); + filtro.append(UFs).append(";"); + } else { + filtro.append("Todos; "); + } + + filtro.append("Agência: "); + String pvIds = ""; + String PVs = ""; + lsNumPuntoVenta = new ArrayList(Arrays.asList(puntoVentaSelList.getData())); + + if (lsNumPuntoVenta.size() > 0) { + for (PuntoVenta p : lsNumPuntoVenta) { + PVs = PVs + p.getNombpuntoventa() + ","; + pvIds = pvIds + p.getPuntoventaId() + ","; + } + + pvIds = pvIds.substring(0, pvIds.length() - 1); + PVs = PVs.substring(0, PVs.length() - 1); + parametros.put("PUNTOVENTA_ID", pvIds); + filtro.append(PVs).append(";"); + } else { + filtro.append("Todas; "); + } + + + filtro.append("Empresa: "); + if (cmbEmpresa.getSelectedItem() == null ) { + filtro.append(" Todas; "); + }else{ + Comboitem itemEmpresa = cmbEmpresa.getSelectedItem(); + if (itemEmpresa != null) { + Empresa empresa = (Empresa) itemEmpresa.getValue(); + parametros.put("EMPRESA_ID", String.valueOf(empresa.getEmpresaId())); + filtro.append(empresa.getNombempresa()).append(";"); + } else { + filtro.append(" Todas; "); + } + } + + parametros.put("FILTROS", filtro.toString()); + + Relatorio relatorio = new RelatorioBPeSubstituido(parametros, dataSourceRead.getConnection()); + + Map args = new HashMap(); + args.put("relatorio", relatorio); + + openWindow("/component/reportView.zul", + Labels.getLabel("relatorioBPeSubstituidoController.window.title"), args, MODAL); + } + + private boolean validar() { + + try { + if (dtInicio.getValue() == null || dtFim.getValue() == null) { + Messagebox.show(Labels.getLabel("relatorioBPeSubstituidoController.data.obrigatoria"), + Labels.getLabel("relatorioBPeSubstituidoController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + return false; + } + + if(dtInicio.getValue().after(dtFim.getValue())){ + Messagebox.show(Labels.getLabel("relatorioBPeSubstituidoController.MSG.dataInicialMaiorFinal"), + Labels.getLabel("relatorioBPeSubstituidoController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + return false; + } + + } catch (InterruptedException ex) { + return false; + } + return true; + } + + public void onClick$btnExecutarRelatorio(Event ev) throws Exception { + executarRelatorio(); + } + + public void onDoubleClick$puntoVentaList(Event ev) { + PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaList.getSelected(); + puntoVentaSelList.addItemNovo(puntoVentaSel); + } + + public void onDoubleClick$puntoVentaSelList(Event ev) { + PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaSelList.getSelected(); + puntoVentaSelList.removeItem(puntoVentaSel); + } + + public void onSelect$puntoVentaList(Event ev) { + } + + public void onClick$btnLimpar(Event ev) { + limparPesquisaAgencia(); + } + + public void onClick$btnPesquisa(Event ev) { + executarPesquisa(); + } + + private void executarPesquisa() { + HibernateSearchObject puntoVentaBusqueda = + new HibernateSearchObject(PuntoVenta.class, + pagingPuntoVenta.getPageSize()); + + puntoVentaBusqueda.addFilterOr(Filter.like("nombpuntoventa", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")), Filter.like("numPuntoVenta", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%"))); + + puntoVentaBusqueda.addSortAsc("nombpuntoventa"); + + puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE); + + plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta); + + if (puntoVentaList.getData().length == 0) { + try { + Messagebox.show(Labels.getLabel("MSG.ningunRegistro"), + Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + } catch (InterruptedException ex) { + } + } + } + + private void limparPesquisaAgencia() { + puntoVentaList.clearSelection(); + + lsNumPuntoVenta.clear(); + this.bbPesquisaPuntoVenta.setValue(""); + } + + public Datebox getDtInicio() { + return dtInicio; + } + + public void setDtInicio(Datebox dtInicio) { + this.dtInicio = dtInicio; + } + + public Datebox getDtFim() { + return dtFim; + } + + public void setDtFim(Datebox dtFim) { + this.dtFim = dtFim; + } + + public MyComboboxEstandar getCmbEmpresa() { + return cmbEmpresa; + } + + public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) { + this.cmbEmpresa = cmbEmpresa; + } + + public MyListbox getEstadoList() { + return estadoList; + } + + public void setEstadoList(MyListbox estadoList) { + this.estadoList = estadoList; + } + + public List getLsEmpresa() { + return lsEmpresa; + } + + public void setLsEmpresa(List lsEmpresa) { + this.lsEmpresa = lsEmpresa; + } + + public List getLsEstado() { + return lsEstado; + } + + public void setLsEstado(List lsEstado) { + this.lsEstado = lsEstado; + } + + public EmpresaService getEmpresaService() { + return empresaService; + } + + public void setEmpresaService(EmpresaService empresaService) { + this.empresaService = empresaService; + } + + public DataSource getDataSourceRead() { + return dataSourceRead; + } + + public void setDataSourceRead(DataSource dataSourceRead) { + this.dataSourceRead = dataSourceRead; + } + + public EstadoService getEstadoService() { + return estadoService; + } + + public void setEstadoService(EstadoService estadoService) { + this.estadoService = estadoService; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/analitico/gerenciais/bpe/SubMenuRelatorioBpe.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/analitico/gerenciais/bpe/SubMenuRelatorioBpe.java new file mode 100644 index 000000000..ebd7f9bcb --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/analitico/gerenciais/bpe/SubMenuRelatorioBpe.java @@ -0,0 +1,16 @@ +package com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.bpe; + +import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema; + +public class SubMenuRelatorioBpe extends DefaultItemMenuSistema { + + public SubMenuRelatorioBpe() { + super("indexController.mniRelatoriosBpe.label"); + } + + @Override + public String getClaveMenu() { + return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS"; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioBPeSubstituido.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioBPeSubstituido.java new file mode 100644 index 000000000..3a5ebfb41 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioBPeSubstituido.java @@ -0,0 +1,25 @@ +package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios; + +import org.zkoss.util.resource.Labels; + +import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria; +import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema; + +public class ItemMenuRelatorioBPeSubstituido extends DefaultItemMenuSistema { + + public ItemMenuRelatorioBPeSubstituido() { + super("indexController.mniRelatorioBPeSubstituido.label"); + } + + @Override + public String getClaveMenu() { + return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOBPESUBSTITUIDO"; + } + + @Override + public void ejecutar() { + PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioBPeSubstituido.zul", + Labels.getLabel("relatorioBPeSubstituidoController.window.title"), getArgs(), desktop); + + } +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties index b23af991d..fc6011db2 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties @@ -148,7 +148,6 @@ analitico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.MenuA analitico.item=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.ItemMenuAnalitico analitico.gerenciais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.SubMenuGerenciais analitico.gerenciais.segundaVia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioSegundaVia -analitico.gerenciais.relatorioBPe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPe analitico.gerenciais.cadastroClientes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCadastroClientes analitico.gerenciais.historicoClientes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioHistoricoClientes analitico.gerenciais.aidfDetalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAidfDetalhado @@ -164,6 +163,9 @@ analitico.gerenciais.tabPreco=com.rjconsultores.ventaboletos.web.utilerias.menu. analitico.gerenciais.trip=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemRelatorioTripulacao analitico.gerenciais.relatorioImpressaoPosterior=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioImpressaoPosterior analitico.gerenciais.relatorioHistoricoCompras=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioPosicaoVendaBilheteIdoso +analitico.gerenciais.relatoriobpe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.bpe.SubMenuRelatorioBpe +analitico.gerenciais.relatoriobpe.relatorioBPe=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPe +analitico.gerenciais.relatoriobpe.BPeSubstituido=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioBPeSubstituido analitico.gerenciais.operacionais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.operacionais.SubMenuRelatorioOperacionais analitico.gerenciais.operacionais.aproveitamento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAproveitamento analitico.gerenciais.operacionais.resumoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoLinhas diff --git a/web/WEB-INF/i3-label_en.label b/web/WEB-INF/i3-label_en.label index a351ca259..c1e39e321 100644 --- a/web/WEB-INF/i3-label_en.label +++ b/web/WEB-INF/i3-label_en.label @@ -85,6 +85,10 @@ lb.todas=TODAS lb.puntoventa=Ponto de Venda (Agência) lb.btnAtivar=Ativar lb.btnDesativar=Desativar +lb.btnPesquisa.label = Pesquisar +lb.btnLimpar.label = Limpar Seleção +lb.puntoVentaSelList.codigo = Código +lb.puntoVentaSelList.nome = Nome # Relatório relatorio.lb.btnExecutarRelatorio =Executar Relatório @@ -273,6 +277,7 @@ indexController.mniConfCodBarras.label=Bar Code Setting indexController.mniAnalitico.label=Reports indexController.mniIntegracion.label=Integracion +indexController.mniRelatoriosBpe.label = Reports BPe indexController.mniRelatoriosOperacionais.label=Operacionial Reports indexController.mniRelatoriosFinanceiro.label=Financial Reports indexController.mniRelatoriosEstatisticos.label=Statistics Reports @@ -341,6 +346,7 @@ indexController.mniRelatorioMovimentacaoEstoque.label=Movimentação de Esto indexController.mniRelatorioHistoricoClientes.label=Customer History indexController.mniRelatorioCadastroClientes.label=Customer Base indexController.mniRelatorioBPe.label=BPe +indexController.mniRelatorioBPeSubstituido.label = BPe Substituído indexController.mniRelatorioConsultaAntt.label=Consulta ANTT indexController.mniRelatorioSegundaVia.label=Segunda Via indexController.mniPrecoApanhe.label=Preço Apanhe @@ -8536,6 +8542,17 @@ relatorioCteosController.lbUF.value=Estado relatorioCteosController.MSG.erroSemEmpresa=Escolha uma empresa relatorioCteosController.MSG.dataInicialMaiorFinal=Data inicial maior que final relatorioCteosController.data.obrigatoria = Data inicial e Final são obrigatórias + +# Relatorio BPe Substituído +indexController.mniRelatorioBPeSubstituido.label = BPe Substituído +relatorioBPeSubstituidoController.window.title = BPe Substituído +relatorioBPeSubstituidoController.lbDtInicio.value=Data Emissão Inicial +relatorioBPeSubstituidoController.lbDtFim.value=Data Emissão Final +relatorioBPeSubstituidoController.lbEmpresa.value = Empresa +relatorioBPeSubstituidoController.lbUF.value=Estado +relatorioBPeSubstituidoController.MSG.erroSemEmpresa=Escolha uma empresa +relatorioBPeSubstituidoController.MSG.dataInicialMaiorFinal=Data inicial maior que final +relatorioBPeSubstituidoController.data.obrigatoria = Data inicial e Final são obrigatórias # Relatório Movimento Por Orgao Concedente indexController.mniRelatorioMovimentoPorOrgaoConcedente.label=Movimento Por Órgão Concedente diff --git a/web/WEB-INF/i3-label_es_MX.label b/web/WEB-INF/i3-label_es_MX.label index c0ea94718..c9590c29d 100644 --- a/web/WEB-INF/i3-label_es_MX.label +++ b/web/WEB-INF/i3-label_es_MX.label @@ -85,6 +85,10 @@ lb.todas = TODAS lb.puntoventa = Punto Venta lb.btnAtivar = Ativar lb.btnDesativar = Desativar +lb.btnPesquisa.label = Pesquisar +lb.btnLimpar.label = Limpar Seleção +lb.puntoVentaSelList.codigo = Código +lb.puntoVentaSelList.nome = Nome # Reporte relatorio.lb.btnExecutarRelatorio = Ejecutar reporte @@ -281,6 +285,7 @@ indexController.mniTarjetaCredito.label = Tarjeta de crédito indexController.mniAnalitico.label = Reportes indexController.mniIntegracion.label = Integracion +indexController.mniRelatoriosBpe.label = Relatórios BPe indexController.mniRelatoriosOperacionais.label = Reportes Operacionais indexController.mniRelatoriosFinanceiro.label = Reportes Financieros indexController.mniRelatoriosEstatisticos.label = Reportes Estadísticos @@ -345,6 +350,7 @@ indexController.mniRelatorioMovimentacaoEstoque.label = Movimientos del Stock indexController.mniRelatorioHistoricoClientes.label = Histórico Clientes indexController.mniRelatorioCadastroClientes.label = Cadastro Clientes indexController.mniRelatorioBPe.label = BPe +indexController.mniRelatorioBPeSubstituido.label = BPe Substituído indexController.mniRelatorioSegundaVia.label = Segunda Via indexController.mniPrecoApanhe.label = Precio Apanhe indexController.mniRelatorioVendasPacotesResumido.label = Ventas de paquetes - Resumido @@ -8352,6 +8358,17 @@ relatorioCteosController.MSG.erroSemEmpresa=Escolha uma empresa relatorioCteosController.MSG.dataInicialMaiorFinal=Data inicial maior que final relatorioCteosController.data.obrigatoria = Data inicial e Final são obrigatórias +# Relatorio BPe Substituído +indexController.mniRelatorioBPeSubstituido.label = BPe Substituído +relatorioBPeSubstituidoController.window.title = BPe Substituído +relatorioBPeSubstituidoController.lbDtInicio.value=Data Emissão Inicial +relatorioBPeSubstituidoController.lbDtFim.value=Data Emissão Final +relatorioBPeSubstituidoController.lbEmpresa.value = Empresa +relatorioBPeSubstituidoController.lbUF.value=Estado +relatorioBPeSubstituidoController.MSG.erroSemEmpresa=Escolha uma empresa +relatorioBPeSubstituidoController.MSG.dataInicialMaiorFinal=Data inicial maior que final +relatorioBPeSubstituidoController.data.obrigatoria = Data inicial e Final são obrigatórias + # Relatório Movimento Por Orgao Concedente indexController.mniRelatorioMovimentoPorOrgaoConcedente.label = Movimento Por Órgão Concedente relatorioMovimentoPorOrgaoConcedente.window.title = Movimento Por Órgao Concedente diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index 2491d0441..09e23b981 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -86,6 +86,10 @@ lb.todas = TODAS lb.puntoventa = Ponto de Venda (Agência) lb.btnAtivar = Ativar lb.btnDesativar = Desativar +lb.btnPesquisa.label = Pesquisar +lb.btnLimpar.label = Limpar Seleção +lb.puntoVentaSelList.codigo = Código +lb.puntoVentaSelList.nome = Nome # Relatório relatorio.lb.btnExecutarRelatorio = Executar Relatório @@ -294,6 +298,7 @@ indexController.mniConfCodBarras.label= Configuração Cod. Barras indexController.mniAnalitico.label = Relatórios indexController.mniIntegracion.label = Integração +indexController.mniRelatoriosBpe.label = Relatórios BPe indexController.mniRelatoriosOperacionais.label = Relatórios Operacionais indexController.mniRelatoriosFinanceiro.label = Relatórios Financeiro indexController.mniRelatoriosEstatisticos.label = Relatórios Estatísticos @@ -368,6 +373,7 @@ indexController.mniRelatorioMovimentacaoEstoque.label = Movimentação de Estoqu indexController.mniRelatorioHistoricoClientes.label = Histórico Clientes indexController.mniRelatorioCadastroClientes.label = Cadastro Clientes indexController.mniRelatorioBPe.label = BPe +indexController.mniRelatorioBPeSubstituido.label = BPe Substituído indexController.mniRelatorioConsultaAntt.label= Consulta ANTT indexController.mniRelatorioSegundaVia.label = Segunda Via indexController.mniPrecoApanhe.label = Preço Apanhe @@ -9073,6 +9079,17 @@ relatorioCteosController.MSG.erroSemEmpresa=Escolha uma empresa relatorioCteosController.MSG.dataInicialMaiorFinal=Data inicial maior que final relatorioCteosController.data.obrigatoria = Data inicial e Final são obrigatórias +# Relatorio BPe Substituído +indexController.mniRelatorioBPeSubstituido.label = BPe Substituído +relatorioBPeSubstituidoController.window.title = BPe Substituído +relatorioBPeSubstituidoController.lbDtInicio.value=Data Emissão Inicial +relatorioBPeSubstituidoController.lbDtFim.value=Data Emissão Final +relatorioBPeSubstituidoController.lbEmpresa.value = Empresa +relatorioBPeSubstituidoController.lbUF.value=Estado +relatorioBPeSubstituidoController.MSG.erroSemEmpresa=Escolha uma empresa +relatorioBPeSubstituidoController.MSG.dataInicialMaiorFinal=Data inicial maior que final +relatorioBPeSubstituidoController.data.obrigatoria = Data inicial e Final são obrigatórias + # Relatório Movimento Por Orgao Concedente indexController.mniRelatorioMovimentoPorOrgaoConcedente.label = Movimento Por Órgão Concedente relatorioMovimentoPorOrgaoConcedente.window.title = Movimento Por Órgao Concedente diff --git a/web/gui/relatorios/filtroRelatorioBPeSubstituido.zul b/web/gui/relatorios/filtroRelatorioBPeSubstituido.zul new file mode 100644 index 000000000..bfe12613f --- /dev/null +++ b/web/gui/relatorios/filtroRelatorioBPeSubstituido.zul @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +