fixes bug#24771

fixes bug#24765

dev:lucas

qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@113318 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucas.taia 2022-07-12 21:44:39 +00:00
parent 668a7e255d
commit 7c926b2cd0
15 changed files with 1815 additions and 8 deletions

View File

@ -0,0 +1,264 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioPassagensAGERBean;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioPassagensAGER extends Relatorio {
private List<RelatorioPassagensAGERBean> lsDadosRelatorio;
private static Logger log = Logger.getLogger(RelatorioPassagensAGER.class);
public RelatorioPassagensAGER(Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
this.setCustomDataSource(new DataSource(this) {
@Override
public void initDados() throws Exception {
try {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
String fecInicioVenda = null;
if (parametros.get("fecInicioVenda") != null) {
fecInicioVenda = parametros.get("fecInicioVenda").toString() + " 00:00:00";
}
String fecFinalVenda = null;
if (parametros.get("fecFinalVenda") != null) {
fecFinalVenda = parametros.get("fecFinalVenda").toString() + " 23:59:59";
}
String linhaIds = parametros.get("linhaIds").toString();
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
String codOrgaoConcedente = parametros.get("CodOrgaoConcedente").toString();
String sql = getSql(fecInicioVenda, fecFinalVenda, linhaIds, empresa, codOrgaoConcedente);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
if (fecInicioVenda != null) {
stmt.setTimestamp("fecInicioVenda", new java.sql.Timestamp(sdf.parse(fecInicioVenda).getTime()));
}
if (fecFinalVenda != null) {
stmt.setTimestamp("fecFinalVenda", new java.sql.Timestamp(sdf.parse(fecFinalVenda).getTime()));
}
if (empresa != null && !empresa.equals("")) {
stmt.setInt("empresa_id", Integer.parseInt(empresa));
}
if (codOrgaoConcedente != null) {
stmt.setString("codOrgaoConcedente", codOrgaoConcedente);
}
ResultSet rset = null;
rset = stmt.executeQuery();
lsDadosRelatorio = new ArrayList<RelatorioPassagensAGERBean>();
while (rset.next()) {
RelatorioPassagensAGERBean bean = new RelatorioPassagensAGERBean();
bean.setEmpresa(rset.getString("empresa"));
bean.setCnpj(rset.getString("cnpj"));
bean.setDescLinha(rset.getString("descruta"));
bean.setDataVenda(rset.getString("datavenda"));
bean.setCategoria(rset.getString("categoria"));
bean.setStatus(rset.getString("status"));
bean.setChbpe(rset.getString("chbpe"));
bean.setNomePassageiro(rset.getString("NOMBPASAJERO"));
// bean.setOrgao(rset.getString("ORGAO"));
bean.setDataViagem(rset.getString("dataViagem"));
bean.setHoraViagem(rset.getString("horaViagem"));
bean.setCodOrigem(rset.getString("codOrigem"));
bean.setDescOrigem(rset.getString("descOrigem"));
bean.setCodDestino(rset.getString("codDestino"));
bean.setDescDestino(rset.getString("descDestino"));
bean.setPoltrona(rset.getString("poltrona"));
bean.setLinha(rset.getString("linha"));
bean.setNumBilhete(rset.getString("numBilhete"));
bean.setRG(rset.getString("RG"));
bean.setUfOrgaoDoc(rset.getString("uforgaodoc"));
bean.setCPF(rset.getString("CPF"));
bean.setTel(rset.getString("tel"));
bean.setEmail(rset.getString("email"));
bean.setEndereco(rset.getString("endereco"));
bean.setDesistencia(rset.getBoolean("desistencia"));
bean.setOcupacao(rset.getString("ocupacao"));
bean.setVlrTotal(rset.getBigDecimal("vlrTotal"));
lsDadosRelatorio.add(bean);
}
log.info("TAMANHO == null ? " + lsDadosRelatorio == null);
if (lsDadosRelatorio.size() > 0) {
log.info("TAMANHO DA LISTA: " + lsDadosRelatorio.size());
setLsDadosRelatorio(lsDadosRelatorio);
}
} catch (Exception e) {
log.error("Erro na geração do relatorio AGER: \n" + e);
e.printStackTrace();
throw e;
}
}
});
}
public void setLsDadosRelatorio(List<RelatorioPassagensAGERBean> lsDadosRelatorio) {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
this.lsDadosRelatorio = lsDadosRelatorio;
}
@Override
protected void processaParametros() throws Exception {
}
private String getSql(String fecInicioVenda, String fecFinalVenda, String linha, String empresa, String codOrgaoConcedente) {
StringBuilder sql = new StringBuilder();
sql.append("SELECT OC.DESCORGAO AS ORGAO, ");
sql.append("e.cnpj AS cnpj,");
sql.append("TO_CHAR(bpe.dt_venda, 'DD/MM/YY') AS datavenda, ");
sql.append("r.descruta AS descruta, ");
sql.append("ca.desccategoria AS categoria, ");
sql.append("bpe.chbpe AS chbpe, ");
sql.append("b.preciopagado AS tarifa, ");
sql.append(" case bpe.codstat ");
sql.append(" when '100' then ( ");
sql.append(" case ");
sql.append(" when bpe.tiposubstituicao is null and bpeSub.bpe_id is null and bpe.indcontingencia = 0 then 'Autorizado' ");
sql.append(" when bpe.tiposubstituicao is null and bpeSub.bpe_id is null and bpe.indcontingencia = 1 then 'Aut.Conting.' ");
sql.append(" when bpe.tiposubstituicao is not null then 'Autorizado/Substituição' ");
sql.append(" when bpeSub.bpe_id is not null then 'Autorizado/Substituído' ");
sql.append(" else 'Autorizado' ");
sql.append(" end ");
sql.append(" ) ");
sql.append(" when '102' then ( ");
sql.append(" case ");
sql.append(" when bpe.tiposubstituicao is not null then 'Substituição' ");
sql.append(" when bpeSub.bpe_id is not null then 'Substituído' ");
sql.append(" end ");
sql.append(" ) ");
sql.append(" when '135' then ( ");
sql.append(" case bpe.tipoevento ");
sql.append(" when '110111' then 'Cancelado' ");
sql.append(" when '110115' then 'Não embarcado' ");
sql.append(" else '' ");
sql.append(" end ");
sql.append(" ) ");
sql.append(" when '150' then 'Aut.Conting.' ");
sql.append(" when '-1' then 'Pendente Envio' ");
sql.append(" when '-2' then 'Pendente Envio' ");
sql.append(" when '-10' then 'Rejeitado Envio Contingência' ");
sql.append(" when '-20' then 'Rejeitado Envio Contingência' ");
sql.append(" else 'Rejeitado' ");
sql.append(" end as status, ");
sql.append("O.CODEMPRESAPORORGAO AS empresa,");
sql.append("TO_CHAR(B.FECHORVIAJE, 'DD/MM/YY') AS dataViagem, ");
sql.append("TO_CHAR(b.FECHORVIAJE, 'HH24:MI') AS horaViagem, ");
sql.append("ori.cveparada AS codorigem, ");
sql.append("ori.descparada AS descorigem, ");
sql.append("des.cveparada AS coddestino, ");
sql.append("des.descparada AS descdestino, ");
sql.append("B.NUMASIENTO AS POLTRONA, ");
sql.append("b.NUMFOLIOSISTEMA AS NUMBILHETE, ");
sql.append("b.NOMBPASAJERO AS NOMBPASAJERO, ");
sql.append("CASE ");
sql.append("WHEN b.DESCNUMDOC IS NOT NULL ");
sql.append("THEN b.DESCNUMDOC ELSE c.NUMIDENTIFICAUNO ");
sql.append("END AS RG, ");
sql.append("b.descorgaodoc uforgaodoc, ");
sql.append("CASE ");
sql.append("WHEN b.DESCNUMDOC2 IS NOT NULL ");
sql.append("THEN b.DESCNUMDOC2 ELSE c.NUMIDENTIFICADOS ");
sql.append("END AS CPF, ");
sql.append("r.PREFIXO AS LINHA, ");
sql.append("cd.DESCCALLE || ', ' || cd.NUMEXTERIOR || '-' || ");
sql.append("cd.DESCIUDAD || '/' || cd.DESESTADO AS ENDERECO, ");
sql.append("c.NUMTELEFONO AS tel,");
sql.append("c.DESCCORREO AS email, ");
sql.append("toc.DESCTIPO AS ocupacao, ");
sql.append("CASE ");
sql.append("WHEN B.MOTIVOCANCELACION_ID IN (31, 32, 90) ");
sql.append("THEN 1 ELSE 0 ");
sql.append("END AS DESISTENCIA, ");
sql.append(" (COALESCE(T.PRECIO, 0) + COALESCE(T.IMPORTEPEDAGIO,0)) ");
sql.append("-(COALESCE(b.PRECIOPAGADO, 0) + COALESCE(b.IMPORTEPEDAGIO,0)) AS vlrTotal ");
sql.append("FROM BOLETO b ");
sql.append("LEFT JOIN categoria ca ON b.categoria_id = ca.categoria_id ");
sql.append("LEFT JOIN empresa e ON e.empresa_id = b.EMPRESACORRIDA_ID ");
sql.append("LEFT JOIN marca m ON m.EMPRESA_ID = e.EMPRESA_ID ");
sql.append("LEFT JOIN parada ori ON ori.parada_id = b.origen_id ");
sql.append("LEFT JOIN parada des ON des.parada_id = b.destino_id ");
sql.append("LEFT JOIN ruta r ON r.ruta_id = b.ruta_id ");
sql.append("LEFT JOIN cliente c ON c.cliente_id = b.cliente_id ");
sql.append("LEFT JOIN CLIENTE_DIRECCION cd ON cd.cliente_id = c.cliente_id AND cd.ACTIVO = 1 ");
sql.append("LEFT JOIN TIPO_OCUPACION toc ON toc.TIPOOCUPACION_ID = b.TIPOOCUPACION_ID ");
sql.append("LEFT JOIN ORGAO_CONCEDENTE OC ON r.ORGAOCONCEDENTE_ID = OC.ORGAOCONCEDENTE_ID ");
sql.append("LEFT JOIN ORGAO_EMP_PARAM O ON e.empresa_id = O.EMPRESA_ID AND OC.ORGAOCONCEDENTE_ID = O.ORGAOCONCEDENTE_ID AND O.ACTIVO = 1 ");
sql.append("LEFT JOIN TARIFA T ON r.RUTA_ID = T.RUTA_ID AND b.ORIGEN_ID = T.ORIGEN_ID AND b.DESTINO_ID = T.DESTINO_ID AND b.CLASESERVICIO_ID = T.CLASESERVICIO_ID AND m.MARCA_ID = T.MARCA_ID AND oc.ORGAOCONCEDENTE_ID = T.ORGAOCONCEDENTE_ID ");
sql.append("INNER JOIN VIGENCIA_TARIFA vt ON vt.VIGENCIATARIFA_ID = t.VIGENCIATARIFA_ID AND b.FECHORVIAJE BETWEEN vt.FECINICIOVIGENCIA AND vt.FECFINVIGENCIA ");
sql.append("LEFT JOIN bpe bpe ON b.boleto_id = bpe.boleto_id ");
sql.append("LEFT JOIN bpe bpesub ON ( bpesub.bpesubstituicao_id = bpe.bpe_id AND bpesub.activo = 1 ) ");
sql.append("WHERE b.MOTIVOCANCELACION_ID IS NULL ");
sql.append("AND b.fechorventa BETWEEN :fecInicioVenda AND :fecFinalVenda ");
sql.append("AND (b.MOTIVOCANCELACION_ID not in (4) or b.MOTIVOCANCELACION_ID is null) ");
if (linha != null && !linha.equals("Todas")) {
sql.append(" AND r.ruta_id in (").append(linha).append(") ");
}
if (!empresa.isEmpty()) {
sql.append("AND b.empresacorrida_id = :empresa_id ");
}
if (codOrgaoConcedente != null) {
sql.append(" AND OC.ORGAOCONCEDENTE_ID = :codOrgaoConcedente");
}
sql.append(" group by OC.DESCORGAO, O.CODEMPRESAPORORGAO, B.FECHORVIAJE, ca.desccategoria, ");
sql.append(" ori.cveparada, ori.descparada, des.cveparada, B.NUMASIENTO, des.descparada, ");
sql.append(" b.FECCORRIDA, C.NUMTELEFONO,toc.DESCTIPO, c.DESCCORREO, CASE WHEN b.DESCNUMDOC IS NOT NULL THEN b.DESCNUMDOC ELSE c.NUMIDENTIFICAUNO END, ");
sql.append(" b.NUMFOLIOSISTEMA, CASE WHEN b.DESCNUMDOC2 IS NOT NULL THEN b.DESCNUMDOC2 ELSE c.NUMIDENTIFICADOS END, b.NOMBPASAJERO, b.NUMIDENTIFICACION, T.PRECIO, b.PRECIOPAGADO, b.descorgaodoc, r.PREFIXO, cd.DESCCALLE || ', ' || cd.NUMEXTERIOR || '-' || cd.DESCIUDAD || '/' || cd.DESESTADO, B.MOTIVOCANCELACION_ID, ");
sql.append(" T.IMPORTEOUTROS, T.IMPORTEPEDAGIO, T.IMPORTESEGURO, T.IMPORTETAXAEMBARQUE, T.IMPORTETPP, b.descorgaodoc, ");
sql.append(" b.IMPORTECATEGORIA, b.IMPORTEOUTROS, b.IMPORTEPEDAGIO, b.IMPORTESEGURO, b.IMPORTETAXAEMBARQUE, b.IMPORTETPP, e.nombempresa, e.cnpj, bpe.dt_venda, r.descruta, bpe.codstat, bpe.tiposubstituicao, bpesub.bpe_id, bpe.indcontingencia, bpe.tipoevento, bpe.chbpe ");
sql.append(" ORDER BY OC.DESCORGAO, O.CODEMPRESAPORORGAO, b.FECHORVIAJE, descorigem, descdestino ");
return sql.toString();
}
}

