0011635: Relatório exportação idoso ARTESP
bug#11635 bug#11693 bug#11694 dev:thiago qua:marcelo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@84054 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
3d28d944fa
commit
d9b427825a
|
@ -0,0 +1,167 @@
|
||||||
|
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 com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioGratuidadeARTESPBean;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
|
public class RelatorioGratuidadeARTESP extends Relatorio {
|
||||||
|
|
||||||
|
private List<RelatorioGratuidadeARTESPBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
public RelatorioGratuidadeARTESP(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
|
super(parametros, conexao);
|
||||||
|
|
||||||
|
this.setCustomDataSource(new DataSource(this) {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void initDados() throws Exception {
|
||||||
|
|
||||||
|
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 tipGratuIds = parametros.get("tipGratuIds").toString();
|
||||||
|
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, tipGratuIds, 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<RelatorioGratuidadeARTESPBean>();
|
||||||
|
|
||||||
|
while (rset.next()) {
|
||||||
|
RelatorioGratuidadeARTESPBean bean = new RelatorioGratuidadeARTESPBean();
|
||||||
|
|
||||||
|
bean.setCodEmpresa(rset.getInt("empresa"));
|
||||||
|
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.setNomeIdoso(rset.getString("NOMBPASAJERO"));
|
||||||
|
bean.setRG(rset.getString("RG"));
|
||||||
|
bean.setCPF(rset.getString("CPF"));
|
||||||
|
bean.setTelEmail(rset.getString("telEmail"));
|
||||||
|
bean.setEndereco(rset.getString("endereco"));
|
||||||
|
bean.setDesistencia(rset.getBoolean("desistencia"));
|
||||||
|
bean.setVlrGratuidade(rset.getBigDecimal("vlrGratuidade"));
|
||||||
|
|
||||||
|
lsDadosRelatorio.add(bean);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lsDadosRelatorio.size() > 0) {
|
||||||
|
setLsDadosRelatorio(lsDadosRelatorio);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDadosRelatorio(List<RelatorioGratuidadeARTESPBean> 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 tipoGratu, String empresa, String codOrgaoConcedente) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
|
||||||
|
sql.append(" select ");
|
||||||
|
sql.append(" OC.DESCORGAO AS ORGAO, O.CODEMPRESAPORORGAO AS empresa, TO_DATE(B.FECHORVIAJE, 'DD/MM/YY')|| '' AS dataViagem, ");
|
||||||
|
sql.append(" To_Char(b.FECHORVIAJE, 'HH24:MI') as horaViagem, ");
|
||||||
|
sql.append(" ori.cveparada AS codorigem, ori.descparada AS descorigem, des.cveparada AS coddestino, des.descparada AS descdestino, ");
|
||||||
|
sql.append(" B.NUMASIENTO AS POLTRONA, b.NUMFOLIOSISTEMA AS NUMBILHETE, b.NOMBPASAJERO, b.DESCNUMDOC AS RG, b.DESCNUMDOC2 AS CPF, ");
|
||||||
|
sql.append(" r.PREFIXO AS LINHA, b.descendereco AS ENDERECO, CASE WHEN B.DESCTELEFONO IS NOT NULL THEN B.DESCTELEFONO ELSE b.DESCCORREO END AS telEmail, ");
|
||||||
|
sql.append(" CASE WHEN B.MOTIVOCANCELACION_ID IN (31, 32, 90) THEN 1 ELSE 0 END AS DESISTENCIA, ");
|
||||||
|
sql.append(" ((COALESCE(T.PRECIO, 0) + COALESCE(T.IMPORTEOUTROS, 0)+ COALESCE(T.IMPORTEPEDAGIO, 0) + COALESCE(T.IMPORTESEGURO, 0) ");
|
||||||
|
sql.append(" + COALESCE(T.IMPORTETAXAEMBARQUE, 0) + COALESCE(T.IMPORTETPP, 0)) ");
|
||||||
|
sql.append(" - ( COALESCE(b.PRECIOPAGADO, 0) + COALESCE(b.IMPORTETPP, 0) + COALESCE(b.IMPORTEOUTROS, 0) + COALESCE(b.IMPORTEPEDAGIO, 0) ");
|
||||||
|
sql.append(" + COALESCE(b.IMPORTESEGURO, 0) + COALESCE(b.IMPORTETAXAEMBARQUE, 0) + COALESCE(b.IMPORTECATEGORIA, 0))) AS vlrGratuidade ");
|
||||||
|
sql.append(" from BOLETO b ");
|
||||||
|
sql.append(" JOIN categoria ca ON b.categoria_id = ca.categoria_id ");
|
||||||
|
sql.append(" JOIN parada ori ON ori.parada_id = b.origen_id ");
|
||||||
|
sql.append(" JOIN parada des ON des.parada_id = b.destino_id ");
|
||||||
|
sql.append(" JOIN ruta r ON r.ruta_id = b.ruta_id ");
|
||||||
|
sql.append(" JOIN ORGAO_CONCEDENTE OC ON r.ORGAOCONCEDENTE_ID = OC.ORGAOCONCEDENTE_ID ");
|
||||||
|
sql.append(" JOIN ORGAO_EMP_PARAM O ON b.EMPRESACORRIDA_ID = O.EMPRESA_ID AND OC.ORGAOCONCEDENTE_ID = O.ORGAOCONCEDENTE_ID ");
|
||||||
|
sql.append(" 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 T.ACTIVO = 1 ");
|
||||||
|
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(" WHERE b.fechorventa BETWEEN :fecInicioVenda AND :fecFinalVenda ");
|
||||||
|
|
||||||
|
if (tipoGratu != null) {
|
||||||
|
sql.append(" AND b.CATEGORIA_ID in (").append(tipoGratu).append(") ");
|
||||||
|
}
|
||||||
|
|
||||||
|
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, CASE WHEN B.DESCTELEFONO IS NOT NULL THEN B.DESCTELEFONO ELSE b.DESCCORREO END, b.DESCNUMDOC, ");
|
||||||
|
sql.append(" b.NUMFOLIOSISTEMA, b.DESCNUMDOC2, b.NOMBPASAJERO, b.NUMIDENTIFICACION, T.PRECIO, b.PRECIOPAGADO, b.descorgaodoc, r.PREFIXO, b.descendereco, B.MOTIVOCANCELACION_ID, ");
|
||||||
|
sql.append(" T.IMPORTEOUTROS, T.IMPORTEPEDAGIO, T.IMPORTESEGURO, T.IMPORTETAXAEMBARQUE, T.IMPORTETPP, ");
|
||||||
|
sql.append(" b.IMPORTECATEGORIA, b.IMPORTEOUTROS, b.IMPORTEPEDAGIO, b.IMPORTESEGURO, b.IMPORTETAXAEMBARQUE, b.IMPORTETPP ");
|
||||||
|
sql.append(" ORDER BY OC.DESCORGAO, O.CODEMPRESAPORORGAO, b.FECHORVIAJE, descorigem, descdestino ");
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
#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
|
||||||
|
|
||||||
|
#Labels detail
|
||||||
|
|
||||||
|
detail.tipopassagem=Tipo Passagem
|
||||||
|
detail.empresa=Empresa
|
||||||
|
detail.dataViagem=Data Viagem
|
||||||
|
detail.horaViagem=Horário
|
||||||
|
detail.origem=Origem
|
||||||
|
detail.destino=Destino
|
||||||
|
detail.poltrona=Poltrona
|
||||||
|
detail.linha=Linha
|
||||||
|
detail.numBilhete=N° Bilhete
|
||||||
|
detail.nome=Nome
|
||||||
|
detail.rg=RG
|
||||||
|
detail.cpf=CPF
|
||||||
|
detail.endereco=Endereço
|
||||||
|
detail.telEmail=Tel/E-mail
|
||||||
|
detail.desistencia=Houve Desistência?
|
||||||
|
detail.gratuidade=Valor Gratuidade concedida
|
|
@ -0,0 +1,37 @@
|
||||||
|
#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.empresa=Empresa
|
||||||
|
detail.dataViagem=Data Viagem
|
||||||
|
detail.horaViagem=Horário
|
||||||
|
detail.origem=Origem
|
||||||
|
detail.destino=Destino
|
||||||
|
detail.poltrona=Poltrona
|
||||||
|
detail.linha=Linha
|
||||||
|
detail.numBilhete=N° Bilhete
|
||||||
|
detail.nome=Nome
|
||||||
|
detail.rg=RG
|
||||||
|
detail.cpf=CPF
|
||||||
|
detail.endereco=Endereço
|
||||||
|
detail.telEmail=Tel/\nE-mail
|
||||||
|
detail.desistencia=Houve Desistência?
|
||||||
|
detail.gratuidade=Valor Gratuidade concedida
|
||||||
|
detail.total=Total
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,500 @@
|
||||||
|
<?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="RelatorioGratuidadeARTESP" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="822" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
|
||||||
|
<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"/>
|
||||||
|
<property name="ireport.zoom" value="1.5"/>
|
||||||
|
<property name="ireport.x" value="0"/>
|
||||||
|
<property name="ireport.y" value="61"/>
|
||||||
|
<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"/>
|
||||||
|
<queryString>
|
||||||
|
<![CDATA[]]>
|
||||||
|
</queryString>
|
||||||
|
<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="codEmpresa" class="java.lang.Integer"/>
|
||||||
|
<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="telEmail" class="java.lang.String"/>
|
||||||
|
<field name="desistencia" class="java.lang.Boolean"/>
|
||||||
|
<field name="vlrGratuidade" class="java.math.BigDecimal"/>
|
||||||
|
<variable name="total" class="java.math.BigDecimal" incrementType="Column" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{vlrGratuidade}]]></variableExpression>
|
||||||
|
<initialValueExpression><![CDATA[]]></initialValueExpression>
|
||||||
|
</variable>
|
||||||
|
<background>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</background>
|
||||||
|
<pageHeader>
|
||||||
|
<band height="162">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="0" width="633" height="37" uuid="652312bd-292a-424d-a234-5f157e3699c6"/>
|
||||||
|
<textElement markup="styled">
|
||||||
|
<font size="22" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA["<style size = '22'>" + $P{TITULO} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="612" y="0" width="106" height="37" uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Report">
|
||||||
|
<reportElement x="790" y="37" width="30" height="20" uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="718" y="37" width="39" height="20" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy HH:mm">
|
||||||
|
<reportElement x="718" y="0" width="102" height="37" uuid="6f671365-868e-41a6-81ee-a308d1d91e1d"/>
|
||||||
|
<textElement textAlignment="Left"/>
|
||||||
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="757" y="37" width="33" height="20" uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="37" width="127" height="20" uuid="a79c03e0-bbe4-4b1c-8297-533a0d137b27"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.periodo.venda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="127" y="37" width="591" height="20" uuid="b31b00a3-1ced-4f9c-acb7-470646f7b335"/>
|
||||||
|
<textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) : "" )]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="127" y="57" width="591" height="20" isRemoveLineWhenBlank="true" uuid="31b4831f-a97b-44a1-a30f-ba93c667fa81"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{nomb_empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="57" width="127" height="20" isRemoveLineWhenBlank="true" uuid="2226c319-6b38-446a-ba1f-22821d110257"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="127" y="77" width="591" height="20" isRemoveLineWhenBlank="true" uuid="c9e03941-ee3e-48a7-89b1-8d54a16967b8"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{linhas}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="77" width="127" height="20" isRemoveLineWhenBlank="true" uuid="3ba8d3a4-fbf1-463f-adf1-84be528e61e1"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.filtro.linha}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="127" y="97" width="591" height="20" isRemoveLineWhenBlank="true" uuid="0c888f33-c387-443c-a975-c1b99e3a615e"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{tipGratu}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="97" width="127" height="20" isRemoveLineWhenBlank="true" uuid="fcf5c596-7687-4796-ba34-5d0d394733de"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.tipopassagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="0" y="142" width="42" height="20" uuid="86f8106c-9edd-4241-ab7d-5985e3241662"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="42" y="142" width="47" height="20" uuid="8bd4b94c-16f0-4186-a871-ba91235a1648"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.dataViagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="89" y="142" width="38" height="20" uuid="b8c76e20-44fb-400a-a26e-2adccfe35f6f"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.horaViagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="127" y="142" width="103" height="20" uuid="c76e913e-1ac7-4185-8a69-24f94dd2b31c"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.origem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="230" y="142" width="100" height="20" uuid="c726c16a-f808-4d93-ba7b-185024669dff"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="330" y="142" width="33" height="20" uuid="f11a9444-3631-4787-ba9f-d7f5a7c5b132"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="8"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA["<style size = '8'>" + $R{detail.poltrona} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="363" y="142" width="37" height="20" uuid="81715a98-ba4c-43eb-b5a9-a94277375217"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.linha}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="436" y="142" width="99" height="20" uuid="650b8437-1685-47f4-857c-3cd55d24df2e"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.nome}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="534" y="142" width="47" height="20" uuid="5e867d77-c407-47a3-b8f3-c1ccd72f5e01"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.rg}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="580" y="142" width="47" height="20" uuid="f97b907e-04a1-43d1-9199-b615a27844b0"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.cpf}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="627" y="142" width="63" height="20" uuid="e947fb8c-3d29-49b0-984c-5d23060ef355"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.endereco}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="730" y="142" width="45" height="20" uuid="a59054d2-882a-4315-887f-0769bde66d1a"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA["<style size = '7'>" + $R{detail.desistencia} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="775" y="142" width="45" height="20" uuid="624da910-2b99-462e-bedd-4293e8fc7936"/>
|
||||||
|
<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="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA["<style size = '8'>" + $R{detail.gratuidade} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="400" y="142" width="36" height="20" uuid="46260340-34e1-4e0f-b036-1c27a036cddf"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.numBilhete}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement stretchType="RelativeToBandHeight" x="689" y="142" width="41" height="20" uuid="ecf1fdb1-01b2-4d90-a8a5-0e8b07842c1b"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.5"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font fontName="Arial" size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.telEmail}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="117" width="127" height="20" isRemoveLineWhenBlank="true" uuid="55a2f4fc-ae1b-4bb4-ad8b-5da5eb542386"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.orgaoConcedente}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="127" y="117" width="591" height="20" isRemoveLineWhenBlank="true" uuid="45990e6f-6f6c-4b31-b5b5-7e0dfb8ce4fc"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{orgaoConcedente}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</pageHeader>
|
||||||
|
<columnHeader>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band height="20" splitType="Prevent">
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="127" y="0" width="103" height="20" uuid="5b5f3fb8-3477-4eab-abc7-061562c96f8e"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA["<style size = '8'>" + $F{descOrigem} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="230" y="0" width="100" height="20" uuid="8c9d311d-0a83-48d7-915d-30a451a08573"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA["<style size = '8'>" + $F{descDestino} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="42" height="20" uuid="db308475-d7e7-4aaa-88dd-7efbc2a7400f"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{codEmpresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="42" y="0" width="47" height="20" uuid="e4ce1bcf-55a3-4bed-b005-15e525c102d9"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="89" y="0" width="38" height="20" uuid="3f104800-825d-4e2a-a3cf-a953d5e107f4"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{horaViagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="363" y="0" width="37" height="20" uuid="5daa5112-5a42-48fe-a9f0-834f039fff88"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA["<style size = '8'>" + $F{linha} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="330" y="0" width="33" height="20" uuid="1aa998f1-bc3b-432f-954b-c1d2fac68c55"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{poltrona}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="436" y="0" width="98" height="20" uuid="2b2e688e-f8ce-4b7e-b77d-7dca1430a7bf"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{nomeIdoso} == null ? "" : "<style size = '8'>" + $F{nomeIdoso} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="534" y="0" width="46" height="20" uuid="db60164e-4640-4bf2-aad7-ede4ffa722b8"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{RG} == null ? "" : "<style size = '8'>" + $F{RG} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="580" y="0" width="47" height="20" uuid="88cc79fa-f895-4bca-bfcd-fee5106ace07"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{CPF} == null ? "" : "<style size = '8'>" + $F{CPF} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="627" y="0" width="62" height="20" uuid="97077c60-972b-4681-b629-8267cd1c796b"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{endereco} == null ? "" : "<style size = '8'>" + $F{endereco} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="730" y="0" width="45" height="20" uuid="5c995670-9436-41ae-9708-63fc553b749c"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA["<style size = '8'>" + ($F{desistencia} == true ? "SIM" : "NÃO") + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="775" y="0" width="45" height="20" uuid="ab5bb241-51ad-4f92-9b22-7d513690526a"/>
|
||||||
|
<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 size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[
|
||||||
|
"<style size = '8'>" + $F{vlrGratuidade} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="400" y="0" width="36" height="20" uuid="be55b293-abe7-485c-8452-53c4181bfcb6"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA["<style size = '8'>" + $F{numBilhete} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="689" y="0" width="41" height="20" uuid="b25a1716-d347-4f48-a675-abef3d17f339"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.5"/>
|
||||||
|
<bottomPen lineWidth="0.5"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
|
||||||
|
<font size="5"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{telEmail} == null ? "" : "<style size = '8'>" + $F{telEmail} + "</style>"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<summary>
|
||||||
|
<band/>
|
||||||
|
</summary>
|
||||||
|
<noData>
|
||||||
|
<band height="25">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="0" width="821" height="20" uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
|
@ -0,0 +1,169 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
public class RelatorioGratuidadeARTESPBean {
|
||||||
|
|
||||||
|
private Integer codEmpresa;
|
||||||
|
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 CPF;
|
||||||
|
private String endereco;
|
||||||
|
private String telEmail;
|
||||||
|
private Boolean desistencia;
|
||||||
|
private BigDecimal vlrGratuidade;
|
||||||
|
|
||||||
|
public Integer getCodEmpresa() {
|
||||||
|
return codEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodEmpresa(Integer codEmpresa) {
|
||||||
|
this.codEmpresa = codEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 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 getTelEmail() {
|
||||||
|
return telEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTelEmail(String telEmail) {
|
||||||
|
this.telEmail = telEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getDesistencia() {
|
||||||
|
return desistencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDesistencia(Boolean desistencia) {
|
||||||
|
this.desistencia = desistencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getVlrGratuidade() {
|
||||||
|
return vlrGratuidade;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVlrGratuidade(BigDecimal vlrGratuidade) {
|
||||||
|
this.vlrGratuidade = vlrGratuidade;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOrgao() {
|
||||||
|
return orgao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrgao(String orgao) {
|
||||||
|
this.orgao = orgao;
|
||||||
|
}
|
||||||
|
}
|
|
@ -66,6 +66,7 @@ public class EditarOrgaoConcedenteController extends MyGenericForwardComposer {
|
||||||
private MyListbox listOrgaoEmpParam;
|
private MyListbox listOrgaoEmpParam;
|
||||||
private MyListbox orgaoCancelacionList;
|
private MyListbox orgaoCancelacionList;
|
||||||
private MyTextbox txtNome;
|
private MyTextbox txtNome;
|
||||||
|
private MyTextbox txtCodEmpresa;
|
||||||
private MyTextboxDecimal txtPorcMulta;
|
private MyTextboxDecimal txtPorcMulta;
|
||||||
private MyTextboxDecimal txtPorcCambio;
|
private MyTextboxDecimal txtPorcCambio;
|
||||||
private MyTextboxDecimal txtPorcCambioEmbarcado;
|
private MyTextboxDecimal txtPorcCambioEmbarcado;
|
||||||
|
@ -328,7 +329,8 @@ public class EditarOrgaoConcedenteController extends MyGenericForwardComposer {
|
||||||
orgaoEmpParam.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
orgaoEmpParam.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
orgaoEmpParam.setFecmodif(Calendar.getInstance().getTime());
|
orgaoEmpParam.setFecmodif(Calendar.getInstance().getTime());
|
||||||
orgaoEmpParam.setActivo(true);
|
orgaoEmpParam.setActivo(true);
|
||||||
|
orgaoEmpParam.setCodEmpresaPorOrgao(txtCodEmpresa.getValue());
|
||||||
|
txtCodEmpresa.setText("");
|
||||||
if(!isOrgaoEmpParamJaAdicionado(orgaoEmpParam)) {
|
if(!isOrgaoEmpParamJaAdicionado(orgaoEmpParam)) {
|
||||||
lsOrgaoEmpParam.add(orgaoEmpParam);
|
lsOrgaoEmpParam.add(orgaoEmpParam);
|
||||||
listOrgaoEmpParam.addItemNovo(orgaoEmpParam);
|
listOrgaoEmpParam.addItemNovo(orgaoEmpParam);
|
||||||
|
@ -522,5 +524,13 @@ public class EditarOrgaoConcedenteController extends MyGenericForwardComposer {
|
||||||
this.lsEmpresas = lsEmpresas;
|
this.lsEmpresas = lsEmpresas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MyTextbox getTxtCodEmpresa() {
|
||||||
|
return txtCodEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTxtCodEmpresa(MyTextbox txtCodEmpresa) {
|
||||||
|
this.txtCodEmpresa = txtCodEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -188,6 +188,8 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
private Checkbox chkExigetelefonopasajero;
|
private Checkbox chkExigetelefonopasajero;
|
||||||
private Checkbox chkExigefecnacimientopasajero;
|
private Checkbox chkExigefecnacimientopasajero;
|
||||||
private Checkbox chkExigedoc2pasajero;
|
private Checkbox chkExigedoc2pasajero;
|
||||||
|
private Checkbox chkExigeEnderecopasajero;
|
||||||
|
private Checkbox chkExigeEmailpasajero;
|
||||||
private Checkbox chkSegunda;
|
private Checkbox chkSegunda;
|
||||||
private Checkbox chkTerca;
|
private Checkbox chkTerca;
|
||||||
private Checkbox chkQuarta;
|
private Checkbox chkQuarta;
|
||||||
|
@ -835,6 +837,8 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
cDescuento.setIndDomingo(chkDomingo.isChecked());
|
cDescuento.setIndDomingo(chkDomingo.isChecked());
|
||||||
cDescuento.setIndnaopermitevdamesmodocviagem(chkIndnaopermitevdamesmodocviagem.isChecked());
|
cDescuento.setIndnaopermitevdamesmodocviagem(chkIndnaopermitevdamesmodocviagem.isChecked());
|
||||||
cDescuento.setIndnaoaplicatarifaminima(chkIndnaoaplicatarifaminima.isChecked());
|
cDescuento.setIndnaoaplicatarifaminima(chkIndnaoaplicatarifaminima.isChecked());
|
||||||
|
cDescuento.setIndExigeEmailPassageiro(chkExigeEmailpasajero.isChecked());
|
||||||
|
cDescuento.setIndExigeEnderecoPassageiro(chkExigeEnderecopasajero.isChecked());
|
||||||
|
|
||||||
if(radioHorarioLiberacaoVendaOrigem.isChecked()) {
|
if(radioHorarioLiberacaoVendaOrigem.isChecked()) {
|
||||||
cDescuento.setHorarioLiberacaoVendaPassagem(HorarioLiberacaoVendaPassagem.HORARIO_LIBERACAO_VENDA_ORIGEM);
|
cDescuento.setHorarioLiberacaoVendaPassagem(HorarioLiberacaoVendaPassagem.HORARIO_LIBERACAO_VENDA_ORIGEM);
|
||||||
|
@ -1543,4 +1547,19 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
return TipoPassagemCores.VERDE.getUrl();
|
return TipoPassagemCores.VERDE.getUrl();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Checkbox getChkExigeEnderecopasajero() {
|
||||||
|
return chkExigeEnderecopasajero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChkExigeEnderecopasajero(Checkbox chkExigeEnderecopasajero) {
|
||||||
|
this.chkExigeEnderecopasajero = chkExigeEnderecopasajero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Checkbox getChkExigeEmailpasajero() {
|
||||||
|
return chkExigeEmailpasajero;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChkExigeEmailpasajero(Checkbox chkExigeEmailpasajero) {
|
||||||
|
this.chkExigeEmailpasajero = chkExigeEmailpasajero;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,6 +87,8 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
private Checkbox chkExigetelefonopasajero;
|
private Checkbox chkExigetelefonopasajero;
|
||||||
private Checkbox chkExigefecnacimientopasajero;
|
private Checkbox chkExigefecnacimientopasajero;
|
||||||
private Checkbox chkExigedoc2pasajero;
|
private Checkbox chkExigedoc2pasajero;
|
||||||
|
private Checkbox chkExigeEnderecopasajero;
|
||||||
|
private Checkbox chkExigeEmailpasajero;
|
||||||
private Checkbox chkSegunda;
|
private Checkbox chkSegunda;
|
||||||
private Checkbox chkTerca;
|
private Checkbox chkTerca;
|
||||||
private Checkbox chkQuarta;
|
private Checkbox chkQuarta;
|
||||||
|
@ -203,6 +205,12 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
if(categoriaDescuento.getIndExigeDoc2Passageiro() != null) {
|
if(categoriaDescuento.getIndExigeDoc2Passageiro() != null) {
|
||||||
chkExigedoc2pasajero.setChecked(categoriaDescuento.getIndExigeDoc2Passageiro());
|
chkExigedoc2pasajero.setChecked(categoriaDescuento.getIndExigeDoc2Passageiro());
|
||||||
}
|
}
|
||||||
|
if(categoriaDescuento.getIndExigeEnderecoPassageiro() != null) {
|
||||||
|
chkExigeEnderecopasajero.setChecked(categoriaDescuento.getIndExigeEnderecoPassageiro());
|
||||||
|
}
|
||||||
|
if(categoriaDescuento.getIndExigeEmailPassageiro() != null) {
|
||||||
|
chkExigeEmailpasajero.setChecked(categoriaDescuento.getIndExigeEmailPassageiro());
|
||||||
|
}
|
||||||
|
|
||||||
chkSegunda.setChecked(categoriaDescuento.getIndSegunda());
|
chkSegunda.setChecked(categoriaDescuento.getIndSegunda());
|
||||||
chkTerca.setChecked(categoriaDescuento.getIndTerca());
|
chkTerca.setChecked(categoriaDescuento.getIndTerca());
|
||||||
|
@ -370,6 +378,8 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
categoriaDescuento.setIndexigenombpasajero(chkExigenombpasajero.isChecked());
|
categoriaDescuento.setIndexigenombpasajero(chkExigenombpasajero.isChecked());
|
||||||
categoriaDescuento.setIndexigetelefonopasajero(chkExigetelefonopasajero.isChecked());
|
categoriaDescuento.setIndexigetelefonopasajero(chkExigetelefonopasajero.isChecked());
|
||||||
categoriaDescuento.setIndExigeDoc2Passageiro(chkExigedoc2pasajero.isChecked());
|
categoriaDescuento.setIndExigeDoc2Passageiro(chkExigedoc2pasajero.isChecked());
|
||||||
|
categoriaDescuento.setIndExigeEnderecoPassageiro(chkExigeEnderecopasajero.isChecked());
|
||||||
|
categoriaDescuento.setIndExigeEmailPassageiro(chkExigeEmailpasajero.isChecked());
|
||||||
categoriaDescuento.setIndSegunda(chkSegunda.isChecked());
|
categoriaDescuento.setIndSegunda(chkSegunda.isChecked());
|
||||||
categoriaDescuento.setIndTerca(chkTerca.isChecked());
|
categoriaDescuento.setIndTerca(chkTerca.isChecked());
|
||||||
categoriaDescuento.setIndQuarta(chkQuarta.isChecked());
|
categoriaDescuento.setIndQuarta(chkQuarta.isChecked());
|
||||||
|
@ -519,5 +529,16 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
public String getCorVerde() {
|
public String getCorVerde() {
|
||||||
return TipoPassagemCores.VERDE.getUrl();
|
return TipoPassagemCores.VERDE.getUrl();
|
||||||
}
|
}
|
||||||
|
public Checkbox getChkExigeEnderecopasajero() {
|
||||||
|
return chkExigeEnderecopasajero;
|
||||||
|
}
|
||||||
|
public void setChkExigeEnderecopasajero(Checkbox chkExigeEnderecopasajero) {
|
||||||
|
this.chkExigeEnderecopasajero = chkExigeEnderecopasajero;
|
||||||
|
}
|
||||||
|
public Checkbox getChkExigeEmailpasajero() {
|
||||||
|
return chkExigeEmailpasajero;
|
||||||
|
}
|
||||||
|
public void setChkExigeEmailpasajero(Checkbox chkExigeEmailpasajero) {
|
||||||
|
this.chkExigeEmailpasajero = chkExigeEmailpasajero;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,310 @@
|
||||||
|
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.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.Ruta;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioGratuidadeARTESP;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||||
|
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("relatorioGratuidadeARTESPController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class RelatorioGratuidadeARTESPController extends MyGenericForwardComposer {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private DataSource dataSourceRead;
|
||||||
|
@Autowired
|
||||||
|
private CategoriaService categoriaService;
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
@Autowired
|
||||||
|
private RutaService rutaService;
|
||||||
|
@Autowired
|
||||||
|
private OrgaoConcedenteService orgaoConcedenteService;
|
||||||
|
|
||||||
|
private Datebox datInicialVenda;
|
||||||
|
private Datebox datFinalVenda;
|
||||||
|
private MyComboboxEstandar cmbEmpresa;
|
||||||
|
private MyComboboxEstandar cmbOrgaoConcedente;
|
||||||
|
private MyComboboxEstandar cmbTipoGratuidade;
|
||||||
|
|
||||||
|
private List<Categoria> lsCategorias;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
private List<OrgaoConcedente> lsOrgaosConcedentes;
|
||||||
|
|
||||||
|
private Textbox txtPalavraPesquisaLinha;
|
||||||
|
private MyListbox linhaList;
|
||||||
|
private MyListbox linhaListSelList;
|
||||||
|
private MyListbox selectedTipoGratuidadeList;
|
||||||
|
|
||||||
|
private List<Categoria> listSelectedTipoGratuidade;
|
||||||
|
|
||||||
|
public void onClick$btnRemoveTipoGratuidade(Event ev) throws InterruptedException {
|
||||||
|
Categoria categoria = (Categoria) selectedTipoGratuidadeList.getSelectedItem().getValue();
|
||||||
|
listSelectedTipoGratuidade.remove(categoria);
|
||||||
|
selectedTipoGratuidadeList.setData(listSelectedTipoGratuidade);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnAddTipoTipoGratuidade(Event ev) throws InterruptedException {
|
||||||
|
if (cmbTipoGratuidade.getSelectedItem() != null) {
|
||||||
|
listSelectedTipoGratuidade.add((Categoria) cmbTipoGratuidade.getSelectedItem().getValue());
|
||||||
|
selectedTipoGratuidadeList.setData(listSelectedTipoGratuidade);
|
||||||
|
selectedTipoGratuidadeList.setSelectedItem(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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());
|
||||||
|
}
|
||||||
|
|
||||||
|
public MyListbox getSelectedTipoGratuidadeList() {
|
||||||
|
return selectedTipoGratuidadeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSelectedTipoGratuidadeList(MyListbox selectedTipoGratuidadeList) {
|
||||||
|
this.selectedTipoGratuidadeList = selectedTipoGratuidadeList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Categoria> getListSelectedTipoGratuidade() {
|
||||||
|
return listSelectedTipoGratuidade;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListSelectedTipoGratuidade(List<Categoria> listSelectedTipoGratuidade) {
|
||||||
|
this.listSelectedTipoGratuidade = listSelectedTipoGratuidade;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void executarPesquisaLinha() {
|
||||||
|
|
||||||
|
String palavraPesquisaRuta = txtPalavraPesquisaLinha.getText();
|
||||||
|
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("relatorioGratuidadeARTESPController.orgaoConcedente.obrigatorio"),
|
||||||
|
Labels.getLabel("relatorioGratuidadeController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (parametros.get("fecInicioVenda") == null && parametros.get("datFinalVenda") == null) {
|
||||||
|
Messagebox.show(Labels.getLabel("relatorioGratuidadeARTESPController.data.obrigatoria"),
|
||||||
|
Labels.getLabel("relatorioGratuidadeController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (listSelectedTipoGratuidade.isEmpty()) {
|
||||||
|
Messagebox.show(Labels.getLabel("relatorioGratuidadeARTESPController.tipo.obrigatoria"),
|
||||||
|
Labels.getLabel("relatorioGratuidadeController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
StringBuilder tipGratu = new StringBuilder();
|
||||||
|
StringBuilder tipGratuIds = new StringBuilder();
|
||||||
|
for (Categoria categoria : listSelectedTipoGratuidade) {
|
||||||
|
tipGratu.append(categoria.getDesccategoria()).append(",");
|
||||||
|
tipGratuIds.append(categoria.getCategoriaId()).append(",");
|
||||||
|
}
|
||||||
|
|
||||||
|
// removendo ultima virgula
|
||||||
|
tipGratuIds = tipGratuIds.delete(tipGratuIds.length() - 1, tipGratuIds.length());
|
||||||
|
tipGratu = tipGratu.delete(tipGratu.length() - 1, tipGratu.length());
|
||||||
|
|
||||||
|
parametros.put("tipGratu", tipGratu.append(";").toString());
|
||||||
|
parametros.put("tipGratuIds", tipGratuIds.toString());
|
||||||
|
|
||||||
|
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("relatorioGratuidadeARTESPController.window.title"));
|
||||||
|
|
||||||
|
Relatorio relatorio = new RelatorioGratuidadeARTESP(parametros, dataSourceRead.getConnection());
|
||||||
|
|
||||||
|
Map<String, Object> args = new HashMap<String, Object>();
|
||||||
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
openWindow("/component/reportView.zul",
|
||||||
|
Labels.getLabel("relatorioGratuidadeARTESPController.window.title"), args, MODAL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||||
|
executarRelatorio();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
lsEmpresas = empresaService.obtenerTodos();
|
||||||
|
lsOrgaosConcedentes = orgaoConcedenteService.obtenerTodos();
|
||||||
|
lsCategorias = categoriaService.obtenerTodos();
|
||||||
|
listSelectedTipoGratuidade = new ArrayList<Categoria>();
|
||||||
|
|
||||||
|
linhaList.setItemRenderer(new RenderRelatorioLinhaHorario());
|
||||||
|
linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario());
|
||||||
|
}
|
||||||
|
|
||||||
|
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 MyComboboxEstandar getCmbTipoGratuidade() {
|
||||||
|
return cmbTipoGratuidade;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbTipoGratuidade(MyComboboxEstandar cmbTipoGratuidade) {
|
||||||
|
this.cmbTipoGratuidade = cmbTipoGratuidade;
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -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 ItemMenuRelatorioGratuidadeARTESP extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuRelatorioGratuidadeARTESP() {
|
||||||
|
super("indexController.mniRelatorioGratuidadeARTESP.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOGRATUIDADEARTESP";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioGratuidadeARTESP.zul",
|
||||||
|
Labels.getLabel("relatorioGratuidadeARTESPController.window.title"), getArgs() ,desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -154,6 +154,7 @@ analitico.gerenciais.estatisticos.passageirosViajar=com.rjconsultores.ventabolet
|
||||||
analitico.gerenciais.estatisticos.origemDestino=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioOrigemDestino
|
analitico.gerenciais.estatisticos.origemDestino=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioOrigemDestino
|
||||||
analitico.gerenciais.estatisticos.relatorioCorridas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCorridas
|
analitico.gerenciais.estatisticos.relatorioCorridas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCorridas
|
||||||
analitico.gerenciais.estatisticos.gratuidades=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeANTT
|
analitico.gerenciais.estatisticos.gratuidades=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeANTT
|
||||||
|
analitico.gerenciais.estatisticos.gratuidadeARTESP=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeARTESP
|
||||||
analitico.gerenciais.estatisticos.gratuidadesANTT=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidade
|
analitico.gerenciais.estatisticos.gratuidadesANTT=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidade
|
||||||
analitico.gerenciais.estatisticos.gratuidadesIdosoDeficiente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeIdosoDeficiente
|
analitico.gerenciais.estatisticos.gratuidadesIdosoDeficiente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeIdosoDeficiente
|
||||||
analitico.gerenciais.estatisticos.relatorioMovimentoPorOrgaoConcedente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioMovimentoPorOrgaoConcedente
|
analitico.gerenciais.estatisticos.relatorioMovimentoPorOrgaoConcedente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioMovimentoPorOrgaoConcedente
|
||||||
|
|
|
@ -22,6 +22,9 @@ public class RenderOrgaoEmpParam implements ListitemRenderer {
|
||||||
lc = new Listcell(orgaoEmpParam.getInddoiscupomembarque() != null && orgaoEmpParam.getInddoiscupomembarque() ? Labels.getLabel("MSG.SI") : Labels.getLabel("MSG.NO"));
|
lc = new Listcell(orgaoEmpParam.getInddoiscupomembarque() != null && orgaoEmpParam.getInddoiscupomembarque() ? Labels.getLabel("MSG.SI") : Labels.getLabel("MSG.NO"));
|
||||||
lc.setParent(arg0);
|
lc.setParent(arg0);
|
||||||
|
|
||||||
|
lc = new Listcell(orgaoEmpParam.getCodEmpresaPorOrgao());
|
||||||
|
lc.setParent(arg0);
|
||||||
|
|
||||||
arg0.setAttribute("data", orgaoEmpParam);
|
arg0.setAttribute("data", orgaoEmpParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -265,6 +265,7 @@ indexController.mniRelatorioEmpresaOnibus.label = Reporte de la empresa autobús
|
||||||
indexController.mniRelatorioOCD.label = Reporte de OCD
|
indexController.mniRelatorioOCD.label = Reporte de OCD
|
||||||
indexController.mniRelatorioGratuidade.label = Gratuidades
|
indexController.mniRelatorioGratuidade.label = Gratuidades
|
||||||
indexController.mniRelatorioGratuidadeANTT.label = Gratuidades ANTT
|
indexController.mniRelatorioGratuidadeANTT.label = Gratuidades ANTT
|
||||||
|
indexController.mniRelatorioExportacaoIdosoARTESP.label = Reporte Exportación Ancianos ARTESP
|
||||||
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
||||||
indexController.mniRelatorioVendasBilheteiro.label = Ventas por agente de pasajes
|
indexController.mniRelatorioVendasBilheteiro.label = Ventas por agente de pasajes
|
||||||
indexController.mniRelatorioVendasBilheteiroSintetico.label = Ventas por agentes sintético
|
indexController.mniRelatorioVendasBilheteiroSintetico.label = Ventas por agentes sintético
|
||||||
|
@ -7598,3 +7599,23 @@ relatorioMovimentacaoEstoqueController.lb.puntoventaEnv = Punto Venta Envio
|
||||||
relatorioMovimentacaoEstoqueController.lb.puntoventaRec = Punto Venta Recibimiento
|
relatorioMovimentacaoEstoqueController.lb.puntoventaRec = Punto Venta Recibimiento
|
||||||
relatorioMovimentacaoEstoqueController.lb.estacionEnv = Estacion Envio
|
relatorioMovimentacaoEstoqueController.lb.estacionEnv = Estacion Envio
|
||||||
relatorioMovimentacaoEstoqueController.lb.estacionRec = Estacion Recibimiento
|
relatorioMovimentacaoEstoqueController.lb.estacionRec = Estacion Recibimiento
|
||||||
|
|
||||||
|
# Reporte Exportacao Idoso ARTESP
|
||||||
|
relatorioGratuidadeARTESPController.window.title = Reporte Gratuidad ARTESP
|
||||||
|
relatorioGratuidadeARTESPController.data.obrigatoria = Es necesario rellenar la fecha inicial y final
|
||||||
|
relatorioGratuidadeARTESPController.tipo.obrigatoria = Tipo de pasaje es obligatorio
|
||||||
|
relatorioGratuidadeARTESPController.lbEmpresa.value = Empresa
|
||||||
|
relatorioGratuidadeARTESPController.lbAgencia.value = Punto Venta
|
||||||
|
relatorioGratuidadeARTESPController.lbLinhas.value = Ruta
|
||||||
|
relatorioGratuidadeARTESPController.lbOrigem.value = Origen
|
||||||
|
relatorioGratuidadeARTESPController.lbDestino.value = Destino
|
||||||
|
relatorioGratuidadeARTESPController.lbTipoGratuidade.value = Tipos de Pasajes
|
||||||
|
relatorioGratuidadeARTESPController.btnPesquisa.value = Buscar
|
||||||
|
relatorioGratuidadeARTESPController.btnLimpar.value = Limpiar
|
||||||
|
relatorioGratuidadeARTESPController.lbNumRuta.value = Num. linea
|
||||||
|
relatorioGratuidadeARTESPController.lbPrefixo.value = Prefijo
|
||||||
|
relatorioGratuidadeARTESPController.lbTipoGratuidade.value = Tipo de alojamiento
|
||||||
|
relatorioGratuidadeARTESPController.lbDataIni.value = Fecha Inicio
|
||||||
|
relatorioGratuidadeARTESPController.lbDataFin.value = Fecha Final
|
||||||
|
relatorioGratuidadeARTESPController.lbOrgao.value = Instituición concedente
|
||||||
|
editarEmpresaController.usarAliasMapaViagemVenda.ajuda = En la pantalla de Venta o botón de Tarjeta de Viagem deve usar Alias para as Ubicaciones.
|
||||||
|
|
|
@ -278,6 +278,7 @@ indexController.mniRelatorioEmpresaOnibus.label = Empresa Ônibus
|
||||||
indexController.mniRelatorioOCD.label = Relatório de OCD
|
indexController.mniRelatorioOCD.label = Relatório de OCD
|
||||||
indexController.mniRelatorioGratuidade.label = Relatório Tipo Passagem
|
indexController.mniRelatorioGratuidade.label = Relatório Tipo Passagem
|
||||||
indexController.mniRelatorioGratuidadeANTT.label = Relatório Gratuidades ANTT
|
indexController.mniRelatorioGratuidadeANTT.label = Relatório Gratuidades ANTT
|
||||||
|
indexController.mniRelatorioGratuidadeARTESP.label = Relatório Gratuidade ARTESP
|
||||||
indexController.mniRelatorioBilhetesVendidos.label = Bilhetes Vendidos
|
indexController.mniRelatorioBilhetesVendidos.label = Bilhetes Vendidos
|
||||||
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
||||||
indexController.mniRelatorioVendasBilheteiro.label = Vendas por Bilheteiro
|
indexController.mniRelatorioVendasBilheteiro.label = Vendas por Bilheteiro
|
||||||
|
@ -2227,6 +2228,8 @@ editarConfiguracionCategoriaController.lblExigedocpasajero.value = Documento
|
||||||
editarConfiguracionCategoriaController.lblExigetelefonopasajero.value = Telefone
|
editarConfiguracionCategoriaController.lblExigetelefonopasajero.value = Telefone
|
||||||
editarConfiguracionCategoriaController.lblExigefecnacimientopasajero.value = Dt Nascimento
|
editarConfiguracionCategoriaController.lblExigefecnacimientopasajero.value = Dt Nascimento
|
||||||
editarConfiguracionCategoriaController.lblExigeDocumento2.value = Documento 2
|
editarConfiguracionCategoriaController.lblExigeDocumento2.value = Documento 2
|
||||||
|
editarConfiguracionCategoriaController.lblExigeEndereco.value = Endereço
|
||||||
|
editarConfiguracionCategoriaController.lblExigeEmail.value = E-mail
|
||||||
editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaPassagem.value = Liberação para Venda
|
editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaPassagem.value = Liberação para Venda
|
||||||
editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaOrigem.value = Horário Origem Corrida
|
editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaOrigem.value = Horário Origem Corrida
|
||||||
editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaTrecho.value = Horário Trecho
|
editarConfiguracionCategoriaController.lblHorarioLiberacaoVendaTrecho.value = Horário Trecho
|
||||||
|
@ -5776,6 +5779,7 @@ editarOrgaoConcedenteController.indsolicitadatostarjeta.label=Solicita Dados Car
|
||||||
editarOrgaoConcedenteController.indOrgaoconcedentetransf.label=Valida Orgão Conc. Remarcação
|
editarOrgaoConcedenteController.indOrgaoconcedentetransf.label=Valida Orgão Conc. Remarcação
|
||||||
editarOrgaoConcedenteController.indMultaDevolucaoAberto.label=Multa devolução aberto
|
editarOrgaoConcedenteController.indMultaDevolucaoAberto.label=Multa devolução aberto
|
||||||
editarOrgaoConcedenteController.indemitesegundavia.label=Emite 2ª Via
|
editarOrgaoConcedenteController.indemitesegundavia.label=Emite 2ª Via
|
||||||
|
editarOrgaoConcedenteController.codempresaorgao.label=Cód. Empresa no Orgão:
|
||||||
editarOrgaoConcedenteController.inddoiscupomembarque.label=Emite 2 Vias Cupom Embarque
|
editarOrgaoConcedenteController.inddoiscupomembarque.label=Emite 2 Vias Cupom Embarque
|
||||||
|
|
||||||
|
|
||||||
|
@ -8056,3 +8060,24 @@ editarEmpresaController.transferenciaBpeMoviCaja.ajuda = Tornam as Transferênci
|
||||||
editarEmpresaController.usarAliasMapaViagemVenda.ajuda = Na tela de Venda o botão de Mapa de Viagem deve usar Alias para as Localidades.
|
editarEmpresaController.usarAliasMapaViagemVenda.ajuda = Na tela de Venda o botão de Mapa de Viagem deve usar Alias para as Localidades.
|
||||||
editarEmpresaController.utilizaResolucao.ajuda = Habilita a utilização da resolução ao invés da configuracão monitriip, desmarcado utiliza configuração monitriip.
|
editarEmpresaController.utilizaResolucao.ajuda = Habilita a utilização da resolução ao invés da configuracão monitriip, desmarcado utiliza configuração monitriip.
|
||||||
editarEmpresaController.folioComoLocalizadorPrepagoAberto.ajuda = Habilita a utilização do numero sistema como localizador de passagens pré pago em aberto(caso o numero seja gerado).
|
editarEmpresaController.folioComoLocalizadorPrepagoAberto.ajuda = Habilita a utilização do numero sistema como localizador de passagens pré pago em aberto(caso o numero seja gerado).
|
||||||
|
|
||||||
|
# Relatório Exportacao Idoso ARTESP
|
||||||
|
relatorioGratuidadeARTESPController.window.title = Relatório Gratuidade ARTESP
|
||||||
|
relatorioGratuidadeARTESPController.data.obrigatoria = Data inicial e Final são obrigatórias
|
||||||
|
relatorioGratuidadeARTESPController.orgaoConcedente.obrigatorio = Orgão Concedente é obrigatório
|
||||||
|
relatorioGratuidadeARTESPController.tipo.obrigatoria = Tipo de passagens é obrigatório
|
||||||
|
relatorioGratuidadeARTESPController.lbEmpresa.value = Empresa
|
||||||
|
relatorioGratuidadeARTESPController.lbAgencia.value = Agência
|
||||||
|
relatorioGratuidadeARTESPController.lbLinha.value = Linha
|
||||||
|
relatorioGratuidadeARTESPController.lbOrigem.value = Origem
|
||||||
|
relatorioGratuidadeARTESPController.lbDestino.value = Destino
|
||||||
|
relatorioGratuidadeARTESPController.lbTipoGratuidade.value = Tipos de Passagens
|
||||||
|
relatorioGratuidadeARTESPController.lbDataIniVenda.value = Data Inicio
|
||||||
|
relatorioGratuidadeARTESPController.lbDataFinVenda.value = Data Final
|
||||||
|
relatorioGratuidadeARTESPController.btnPesquisa.value = Pesquisar
|
||||||
|
relatorioGratuidadeARTESPController.btnLimpar.value = Limpar
|
||||||
|
relatorioGratuidadeARTESPController.lbNumRuta.value = Num. Linha
|
||||||
|
relatorioGratuidadeARTESPController.lbPrefixo.value = Prefixo
|
||||||
|
relatorioGratuidadeARTESPController.lvVenda = Venda
|
||||||
|
relatorioGratuidadeARTESPController.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.
|
||||||
|
|
|
@ -146,6 +146,9 @@
|
||||||
width="100%" mold="rounded" buttonVisible="true"
|
width="100%" mold="rounded" buttonVisible="true"
|
||||||
model="@{winEditarOrgaoConcedente$composer.lsEmpresas}" />
|
model="@{winEditarOrgaoConcedente$composer.lsEmpresas}" />
|
||||||
|
|
||||||
|
<label value="${c:l('editarOrgaoConcedenteController.codempresaorgao.label')}" />
|
||||||
|
<textbox id="txtCodEmpresa" maxlength="30" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
|
||||||
<checkbox id="chkIndemitesegundavia" />
|
<checkbox id="chkIndemitesegundavia" />
|
||||||
<label value="${c:l('editarOrgaoConcedenteController.indemitesegundavia.label')}" />
|
<label value="${c:l('editarOrgaoConcedenteController.indemitesegundavia.label')}" />
|
||||||
|
|
||||||
|
@ -170,6 +173,8 @@
|
||||||
label="${c:l('editarOrgaoConcedenteController.indemitesegundavia.label')}" />
|
label="${c:l('editarOrgaoConcedenteController.indemitesegundavia.label')}" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('editarOrgaoConcedenteController.inddoiscupomembarque.label')}" />
|
label="${c:l('editarOrgaoConcedenteController.inddoiscupomembarque.label')}" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarOrgaoConcedenteController.codempresaorgao.label')}" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
|
|
@ -137,6 +137,12 @@
|
||||||
<checkbox id="chkExigedoc2pasajero"
|
<checkbox id="chkExigedoc2pasajero"
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblExigeDocumento2.value')}"
|
label="${c:l('editarConfiguracionCategoriaController.lblExigeDocumento2.value')}"
|
||||||
checked="false" />
|
checked="false" />
|
||||||
|
<checkbox id="chkExigeEnderecopasajero"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblExigeEndereco.value')}"
|
||||||
|
checked="false" />
|
||||||
|
<checkbox id="chkExigeEmailpasajero"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblExigeEmail.value')}"
|
||||||
|
checked="false" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
border="normal"
|
border="normal"
|
||||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
||||||
apply="${editarConfiguracionCategoriaDatosCategoriaController}"
|
apply="${editarConfiguracionCategoriaDatosCategoriaController}"
|
||||||
width="550px" contentStyle="overflow:auto">
|
width="800px" contentStyle="overflow:auto">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
<button id="btnSalvar" height="20"
|
<button id="btnSalvar" height="20"
|
||||||
|
@ -217,6 +217,12 @@
|
||||||
<checkbox id="chkExigedoc2pasajero"
|
<checkbox id="chkExigedoc2pasajero"
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblExigeDocumento2.value')}"
|
label="${c:l('editarConfiguracionCategoriaController.lblExigeDocumento2.value')}"
|
||||||
checked="false" />
|
checked="false" />
|
||||||
|
<checkbox id="chkExigeEnderecopasajero"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblExigeEndereco.value')}"
|
||||||
|
checked="false" />
|
||||||
|
<checkbox id="chkExigeEmailpasajero"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblExigeEmail.value')}"
|
||||||
|
checked="false" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row spans="1,3" visible="@{winEditarConfiguracionCategoriasDatosCategoria$composer.descontoComponentePreco}">
|
<row spans="1,3" visible="@{winEditarConfiguracionCategoriasDatosCategoria$composer.descontoComponentePreco}">
|
||||||
|
|
|
@ -0,0 +1,165 @@
|
||||||
|
<?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="winFiltroRelatorioGratuidadeARTESP"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winFiltroRelatorioGratuidadeARTESP"
|
||||||
|
apply="${relatorioGratuidadeARTESPController}"
|
||||||
|
contentStyle="overflow:auto" height="435px" width="550px"
|
||||||
|
border="normal">
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="75%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeARTESPController.lbDataIniVenda.value')}" />
|
||||||
|
<datebox id="datInicialVenda" width="30%"
|
||||||
|
mold="rounded" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeARTESPController.lbDataFinVenda.value')}" />
|
||||||
|
<datebox id="datFinalVenda" width="30%"
|
||||||
|
mold="rounded" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeARTESPController.lbOrgao.value')}" />
|
||||||
|
<combobox id="cmbOrgaoConcedente" width="100%"
|
||||||
|
maxlength="60" mold="rounded" buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioGratuidadeARTESP$composer.lsOrgaosConcedentes}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeARTESPController.lbEmpresa.value')}" />
|
||||||
|
<combobox id="cmbEmpresa" width="100%"
|
||||||
|
maxlength="60" mold="rounded" buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioGratuidadeARTESP$composer.lsEmpresas}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeARTESPController.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('relatorioGratuidadeARTESPController.btnPesquisa.value')}" />
|
||||||
|
<button id="btnLimparLinha"
|
||||||
|
image="/gui/img/eraser.png"
|
||||||
|
label="${c:l('relatorioGratuidadeARTESPController.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('relatorioGratuidadeARTESPController.lbNumRuta.value')}"
|
||||||
|
width="18%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeARTESPController.lbPrefixo.value')}"
|
||||||
|
width="20%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('lb.dec')}" width="35%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeARTESPController.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('relatorioGratuidadeARTESPController.lbNumRuta.value')}"
|
||||||
|
width="18%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeARTESPController.lbPrefixo.value')}"
|
||||||
|
width="20%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('lb.dec')}" width="35%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeARTESPController.lbOrgao.value')}"
|
||||||
|
width="20%" />
|
||||||
|
<listheader width="7%" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</center>
|
||||||
|
</borderlayout>
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeARTESPController.lbTipoGratuidade.value')}" />
|
||||||
|
<combobox id="cmbTipoGratuidade" width="100%"
|
||||||
|
maxlength="60" mold="rounded" buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioGratuidadeARTESP$composer.lsCategorias}" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="100%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnRemoveTipoGratuidade" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('generarTarifaOrgaoController.labelRemoveRuta.value')}" />
|
||||||
|
<button id="btnAddTipoTipoGratuidade"
|
||||||
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('generarTarifaOrgaoController.labelAddRuta.value')}" />
|
||||||
|
</toolbar>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<listbox id="selectedTipoGratuidadeList"
|
||||||
|
mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false" height="60%">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('generarTarifaOrgaoController.labelEmpresa.value')}"
|
||||||
|
width="100%" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
||||||
|
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||||
|
</toolbar>
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue