fixes bug#23201
dev: Celio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@109761 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
cb27b3d63e
commit
f0f1fd8757
|
@ -0,0 +1,231 @@
|
||||||
|
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.RelatorioGratuidadeAGRBean;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
|
public class RelatorioGratuidadeAGR extends Relatorio {
|
||||||
|
|
||||||
|
private List<RelatorioGratuidadeAGRBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
public RelatorioGratuidadeAGR(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") + " 00:00:00";
|
||||||
|
}
|
||||||
|
String fecFinalVenda = null;
|
||||||
|
if (parametros.get("fecFinalVenda") != null) {
|
||||||
|
fecFinalVenda = parametros.get("fecFinalVenda")+ " 23:59:59";
|
||||||
|
}
|
||||||
|
|
||||||
|
String fecInicioViagem = null;
|
||||||
|
if (parametros.get("fecInicioViagem") != null) {
|
||||||
|
fecInicioViagem = parametros.get("fecInicioViagem") + " 00:00:00";
|
||||||
|
}
|
||||||
|
String fecFinalViagem = null;
|
||||||
|
if (parametros.get("fecFinalViagem") != null) {
|
||||||
|
fecFinalViagem = parametros.get("fecFinalViagem") + " 23:59:59";
|
||||||
|
}
|
||||||
|
|
||||||
|
String tipGratuIds = parametros.get("tipGratuIds").toString();
|
||||||
|
String clienteIds = parametros.get("clienteIds").toString();
|
||||||
|
String linhaIds = parametros.get("linhaIds").toString();
|
||||||
|
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
|
||||||
|
|
||||||
|
String sql = getSql(fecInicioVenda, fecFinalVenda, linhaIds, tipGratuIds, clienteIds, empresa);
|
||||||
|
|
||||||
|
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 (fecInicioViagem != null) {
|
||||||
|
stmt.setTimestamp("fecInicioViagem", new java.sql.Timestamp(sdf.parse(fecInicioViagem).getTime()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fecFinalViagem != null) {
|
||||||
|
stmt.setTimestamp("fecFinalViagem", new java.sql.Timestamp(sdf.parse(fecFinalViagem).getTime()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if(empresa != null && !empresa.equals("")){
|
||||||
|
stmt.setInt("empresa_id", Integer.parseInt(empresa));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResultSet rset = null;
|
||||||
|
|
||||||
|
rset = stmt.executeQuery();
|
||||||
|
|
||||||
|
lsDadosRelatorio = new ArrayList<RelatorioGratuidadeAGRBean>();
|
||||||
|
|
||||||
|
while (rset.next()) {
|
||||||
|
RelatorioGratuidadeAGRBean gratuidadeBean = new RelatorioGratuidadeAGRBean();
|
||||||
|
|
||||||
|
gratuidadeBean.setCategoria(rset.getString("categoria"));
|
||||||
|
|
||||||
|
gratuidadeBean.setDescOrigem(rset.getString("descorigem"));
|
||||||
|
gratuidadeBean.setDescDestino(rset.getString("descdestino"));
|
||||||
|
gratuidadeBean.setCodOrigem(rset.getString("codorigem"));
|
||||||
|
gratuidadeBean.setCodDestino(rset.getString("coddestino"));
|
||||||
|
|
||||||
|
gratuidadeBean.setDataViagem(rset.getString("dataviagem"));
|
||||||
|
gratuidadeBean.setHoraViagem(rset.getString("horaviagem"));
|
||||||
|
gratuidadeBean.setPoltrona(rset.getString("poltrona"));
|
||||||
|
gratuidadeBean.setPassageiro(rset.getString("nombpasajero"));
|
||||||
|
gratuidadeBean.setDoc1(rset.getString("doc1"));
|
||||||
|
gratuidadeBean.setTipoDoc1(rset.getString("tipodoc1"));
|
||||||
|
gratuidadeBean.setTipoDoc2(rset.getString("tipodoc2"));
|
||||||
|
gratuidadeBean.setDoc2(rset.getString("doc2"));
|
||||||
|
gratuidadeBean.setLinha(rset.getString("linha"));
|
||||||
|
gratuidadeBean.setDescLinha(rset.getString("desclinha"));
|
||||||
|
gratuidadeBean.setValor(rset.getBigDecimal("valor"));
|
||||||
|
|
||||||
|
lsDadosRelatorio.add(gratuidadeBean);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lsDadosRelatorio.size() > 0) {
|
||||||
|
setLsDadosRelatorio(lsDadosRelatorio);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDadosRelatorio(List<RelatorioGratuidadeAGRBean> 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 cliente, String empresa ) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder(3400);
|
||||||
|
|
||||||
|
sql.append(" SELECT ");
|
||||||
|
sql.append(" ca.desccategoria AS categoria, ");
|
||||||
|
sql.append(" to_date(b.fechorviaje, 'DD/MM/YY hh24:mi:ss') || '' 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.nombpasajero AS nombpasajero, ");
|
||||||
|
sql.append(" NVL(b.descnumdoc, c.numidentificauno) AS doc1, ");
|
||||||
|
sql.append(" c.tipoidentificauno_id AS tipodoc1, ");
|
||||||
|
sql.append(" c.tipoidentificados_id AS tipodoc2, ");
|
||||||
|
sql.append(" NVL(b.descnumdoc2, c.numidentificados) AS doc2, ");
|
||||||
|
sql.append(" r.prefixo AS linha, ");
|
||||||
|
sql.append(" r.descruta AS desclinha, ");
|
||||||
|
sql.append(" NVL(t.precio, 0) + NVL(t.importepedagio, 0) AS valor ");
|
||||||
|
sql.append(" FROM boleto b ");
|
||||||
|
sql.append(" JOIN categoria ca ON b.categoria_id = ca.categoria_id ");
|
||||||
|
sql.append(" JOIN empresa e ON e.empresa_id = b.empresacorrida_id ");
|
||||||
|
sql.append(" JOIN marca m ON m.empresa_id = e.empresa_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 ruta_combinacion rc ON rc.ruta_id = r.ruta_id ");
|
||||||
|
sql.append(" JOIN tramo tr ON ( tr.tramo_id = rc.tramo_id ");
|
||||||
|
sql.append(" AND ori.parada_id = tr.origen_id ");
|
||||||
|
sql.append(" AND des.parada_id = tr.destino_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 ");
|
||||||
|
sql.append(" AND cd.activo = 1 ");
|
||||||
|
sql.append(" JOIN orgao_concedente oc ON r.orgaoconcedente_id = oc.orgaoconcedente_id ");
|
||||||
|
sql.append(" JOIN tarifa t ON r.ruta_id = t.ruta_id ");
|
||||||
|
sql.append(" AND b.origen_id = t.origen_id ");
|
||||||
|
sql.append(" AND b.destino_id = t.destino_id ");
|
||||||
|
sql.append(" AND b.claseservicio_id = t.claseservicio_id ");
|
||||||
|
sql.append(" AND m.marca_id = t.marca_id ");
|
||||||
|
sql.append(" AND tr.tramo_id = t.tramo_id ");
|
||||||
|
sql.append(" AND oc.orgaoconcedente_id = t.orgaoconcedente_id ");
|
||||||
|
sql.append(" JOIN vigencia_tarifa vt ON vt.vigenciatarifa_id = t.vigenciatarifa_id ");
|
||||||
|
sql.append(" AND b.fechorviaje BETWEEN vt.feciniciovigencia AND vt.fecfinvigencia ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" m.activo = 1 ");
|
||||||
|
sql.append(" AND rc.activo = 1 ");
|
||||||
|
sql.append(" AND tr.activo = 1 ");
|
||||||
|
|
||||||
|
if( fecInicioVenda != null && fecFinalVenda !=null ){
|
||||||
|
sql.append(" AND b.fechorventa BETWEEN :fecInicioVenda AND :fecFinalVenda ");
|
||||||
|
}else {
|
||||||
|
sql.append(" AND b.fechorviaje BETWEEN :fecInicioViagem AND :fecFinalViagem ");
|
||||||
|
}
|
||||||
|
|
||||||
|
sql.append(" AND ( b.motivocancelacion_id NOT IN ( 4 ) ");
|
||||||
|
sql.append(" OR b.motivocancelacion_id IS NULL ) ");
|
||||||
|
|
||||||
|
if( tipoGratu != null && !tipoGratu.equals("Todas")) {
|
||||||
|
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( cliente != null && !cliente.equals("Todas")) {
|
||||||
|
sql.append(" AND b.cliente_id in (").append(cliente).append(") ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empresa.isEmpty()){
|
||||||
|
sql.append("AND b.empresacorrida_id =:empresa_id ");
|
||||||
|
}
|
||||||
|
|
||||||
|
sql.append(" GROUP BY ");
|
||||||
|
sql.append(" ca.desccategoria, ");
|
||||||
|
sql.append(" b.motivocancelacion_id, ");
|
||||||
|
sql.append(" b.fechorviaje, ");
|
||||||
|
sql.append(" ori.cveparada, ");
|
||||||
|
sql.append(" ori.descparada, ");
|
||||||
|
sql.append(" des.cveparada, ");
|
||||||
|
sql.append(" des.descparada, ");
|
||||||
|
sql.append(" b.numasiento, ");
|
||||||
|
sql.append(" b.nombpasajero, ");
|
||||||
|
sql.append(" NVL(b.descnumdoc, c.numidentificauno), ");
|
||||||
|
sql.append(" c.tipoidentificauno_id, ");
|
||||||
|
sql.append(" c.tipoidentificados_id, ");
|
||||||
|
sql.append(" NVL(b.descnumdoc2, c.numidentificados), ");
|
||||||
|
sql.append(" r.prefixo, ");
|
||||||
|
sql.append(" r.descruta, ");
|
||||||
|
sql.append(" NVL(t.precio, 0) + NVL(t.importepedagio, 0) ");
|
||||||
|
sql.append(" ORDER BY ");
|
||||||
|
sql.append(" NVL(b.descnumdoc2, c.numidentificados), ");
|
||||||
|
sql.append(" NVL(b.descnumdoc, c.numidentificauno), ");
|
||||||
|
sql.append(" b.nombpasajero, ");
|
||||||
|
sql.append(" b.fechorviaje, ");
|
||||||
|
sql.append(" descorigem, ");
|
||||||
|
sql.append(" descdestino ");
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioGratuidadeAGRBean;
|
||||||
|
|
||||||
|
public class RelatorioGratuidadeAGRCliente extends RelatorioGratuidadeAGR {
|
||||||
|
|
||||||
|
private List<RelatorioGratuidadeAGRBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
public RelatorioGratuidadeAGRCliente(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
|
super(parametros, conexao);
|
||||||
|
//lsDadosRelatorio = super.get
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
#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.tipopassagem=Tipo Passagem\:
|
||||||
|
|
||||||
|
#Labels label
|
||||||
|
|
||||||
|
label.passageiro=Passageiro
|
||||||
|
label.cpf=CPF
|
||||||
|
label.documento=Documento
|
||||||
|
label.data.viagem=Data
|
||||||
|
label.hora.viagem=Hora
|
||||||
|
label.linha=Linha
|
||||||
|
label.origen=Origem
|
||||||
|
label.destino=Destino
|
||||||
|
label.poltrona=Polt.
|
||||||
|
label.valor=Preço
|
||||||
|
label.quantitativo=Quantitativo
|
||||||
|
|
||||||
|
label.tot.cpf=Total Por Cpf:
|
|
@ -0,0 +1,32 @@
|
||||||
|
#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.tipopassagem=Tipo Passagem\:
|
||||||
|
|
||||||
|
#Labels label
|
||||||
|
|
||||||
|
label.passageiro=Passageiro
|
||||||
|
label.cpf=CPF
|
||||||
|
label.documento=Documento
|
||||||
|
label.data.viagem=Data
|
||||||
|
label.hora.viagem=Hora
|
||||||
|
label.linha=Linha
|
||||||
|
label.origen=Origem
|
||||||
|
label.destino=Destino
|
||||||
|
label.poltrona=Polt.
|
||||||
|
label.valor=Preço
|
||||||
|
label.quantitativo=Quantitativo
|
||||||
|
|
||||||
|
label.tot.cpf=Total Por Cpf:
|
|
@ -0,0 +1,31 @@
|
||||||
|
#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.tipopassagem=Tipo Passagem\:
|
||||||
|
|
||||||
|
#Labels label
|
||||||
|
|
||||||
|
label.passageiro=Passageiro
|
||||||
|
label.cpf=CPF
|
||||||
|
label.documento=Documento
|
||||||
|
label.data.viagem=Data
|
||||||
|
label.hora.viagem=Hora
|
||||||
|
label.linha=Linha
|
||||||
|
label.origen=Origem
|
||||||
|
label.destino=Destino
|
||||||
|
label.poltrona=Polt.
|
||||||
|
label.valor=Preço
|
||||||
|
|
||||||
|
label.tot.cpf=Total Por Cpf:
|
|
@ -0,0 +1,31 @@
|
||||||
|
#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.tipopassagem=Tipo Passagem\:
|
||||||
|
|
||||||
|
#Labels label
|
||||||
|
|
||||||
|
label.passageiro=Passageiro
|
||||||
|
label.cpf=CPF
|
||||||
|
label.documento=Documento
|
||||||
|
label.data.viagem=Data
|
||||||
|
label.hora.viagem=Hora
|
||||||
|
label.linha=Linha
|
||||||
|
label.origen=Origem
|
||||||
|
label.destino=Destino
|
||||||
|
label.poltrona=Polt.
|
||||||
|
label.valor=Preço
|
||||||
|
|
||||||
|
label.tot.cpf=Total Por Cpf:
|
Binary file not shown.
|
@ -0,0 +1,361 @@
|
||||||
|
<?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="RelatorioGratuidadeANTT" pageWidth="900" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="880" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" resourceBundle="RelatorioEmpresaCorrida" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
|
<property name="ireport.zoom" value="1.0263162364614198"/>
|
||||||
|
<property name="ireport.x" value="0"/>
|
||||||
|
<property name="ireport.y" value="0"/>
|
||||||
|
<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"/>
|
||||||
|
<style name="Crosstab Data Text" hAlign="Center"/>
|
||||||
|
<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="fecInicioViagem" class="java.lang.String"/>
|
||||||
|
<parameter name="fecFinalViagem" class="java.lang.String"/>
|
||||||
|
<parameter name="nomb_empresa" class="java.lang.String"/>
|
||||||
|
<parameter name="tipGratu" class="java.lang.String"/>
|
||||||
|
<queryString>
|
||||||
|
<![CDATA[]]>
|
||||||
|
</queryString>
|
||||||
|
<field name="categoria" 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="dataViagem" class="java.lang.String"/>
|
||||||
|
<field name="horaViagem" class="java.lang.String"/>
|
||||||
|
<field name="poltrona" class="java.lang.String"/>
|
||||||
|
<field name="passageiro" class="java.lang.String"/>
|
||||||
|
<field name="doc1" class="java.lang.String"/>
|
||||||
|
<field name="tipoDoc1" class="java.lang.String"/>
|
||||||
|
<field name="tipoDoc2" class="java.lang.String"/>
|
||||||
|
<field name="doc2" class="java.lang.String"/>
|
||||||
|
<field name="linha" class="java.lang.String"/>
|
||||||
|
<field name="descLinha" class="java.lang.String"/>
|
||||||
|
<field name="valor" class="java.math.BigDecimal"/>
|
||||||
|
<variable name="totCpf" class="java.math.BigDecimal" resetType="Group" resetGroup="cpf" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{valor}]]></variableExpression>
|
||||||
|
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
|
||||||
|
</variable>
|
||||||
|
<group name="cpf">
|
||||||
|
<groupExpression><![CDATA[$F{doc2}]]></groupExpression>
|
||||||
|
<groupFooter>
|
||||||
|
<band height="25">
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="5adcedac-df72-4fc7-9b33-a977c9d13edf" stretchType="RelativeToTallestObject" x="737" y="0" width="142" height="16"/>
|
||||||
|
<box rightPadding="1">
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$V{totCpf}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="3b448d67-68db-4ad5-bda4-1433eca9b2e1" stretchType="RelativeToTallestObject" x="573" y="0" width="164" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.0"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.tot.cpf}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</groupFooter>
|
||||||
|
</group>
|
||||||
|
<background>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</background>
|
||||||
|
<pageHeader>
|
||||||
|
<band height="117">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="652312bd-292a-424d-a234-5f157e3699c6" x="0" y="0" width="671" height="37"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="22" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60" x="671" y="0" width="106" height="37"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Report">
|
||||||
|
<reportElement uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f" x="849" y="37" width="30" height="20"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="be1692e9-f130-4d08-9173-6ca3e4699030" x="777" y="37" width="39" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy HH:mm">
|
||||||
|
<reportElement uuid="6f671365-868e-41a6-81ee-a308d1d91e1d" x="777" y="0" width="102" height="37"/>
|
||||||
|
<textElement textAlignment="Left"/>
|
||||||
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a" x="816" y="37" width="33" height="20"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="a79c03e0-bbe4-4b1c-8297-533a0d137b27" x="0" y="37" width="82" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.periodo.venda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="b31b00a3-1ced-4f9c-acb7-470646f7b335" x="82" y="37" width="695" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) : "" )]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="31b4831f-a97b-44a1-a30f-ba93c667fa81" x="82" y="57" width="695" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{nomb_empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="2226c319-6b38-446a-ba1f-22821d110257" x="0" y="57" width="82" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="c9e03941-ee3e-48a7-89b1-8d54a16967b8" x="82" y="77" width="695" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{linhas}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="3ba8d3a4-fbf1-463f-adf1-84be528e61e1" x="0" y="77" width="82" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.filtro.linha}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="0c888f33-c387-443c-a975-c1b99e3a615e" x="82" y="97" width="695" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{tipGratu}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="fcf5c596-7687-4796-ba34-5d0d394733de" x="0" y="97" width="82" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.tipopassagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</pageHeader>
|
||||||
|
<columnHeader>
|
||||||
|
<band height="16" splitType="Stretch">
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="b9d87989-7174-4d57-87c8-260317d00817" stretchType="RelativeToTallestObject" x="0" y="0" width="155" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.passageiro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="733d6335-4157-4f11-942c-ac07cb84e4ee" stretchType="RelativeToTallestObject" x="155" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.cpf}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="f4f48145-4703-4bf6-a515-303f003fed45" stretchType="RelativeToTallestObject" x="237" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.documento}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="55e35924-bdca-4847-9d65-70636e6764e0" stretchType="RelativeToTallestObject" x="319" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.data.viagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="6842ca84-94d5-4647-a27d-67eb15769a30" stretchType="RelativeToTallestObject" x="401" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.hora.viagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="ad5fa3ec-bf04-4f90-b1e2-e6286e996db5" stretchType="RelativeToTallestObject" x="483" y="0" width="90" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.linha}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="1ce96e1e-6a74-457f-a94e-f125e6789b5f" stretchType="RelativeToTallestObject" x="573" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.origen}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="10cfa628-fe54-4567-ba57-2dc770de4568" stretchType="RelativeToTallestObject" x="655" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="c5196bc2-ae4a-43e6-8d0a-7ae30f360cbc" stretchType="RelativeToTallestObject" x="737" y="0" width="60" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.poltrona}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="27d8de9b-3ef1-488e-b473-e91e5d261d92" stretchType="RelativeToTallestObject" x="797" y="0" width="82" height="16"/>
|
||||||
|
<box rightPadding="1">
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.valor}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band height="16" splitType="Prevent">
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="c07e35a0-e3b1-4fa1-aeff-a8a756c359ae" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="0" width="155" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{passageiro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="789e30d0-e90e-402c-b21f-6ed3742dd9f3" stretchType="RelativeToTallestObject" x="737" y="0" width="60" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{poltrona}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="82cfcbd9-ad4a-47e8-a166-e0a48c207387" stretchType="RelativeToTallestObject" x="319" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="605eb35e-1733-4007-a03a-fac5578a7348" stretchType="RelativeToTallestObject" x="655" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{descDestino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="ba84d11d-f63a-4fa5-9ac2-46488f040cdd" stretchType="RelativeToTallestObject" x="483" y="0" width="90" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{linha}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="05bc4824-542c-4ab7-90a7-f05559c0d840" stretchType="RelativeToTallestObject" x="155" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{doc2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="7857f717-5cea-480f-9d45-b3c49cb365c3" stretchType="RelativeToTallestObject" x="573" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{descOrigem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="ab7a3319-6e43-4ed9-bb0e-114f3d072da8" stretchType="RelativeToTallestObject" x="401" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{horaViagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="f9ded253-cf7f-4541-bf3e-ae74cc569a6e" stretchType="RelativeToTallestObject" x="237" y="0" width="82" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{doc1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="d1e8c204-ecb6-405c-9dba-ffec205bfbf6" stretchType="RelativeToTallestObject" x="797" y="0" width="82" height="16"/>
|
||||||
|
<box rightPadding="1">
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{valor}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<summary>
|
||||||
|
<band/>
|
||||||
|
</summary>
|
||||||
|
<noData>
|
||||||
|
<band height="20">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620" x="0" y="0" width="1132" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
Binary file not shown.
|
@ -0,0 +1,226 @@
|
||||||
|
<?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="RelatorioGratuidadeANTT" pageWidth="900" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="880" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" resourceBundle="RelatorioEmpresaCorrida" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
|
<property name="ireport.zoom" value="1.0"/>
|
||||||
|
<property name="ireport.x" value="0"/>
|
||||||
|
<property name="ireport.y" value="0"/>
|
||||||
|
<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"/>
|
||||||
|
<style name="Crosstab Data Text" hAlign="Center"/>
|
||||||
|
<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="fecInicioViagem" class="java.lang.String"/>
|
||||||
|
<parameter name="fecFinalViagem" class="java.lang.String"/>
|
||||||
|
<parameter name="nomb_empresa" class="java.lang.String"/>
|
||||||
|
<parameter name="tipGratu" class="java.lang.String"/>
|
||||||
|
<queryString>
|
||||||
|
<![CDATA[]]>
|
||||||
|
</queryString>
|
||||||
|
<field name="categoria" 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="dataViagem" class="java.lang.String"/>
|
||||||
|
<field name="horaViagem" class="java.lang.String"/>
|
||||||
|
<field name="poltrona" class="java.lang.String"/>
|
||||||
|
<field name="passageiro" class="java.lang.String"/>
|
||||||
|
<field name="doc1" class="java.lang.String"/>
|
||||||
|
<field name="tipoDoc1" class="java.lang.String"/>
|
||||||
|
<field name="tipoDoc2" class="java.lang.String"/>
|
||||||
|
<field name="doc2" class="java.lang.String"/>
|
||||||
|
<field name="linha" class="java.lang.String"/>
|
||||||
|
<field name="descLinha" class="java.lang.String"/>
|
||||||
|
<field name="valor" class="java.math.BigDecimal"/>
|
||||||
|
<variable name="totCpf" class="java.math.BigDecimal" resetType="Group" resetGroup="cpf" calculation="Count">
|
||||||
|
<variableExpression><![CDATA[$F{valor}]]></variableExpression>
|
||||||
|
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
|
||||||
|
</variable>
|
||||||
|
<group name="cpf">
|
||||||
|
<groupExpression><![CDATA[$F{doc2}]]></groupExpression>
|
||||||
|
<groupFooter>
|
||||||
|
<band height="16">
|
||||||
|
<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="d1e8c204-ecb6-405c-9dba-ffec205bfbf6" stretchType="RelativeToTallestObject" x="539" y="0" width="120" height="16"/>
|
||||||
|
<box rightPadding="1">
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$V{totCpf}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="f9ded253-cf7f-4541-bf3e-ae74cc569a6e" stretchType="RelativeToTallestObject" x="419" y="0" width="120" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{doc1}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="05bc4824-542c-4ab7-90a7-f05559c0d840" stretchType="RelativeToTallestObject" x="299" y="0" width="120" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{doc2}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="c07e35a0-e3b1-4fa1-aeff-a8a756c359ae" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="0" width="299" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$F{passageiro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</groupFooter>
|
||||||
|
</group>
|
||||||
|
<background>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</background>
|
||||||
|
<pageHeader>
|
||||||
|
<band height="117">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="652312bd-292a-424d-a234-5f157e3699c6" x="0" y="0" width="671" height="37"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="22" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60" x="671" y="0" width="106" height="37"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Report">
|
||||||
|
<reportElement uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f" x="849" y="37" width="30" height="20"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="be1692e9-f130-4d08-9173-6ca3e4699030" x="777" y="37" width="39" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy HH:mm">
|
||||||
|
<reportElement uuid="6f671365-868e-41a6-81ee-a308d1d91e1d" x="777" y="0" width="102" height="37"/>
|
||||||
|
<textElement textAlignment="Left"/>
|
||||||
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a" x="816" y="37" width="33" height="20"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="a79c03e0-bbe4-4b1c-8297-533a0d137b27" x="0" y="37" width="82" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.periodo.venda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="b31b00a3-1ced-4f9c-acb7-470646f7b335" x="82" y="37" width="695" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) : "" )]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="31b4831f-a97b-44a1-a30f-ba93c667fa81" x="82" y="57" width="695" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{nomb_empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="2226c319-6b38-446a-ba1f-22821d110257" x="0" y="57" width="82" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="c9e03941-ee3e-48a7-89b1-8d54a16967b8" x="82" y="77" width="695" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{linhas}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="3ba8d3a4-fbf1-463f-adf1-84be528e61e1" x="0" y="77" width="82" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.filtro.linha}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="0c888f33-c387-443c-a975-c1b99e3a615e" x="82" y="97" width="695" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{tipGratu}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="fcf5c596-7687-4796-ba34-5d0d394733de" x="0" y="97" width="82" height="20" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.tipopassagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</pageHeader>
|
||||||
|
<columnHeader>
|
||||||
|
<band height="16" splitType="Stretch">
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="b9d87989-7174-4d57-87c8-260317d00817" stretchType="RelativeToTallestObject" x="0" y="0" width="299" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.passageiro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="733d6335-4157-4f11-942c-ac07cb84e4ee" stretchType="RelativeToTallestObject" x="299" y="0" width="120" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.cpf}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="f4f48145-4703-4bf6-a515-303f003fed45" stretchType="RelativeToTallestObject" x="419" y="0" width="120" height="16" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.0"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.documento}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="27d8de9b-3ef1-488e-b473-e91e5d261d92" stretchType="RelativeToTallestObject" x="539" y="0" width="120" height="16"/>
|
||||||
|
<box rightPadding="1">
|
||||||
|
<topPen lineWidth="0.75"/>
|
||||||
|
<leftPen lineWidth="0.75"/>
|
||||||
|
<bottomPen lineWidth="0.75"/>
|
||||||
|
<rightPen lineWidth="0.75"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.Quantitativo }]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band splitType="Prevent"/>
|
||||||
|
</detail>
|
||||||
|
<summary>
|
||||||
|
<band/>
|
||||||
|
</summary>
|
||||||
|
<noData>
|
||||||
|
<band height="20">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620" x="0" y="0" width="1132" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
Binary file not shown.
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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="RelatorioReceitaDiariaAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="822" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" uuid="c5fca8ba-9c4b-4e17-9986-a053943688db">
|
<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="RelatorioReceitaDiariaAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="822" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" uuid="c5fca8ba-9c4b-4e17-9986-a053943688db">
|
||||||
<property name="ireport.zoom" value="2.420000000000005"/>
|
<property name="ireport.zoom" value="2.420000000000005"/>
|
||||||
<property name="ireport.x" value="805"/>
|
<property name="ireport.x" value="0"/>
|
||||||
<property name="ireport.y" value="295"/>
|
<property name="ireport.y" value="55"/>
|
||||||
<style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/>
|
<style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/>
|
||||||
<style name="SubTitle" forecolor="#736343" fontName="SansSerif" fontSize="18"/>
|
<style name="SubTitle" forecolor="#736343" fontName="SansSerif" fontSize="18"/>
|
||||||
<style name="Column header" forecolor="#666666" fontName="SansSerif" fontSize="12" isBold="true"/>
|
<style name="Column header" forecolor="#666666" fontName="SansSerif" fontSize="12" isBold="true"/>
|
||||||
|
@ -1059,8 +1059,8 @@
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField isStretchWithOverflow="true">
|
||||||
<reportElement uuid="75824227-df57-48bc-950f-788e1bf6e304" x="44" y="52" width="772" height="14"/>
|
<reportElement uuid="75824227-df57-48bc-950f-788e1bf6e304" stretchType="RelativeToTallestObject" x="44" y="52" width="772" height="14"/>
|
||||||
<textElement>
|
<textElement>
|
||||||
<font size="8"/>
|
<font size="8"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
|
|
|
@ -0,0 +1,153 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
public class RelatorioGratuidadeAGRBean {
|
||||||
|
|
||||||
|
private String descOrigem;
|
||||||
|
private String descDestino;
|
||||||
|
private String codOrigem;
|
||||||
|
private String codDestino;
|
||||||
|
private String categoria;
|
||||||
|
|
||||||
|
private String dataViagem;
|
||||||
|
private String horaViagem;
|
||||||
|
private String poltrona;
|
||||||
|
private String passageiro;
|
||||||
|
private String doc1;
|
||||||
|
private String tipoDoc1;
|
||||||
|
private String tipoDoc2;
|
||||||
|
private String doc2;
|
||||||
|
private String linha;
|
||||||
|
private String descLinha;
|
||||||
|
private BigDecimal valor;
|
||||||
|
|
||||||
|
public String getDescOrigem() {
|
||||||
|
return descOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescOrigem(String descOrigen) {
|
||||||
|
this.descOrigem = descOrigen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescDestino() {
|
||||||
|
return descDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescDestino(String descDestino) {
|
||||||
|
this.descDestino = descDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodOrigem() {
|
||||||
|
return codOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodOrigem(String codOrigem) {
|
||||||
|
this.codOrigem = codOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodDestino() {
|
||||||
|
return codDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodDestino(String codDestino) {
|
||||||
|
this.codDestino = codDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategoria() {
|
||||||
|
return categoria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategoria(String categoria) {
|
||||||
|
this.categoria = categoria;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 getPoltrona() {
|
||||||
|
return poltrona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPoltrona(String poltrona) {
|
||||||
|
this.poltrona = poltrona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPassageiro() {
|
||||||
|
return passageiro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPassageiro(String passageiro) {
|
||||||
|
this.passageiro = passageiro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDoc1() {
|
||||||
|
return doc1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDoc1(String doc1) {
|
||||||
|
this.doc1 = doc1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoDoc1() {
|
||||||
|
return tipoDoc1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoDoc1(String tipoDoc1) {
|
||||||
|
this.tipoDoc1 = tipoDoc1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTipoDoc2() {
|
||||||
|
return tipoDoc2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoDoc2(String tipoDoc2) {
|
||||||
|
this.tipoDoc2 = tipoDoc2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDoc2() {
|
||||||
|
return doc2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDoc2(String doc2) {
|
||||||
|
this.doc2 = doc2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLinha() {
|
||||||
|
return linha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLinha(String linha) {
|
||||||
|
this.linha = linha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescLinha() {
|
||||||
|
return descLinha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescLinha(String descLinha) {
|
||||||
|
this.descLinha = descLinha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValor() {
|
||||||
|
return valor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValor(BigDecimal valor) {
|
||||||
|
this.valor = valor;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,394 @@
|
||||||
|
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.Paging;
|
||||||
|
import org.zkoss.zul.Radiogroup;
|
||||||
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Cliente;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioGratuidadeAGR;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioGratuidadeAGRCliente;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
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.MyTextbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderClienteSimples;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioLinhaHorario;
|
||||||
|
|
||||||
|
@Controller("relatorioGratuidadeAGRController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class RelatorioGratuidadeAGRController 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 transient PagedListWrapper<Cliente> plwCliente;
|
||||||
|
|
||||||
|
private MyTextbox txtCliente;
|
||||||
|
private Paging pagingCliente;
|
||||||
|
private MyListbox clienteList;
|
||||||
|
private MyListbox clienteSelList;
|
||||||
|
|
||||||
|
private Datebox datInicialVenda;
|
||||||
|
private Datebox datFinalVenda;
|
||||||
|
private Datebox datInicialViagem;
|
||||||
|
private Datebox datFinalViagem;
|
||||||
|
private MyComboboxEstandar cmbEmpresa;
|
||||||
|
private MyComboboxEstandar cmbTipoGratuidade;
|
||||||
|
private Radiogroup rgLayout;
|
||||||
|
|
||||||
|
private List<Categoria> lsCategorias;
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
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 (this.datInicialViagem.getValue() != null) {
|
||||||
|
parametros.put("fecInicioViagem", sdf.format(this.datInicialViagem.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.datFinalViagem.getValue() != null) {
|
||||||
|
parametros.put("fecFinalViagem", sdf.format(this.datFinalViagem.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( (parametros.get("fecInicioVenda") == null && parametros.get("fecFinalVenda") == null) &&
|
||||||
|
(parametros.get("fecInicioViagem") == null && parametros.get("fecFinalViagem") == null)) {
|
||||||
|
Messagebox.show(Labels.getLabel("relatorioGratuidadeAGRController.data.obrigatoria"),
|
||||||
|
Labels.getLabel("relatorioGratuidadeController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
StringBuilder tipGratu = new StringBuilder();
|
||||||
|
StringBuilder tipGratuIds = new StringBuilder();
|
||||||
|
if (selectedTipoGratuidadeList.getListData().isEmpty()) {
|
||||||
|
tipGratu.append("Todas;");
|
||||||
|
tipGratuIds.append("Todas;");
|
||||||
|
} else {
|
||||||
|
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());
|
||||||
|
|
||||||
|
StringBuilder clientes = new StringBuilder();
|
||||||
|
StringBuilder clienteIds = new StringBuilder();
|
||||||
|
|
||||||
|
if (clienteSelList.getListData().isEmpty()) {
|
||||||
|
clientes.append("Todas");
|
||||||
|
clienteIds.append("Todas");
|
||||||
|
} else {
|
||||||
|
for (Object obj : clienteSelList.getListData()) {
|
||||||
|
Cliente cliente = (Cliente)obj;
|
||||||
|
clientes.append(cliente.getNumIdentificaUno()).append(",");
|
||||||
|
clienteIds.append(cliente.getClienteId()).append(",");
|
||||||
|
}
|
||||||
|
|
||||||
|
// removendo ultima virgula
|
||||||
|
clienteIds = clienteIds.delete(clienteIds.length() -1, clienteIds.length());
|
||||||
|
clientes = clientes.delete(clientes.length() -1, clientes.length());
|
||||||
|
}
|
||||||
|
|
||||||
|
parametros.put("clientes", clientes.append(";").toString());
|
||||||
|
parametros.put("clienteIds", clienteIds.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" );
|
||||||
|
}
|
||||||
|
|
||||||
|
Relatorio relatorio;
|
||||||
|
|
||||||
|
if(rgLayout.getSelectedItem().getValue().equals("GERAL")) {
|
||||||
|
relatorio = new RelatorioGratuidadeAGR(parametros, dataSourceRead.getConnection());
|
||||||
|
}else {
|
||||||
|
relatorio = new RelatorioGratuidadeAGRCliente(parametros, dataSourceRead.getConnection());
|
||||||
|
}
|
||||||
|
|
||||||
|
parametros.put("TITULO", Labels.getLabel("relatorioGratuidadeAGRController.window.title"));
|
||||||
|
|
||||||
|
Map<String, Object> args = new HashMap<String, Object>();
|
||||||
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
openWindow("/component/reportView.zul",
|
||||||
|
Labels.getLabel("relatorioGratuidadeAGRController.window.title"), args, MODAL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||||
|
executarRelatorio();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void executarPesquisaCliente() {
|
||||||
|
HibernateSearchObject<Cliente> clienteBusqueda =
|
||||||
|
new HibernateSearchObject<Cliente>(Cliente.class, pagingCliente.getPageSize());
|
||||||
|
if(txtCliente.getValue() != null && !txtCliente.getValue().equals("") ){
|
||||||
|
clienteBusqueda.addFilterILike("nombcliente", txtCliente.getValue() + "%");
|
||||||
|
clienteBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
clienteBusqueda.addSortAsc("nombcliente");
|
||||||
|
|
||||||
|
}
|
||||||
|
plwCliente.init(clienteBusqueda, clienteList, pagingCliente);
|
||||||
|
if (clienteList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("carteirinhaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisaCliente(Event ev) {
|
||||||
|
executarPesquisaCliente();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onDoubleClick$clienteList(Event ev) {
|
||||||
|
Cliente cliente = (Cliente) clienteList.getSelected();
|
||||||
|
clienteSelList.addItemNovo(cliente);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
lsEmpresas = empresaService.obtenerTodos();
|
||||||
|
lsCategorias = categoriaService.obtenerTodos();
|
||||||
|
listSelectedTipoGratuidade = new ArrayList<Categoria>();
|
||||||
|
|
||||||
|
linhaList.setItemRenderer(new RenderRelatorioLinhaHorario());
|
||||||
|
linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario());
|
||||||
|
|
||||||
|
clienteList.setItemRenderer(new RenderClienteSimples());
|
||||||
|
clienteSelList.setItemRenderer(new RenderClienteSimples());
|
||||||
|
}
|
||||||
|
|
||||||
|
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 Datebox getDatInicialViagem() {
|
||||||
|
return datInicialViagem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDatInicialViagem(Datebox datInicialViagem) {
|
||||||
|
this.datInicialViagem = datInicialViagem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Datebox getDatFinalViagem() {
|
||||||
|
return datFinalViagem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDatFinalViagem(Datebox datFinalViagem) {
|
||||||
|
this.datFinalViagem = datFinalViagem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Radiogroup getRgLayout() {
|
||||||
|
return rgLayout;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRgLayout(Radiogroup rgLayout) {
|
||||||
|
this.rgLayout = rgLayout;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Paging getPagingCliente() {
|
||||||
|
return pagingCliente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPagingCliente(Paging pagingCliente) {
|
||||||
|
this.pagingCliente = pagingCliente;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -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 ItemMenuRelatorioGratuidadeAGR extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuRelatorioGratuidadeAGR() {
|
||||||
|
super("indexController.mniRelatorioGratuidadeAGR.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOGRATUIDADEAGR";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioGratuidadeAGR.zul",
|
||||||
|
Labels.getLabel("relatorioGratuidadeAGRController.window.title"), getArgs() ,desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -182,10 +182,11 @@ 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.mensalDAER=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioMensalDAER
|
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.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.gratuidadeAGER=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioGratuidadeAGER
|
||||||
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.mensalDAER=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioMensalDAER
|
||||||
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
|
||||||
analitico.gerenciais.estatisticos.checkin=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCheckin
|
analitico.gerenciais.estatisticos.checkin=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCheckin
|
||||||
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Cliente;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
|
||||||
|
public class RenderClienteSimples implements ListitemRenderer {
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
|
||||||
|
Cliente cliente = (Cliente) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(cliente.getClienteId().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(cliente.getNombcliente());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(cliente.getNumIdentificaUno() != null && !"null".equals(cliente.getNumIdentificaUno()) ? cliente.getNumIdentificaUno() : "");
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(cliente.getNumIdentificaDos() != null && !"null".equals(cliente.getNumIdentificaDos()) ? cliente.getNumIdentificaDos() : "");
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
Button btn = new Button();
|
||||||
|
lc = new Listcell();
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
btn.setWidth("16");
|
||||||
|
btn.setHeight("16");
|
||||||
|
btn.setImage("/gui/img/remove.png");
|
||||||
|
|
||||||
|
btn.addEventListener("onClick", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
MyListbox listBox = (MyListbox) event.getTarget().getParent().getParent().getParent();
|
||||||
|
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||||
|
listBox.removeItem((Cliente) listItem.getAttribute("data"));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lc.appendChild(btn);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", cliente);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -311,6 +311,7 @@ indexController.mniRelatorioMovimentacaoBilhete.label=Ticket Handling
|
||||||
indexController.mniRelatorioEncerramentoCheckin.label=Checkin Closure
|
indexController.mniRelatorioEncerramentoCheckin.label=Checkin Closure
|
||||||
indexController.mniRelatorioGratuidade.label=Pass Types
|
indexController.mniRelatorioGratuidade.label=Pass Types
|
||||||
indexController.mniRelatorioGratuidadeANTT.label=Relatório Gratuidades ANTT
|
indexController.mniRelatorioGratuidadeANTT.label=Relatório Gratuidades ANTT
|
||||||
|
indexController.mniRelatorioGratuidadeAGR.label = Gratuidades AGR
|
||||||
indexController.mniRelatorioGratuidadeARTESP.label=Relatório Gratuidade ARTESP
|
indexController.mniRelatorioGratuidadeARTESP.label=Relatório Gratuidade ARTESP
|
||||||
indexController.mniRelatorioGratuidadeAGER.label=Relatório Gratuidade AGER
|
indexController.mniRelatorioGratuidadeAGER.label=Relatório Gratuidade AGER
|
||||||
indexController.mniRelatorioOperacionalFinanceiro.label=Financial Operating
|
indexController.mniRelatorioOperacionalFinanceiro.label=Financial Operating
|
||||||
|
@ -7462,6 +7463,36 @@ relatorioGratuidadeANTTController.lbNumRuta.value=Num. Linha
|
||||||
relatorioGratuidadeANTTController.lbPrefixo.value=Prefixo
|
relatorioGratuidadeANTTController.lbPrefixo.value=Prefixo
|
||||||
relatorioGratuidadeANTTController.lvVenda=Venda
|
relatorioGratuidadeANTTController.lvVenda=Venda
|
||||||
relatorioGratuidadeANTTController.lbOrgao.value=Orgão Concedente
|
relatorioGratuidadeANTTController.lbOrgao.value=Orgão Concedente
|
||||||
|
|
||||||
|
# Relatório Gratuidade AGR
|
||||||
|
relatorioGratuidadeAGRController.window.title = Gratuidades AGR
|
||||||
|
relatorioGratuidadeAGRController.data.obrigatoria = Data inicial e Final são obrigatórias
|
||||||
|
relatorioGratuidadeAGRController.tipo.obrigatoria = Tipo de passagens é obrigatório
|
||||||
|
relatorioGratuidadeAGRController.lbEmpresa.value = Empresa
|
||||||
|
relatorioGratuidadeAGRController.lbAgencia.value = Agência
|
||||||
|
relatorioGratuidadeAGRController.lbLinha.value = Linha
|
||||||
|
relatorioGratuidadeAGRController.lbOrigem.value = Origem
|
||||||
|
relatorioGratuidadeAGRController.lbDestino.value = Destino
|
||||||
|
relatorioGratuidadeAGRController.lbTipoGratuidade.value = Tipos de Passagens
|
||||||
|
relatorioGratuidadeAGRController.lbDataIniVenda.value = Data Inicial Venda
|
||||||
|
relatorioGratuidadeAGRController.lbDataFinVenda.value = Data Final Venda
|
||||||
|
relatorioGratuidadeAGRController.lbDataIniViagem.value = Data Inicial Viagem
|
||||||
|
relatorioGratuidadeAGRController.lbDataFinViagem.value = Data Final Viagem
|
||||||
|
relatorioGratuidadeAGRController.btnPesquisa.value = Pesquisar
|
||||||
|
relatorioGratuidadeAGRController.btnLimpar.value = Limpar
|
||||||
|
relatorioGratuidadeAGRController.lbNumRuta.value = Num. Linha
|
||||||
|
relatorioGratuidadeAGRController.lbPrefixo.value = Prefixo
|
||||||
|
relatorioGratuidadeAGRController.lvVenda = Venda
|
||||||
|
relatorioGratuidadeAGRController.lbOrgao.value = Orgão Concedente
|
||||||
|
relatorioGratuidadeAGRController.lbTipoRelatorio.value=Tipo
|
||||||
|
relatorioGratuidadeAGRController.lbTipoGeral.value=Geral
|
||||||
|
relatorioGratuidadeAGRController.lbTipoCliente.value=Cliente
|
||||||
|
relatorioGratuidadeAGRController.lblIdCliente=Id
|
||||||
|
relatorioGratuidadeAGRController.lblCliente=Cliente
|
||||||
|
relatorioGratuidadeAGRController.lblDocumento=Documento
|
||||||
|
relatorioGratuidadeAGRController.lblDocumento2=Documento 2
|
||||||
|
relatorioGratuidadeAGRController.btnPesquisar= Pesquisar
|
||||||
|
relatorioGratuidadeAGRController.btnLimpar= Limpar
|
||||||
|
|
||||||
# Relatório Bilhetes Vendidos
|
# Relatório Bilhetes Vendidos
|
||||||
relatorioBilhetesVendidosController.window.title=Bilhetes Vendidos
|
relatorioBilhetesVendidosController.window.title=Bilhetes Vendidos
|
||||||
|
|
|
@ -318,6 +318,7 @@ indexController.mniRelatorioMovimentacaoBilhete.label = Movimentações de Bilhe
|
||||||
indexController.mniRelatorioEncerramentoCheckin.label = Encerramento do Checkin
|
indexController.mniRelatorioEncerramentoCheckin.label = Encerramento do Checkin
|
||||||
indexController.mniRelatorioGratuidade.label = Gratuidades
|
indexController.mniRelatorioGratuidade.label = Gratuidades
|
||||||
indexController.mniRelatorioGratuidadeANTT.label = Gratuidades ANTT
|
indexController.mniRelatorioGratuidadeANTT.label = Gratuidades ANTT
|
||||||
|
indexController.mniRelatorioGratuidadeAGR.label = Gratuidades AGR
|
||||||
indexController.mniRelatorioGratuidadeAGEPAN.label = Gratuidades AGEPAN
|
indexController.mniRelatorioGratuidadeAGEPAN.label = Gratuidades AGEPAN
|
||||||
indexController.mniRelatorioExportacaoIdosoARTESP.label = Reporte Exportación Ancianos ARTESP
|
indexController.mniRelatorioExportacaoIdosoARTESP.label = Reporte Exportación Ancianos ARTESP
|
||||||
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
||||||
|
@ -9302,6 +9303,36 @@ relatorioGratuidadeAGEPANController.lbPrefixo.value = Prefixo
|
||||||
relatorioGratuidadeAGEPANController.lvVenda = Venda
|
relatorioGratuidadeAGEPANController.lvVenda = Venda
|
||||||
relatorioGratuidadeAGEPANController.lbOrgao.value = Orgão Concedente
|
relatorioGratuidadeAGEPANController.lbOrgao.value = Orgão Concedente
|
||||||
|
|
||||||
|
# Relatório Gratuidade AGR
|
||||||
|
relatorioGratuidadeAGRController.window.title = Gratuidades AGR
|
||||||
|
relatorioGratuidadeAGRController.data.obrigatoria = Data inicial e Final são obrigatórias
|
||||||
|
relatorioGratuidadeAGRController.tipo.obrigatoria = Tipo de passagens é obrigatório
|
||||||
|
relatorioGratuidadeAGRController.lbEmpresa.value = Empresa
|
||||||
|
relatorioGratuidadeAGRController.lbAgencia.value = Agência
|
||||||
|
relatorioGratuidadeAGRController.lbLinha.value = Linha
|
||||||
|
relatorioGratuidadeAGRController.lbOrigem.value = Origem
|
||||||
|
relatorioGratuidadeAGRController.lbDestino.value = Destino
|
||||||
|
relatorioGratuidadeAGRController.lbTipoGratuidade.value = Tipos de Passagens
|
||||||
|
relatorioGratuidadeAGRController.lbDataIniVenda.value = Data Inicial Venda
|
||||||
|
relatorioGratuidadeAGRController.lbDataFinVenda.value = Data Final Venda
|
||||||
|
relatorioGratuidadeAGRController.lbDataIniViagem.value = Data Inicial Viagem
|
||||||
|
relatorioGratuidadeAGRController.lbDataFinViagem.value = Data Final Viagem
|
||||||
|
relatorioGratuidadeAGRController.btnPesquisa.value = Pesquisar
|
||||||
|
relatorioGratuidadeAGRController.btnLimpar.value = Limpar
|
||||||
|
relatorioGratuidadeAGRController.lbNumRuta.value = Num. Linha
|
||||||
|
relatorioGratuidadeAGRController.lbPrefixo.value = Prefixo
|
||||||
|
relatorioGratuidadeAGRController.lvVenda = Venda
|
||||||
|
relatorioGratuidadeAGRController.lbOrgao.value = Orgão Concedente
|
||||||
|
relatorioGratuidadeAGRController.lbTipoRelatorio.value=Tipo
|
||||||
|
relatorioGratuidadeAGRController.lbTipoGeral.value=Geral
|
||||||
|
relatorioGratuidadeAGRController.lbTipoCliente.value=Cliente
|
||||||
|
relatorioGratuidadeAGRController.lblIdCliente=Id
|
||||||
|
relatorioGratuidadeAGRController.lblCliente=Cliente
|
||||||
|
relatorioGratuidadeAGRController.lblDocumento=Documento
|
||||||
|
relatorioGratuidadeAGRController.lblDocumento2=Documento 2
|
||||||
|
relatorioGratuidadeAGRController.btnPesquisar= Pesquisar
|
||||||
|
relatorioGratuidadeAGRController.btnLimpar= Limpar
|
||||||
|
|
||||||
#Relatorio de Vendas conexao por Linha
|
#Relatorio de Vendas conexao por Linha
|
||||||
|
|
||||||
relatorioVendaConexaoRuta.window.title = Reporte Vendas Conexão Por Linha
|
relatorioVendaConexaoRuta.window.title = Reporte Vendas Conexão Por Linha
|
||||||
|
|
|
@ -334,6 +334,7 @@ indexController.mniRelatorioMovimentacaoBilhete.label = Movimentações de Bilhe
|
||||||
indexController.mniRelatorioEncerramentoCheckin.label = Encerramento do Checkin
|
indexController.mniRelatorioEncerramentoCheckin.label = Encerramento do Checkin
|
||||||
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.mniRelatorioGratuidadeAGR.label = Relatório Gratuidades AGR
|
||||||
indexController.mniRelatorioGratuidadeARTESP.label = Relatório Gratuidade ARTESP
|
indexController.mniRelatorioGratuidadeARTESP.label = Relatório Gratuidade ARTESP
|
||||||
indexController.mniRelatorioGratuidadeAGER.label = Relatório Gratuidade AGER
|
indexController.mniRelatorioGratuidadeAGER.label = Relatório Gratuidade AGER
|
||||||
indexController.mniRelatorioGratuidadeAGEPAN.label = Gratuidades AGEPAN
|
indexController.mniRelatorioGratuidadeAGEPAN.label = Gratuidades AGEPAN
|
||||||
|
@ -7959,6 +7960,36 @@ relatorioGratuidadeANTTController.lbPrefixo.value = Prefixo
|
||||||
relatorioGratuidadeANTTController.lvVenda = Venda
|
relatorioGratuidadeANTTController.lvVenda = Venda
|
||||||
relatorioGratuidadeANTTController.lbOrgao.value = Orgão Concedente
|
relatorioGratuidadeANTTController.lbOrgao.value = Orgão Concedente
|
||||||
|
|
||||||
|
# Relatório Gratuidade AGR
|
||||||
|
relatorioGratuidadeAGRController.window.title = Gratuidades AGR
|
||||||
|
relatorioGratuidadeAGRController.data.obrigatoria = Data inicial e Final são obrigatórias
|
||||||
|
relatorioGratuidadeAGRController.tipo.obrigatoria = Tipo de passagens é obrigatório
|
||||||
|
relatorioGratuidadeAGRController.lbEmpresa.value = Empresa
|
||||||
|
relatorioGratuidadeAGRController.lbAgencia.value = Agência
|
||||||
|
relatorioGratuidadeAGRController.lbLinha.value = Linha
|
||||||
|
relatorioGratuidadeAGRController.lbOrigem.value = Origem
|
||||||
|
relatorioGratuidadeAGRController.lbDestino.value = Destino
|
||||||
|
relatorioGratuidadeAGRController.lbTipoGratuidade.value = Tipos de Passagens
|
||||||
|
relatorioGratuidadeAGRController.lbDataIniVenda.value = Data Inicial Venda
|
||||||
|
relatorioGratuidadeAGRController.lbDataFinVenda.value = Data Final Venda
|
||||||
|
relatorioGratuidadeAGRController.lbDataIniViagem.value = Data Inicial Viagem
|
||||||
|
relatorioGratuidadeAGRController.lbDataFinViagem.value = Data Final Viagem
|
||||||
|
relatorioGratuidadeAGRController.btnPesquisa.value = Pesquisar
|
||||||
|
relatorioGratuidadeAGRController.btnLimpar.value = Limpar
|
||||||
|
relatorioGratuidadeAGRController.lbNumRuta.value = Num. Linha
|
||||||
|
relatorioGratuidadeAGRController.lbPrefixo.value = Prefixo
|
||||||
|
relatorioGratuidadeAGRController.lvVenda = Venda
|
||||||
|
relatorioGratuidadeAGRController.lbOrgao.value = Orgão Concedente
|
||||||
|
relatorioGratuidadeAGRController.lbTipoRelatorio.value=Tipo
|
||||||
|
relatorioGratuidadeAGRController.lbTipoGeral.value=Geral
|
||||||
|
relatorioGratuidadeAGRController.lbTipoCliente.value=Cliente
|
||||||
|
relatorioGratuidadeAGRController.lblIdCliente=Id
|
||||||
|
relatorioGratuidadeAGRController.lblCliente=Cliente
|
||||||
|
relatorioGratuidadeAGRController.lblDocumento=Documento
|
||||||
|
relatorioGratuidadeAGRController.lblDocumento2=Documento 2
|
||||||
|
relatorioGratuidadeAGRController.btnPesquisar= Pesquisar
|
||||||
|
relatorioGratuidadeAGRController.btnLimpar= Limpar
|
||||||
|
|
||||||
# Relatório Bilhetes Vendidos
|
# Relatório Bilhetes Vendidos
|
||||||
relatorioBilhetesVendidosController.window.title = Bilhetes Vendidos
|
relatorioBilhetesVendidosController.window.title = Bilhetes Vendidos
|
||||||
relatorioBilhetesVendidosController.lbDatInicial.value = Data Inicial
|
relatorioBilhetesVendidosController.lbDatInicial.value = Data Inicial
|
||||||
|
|
|
@ -0,0 +1,251 @@
|
||||||
|
<?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="winFiltroRelatorioGratuidadeAGR"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winFiltroRelatorioGratuidadeAGR"
|
||||||
|
apply="${relatorioGratuidadeAGRController}"
|
||||||
|
contentStyle="overflow:auto" height="535px" width="550px"
|
||||||
|
border="normal">
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="25%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeAGRController.lbDataIniVenda.value')}" />
|
||||||
|
<datebox id="datInicialVenda" mold="rounded" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeAGRController.lbDataFinVenda.value')}" />
|
||||||
|
<datebox id="datFinalVenda" mold="rounded" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeAGRController.lbDataIniViagem.value')}" />
|
||||||
|
<datebox id="datInicialViagem" mold="rounded" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeAGRController.lbDataFinViagem.value')}" />
|
||||||
|
<datebox id="datFinalViagem" mold="rounded" format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="75%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeAGRController.lbEmpresa.value')}" />
|
||||||
|
<combobox id="cmbEmpresa" width="100%"
|
||||||
|
maxlength="60" mold="rounded" buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioGratuidadeAGR$composer.lsEmpresas}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeAGRController.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('relatorioGratuidadeAGRController.btnPesquisa.value')}" />
|
||||||
|
<button id="btnLimparLinha"
|
||||||
|
image="/gui/img/eraser.png"
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.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('relatorioGratuidadeAGRController.lbNumRuta.value')}"
|
||||||
|
width="18%" />
|
||||||
|
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lbPrefixo.value')}"
|
||||||
|
width="20%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('lb.dec')}" width="35%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.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('relatorioGratuidadeAGRController.lbNumRuta.value')}"
|
||||||
|
width="18%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lbPrefixo.value')}"
|
||||||
|
width="20%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('lb.dec')}" width="35%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lbOrgao.value')}"
|
||||||
|
width="20%" />
|
||||||
|
<listheader width="7%" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</center>
|
||||||
|
</borderlayout>
|
||||||
|
</cell>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('relatorioGratuidadeAGRController.lbTipoGratuidade.value')}" />
|
||||||
|
<combobox id="cmbTipoGratuidade" width="100%"
|
||||||
|
maxlength="60" mold="rounded" buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioGratuidadeAGR$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>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="30%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row spans="1,6">
|
||||||
|
<label value="${c:l('relatorioGratuidadeAGRController.lblCliente')}" />
|
||||||
|
<bandbox id="bbPesquisaCliente" width="100%" mold="rounded" readonly="true">
|
||||||
|
<bandpopup >
|
||||||
|
<vbox>
|
||||||
|
<hbox>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioGratuidadeAGRController.lblCliente')}" />
|
||||||
|
<textbox id="txtCliente"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
width="300px" mold="rounded" />
|
||||||
|
<button id="btnPesquisaCliente"
|
||||||
|
image="/gui/img/find.png"
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.btnPesquisar')}" />
|
||||||
|
<button id="btnLimparCliente"
|
||||||
|
image="/gui/img/eraser.png"
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.btnLimpar')}" />
|
||||||
|
</hbox>
|
||||||
|
<paging id="pagingCliente" pageSize="10" />
|
||||||
|
<listbox id="clienteList"
|
||||||
|
mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" height="100%" width="700px">
|
||||||
|
<listhead>
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lblIdCliente')}" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lblCliente')}" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lblDocumento')}" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lblDocumento2')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</vbox>
|
||||||
|
</bandpopup>
|
||||||
|
</bandbox>
|
||||||
|
</row>
|
||||||
|
<row spans="7">
|
||||||
|
<listbox id="clienteSelList" mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" height="80px" width="100%">
|
||||||
|
<listhead >
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lblIdCliente')}" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lblCliente')}" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lblDocumento')}" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioGratuidadeAGRController.lblDocumento2')}" />
|
||||||
|
<listheader width="8%" label="" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="25%" />
|
||||||
|
<column width="75%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('relatorioGratuidadeAGRController.lbTipoRelatorio.value')}" />
|
||||||
|
<radiogroup Id="rgLayout" >
|
||||||
|
<label value="${c:l('relatorioGratuidadeAGRController.lbTipoGeral.value')}" />
|
||||||
|
<radio value="GERAL" checked = "true"/>
|
||||||
|
<label value="${c:l('relatorioGratuidadeAGRController.lbTipoCliente.value')}" />
|
||||||
|
<radio value="CLIENTE" />
|
||||||
|
</radiogroup>
|
||||||
|
</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