View File

@ -0,0 +1,49 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
msg.a=à
#Labels header
header.periodo=Período:
header.data.hora=Data/Hora\:
header.pagina=Página\:
header.filtro=Filtro\:
header.filtro.servico=Serviço\:
header.filtro.linha=Linha\:
header.filtro.grupo=Grupo de Linhas\:
header.empresa=Empresa\:
header.periodo.viagem=Período Viagem\:
header.periodo.venda=Período Venda\:
header.orgaoConcedente=Orgão Concedente\:
header.tipopassagem=Tipo Passagem\:
#Labels detail
detail.poltrona=Poltrona
detail.numBilhete=N° Bilhete
detail.ufOrgaoEmissor=UF do órgão emissor
detail.endereco=Endereço
detail.ocupacao=Ocupação
detail.telEmail=Tel/\nE-mail
detail.desistencia=Houve Desistência?
detail.gratuidade=Valor Gratuidade concedida
detail.empresa=Empresa
detail.cnpj=CNPJ da Empresa
detail.codLinha=Código Linha
detail.linha=Linha
detail.dataEmissao=Data da Emissão do Bilhete
detail.nome=Nome
detail.rg=RG
detail.cpf=CPF
detail.tarifa=Tarifa
detail.outros=Outros
detail.total=Valor Total
detail.desconto=Valor do Desconto
detail.pagar=Valor a Pagar
detail.categoria=Tipo de Passagem
detail.origem=Origem
detail.destino=Destino
detail.dataViagem=Data Viagem
detail.horaViagem=Horário da Viagem
detail.status=STATUS do BP-e
detail.chave=Chave de Acesso do BP-e

