commit parcial
parent
c1d0488150
commit
d487beed48
|
@ -0,0 +1,132 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.enums.DataGeracaoLegalizacaoEnum;
|
||||||
|
import com.rjconsultores.ventaboletos.enums.EstadoBilheteConsultarEnum;
|
||||||
|
import com.rjconsultores.ventaboletos.enums.IndStatusBoleto;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioCorridasBean;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioDetalheContratoBean;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
|
public class RelatorioDetalheContrato extends Relatorio {
|
||||||
|
|
||||||
|
private List<RelatorioDetalheContratoBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
public RelatorioDetalheContrato(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();
|
||||||
|
|
||||||
|
Date dataInicial = (Date) parametros.get("DATA_DE");
|
||||||
|
Date dataFinal = (Date) parametros.get("DATA_ATE");
|
||||||
|
DataGeracaoLegalizacaoEnum geracao = (DataGeracaoLegalizacaoEnum) parametros.get("GERACAO");
|
||||||
|
EstadoBilheteConsultarEnum estadoBilhetes = (EstadoBilheteConsultarEnum) parametros.get("ESTADO_BILHETES");
|
||||||
|
Long numContrato = (Long) parametros.get("NUM_CONTRATO");
|
||||||
|
Boolean saldoContrato = (Boolean) parametros.get("SALDO_CONTRATO");
|
||||||
|
|
||||||
|
NamedParameterStatement nps = new NamedParameterStatement(conexao, getSql(origem, destino));
|
||||||
|
nps.setDate("inicioViagem", new java.sql.Date(dataInicial.getTime()));
|
||||||
|
nps.setDate("fimViagem", new java.sql.Date(dataFinal.getTime()));
|
||||||
|
|
||||||
|
|
||||||
|
nps.setInt("numServico", (Integer) parametros.get("CORRIDA_ID"));
|
||||||
|
nps.setInt("empresaId", Integer.valueOf((String) parametros.get("EMPRESA_ID")));
|
||||||
|
if (origem != -1) {
|
||||||
|
nps.setInt("origemId", (Integer) parametros.get("ORIGEN_ID"));
|
||||||
|
}
|
||||||
|
if (destino != -1) {
|
||||||
|
nps.setInt("destinoId", (Integer) parametros.get("DESTINO_ID"));
|
||||||
|
}
|
||||||
|
|
||||||
|
ResultSet rset = nps.executeQuery();
|
||||||
|
|
||||||
|
List<RelatorioDetalheContratoBean> ls = new ArrayList<RelatorioDetalheContratoBean>();
|
||||||
|
|
||||||
|
while (rset.next()) {
|
||||||
|
|
||||||
|
RelatorioDetalheContratoBean detalhe = new RelatorioDetalheContratoBean();
|
||||||
|
detalhe.setBoleto((Long)rset.getObject("contratoId"));
|
||||||
|
detalhe.setDataVenda((Date)rset.getObject("dataVenda"));
|
||||||
|
detalhe.setDestino(rset.getObject("destino").toString());
|
||||||
|
detalhe.setOrigem(rset.getObject("origem").toString());
|
||||||
|
detalhe.setEmpresa(rset.getObject("empresa").toString());
|
||||||
|
detalhe.setEstado((EstadoBilheteConsultarEnum)rset.getObject("estado"));
|
||||||
|
detalhe.setFatura(rset.getObject("fatura").toString());
|
||||||
|
detalhe.setLegalizado((DataGeracaoLegalizacaoEnum)rset.getObject(""));
|
||||||
|
detalhe.setNomePassageiro(rset.getObject("cliente").toString());
|
||||||
|
detalhe.setNomeUsuario(rset.getObject("usuario").toString());
|
||||||
|
detalhe.setPassageiroCod((Long)rset.getObject("clicod"));
|
||||||
|
detalhe.setPassagem(rset.getObject(0));
|
||||||
|
detalhe.setPrecioPagado((BigDecimal)rset.getBigDecimal("valorUnit"));
|
||||||
|
detalhe.setPreco((BigDecimal)rset.getBigDecimal("valorTiquete"));
|
||||||
|
detalhe.setTipoDoc(rset.getObject("tipoDoc"));
|
||||||
|
|
||||||
|
ls.add(detalhe);
|
||||||
|
}
|
||||||
|
|
||||||
|
setLsDadosRelatorio(ls);
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getSql(Integer origem, Integer destino) {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("select cc.contrato_id as contratoId, c.fechorviaje as dataVenda, \r\n"
|
||||||
|
+ "tipoidentificacion_id tipoDoc, numfoliosistema as fatura, 'estado' as estado, \r\n"
|
||||||
|
+ "porigen.descparada as origem, pdestino.descparada as destino, 1, c.preciopagado as valorUnit, \r\n"
|
||||||
|
+ "c.preciopagado as valorTiquete, e.nombempresa as empresa, c.cliente_id as clicod, cli.nombcliente cliente, \r\n"
|
||||||
|
+ "u.nombusuario as usuario\r\n"
|
||||||
|
+ "from caja c \r\n"
|
||||||
|
+ "join caixa_contrato cc on cc.caja_id = c.caja_id\r\n"
|
||||||
|
+ "join empresa e on e.empresa_id = c.empresacorrida_id\r\n"
|
||||||
|
+ "join cliente cli on cli.cliente_id = c.cliente_id\r\n"
|
||||||
|
+ "join parada porigen on c.origen_id = porigen.parada_id \r\n"
|
||||||
|
+ "join parada pdestino on c.destino_id = pdestino.parada_id\r\n"
|
||||||
|
+ "join usuario u on u.usuario_id = c.usuario_id");
|
||||||
|
|
||||||
|
if(origem != -1){
|
||||||
|
sb.append(" and b.origen_id = :origemId ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(destino != -1){
|
||||||
|
sb.append(" and b.destino_id = :destinoId ");
|
||||||
|
}
|
||||||
|
|
||||||
|
sb.append(" and e.empresa_id = :empresaId ");
|
||||||
|
sb.append(" and b.corrida_id = :numServico ");
|
||||||
|
sb.append(" and b.feccorrida between :inicioViagem and :fimViagem ");
|
||||||
|
sb.append(" order by b.motivocancelacion_id, b.fechorventa ");
|
||||||
|
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void processaParametros() throws Exception {
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<RelatorioDetalheContratoBean> getLsDadosRelatorio() {
|
||||||
|
return lsDadosRelatorio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDadosRelatorio(List<RelatorioDetalheContratoBean> lsDadosRelatorio) {
|
||||||
|
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||||
|
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,544 @@
|
||||||
|
<?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="RelatorioCorridas" pageWidth="1205" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1165" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="dc003bfe-c791-4f88-acc6-736e8c97f7e2">
|
||||||
|
<property name="ireport.zoom" value="1.5026296018031564"/>
|
||||||
|
<property name="ireport.x" value="0"/>
|
||||||
|
<property name="ireport.y" value="0"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="title"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" 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"/>
|
||||||
|
<parameter name="EMPRESA" class="java.lang.String"/>
|
||||||
|
<parameter name="DATA_DE" class="java.sql.Date"/>
|
||||||
|
<parameter name="DATA_ATE" class="java.sql.Date"/>
|
||||||
|
<parameter name="CONTRATO" class="java.lang.Long"/>
|
||||||
|
<parameter name="VALOR_CONTRATO" class="java.math.BigDecimal"/>
|
||||||
|
<parameter name="VALOR_ADICIONADO" class="java.math.BigDecimal"/>
|
||||||
|
<parameter name="EXECUTADO" class="java.math.BigDecimal"/>
|
||||||
|
<parameter name="QUOTA_ATUAL" class="java.lang.Number"/>
|
||||||
|
<field name="boleto" class="java.lang.Long"/>
|
||||||
|
<field name="dataVenda" class="java.util.Date"/>
|
||||||
|
<field name="tipoDoc" class="java.lang.String"/>
|
||||||
|
<field name="fatura" class="java.lang.String"/>
|
||||||
|
<field name="estado" class="java.lang.String"/>
|
||||||
|
<field name="origem" class="java.lang.String"/>
|
||||||
|
<field name="destino" class="java.lang.String"/>
|
||||||
|
<field name="passagem" class="java.lang.String"/>
|
||||||
|
<field name="preco" class="java.math.BigDecimal"/>
|
||||||
|
<field name="precioPagado" class="java.math.BigDecimal"/>
|
||||||
|
<field name="empresa" class="java.lang.String"/>
|
||||||
|
<field name="passageiroCod" class="java.lang.Long"/>
|
||||||
|
<field name="nomePassageiro" class="java.lang.String"/>
|
||||||
|
<field name="legalizado" class="java.lang.Integer"/>
|
||||||
|
<field name="nomeUsuario" class="java.lang.String"/>
|
||||||
|
<background>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</background>
|
||||||
|
<title>
|
||||||
|
<band height="102" splitType="Stretch">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="bdb170bb-bfe6-4ea2-8702-2df0b015cd7d" x="141" y="20" width="1023" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="f6fe1c2b-09af-45e6-9883-f6aa7fe3016c" x="0" y="0" width="1015" height="20"/>
|
||||||
|
<textElement markup="none">
|
||||||
|
<font size="14" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.titulo.relatorio}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="3d8e6261-3551-411a-ab47-8ed23e80f41e" x="0" y="20" width="141" height="20"/>
|
||||||
|
<textElement markup="none"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="6c1cdde2-67c3-4a56-9744-5a4d249115f9" x="141" y="40" width="161" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{CONTRATO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="4f697f82-2de4-4665-af6f-4cc16270d631" x="302" y="40" width="79" height="20"/>
|
||||||
|
<textElement markup="none"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.executado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="20a767f1-d0d5-4485-9d6c-3c762e97bc70" x="0" y="60" width="141" height="20"/>
|
||||||
|
<textElement markup="none"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.valor.contrato}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="96572021-01f9-4d05-938c-11ca5721f81c" x="1015" y="0" width="149" height="20"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="e24ed6f5-a072-4bda-b735-ef26b59fa179" x="0" y="80" width="141" height="20"/>
|
||||||
|
<textElement markup="none"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.valor.adicionado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="efc3193a-c42a-4935-95ee-84f086336574" x="302" y="80" width="79" height="20"/>
|
||||||
|
<textElement markup="none"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.quota.atual}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy">
|
||||||
|
<reportElement uuid="110852df-8752-44d8-98ae-534a5cb8d5e2" x="141" y="80" width="161" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{VALOR_ADICIONADO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy">
|
||||||
|
<reportElement uuid="4d410653-2490-49ff-b176-530feaeab535" x="381" y="80" width="463" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{QUOTA_ATUAL}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="2879d620-3c3b-465f-9459-f94154b9e9c7" x="381" y="40" width="463" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{EXECUTADO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="06d06c40-6984-4a32-90e2-48e1d8cdcc9b" x="141" y="60" width="161" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{VALOR_CONTRATO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="577578e8-3add-42a2-88c0-df7647b59844" x="0" y="40" width="141" height="20"/>
|
||||||
|
<textElement markup="none"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.contrato}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="481f4afe-f201-4297-b478-8b654dbc15e6" x="302" y="60" width="79" height="20"/>
|
||||||
|
<textElement markup="none"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="145e00cf-dde5-4ca3-b799-b15de40d3606" x="381" y="60" width="463" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{DESTINO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</title>
|
||||||
|
<pageHeader>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</pageHeader>
|
||||||
|
<columnHeader>
|
||||||
|
<band height="20" splitType="Stretch">
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="c06195d4-ba58-47be-aef7-1563b191de27" stretchType="RelativeToTallestObject" x="0" y="0" width="152" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.nomePassageiro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="1ecd7528-3828-4cf5-a9c8-f85e07e4ba28" stretchType="RelativeToTallestObject" x="231" y="0" width="51" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.servico}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="1f6c0d70-a694-43e9-8ad3-aebfb91eed3c" stretchType="RelativeToTallestObject" x="422" y="0" width="90" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="d1cbc7f5-2632-46d4-a223-c97577604537" stretchType="RelativeToTallestObject" x="512" y="0" width="90" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="838fd9f8-3595-4eb7-8b1c-a593b306bce3" stretchType="RelativeToTallestObject" x="649" y="0" width="31" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.poltrona}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="162ffd2f-696a-459d-ae23-2df0b308fa43" stretchType="RelativeToTallestObject" x="282" y="0" width="51" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.passagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="1729b2fd-2ba3-40b0-851f-69f5349a8eb7" stretchType="RelativeToTallestObject" x="964" y="0" width="90" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.pontoVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="a7946998-7bb2-4936-b0c4-c54ca8749dfa" stretchType="RelativeToTallestObject" x="152" y="0" width="79" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.dataViaje}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="1f8dae8e-1925-477d-b9de-059ba69c84f5" stretchType="RelativeToTallestObject" x="333" y="0" width="89" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.claseServicio}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="b0ab84b3-6e08-46f6-bf81-4c04b7ee39b0" stretchType="RelativeToTallestObject" x="602" y="0" width="47" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.numKmViaje}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="21c168b8-f4de-4072-a332-f747335b42e1" stretchType="RelativeToTallestObject" x="680" y="0" width="53" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.precioPagado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="599cec9c-c85c-4b21-aca1-083af166804f" stretchType="RelativeToTallestObject" x="733" y="0" width="53" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.precioTaxas}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="59b102ac-758c-4143-b54c-3a8c209bd027" stretchType="RelativeToTallestObject" x="786" y="0" width="53" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.preco}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="96250910-b2bf-49de-95d2-72465cce0769" stretchType="RelativeToTallestObject" x="839" y="0" width="46" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.categoria}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="d4abd954-bbc3-482b-bd2f-bfe2f030eaad" stretchType="RelativeToTallestObject" x="885" y="0" width="79" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.dataVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band height="20" splitType="Stretch">
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="7a8c77d7-97f8-4e37-8ebc-97c6ab05eaed" stretchType="RelativeToTallestObject" x="0" y="0" width="152" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{boleto}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="b31c9ab2-0cfe-4db1-83ca-57aba183a88b" stretchType="RelativeToTallestObject" x="231" y="0" width="51" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{tipoDoc}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="4768cf26-74b8-48a5-b8eb-cbcc63d5d968" stretchType="RelativeToTallestObject" x="422" y="0" width="90" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm">
|
||||||
|
<reportElement uuid="301029ea-db8d-48bd-8e13-ed67f6140081" stretchType="RelativeToTallestObject" x="152" y="0" width="79" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="7da11eed-f034-4eb3-bba2-0c7547074136" stretchType="RelativeToTallestObject" x="282" y="0" width="51" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{fatura}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="2cdbea3c-5b25-4bd1-b7ae-d5ed59952e57" stretchType="RelativeToTallestObject" x="512" y="0" width="90" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="a1e05674-d013-4612-8bcd-0f08cc68849f" stretchType="RelativeToTallestObject" x="964" y="0" width="90" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{nomeUsuario}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="cf5d37e0-ce0e-4089-bcaa-edf01bf46fc3" stretchType="RelativeToTallestObject" x="649" y="0" width="31" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{preco}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="21f02b6f-9b56-46ef-af2f-3a602603e8a8" stretchType="RelativeToTallestObject" x="602" y="0" width="47" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{passagem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||||
|
<reportElement uuid="5a0bd7e9-4f49-4024-8b2b-6444f3f23cb4" stretchType="RelativeToTallestObject" x="680" y="0" width="53" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||||
|
<reportElement uuid="0682a7fc-c7f6-4494-afeb-4d4267136edb" stretchType="RelativeToTallestObject" x="733" y="0" width="53" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||||
|
<reportElement uuid="668a4faf-a3c9-48a6-9724-3072d7455b25" stretchType="RelativeToTallestObject" x="786" y="0" width="53" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{passageiroCod}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="a3487a1b-d380-47f5-857b-b70e10504790" stretchType="RelativeToTallestObject" x="839" y="0" width="46" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{nomePassageiro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm">
|
||||||
|
<reportElement uuid="da7ad02c-f0d2-46c8-8c86-0a6dcc32f606" stretchType="RelativeToTallestObject" x="885" y="0" width="79" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{legalizado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="1f7cb37d-4f34-448b-9438-b4a2b858552e" stretchType="RelativeToTallestObject" x="333" y="0" width="89" height="20"/>
|
||||||
|
<box>
|
||||||
|
<topPen lineWidth="0.25"/>
|
||||||
|
<leftPen lineWidth="0.25"/>
|
||||||
|
<bottomPen lineWidth="0.25"/>
|
||||||
|
<rightPen lineWidth="0.25"/>
|
||||||
|
</box>
|
||||||
|
<textElement textAlignment="Center">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{estado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<columnFooter>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</columnFooter>
|
||||||
|
<pageFooter>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</pageFooter>
|
||||||
|
<summary>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</summary>
|
||||||
|
<noData>
|
||||||
|
<band height="35">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="ed192bd7-4c3c-4f7f-a805-6d71234d513c" x="0" y="8" width="910" height="20"/>
|
||||||
|
<textElement markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
|
@ -0,0 +1,113 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class RelatorioDetalheContratoBean {
|
||||||
|
|
||||||
|
private Long boleto;
|
||||||
|
private Date dataVenda;
|
||||||
|
private String tipoDoc;
|
||||||
|
private String fatura;
|
||||||
|
private String estado;
|
||||||
|
private String origem;
|
||||||
|
private String destino;
|
||||||
|
private String passagem;
|
||||||
|
private BigDecimal preco;
|
||||||
|
private BigDecimal precioPagado;
|
||||||
|
private String empresa;
|
||||||
|
private Long passageiroCod;
|
||||||
|
private String nomePassageiro;
|
||||||
|
private Integer legalizado;
|
||||||
|
private String nomeUsuario;
|
||||||
|
public Long getBoleto() {
|
||||||
|
return boleto;
|
||||||
|
}
|
||||||
|
public void setBoleto(Long boleto) {
|
||||||
|
this.boleto = boleto;
|
||||||
|
}
|
||||||
|
public Date getDataVenda() {
|
||||||
|
return dataVenda;
|
||||||
|
}
|
||||||
|
public void setDataVenda(Date dataVenda) {
|
||||||
|
this.dataVenda = dataVenda;
|
||||||
|
}
|
||||||
|
public String getTipoDoc() {
|
||||||
|
return tipoDoc;
|
||||||
|
}
|
||||||
|
public void setTipoDoc(String tipoDoc) {
|
||||||
|
this.tipoDoc = tipoDoc;
|
||||||
|
}
|
||||||
|
public String getFatura() {
|
||||||
|
return fatura;
|
||||||
|
}
|
||||||
|
public void setFatura(String fatura) {
|
||||||
|
this.fatura = fatura;
|
||||||
|
}
|
||||||
|
public String getEstado() {
|
||||||
|
return estado;
|
||||||
|
}
|
||||||
|
public void setEstado(String estado) {
|
||||||
|
this.estado = estado;
|
||||||
|
}
|
||||||
|
public String getOrigem() {
|
||||||
|
return origem;
|
||||||
|
}
|
||||||
|
public void setOrigem(String origem) {
|
||||||
|
this.origem = origem;
|
||||||
|
}
|
||||||
|
public String getDestino() {
|
||||||
|
return destino;
|
||||||
|
}
|
||||||
|
public void setDestino(String destino) {
|
||||||
|
this.destino = destino;
|
||||||
|
}
|
||||||
|
public String getPassagem() {
|
||||||
|
return passagem;
|
||||||
|
}
|
||||||
|
public void setPassagem(String passagem) {
|
||||||
|
this.passagem = passagem;
|
||||||
|
}
|
||||||
|
public BigDecimal getPreco() {
|
||||||
|
return preco;
|
||||||
|
}
|
||||||
|
public void setPreco(BigDecimal preco) {
|
||||||
|
this.preco = preco;
|
||||||
|
}
|
||||||
|
public BigDecimal getPrecioPagado() {
|
||||||
|
return precioPagado;
|
||||||
|
}
|
||||||
|
public void setPrecioPagado(BigDecimal precioPagado) {
|
||||||
|
this.precioPagado = precioPagado;
|
||||||
|
}
|
||||||
|
public String getEmpresa() {
|
||||||
|
return empresa;
|
||||||
|
}
|
||||||
|
public void setEmpresa(String empresa) {
|
||||||
|
this.empresa = empresa;
|
||||||
|
}
|
||||||
|
public Long getPassageiroCod() {
|
||||||
|
return passageiroCod;
|
||||||
|
}
|
||||||
|
public void setPassageiroCod(Long passageiroCod) {
|
||||||
|
this.passageiroCod = passageiroCod;
|
||||||
|
}
|
||||||
|
public String getNomePassageiro() {
|
||||||
|
return nomePassageiro;
|
||||||
|
}
|
||||||
|
public void setNomePassageiro(String nomePassageiro) {
|
||||||
|
this.nomePassageiro = nomePassageiro;
|
||||||
|
}
|
||||||
|
public Integer getLegalizado() {
|
||||||
|
return legalizado;
|
||||||
|
}
|
||||||
|
public void setLegalizado(Integer legalizado) {
|
||||||
|
this.legalizado = legalizado;
|
||||||
|
}
|
||||||
|
public String getNomeUsuario() {
|
||||||
|
return nomeUsuario;
|
||||||
|
}
|
||||||
|
public void setNomeUsuario(String nomeUsuario) {
|
||||||
|
this.nomeUsuario = nomeUsuario;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||||
|
|
||||||
|
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.zul.Combobox;
|
||||||
|
import org.zkoss.zul.Datebox;
|
||||||
|
import org.zkoss.zul.Intbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
|
||||||
|
@Controller("relatorioDetalheContratoController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class RelatorioDetalheContratoController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Autowired
|
||||||
|
private DataSource dataSourceRead;
|
||||||
|
|
||||||
|
|
||||||
|
private Datebox datInicial;
|
||||||
|
private Datebox datFinal;
|
||||||
|
private Intbox txtCorridaId;
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
private MyComboboxParada cmbParadaOrigem;
|
||||||
|
private MyComboboxParadaCve cmbParadaOrigemCve;
|
||||||
|
private MyComboboxParada cmbParadaDestino;
|
||||||
|
private MyComboboxParadaCve cmbParadaDestinoCve;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,71 @@
|
||||||
|
<?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="winFiltroRelatorioDetalheContrato"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winFiltroRelatorioDetalheContrato"
|
||||||
|
apply="${relatorioDetalheContratoController}" contentStyle="overflow:auto"
|
||||||
|
width="700px" border="normal">
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="30%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioCadastroClientesController.lblDataCadastroInicial.value')}" />
|
||||||
|
<datebox id="dtCadastroInicial" width="100%" mold="rounded"
|
||||||
|
format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioCadastroClientesController.lblDataCadastroFinal.value')}" />
|
||||||
|
<datebox id="dtCadastroFinal" width="100%" mold="rounded"
|
||||||
|
format="dd/MM/yyyy" maxlength="10" />
|
||||||
|
</row>
|
||||||
|
<row >
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioCadastroClientesController.lblTipoRelatorio')}" />
|
||||||
|
<radiogroup Id="layout">
|
||||||
|
<radio id="rdbConsolidado" label="${c:l('relatorioCadastroClientesController.lblConsolidado.value')}" selected="true"/>
|
||||||
|
<radio id="rdbDetalhado" label="${c:l('relatorioCadastroClientesController.lblDetalhado.value')}" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row >
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioCadastroClientesController.lblTipoRelatorio')}" />
|
||||||
|
<radiogroup Id="layout">
|
||||||
|
<radio id="rdbConsolidado" label="${c:l('relatorioCadastroClientesController.lblConsolidado.value')}" selected="true"/>
|
||||||
|
<radio id="rdbDetalhado" label="${c:l('relatorioCadastroClientesController.lblDetalhado.value')}" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row spans="1,3">
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioAidfDetalhadoController.lbEmpresa.value')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioHistoricoCliente$composer.lsEmpresa}"
|
||||||
|
width="100%" />
|
||||||
|
</row>
|
||||||
|
<row spans="1,3">
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioAidfDetalhadoController.lbEmpresa.value')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioHistoricoCliente$composer.lsEmpresa}"
|
||||||
|
width="100%" />
|
||||||
|
</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