View File

@ -0,0 +1,49 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
msg.a=à
#Labels header
header.periodo=Período:
header.data.hora=Data/Hora\:
header.pagina=Página\:
header.filtro=Filtro\:
header.filtro.servico=Serviço\:
header.filtro.linha=Linha\:
header.filtro.grupo=Grupo de Linhas\:
header.empresa=Empresa\:
header.periodo.viagem=Período Viagem\:
header.periodo.venda=Período Venda\:
header.orgaoConcedente=Orgão Concedente\:
header.tipopassagem=Tipo Passagem\:
#Labels detail
detail.poltrona=Poltrona
detail.numBilhete=N° Bilhete
detail.ufOrgaoEmissor=UF do órgão emissor
detail.endereco=Endereço
detail.ocupacao=Ocupação
detail.telEmail=Tel/\nE-mail
detail.desistencia=Houve Desistência?
detail.gratuidade=Valor Gratuidade concedida
detail.empresa=Empresa
detail.cnpj=CNPJ da Empresa
detail.codLinha=Código Linha
detail.linha=Linha
detail.dataEmissao=Data da Emissão do Bilhete
detail.nome=Nome
detail.rg=RG
detail.cpf=CPF
detail.tarifa=Tarifa
detail.outros=Outros
detail.total=Valor Total
detail.desconto=Valor do Desconto
detail.pagar=Valor a Pagar
detail.categoria=Tipo de Passagem
detail.origem=Origem
detail.destino=Destino
detail.dataViagem=Data Viagem
detail.horaViagem=Horário da Viagem
detail.status=STATUS do BP-e
detail.chave=Chave de Acesso do BP-e

View File

@ -0,0 +1,604 @@
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioPassagensAGER" pageWidth="1320" pageHeight="595" orientation="Landscape" columnWidth="1300" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" uuid="3ee05e26-199e-4ad2-a96b-dd421627aceb">
<property name="ireport.zoom" value="1.6500000000000021"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
<parameter name="USUARIO_ID" class="java.lang.String"/>
<parameter name="linhas" class="java.lang.String"/>
<parameter name="TITULO" class="java.lang.String"/>
<parameter name="fecInicioVenda" class="java.lang.String"/>
<parameter name="fecFinalVenda" class="java.lang.String"/>
<parameter name="nomb_empresa" class="java.lang.String"/>
<parameter name="tipGratu" class="java.lang.String"/>
<parameter name="orgaoConcedente" class="java.lang.String"/>
<field name="codOrigem" class="java.lang.String"/>
<field name="descOrigem" class="java.lang.String"/>
<field name="codDestino" class="java.lang.String"/>
<field name="descDestino" class="java.lang.String"/>
<field name="empresa" class="java.lang.String"/>
<field name="dataViagem" class="java.lang.String"/>
<field name="horaViagem" class="java.lang.String"/>
<field name="poltrona" class="java.lang.String"/>
<field name="linha" class="java.lang.String"/>
<field name="numBilhete" class="java.lang.String"/>
<field name="nomeIdoso" class="java.lang.String"/>
<field name="RG" class="java.lang.String"/>
<field name="CPF" class="java.lang.String"/>
<field name="endereco" class="java.lang.String"/>
<field name="tel" class="java.lang.String"/>
<field name="email" class="java.lang.String"/>
<field name="desistencia" class="java.lang.Boolean"/>
<field name="vlrTotal" class="java.math.BigDecimal"/>
<field name="ufOrgaoDoc" class="java.lang.String"/>
<field name="ocupacao" class="java.lang.String"/>
<field name="cnpj" class="java.lang.String"/>
<field name="descLinha" class="java.lang.String"/>
<field name="dataVenda" class="java.lang.String"/>
<field name="nomePassageiro" class="java.lang.String"/>
<field name="outros" class="java.math.BigDecimal"/>
<field name="valorTarifa" class="java.math.BigDecimal"/>
<field name="valorDesconto" class="java.lang.String"/>
<field name="valorPagar" class="java.lang.String"/>
<field name="categoria" class="java.lang.String"/>
<field name="status" class="java.lang.String"/>
<field name="chbpe" class="java.lang.String"/>
<title>
<band height="126">
<textField>
<reportElement x="0" y="0" width="689" height="37" uuid="8c77b68e-7c9d-4b71-8cc1-fbb6aaf36f9c"/>
<textElement markup="styled">
<font size="22" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement x="802" y="0" width="105" height="37" uuid="32538cdd-7697-4a03-8035-f9474e869395"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="689" y="0" width="113" height="37" uuid="abc399f3-d012-46aa-b4e9-678ab812bee4"/>
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="131" y="37" width="799" height="20" uuid="f25e6675-4dcb-4d37-8586-e50abe4013af"/>
<textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) : "" )]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1" y="37" width="130" height="20" uuid="e15cecc4-995a-4cbc-934e-44970c809849"/>
<textFieldExpression><![CDATA[$R{header.periodo.venda}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="56" width="130" height="20" isRemoveLineWhenBlank="true" uuid="d3d41ddb-2dbb-4b0e-bf82-02af7f81b63f"/>
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="131" y="96" width="799" height="20" isRemoveLineWhenBlank="true" uuid="c61794c6-537b-4cab-9a5c-41c3101cdaac"/>
<textFieldExpression><![CDATA[$P{orgaoConcedente}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="96" width="130" height="20" isRemoveLineWhenBlank="true" uuid="7a4f4ad0-6b74-4194-b089-2bf61e0b7ce4"/>
<textFieldExpression><![CDATA[$R{header.orgaoConcedente}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="131" y="76" width="799" height="20" isRemoveLineWhenBlank="true" uuid="7bc881ef-b270-4178-8416-54ad2602eaab"/>
<textFieldExpression><![CDATA[$P{linhas}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="131" y="56" width="799" height="20" isRemoveLineWhenBlank="true" uuid="33bc773a-8bd3-4bc0-946c-664d78a19f5c"/>
<textFieldExpression><![CDATA[$P{nomb_empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="2" y="76" width="130" height="20" isRemoveLineWhenBlank="true" uuid="c3b8e525-e015-4aaa-a505-1a92f3d6b0fb"/>
<textFieldExpression><![CDATA[$R{header.filtro.linha}]]></textFieldExpression>
</textField>
</band>
</title>
<columnHeader>
<band height="20">
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="1086" y="0" width="42" height="20" uuid="f1fb4c10-0b23-48a3-ab44-ec9423860a3a"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.horaViagem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="42" height="20" uuid="aa6e1262-d10a-466f-9b10-736d01b43c08"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.empresa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="393" y="0" width="47" height="20" uuid="7cc48455-63db-458c-9a56-b479040b4d58"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.cpf}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="598" y="0" width="65" height="20" uuid="9156a7f6-7830-4dd0-aa56-8f98130e1fae"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.total}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="1039" y="0" width="47" height="20" uuid="9ef59886-6218-4cf5-8926-f7f2e1e95cc6"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.dataViagem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="295" y="0" width="98" height="20" uuid="d36987f3-20aa-4e3d-8bb6-5cacf23aa933"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.nome}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="124" y="0" width="42" height="20" uuid="86f8576e-d934-4f0d-9b87-4a40bef953ab"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.codLinha}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="875" y="0" width="82" height="20" uuid="a1aab05d-496e-4fe5-9c2e-760b7592a7fd"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.origem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="957" y="0" width="82" height="20" uuid="7778d2ac-5f98-4955-9bbf-e474a1f16dad"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.destino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="440" y="0" width="46" height="20" uuid="16db37b0-e079-4427-88f8-9b429db26ce3"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.rg}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="42" y="0" width="82" height="20" uuid="840aebb5-58ea-477a-adc2-9bca99115c1d"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.cnpj}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="166" y="0" width="82" height="20" uuid="00ab5485-d855-4597-bb32-888700a96fd2"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.linha}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="248" y="0" width="47" height="20" uuid="a8630efd-6599-4fff-964c-32a8fa6d44be"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.dataEmissao}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="551" y="0" width="47" height="20" uuid="808797b8-8685-4010-9076-4b93206db0c9"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.outros}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="486" y="0" width="65" height="20" uuid="5c31c8f4-68ba-4674-be34-39a6973c0ddb"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.tarifa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="793" y="0" width="82" height="20" uuid="1bb436ea-7975-400b-949f-53f206016514"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.categoria}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="1128" y="0" width="82" height="20" uuid="eefa40a6-0c9f-4287-aa7b-68da99bcbc43"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.status}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="1210" y="0" width="82" height="20" uuid="a46b10eb-df51-4019-a26c-193be36757b2"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.chave}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="663" y="0" width="65" height="20" uuid="a0ef47c0-20ed-40b7-8407-8856331a6f4b"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.desconto}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToBandHeight" x="728" y="0" width="65" height="20" uuid="5ec05ce8-a6fb-42af-ba75-74c19f8c70ca"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.pagar}]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="20" splitType="Prevent">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="875" y="0" width="82" height="20" uuid="e91ddf3d-5ee2-42d3-b8d4-01c92a2f462a"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{descOrigem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="957" y="0" width="82" height="20" uuid="d9ec1d06-efc7-4a65-96a2-e88e89f4ca91"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{descDestino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="42" height="20" uuid="aeca5093-6645-4f7d-814f-48abec2773bc"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1039" y="0" width="47" height="20" uuid="6a5746f1-e112-4ea2-ac52-f3c4bf6f7c96"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1086" y="0" width="42" height="20" uuid="1ae38af7-3815-4fc0-ba8c-a87f6a26914a"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{horaViagem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="124" y="0" width="42" height="20" uuid="bde0e80b-872a-4b26-b882-83efc01c25b7"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{linha}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="440" y="0" width="46" height="20" uuid="0aeeb871-0a94-4ce7-97b6-892a7d138ed0"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{RG}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="393" y="0" width="47" height="20" uuid="91a52282-d145-4f43-9d74-76d287e8969e"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{CPF}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="598" y="0" width="65" height="20" uuid="1d3977c6-190b-4465-a062-40bed4826c84"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{vlrTotal}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="42" y="0" width="82" height="20" uuid="c5e09c81-3eb9-411d-b668-67bb634d2d0d"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{cnpj}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="166" y="0" width="82" height="20" uuid="1babccfa-114f-419e-85b1-570d2622a6df"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{descLinha}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="248" y="0" width="47" height="20" uuid="bfc7729d-64f3-4bcd-80ee-e387e3d80475"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="295" y="0" width="98" height="20" uuid="0803ee7f-f5d1-4cfb-8fe5-a6109922ab26"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{nomePassageiro}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="551" y="0" width="47" height="20" uuid="716641f4-b0eb-44b2-9dfb-302a9637e317"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{outros}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="486" y="0" width="65" height="20" uuid="ef350676-b7e4-433f-abca-0401274e5fa0"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorTarifa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="793" y="0" width="82" height="20" uuid="55069a26-0ab4-4fee-9dfd-609cb7f46087"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{categoria}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1128" y="0" width="82" height="20" uuid="f39b3174-7324-42f4-b8c3-f40392cc62d1"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{status}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1210" y="0" width="82" height="20" uuid="33f29190-a9f0-4b67-9768-a93cabb94970"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{chbpe}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="663" y="0" width="65" height="20" uuid="3a09d1e3-5e48-4e18-acfc-614334920ee2"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorDesconto}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="728" y="0" width="65" height="20" uuid="e5525898-b259-4f20-8b4a-bbd22ab0364e"/>
<box>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
<font fontName="SansSerif" size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorPagar}]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>
<band height="22">
<textField>
<reportElement x="0" y="2" width="930" height="20" uuid="254c9278-71b2-4ffa-926c-5b0055e02cda"/>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,296 @@
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
import java.math.BigDecimal;
public class RelatorioPassagensAGERBean {
private String empresa;
private String dataViagem;
private String orgao;
private String horaViagem;
private String codOrigem;
private String descOrigem;
private String codDestino;
private String descDestino;
private String poltrona;
private String linha;
private String numBilhete;
private String nomeIdoso;
private String RG;
private String ufOrgaoDoc;
private String CPF;
private String endereco;
private String tel;
private String email;
private String ocupacao;
private Boolean desistencia;
private BigDecimal vlrTotal;
private String cnpj;
private String descLinha;
private String dataVenda;
private String categoria;
private String status;
private String chbpe;
private String nomePassageiro;
private String outros;
private BigDecimal valorTarifa;
private BigDecimal valorDesconto;
private BigDecimal valorPagar;
public String getEmpresa() {
return empresa;
}
public void setEmpresa(String empresa) {
this.empresa = empresa;
}
public String getDataViagem() {
return dataViagem;
}
public void setDataViagem(String dataViagem) {
this.dataViagem = dataViagem;
}
public String getHoraViagem() {
return horaViagem;
}
public void setHoraViagem(String horaViagem) {
this.horaViagem = horaViagem;
}
public String getCodOrigem() {
return codOrigem;
}
public void setCodOrigem(String codOrigem) {
this.codOrigem = codOrigem;
}
public String getDescOrigem() {
return descOrigem;
}
public void setDescOrigem(String descOrigem) {
this.descOrigem = descOrigem;
}
public String getCodDestino() {
return codDestino;
}
public void setCodDestino(String codDestino) {
this.codDestino = codDestino;
}
public String getDescDestino() {
return descDestino;
}
public void setDescDestino(String descDestino) {
this.descDestino = descDestino;
}
public String getPoltrona() {
return poltrona;
}
public void setPoltrona(String poltrona) {
this.poltrona = poltrona;
}
public String getLinha() {
return linha;
}
public void setLinha(String linha) {
this.linha = linha;
}
public String getNumBilhete() {
return numBilhete;
}
public void setNumBilhete(String numBilhete) {
this.numBilhete = numBilhete;
}
public String getNomeIdoso() {
return nomeIdoso;
}
public void setNomeIdoso(String nomeIdoso) {
this.nomeIdoso = nomeIdoso;
}
public String getRG() {
return RG;
}
public void setRG(String rG) {
RG = rG;
}
public String getUfOrgaoDoc() {
return ufOrgaoDoc;
}
public void setUfOrgaoDoc(String ufOrgaoDoc) {
this.ufOrgaoDoc = ufOrgaoDoc;
}
public String getCPF() {
return CPF;
}
public void setCPF(String cPF) {
CPF = cPF;
}
public String getEndereco() {
return endereco;
}
public void setEndereco(String endereco) {
this.endereco = endereco;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Boolean getDesistencia() {
return desistencia;
}
public void setDesistencia(Boolean desistencia) {
this.desistencia = desistencia;
}
public BigDecimal getVlrTotal() {
return vlrTotal;
}
public void setVlrTotal(BigDecimal vlrTotal) {
this.vlrTotal = vlrTotal;
}
public String getOrgao() {
return orgao;
}
public void setOrgao(String orgao) {
this.orgao = orgao;
}
public String getOcupacao() {
return ocupacao;
}
public void setOcupacao(String ocupacao) {
this.ocupacao = ocupacao;
}
public String getCnpj() {
return cnpj;
}
public void setCnpj(String cnpj) {
this.cnpj = cnpj;
}
public String getDescLinha() {
return descLinha;
}
public void setDescLinha(String descLinha) {
this.descLinha = descLinha;
}
public String getDataVenda() {
return dataVenda;
}
public void setDataVenda(String dataVenda) {
this.dataVenda = dataVenda;
}
public String getCategoria() {
return categoria;
}
public void setCategoria(String categoria) {
this.categoria = categoria;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getChbpe() {
return chbpe;
}
public void setChbpe(String chbpe) {
this.chbpe = chbpe;
}
public String getNomePassageiro() {
return nomePassageiro;
}
public void setNomePassageiro(String nomePassageiro) {
this.nomePassageiro = nomePassageiro;
}
public String getOutros() {
return outros;
}
public void setOutros(String outros) {
this.outros = outros;
}
public BigDecimal getValorTarifa() {
return valorTarifa;
}
public void setValorTarifa(BigDecimal valorTarifa) {
this.valorTarifa = valorTarifa;
}
public BigDecimal getValorDesconto() {
return valorDesconto;
}
public void setValorDesconto(BigDecimal valorDesconto) {
this.valorDesconto = valorDesconto;
}
public BigDecimal getValorPagar() {
return valorPagar;
}
public void setValorPagar(BigDecimal valorPagar) {
this.valorPagar = valorPagar;
}
}

View File

@ -33,6 +33,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.MotivoCancelacionService;
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
@ -245,14 +246,29 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
@Override
public void doAfterCompose(Component comp) throws Exception {
lsLinhas = rutaService.obtenerTodos();
lsEmpresas = empresaService.obtenerTodos();
lsCategorias = categoriaService.obtenerTodos();
lsOrgaoConcedente = orgaocConcedenteService.obtenerTodos();
listSelectedTipoGratuidade = new ArrayList<Categoria>();
super.doAfterCompose(comp);
Boolean isAGER = Boolean.FALSE;
if(arg.get("isAGER") != null){
isAGER = (Boolean) arg.get("isAGER");
}
if (isAGER) {
lsOrgaoConcedente = orgaocConcedenteService.buscar("AGER/MT");
OrgaoConcedente orgao = lsOrgaoConcedente.get(0);
cmbOrgaoConcedente.setText(lsOrgaoConcedente.isEmpty() ? "" : orgao.getDescOrgao());
lsCategorias = categoriaService.buscarCategoriaOrgaoConcedente(orgao.getDescOrgao());
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
lsLinhas = rutaService.buscaRutasFromOrgao(orgao);
} else {
lsOrgaoConcedente = orgaocConcedenteService.obtenerTodos();
lsCategorias = categoriaService.obtenerTodos();
lsEmpresas = empresaService.obtenerTodos();
lsLinhas = rutaService.obtenerTodos();
}
listSelectedTipoGratuidade = new ArrayList<Categoria>();
}
public List<Empresa> getLsEmpresas() {

View File

@ -0,0 +1,283 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.apache.log4j.Logger;
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.Datebox;
import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Categoria;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
import com.rjconsultores.ventaboletos.entidad.PerfilFuncion;
import com.rjconsultores.ventaboletos.entidad.Ruta;
import com.rjconsultores.ventaboletos.entidad.Usuario;
import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioPassagensAGER;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.CategoriaService;
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.service.UsuarioService;
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.render.RenderRelatorioLinhaHorario;
@Controller("relatorioPassagensAGERController")
@Scope("prototype")
public class RelatorioPassagensAGERController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
@Autowired
private DataSource dataSourceRead;
@Autowired
private CategoriaService categoriaService;
@Autowired
private UsuarioService usuarioService;
@Autowired
private RutaService rutaService;
@Autowired
private OrgaoConcedenteService orgaoConcedenteService;
private Datebox datInicialVenda;
private Datebox datFinalVenda;
private MyComboboxEstandar cmbEmpresa;
private MyComboboxEstandar cmbOrgaoConcedente;
private List<Categoria> lsCategorias;
private List<Empresa> lsEmpresas;
private List<OrgaoConcedente> lsOrgaosConcedentes;
private Textbox txtPalavraPesquisaLinha;
private MyListbox linhaList;
private MyListbox linhaListSelList;
private static Logger log = Logger.getLogger(RelatorioPassagensAGERController.class);
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
if (temPermissao("USUARIO.RELATORIO.AGER")) {
lsOrgaosConcedentes = orgaoConcedenteService.buscar("AGER/MT");
cmbOrgaoConcedente.setText(lsOrgaosConcedentes.isEmpty() ? "" : lsOrgaosConcedentes.get(0).getDescOrgao());
} else {
lsOrgaosConcedentes = orgaoConcedenteService.obtenerTodos();
lsCategorias = categoriaService.obtenerTodos();
}
linhaList.setItemRenderer(new RenderRelatorioLinhaHorario());
linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario());
}
private void executarPesquisaLinha() {
String palavraPesquisaRuta = txtPalavraPesquisaLinha.getText();
if (temPermissao("USUARIO.RELATORIO.AGER")) {
if (cmbOrgaoConcedente.getSelectedItem() == null) {
return;
}
OrgaoConcedente orgaoConcedente = (OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue();
linhaList.setData(rutaService.buscaRuta(palavraPesquisaRuta, orgaoConcedente));
} else {
linhaList.setData(rutaService.buscaRuta(palavraPesquisaRuta));
}
if (linhaList.getData().length == 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("relatorioLinhasHorarioController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
}
}
}
private void executarRelatorio() throws Exception {
Map<String, Object> parametros = new HashMap<String, Object>();
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
if (this.datInicialVenda.getValue() != null) {
parametros.put("fecInicioVenda", sdf.format(this.datInicialVenda.getValue()));
}
if (this.datFinalVenda.getValue() != null) {
parametros.put("fecFinalVenda", sdf.format(this.datFinalVenda.getValue()));
}
if (cmbOrgaoConcedente.getSelectedIndex() == -1) {
Messagebox.show(Labels.getLabel("relatorioPassagensAGERController.orgaoConcedente.obrigatorio"),
Labels.getLabel("relatorioPassagensController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
return;
}
if (parametros.get("fecInicioVenda") == null && parametros.get("datFinalVenda") == null) {
Messagebox.show(Labels.getLabel("relatorioPassagensAGERController.data.obrigatoria"),
Labels.getLabel("relatorioPassagensController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
return;
}
StringBuilder linhas = new StringBuilder();
StringBuilder linhaIds = new StringBuilder();
if (linhaListSelList.getListData().isEmpty()) {
linhas.append("Todas");
linhaIds.append("Todas");
} else {
for (Object obj : linhaListSelList.getListData()) {
Ruta ruta = (Ruta) obj;
linhas.append(ruta.getDescruta()).append(",");
linhaIds.append(ruta.getRutaId()).append(",");
}
// removendo ultima virgula
linhaIds = linhaIds.delete(linhaIds.length() - 1, linhaIds.length());
linhas = linhas.delete(linhas.length() - 1, linhas.length());
}
parametros.put("linhas", linhas.append(";").toString());
parametros.put("linhaIds", linhaIds.toString());
if (cmbEmpresa.getSelectedIndex() != -1) {
parametros.put("empresa", ((Empresa) cmbEmpresa.getSelectedItem().getValue()).getEmpresaId());
parametros.put("nomb_empresa", ((Empresa) cmbEmpresa.getSelectedItem().getValue()).getNombempresa());
} else {
parametros.put("nomb_empresa", "Todas");
}
if (cmbOrgaoConcedente.getSelectedIndex() != -1) {
parametros.put("orgaoConcedente", ((OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue()).getDescOrgao());
parametros.put("CodOrgaoConcedente", ((OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue()).getOrgaoConcedenteId());
}
parametros.put("TITULO", Labels.getLabel("relatorioPassagensAGERController.window.title"));
Relatorio relatorio = new RelatorioPassagensAGER(parametros, dataSourceRead.getConnection());
Map<String, Object> args = new HashMap<String, Object>();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioPassagensAGERController.window.title"), args, MODAL);
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
public void onClick$btnPesquisaLinha(Event ev) {
executarPesquisaLinha();
}
public void onClick$btnLimparLinha(Event ev) {
linhaList.clearSelection();
linhaListSelList.setData(new ArrayList<Ruta>());
linhaList.setItemRenderer(new RenderRelatorioLinhaHorario());
linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario());
}
public void onDoubleClick$linhaList(Event ev) {
linhaListSelList.addItemNovo(linhaList.getSelected());
}
private boolean temPermissao(String permissao) {
Usuario usuario = usuarioService.obtenerID(UsuarioLogado.getUsuarioLogado().getUsuarioId());
for (UsuarioPerfil up : usuario.getUsuarioPerfilList()) {
List<PerfilFuncion> listPerfilFuncion = up.getPerfil().getPerfilFuncionList();
for (PerfilFuncion pf : listPerfilFuncion) {
if (pf.getFuncionSistema().getDescruta().equals(permissao)) {
return true;
}
}
}
return false;
}
public List<Categoria> getLsCategorias() {
return lsCategorias;
}
public void setLsCategorias(List<Categoria> lsCategorias) {
this.lsCategorias = lsCategorias;
}
public Datebox getDatInicialVenda() {
return datInicialVenda;
}
public void setDatInicialVenda(Datebox datInicialVenda) {
this.datInicialVenda = datInicialVenda;
}
public Datebox getDatFinalVenda() {
return datFinalVenda;
}
public void setDatFinalVenda(Datebox datFinalVenda) {
this.datFinalVenda = datFinalVenda;
}
public MyListbox getLinhaListSelList() {
return linhaListSelList;
}
public void setLinhaListSelList(MyListbox linhaListSelList) {
this.linhaListSelList = linhaListSelList;
}
public Textbox getTxtPalavraPesquisaLinha() {
return txtPalavraPesquisaLinha;
}
public void setTxtPalavraPesquisaLinha(Textbox txtPalavraPesquisaLinha) {
this.txtPalavraPesquisaLinha = txtPalavraPesquisaLinha;
}
public List<Empresa> getLsEmpresas() {
return lsEmpresas;
}
public void setLsEmpresas(List<Empresa> lsEmpresas) {
this.lsEmpresas = lsEmpresas;
}
public List<OrgaoConcedente> getLsOrgaosConcedentes() {
return lsOrgaosConcedentes;
}
public void setLsOrgaosConcedentes(List<OrgaoConcedente> lsOrgaosConcedentes) {
this.lsOrgaosConcedentes = lsOrgaosConcedentes;
}
public MyComboboxEstandar getCmbOrgaoConcedente() {
return cmbOrgaoConcedente;
}
public void setCmbOrgaoConcedente(MyComboboxEstandar cmbOrgaoConcedente) {
this.cmbOrgaoConcedente = cmbOrgaoConcedente;
}
}

View File

@ -0,0 +1,16 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.estatisticos;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class SubMenuRelatorioAGER extends DefaultItemMenuSistema {
public SubMenuRelatorioAGER() {
super("indexController.mnSubMenuAGER.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS";
}
}

View File

@ -0,0 +1,31 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
import java.util.Map;
import org.zkoss.util.resource.Labels;
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuRelatorioPassagensAGER extends DefaultItemMenuSistema {
public ItemMenuRelatorioPassagensAGER() {
super("indexController.mniRelatorioPassagensAGER.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOPASSAGENSAGER";
}
@SuppressWarnings("unchecked")
@Override
public void ejecutar() {
Map map = super.getArgs();
map.put("isAGER", Boolean.TRUE);
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioGratuidade.zul",
Labels.getLabel("relatorioPassagensAGERController.window.title"), map , desktop);
}
}

View File

@ -190,7 +190,9 @@ analitico.gerenciais.estatisticos.relatorioCorridas=com.rjconsultores.ventabolet
analitico.gerenciais.estatisticos.gratuidades=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeANTT
analitico.gerenciais.estatisticos.gratuidadeAGR=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeAGR
analitico.gerenciais.estatisticos.gratuidadeARTESP=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeARTESP
analitico.gerenciais.estatisticos.gratuidadeAGER=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeAGER
analitico.gerenciais.estatisticos.AGER=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.estatisticos.SubMenuRelatorioAGER
analitico.gerenciais.estatisticos.AGER.gratuidadeAGER=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeAGER
analitico.gerenciais.estatisticos.AGER.passagensAGER=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioPassagensAGER
analitico.gerenciais.estatisticos.gratuidadesANTT=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidade
analitico.gerenciais.estatisticos.mensalDAER=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioMensalDAER
analitico.gerenciais.estatisticos.gratuidadesIdosoDeficiente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeIdosoDeficiente

View File

@ -322,6 +322,7 @@ indexController.mniRelatorioGratuidadeANTT.label=Relatório Gratuidades ANTT
indexController.mniRelatorioGratuidadeAGR.label = Gratuidades AGR
indexController.mniRelatorioGratuidadeARTESP.label=Relatório Gratuidade ARTESP
indexController.mniRelatorioGratuidadeAGER.label=Relatório Gratuidade AGER
indexController.mniRelatorioPassagensAGER.label = Relatório Passagens AGER
indexController.mniRelatorioOperacionalFinanceiro.label=Financial Operating
indexController.mniRelatorioBilhetesVendidos.label=Sales Ticket
indexController.mniRelatorioGratuidadeIdosoDeficiente.label=Gratuidades Idoso/Deficiente
@ -472,6 +473,8 @@ indexController.mniAuditoria.label=Audit
indexController.tipoConfComissao.label=Tipo Conf. Pend. Comissão
indexController.mniIntegracaoTotvs.label=Integração Totvs
indexController.mnSubMenuAGER.label=Relatório AGER
# Relatório de Forma de Pagamento por Agência
formaPagamentoAgenciaController.mniRelatorioFinanceiro.label=Payment Method by Point of Sale
formaPagamentoAgenciaController.window.title=Forma de Pagamento por Agência
@ -8853,6 +8856,26 @@ relatorioGratuidadeAGERController.lbNumRuta.value=Num. Linha
relatorioGratuidadeAGERController.lbPrefixo.value=Prefixo
relatorioGratuidadeAGERController.lvVenda=Venda
relatorioGratuidadeAGERController.lbOrgao.value=Orgão Concedente
# Relatório Passagens AGER
relatorioPassagensAGERController.window.title = Relatório Passagens AGER
relatorioPassagensAGERController.data.obrigatoria = Data inicial e Final são obrigatórias
relatorioPassagensAGERController.orgaoConcedente.obrigatorio = Orgão Concedente é obrigatório
relatorioPassagensAGERController.tipo.obrigatoria = Tipo de passagens é obrigatório
relatorioPassagensAGERController.lbEmpresa.value = Empresa
relatorioPassagensAGERController.lbAgencia.value = Agência
relatorioPassagensAGERController.lbLinha.value = Linha
relatorioPassagensAGERController.lbOrigem.value = Origem
relatorioPassagensAGERController.lbDestino.value = Destino
relatorioPassagensAGERController.lbDataIniVenda.value = Data Inicio
relatorioPassagensAGERController.lbDataFinVenda.value = Data Fim
relatorioPassagensAGERController.btnPesquisa.value = Pesquisar
relatorioPassagensAGERController.btnLimpar.value = Limpar
relatorioPassagensAGERController.lbNumRuta.value = Num. Linha
relatorioPassagensAGERController.lbPrefixo.value = Prefixo
relatorioPassagensAGERController.lvVenda = Venda
relatorioPassagensAGERController.lbOrgao.value = Orgão Concedente
editarEmpresaController.usarAliasMapaViagemVenda.ajuda=Na tela de Venda o botão de Mapa de Viagem deve usar Alias para as Localidades.
editarClienteController.MSG.validacaoCPFInvalido=CPF inválido

View File

@ -476,6 +476,8 @@ indexController.mniTipoConvenio.label = Tipo convenio
indexController.mniCuponConvenio.label = Boleto convenio
indexController.mniPrecioVentaja.label = Uso selectivo
indexController.mnSubMenuAGER.label=Relatório AGER
# Muestra a Búsqueda Tipo clase
busquedaClaseServicioController.window.title = Clase de servicio
busquedaClaseServicioController.btnRefresh.tooltiptext = Actualizar
@ -8649,6 +8651,26 @@ relatorioGratuidadeAGERController.lbTipoGratuidade.value = Tipo de alojamiento
relatorioGratuidadeAGERController.lbDataIni.value = Fecha Inicio
relatorioGratuidadeAGERController.lbDataFin.value = Fecha Final
relatorioGratuidadeAGERController.lbOrgao.value = Instituición concedente
# Relatório Passagens AGER
relatorioPassagensAGERController.window.title = Relatório Passagens AGER
relatorioPassagensAGERController.data.obrigatoria = Data inicial e Final são obrigatórias
relatorioPassagensAGERController.orgaoConcedente.obrigatorio = Orgão Concedente é obrigatório
relatorioPassagensAGERController.tipo.obrigatoria = Tipo de passagens é obrigatório
relatorioPassagensAGERController.lbEmpresa.value = Empresa
relatorioPassagensAGERController.lbAgencia.value = Agência
relatorioPassagensAGERController.lbLinha.value = Linha
relatorioPassagensAGERController.lbOrigem.value = Origem
relatorioPassagensAGERController.lbDestino.value = Destino
relatorioPassagensAGERController.lbDataIniVenda.value = Data Inicio
relatorioPassagensAGERController.lbDataFinVenda.value = Data Fim
relatorioPassagensAGERController.btnPesquisa.value = Pesquisar
relatorioPassagensAGERController.btnLimpar.value = Limpar
relatorioPassagensAGERController.lbNumRuta.value = Num. Linha
relatorioPassagensAGERController.lbPrefixo.value = Prefixo
relatorioPassagensAGERController.lvVenda = Venda
relatorioPassagensAGERController.lbOrgao.value = Orgão Concedente
editarEmpresaController.usarAliasMapaViagemVenda.ajuda = En la pantalla de Venta o botón de Tarjeta de Viagem deve usar Alias para as Ubicaciones.
editarPtovtaAntifraudeController.window.title=Editar Chave Antifraude

View File

@ -345,6 +345,7 @@ indexController.mniRelatorioGratuidadeANTT.label = Relatório Gratuidades ANTT
indexController.mniRelatorioGratuidadeAGR.label = Relatório Gratuidades AGR
indexController.mniRelatorioGratuidadeARTESP.label = Relatório Gratuidade ARTESP
indexController.mniRelatorioGratuidadeAGER.label = Relatório Gratuidade AGER
indexController.mniRelatorioPassagensAGER.label = Relatório Passagens AGER
indexController.mniRelatorioGratuidadeAGEPAN.label = Gratuidades AGEPAN
indexController.mniRelatorioOperacionalFinanceiro.label = Relatório Operacional Financeiro
indexController.mniRelatorioBilhetesVendidos.label = Bilhetes Vendidos
@ -501,6 +502,8 @@ indexController.mniAuditoria.label = Auditoria
indexController.tipoConfComissao.label=Tipo Conf. Pend. Comissão
indexController.mniIntegracaoTotvs.label = Integração Totvs
indexController.mnSubMenuAGER.label=Relatório AGER
# Relatório de Forma de Pagamento por Agência
formaPagamentoAgenciaController.mniRelatorioFinanceiro.label = Forma de Pagamento por Agência
formaPagamentoAgenciaController.window.title = Forma de Pagamento por Agência
@ -9438,6 +9441,26 @@ relatorioGratuidadeAGERController.lbNumRuta.value = Num. Linha
relatorioGratuidadeAGERController.lbPrefixo.value = Prefixo
relatorioGratuidadeAGERController.lvVenda = Venda
relatorioGratuidadeAGERController.lbOrgao.value = Orgão Concedente
# Relatório Passagens AGER
relatorioPassagensAGERController.window.title = Relatório Passagens AGER
relatorioPassagensAGERController.data.obrigatoria = Data inicial e Final são obrigatórias
relatorioPassagensAGERController.orgaoConcedente.obrigatorio = Orgão Concedente é obrigatório
relatorioPassagensAGERController.tipo.obrigatoria = Tipo de passagens é obrigatório
relatorioPassagensAGERController.lbEmpresa.value = Empresa
relatorioPassagensAGERController.lbAgencia.value = Agência
relatorioPassagensAGERController.lbLinha.value = Linha
relatorioPassagensAGERController.lbOrigem.value = Origem
relatorioPassagensAGERController.lbDestino.value = Destino
relatorioPassagensAGERController.lbDataIniVenda.value = Data Inicio
relatorioPassagensAGERController.lbDataFinVenda.value = Data Fim
relatorioPassagensAGERController.btnPesquisa.value = Pesquisar
relatorioPassagensAGERController.btnLimpar.value = Limpar
relatorioPassagensAGERController.lbNumRuta.value = Num. Linha
relatorioPassagensAGERController.lbPrefixo.value = Prefixo
relatorioPassagensAGERController.lvVenda = Venda
relatorioPassagensAGERController.lbOrgao.value = Orgão Concedente
editarEmpresaController.usarAliasMapaViagemVenda.ajuda = Na tela de Venda o botão de Mapa de Viagem deve usar Alias para as Localidades.
editarClienteController.MSG.validacaoCPFInvalido = CPF inválido

View File

@ -0,0 +1,129 @@
<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winFiltroRelatorioPassagensAGER"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioPassagensAGER"
apply="${relatorioPassagensAGERController}"
contentStyle="overflow:auto" height="330px" width="650px"
border="normal">
<grid fixedLayout="true">
<columns>
<column width="25%" />
<column width="75%" />
</columns>
<rows>
<row>
<label
value="${c:l('relatorioPassagensAGERController.lbDataIniVenda.value')}" />
<datebox id="datInicialVenda" width="30%"
mold="rounded" format="dd/MM/yyyy" maxlength="10" />
</row>
<row>
<label
value="${c:l('relatorioPassagensAGERController.lbDataFinVenda.value')}" />
<datebox id="datFinalVenda" width="30%"
mold="rounded" format="dd/MM/yyyy" maxlength="10" />
</row>
<row>
<label
value="${c:l('relatorioPassagensAGERController.lbOrgao.value')}" />
<combobox id="cmbOrgaoConcedente" width="100%"
maxlength="60" mold="rounded" buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioPassagensAGER$composer.lsOrgaosConcedentes}" constraint="no empty"/>
</row>
<row>
<label
value="${c:l('relatorioPassagensAGERController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa" width="100%"
maxlength="60" mold="rounded" buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioPassagensAGER$composer.lsEmpresas}" />
</row>
<row>
<label
value="${c:l('relatorioPassagensAGERController.lbLinha.value')}" />
<bandbox id="bbPesquisaLinha" width="100%"
mold="rounded" readonly="true">
<bandpopup>
<vbox>
<hbox>
<textbox
id="txtPalavraPesquisaLinha" />
<button id="btnPesquisaLinha"
image="/gui/img/find.png"
label="${c:l('relatorioPassagensAGERController.btnPesquisa.value')}" />
<button id="btnLimparLinha"
image="/gui/img/eraser.png"
label="${c:l('relatorioPassagensAGERController.btnLimpar.value')}" />
</hbox>
<listbox id="linhaList" mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="false" height="60%" width="410px">
<listhead>
<listheader
label="${c:l('relatorioPassagensAGERController.lbNumRuta.value')}"
width="18%" />
<listheader
label="${c:l('relatorioPassagensAGERController.lbPrefixo.value')}"
width="20%" />
<listheader
label="${c:l('lb.dec')}" width="35%" />
<listheader
label="${c:l('relatorioPassagensAGERController.lbOrgao.value')}"
width="27%" />
</listhead>
</listbox>
<paging id="pagingLinha" pageSize="10" />
</vbox>
</bandpopup>
</bandbox>
</row>
<row>
<cell colspan="2">
<borderlayout height="100px">
<center border="0">
<listbox id="linhaListSelList"
mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="true" height="60%" width="100%">
<listhead>
<listheader
label="${c:l('relatorioPassagensAGERController.lbNumRuta.value')}"
width="18%" />
<listheader
label="${c:l('relatorioPassagensAGERController.lbPrefixo.value')}"
width="20%" />
<listheader
label="${c:l('lb.dec')}" width="35%" />
<listheader
label="${c:l('relatorioPassagensAGERController.lbOrgao.value')}"
width="20%" />
<listheader width="7%" />
</listhead>
</listbox>
</center>
</borderlayout>
</cell>
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>