leonardo 2016-06-27 17:51:17 +00:00
parent a576d1e900
commit 2e86465594
10 changed files with 1203 additions and 2 deletions

View File

@ -0,0 +1,150 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioReceitaEmbarcadaServico extends Relatorio {
public RelatorioReceitaEmbarcadaServico(Map<String, Object> parametros, Connection conexao) throws Exception
{
super(parametros, conexao);
this.setCustomDataSource(new ArrayDataSource(this) {
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
String sql = getSql(
(parametros.get("ORIGEN_ID") != null && parametros.get("ORIGEN_ID") != ""),
(parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != ""),
(parametros.get("CORRIDA_ID") != null && parametros.get("CORRIDA_ID") != ""),
(parametros.get("CLASESERVICIO_ID") != null && parametros.get("CLASESERVICIO_ID") != ""));
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
stmt.setTimestamp("DATA_INICIAL", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime()));
stmt.setTimestamp("DATA_FINAL", new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime()));
if (parametros.get("CORRIDA_ID") != null)
stmt.setString("CORRIDA_ID", (String) parametros.get("CORRIDA_ID"));
if (parametros.get("ORIGEN_ID") != null)
stmt.setInt("ORIGEN_ID", (Integer) parametros.get("ORIGEN_ID"));
if (parametros.get("DESTINO_ID") != null)
stmt.setInt("DESTINO_ID", (Integer) parametros.get("DESTINO_ID"));
if (parametros.get("EMPRESA_ID") != null)
stmt.setInt("EMPRESA_ID", (Integer) parametros.get("EMPRESA_ID"));
else
stmt.setNull("EMPRESA_ID", java.sql.Types.INTEGER);
if (parametros.get("CLASESERVICIO_ID") != null && (!parametros.get("CLASESERVICIO_ID").equals("")))
stmt.setInt("CLASESERVICIO_ID", (Integer) parametros.get("CLASESERVICIO_ID"));
ResultSet rset = stmt.executeQuery();
while (rset.next()) {
Map<String, Object> dataResult = new HashMap<String, Object>();
dataResult.put("cantasientos", rset.getInt("cantasientos"));
dataResult.put("data", rset.getDate("data"));
dataResult.put("servico", rset.getString("servico"));
dataResult.put("empresa", rset.getString("empresa"));
dataResult.put("origem", rset.getString("origem"));
dataResult.put("destino", rset.getString("destino"));
dataResult.put("classe", rset.getString("classe"));
dataResult.put("preciobase", rset.getBigDecimal("preciobase"));
dataResult.put("tarifa", rset.getBigDecimal("tarifa"));
dataResult.put("tut", rset.getBigDecimal("tut"));
dataResult.put("pedagio", rset.getBigDecimal("pedagio"));
dataResult.put("total", rset.getBigDecimal("total"));
dataResult.put("tipo", rset.getString("tipo"));
dataResult.put("agencia", rset.getString("agencia"));
dataResult.put("dataHoraCompra", rset.getTimestamp("dataHoraCompra"));
dataResult.put("passageiro", !(rset.getString("passageiro") == null) ? rset.getString("passageiro") : "");
dataResult.put("nrBilhete", !(rset.getString("nrBilhete") == null) ? rset.getString("nrBilhete") : "");
this.dados.add(dataResult);
}
this.resultSet = rset;
}
});
}
@Override
protected void processaParametros() throws Exception {
}
private String getSql(boolean origemSelected, boolean destinoSelected, boolean servicoSelected, boolean claseServicioSelected) {
StringBuilder sql = new StringBuilder();
sql.append("SELECT ");
sql.append(" case when dab.cantasientos is null then dab2.cantasientos else dab.cantasientos end as cantasientos, ");
sql.append(" b.feccorrida AS data, ");
sql.append(" b.corrida_id AS servico, ");
sql.append(" mar.descmarca AS empresa, ");
sql.append(" origem.cveparada AS Origem, ");
sql.append(" destino.cveparada AS Destino, ");
sql.append(" cl_ser.descclase AS Classe, ");
sql.append(" COALESCE(b.preciobase,0) AS preciobase, ");
sql.append(" COALESCE(b.preciopagado,0) AS tarifa, ");
sql.append(" COALESCE(b.importetaxaembarque,0) AS tut, ");
sql.append(" COALESCE(b.importepedagio,0) AS pedagio, ");
sql.append(" (COALESCE(b.preciopagado,0) + COALESCE(b.importetaxaembarque,0) + COALESCE(b.importepedagio,0) ) AS total, ");
sql.append(" cat.desccategoria AS tipo, ");
sql.append(" p.nombpuntoventa AS agencia, ");
sql.append(" b.fechorventa AS dataHoraCompra, ");
sql.append(" b.nombpasajero AS passageiro, ");
sql.append(" b.NUMFOLIOSISTEMA AS nrBilhete ");
sql.append("FROM BOLETO b ");
sql.append(" INNER JOIN marca mar ON b.marca_id = mar.marca_id ");
sql.append(" INNER JOIN clase_servicio cl_ser ON cl_ser.claseservicio_id = b.claseservicio_id ");
sql.append(" LEFT JOIN PARADA levante ON levante.parada_id = b.levante_id ");
sql.append(" LEFT OUTER JOIN PUNTO_VENTA p ON b.puntoventa_id = p.puntoventa_id ");
sql.append(" LEFT OUTER JOIN PARADA parada ON p.PARADA_ID = parada.PARADA_ID ");
sql.append(" inner join corrida c on c.corrida_id = b.corrida_id and c.feccorrida = b.feccorrida ");
sql.append(" left join diagrama_autobus dab on dab.diagramaautobus_id = c.diagramaautobus_id ");
sql.append(" left join rol_operativo rop on rop.roloperativo_id = c.roloperativo_id ");
sql.append(" left join diagrama_autobus dab2 on dab2.diagramaautobus_id = rop.diagramaautobus_id, ");
sql.append(" PARADA origem, ");
sql.append(" PARADA destino, ");
sql.append(" CATEGORIA cat ");
sql.append("WHERE b.feccorrida BETWEEN :DATA_INICIAL AND :DATA_FINAL ");
sql.append(" AND b.origen_id = origem.parada_id ");
sql.append(" AND b.destino_id = destino.parada_id ");
if (origemSelected) {
sql.append("AND b.origen_id = (:ORIGEN_ID) ");
}
if (destinoSelected) {
sql.append("AND b.destino_id = (:DESTINO_ID) ");
}
if (servicoSelected) {
sql.append("AND b.corrida_id= :CORRIDA_ID ");
}
if (claseServicioSelected) {
sql.append(" AND cl_ser.CLASESERVICIO_ID = :CLASESERVICIO_ID ");
}
sql.append(" AND b.categoria_id=cat.categoria_id ");
sql.append(" AND b.motivocancelacion_id IS NULL ");
sql.append(" AND mar.EMPRESA_ID = :EMPRESA_ID ");
sql.append(" AND b.NUMFOLIOSISTEMA is not null ");
sql.append("order by ");
sql.append(" b.corrida_id, ");
sql.append(" b.feccorrida ");
return sql.toString();
}
}

View File

@ -0,0 +1,12 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,12 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,545 @@
<?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="RelatorioReceitaServico" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
<property name="ireport.zoom" value="1.2100000000000002"/>
<property name="ireport.x" value="305"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="data" class="java.util.Date"/>
<field name="servico" class="java.lang.String"/>
<field name="empresa" class="java.lang.String"/>
<field name="origem" class="java.lang.String"/>
<field name="destino" class="java.lang.String"/>
<field name="classe" class="java.lang.String"/>
<field name="tarifa" class="java.math.BigDecimal"/>
<field name="tut" class="java.math.BigDecimal"/>
<field name="pedagio" class="java.math.BigDecimal"/>
<field name="total" class="java.math.BigDecimal"/>
<field name="tipo" class="java.lang.String"/>
<field name="agencia" class="java.lang.String"/>
<field name="dataHoraCompra" class="java.util.Date"/>
<field name="passageiro" class="java.lang.String"/>
<field name="nrBilhete" class="java.lang.String"/>
<field name="preciobase" class="java.math.BigDecimal"/>
<field name="cantasientos" class="java.lang.Integer"/>
<variable name="totalizador" class="java.math.BigDecimal" resetType="Group" resetGroup="data" calculation="Sum">
<variableExpression><![CDATA[$F{total}]]></variableExpression>
</variable>
<variable name="TOTAL_TARIFA" class="java.math.BigDecimal" resetType="Group" resetGroup="data" calculation="Sum">
<variableExpression><![CDATA[$F{tarifa}]]></variableExpression>
</variable>
<variable name="TOTAL_TUT" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{tut}]]></variableExpression>
</variable>
<variable name="TOTAL_PEDAGIO" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{pedagio}]]></variableExpression>
</variable>
<variable name="bilhete_COUNT" class="java.lang.Integer" resetType="Group" resetGroup="data" calculation="Count">
<variableExpression><![CDATA[$F{nrBilhete}]]></variableExpression>
</variable>
<group name="serviço">
<groupExpression><![CDATA[$F{servico}]]></groupExpression>
<groupHeader>
<band height="26">
<staticText>
<reportElement uuid="b3502755-0bd7-4f2a-92da-9b978a6a1f05" x="1" y="0" width="51" height="17"/>
<textElement textAlignment="Left">
<font size="7" isBold="true" isItalic="false"/>
</textElement>
<text><![CDATA[Serviço]]></text>
</staticText>
<textField>
<reportElement uuid="6c12b027-87a2-4a76-a291-1874b37595ea" x="52" y="0" width="63" height="17"/>
<textElement>
<font size="7" isBold="true" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="5"/>
</groupFooter>
</group>
<group name="data">
<groupExpression><![CDATA[$F{data}]]></groupExpression>
<groupHeader>
<band height="50">
<staticText>
<reportElement uuid="5f9a0ea4-15d3-4bad-953a-0dc6f3f6ef51" x="1" y="22" width="48" height="28"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Data Serviço]]></text>
</staticText>
<staticText>
<reportElement uuid="fa0a31b5-6a94-4b0c-b730-4b6ef8f2304c" x="49" y="22" width="51" height="28"/>
<textElement textAlignment="Left">
<font size="7" isBold="true" isItalic="false"/>
</textElement>
<text><![CDATA[Serviço]]></text>
</staticText>
<staticText>
<reportElement uuid="a797bc17-1810-47b7-a3e1-510cc6403454" x="100" y="22" width="66" height="28"/>
<textElement textAlignment="Left">
<font size="7" isBold="false" isItalic="false"/>
</textElement>
<text><![CDATA[Empresa]]></text>
</staticText>
<staticText>
<reportElement uuid="765ebd99-b6de-4c8e-910d-b3e5bf9db573" x="166" y="22" width="30" height="28"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Origem]]></text>
</staticText>
<staticText>
<reportElement uuid="2f3b9ac0-165c-4718-96c8-a37f005b5b82" x="196" y="22" width="33" height="28"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Destino]]></text>
</staticText>
<staticText>
<reportElement uuid="9eb87b55-da02-478a-b21d-c7b727dbaafe" x="229" y="22" width="68" height="28"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Classe]]></text>
</staticText>
<staticText>
<reportElement uuid="fe1e6ace-6d95-4089-8f28-d926554bf65d" x="297" y="22" width="40" height="28"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Tarifa]]></text>
</staticText>
<staticText>
<reportElement uuid="52d26417-4766-44b3-aaa7-b468c124feda" x="374" y="22" width="34" height="28"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[TUT]]></text>
</staticText>
<staticText>
<reportElement uuid="3f6afcbf-9dfe-4f1b-b937-45dbc9ace8a2" x="408" y="22" width="41" height="28"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false" isStrikeThrough="false"/>
</textElement>
<text><![CDATA[Pedágio]]></text>
</staticText>
<staticText>
<reportElement uuid="182474d6-668a-4847-9db6-ba65c41119aa" x="449" y="22" width="40" height="28"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Total]]></text>
</staticText>
<staticText>
<reportElement uuid="a7b14fa8-3b89-4f4d-b265-63eb3d930b04" x="489" y="22" width="40" height="28"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Tipo]]></text>
</staticText>
<staticText>
<reportElement uuid="10f27b7d-5cc9-423c-a196-330c78cdb69e" x="529" y="22" width="73" height="28"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Agência]]></text>
</staticText>
<staticText>
<reportElement uuid="f2097833-6bd3-4523-b457-44ed6cc4abd6" x="602" y="22" width="43" height="28"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Data Venda]]></text>
</staticText>
<staticText>
<reportElement uuid="44b2bf55-871a-4eaa-97d4-74bee2a89769" x="678" y="22" width="78" height="28"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Passageiro]]></text>
</staticText>
<staticText>
<reportElement uuid="2abbc372-a813-4da6-8ce1-e5901a15b430" x="756" y="22" width="45" height="28"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Nr bilhete ]]></text>
</staticText>
<staticText>
<reportElement uuid="bceca474-7703-4bf0-a0da-d8e15b70aeca" x="645" y="22" width="33" height="28"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Hora]]></text>
</staticText>
<staticText>
<reportElement uuid="39e49959-967f-4fd2-8b92-a0331dcce1e3" x="337" y="22" width="37" height="28"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Original]]></text>
</staticText>
<staticText>
<reportElement uuid="53626777-7d50-460c-8d56-2ef68d272159" x="1" y="0" width="48" height="17"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Data]]></text>
</staticText>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="90f2edfe-d5e4-4942-82be-824392ce1c49" x="49" y="0" width="49" height="17"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="0d24d185-b9d0-4e43-8bf0-f3066cbf3f32" x="112" y="0" width="48" height="17"/>
<textElement textAlignment="Left">
<font size="7" isItalic="false"/>
</textElement>
<text><![CDATA[Assentos]]></text>
</staticText>
<textField pattern="">
<reportElement uuid="e3335d35-af6b-4c2f-b915-b4ec941c9096" x="160" y="0" width="49" height="17"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{cantasientos}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="117">
<textField>
<reportElement uuid="159f0892-ce02-41a2-9c6b-e7b25ce4012a" x="676" y="8" width="96" height="20"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{bilhete_COUNT}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="e3d729bc-7c1b-4196-ba3c-c2422ba28ead" x="602" y="8" width="70" height="20"/>
<textElement textAlignment="Right">
<font size="8" isItalic="false"/>
</textElement>
<text><![CDATA[Total de Bilhetes]]></text>
</staticText>
<line>
<reportElement uuid="e46ceea6-b4ea-4951-8a2e-ee9969f84e91" x="0" y="1" width="801" height="1"/>
</line>
<textField pattern="¤ #,##0.00">
<reportElement uuid="4bbf9db6-cc01-4cc0-98fa-7522eb890d4c" x="676" y="88" width="96" height="20"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalizador}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00">
<reportElement uuid="381ba8fc-878f-4419-8c93-758a607e9ba3" x="676" y="28" width="96" height="20"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{TOTAL_TARIFA}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00">
<reportElement uuid="a36d2d34-3721-4796-93ec-3cf838aebf85" x="676" y="48" width="96" height="20"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{TOTAL_TUT}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00">
<reportElement uuid="219227d5-1615-4876-a810-c6393957ccd0" x="676" y="68" width="96" height="20"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="d4600e8d-457a-47cf-aa81-84b1231728fe" x="608" y="28" width="64" height="20"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<text><![CDATA[Total Tarifa]]></text>
</staticText>
<staticText>
<reportElement uuid="5b0f4977-d53a-4fcb-a16f-88c1edd8493b" x="608" y="48" width="64" height="20"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<text><![CDATA[Total Tut]]></text>
</staticText>
<staticText>
<reportElement uuid="f6849b27-f317-458b-b4f3-8d96a150962e" x="608" y="68" width="64" height="20"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<text><![CDATA[Total Pedágio]]></text>
</staticText>
<staticText>
<reportElement uuid="9f5fda19-bdf2-4600-ba05-aa2ded9c6a89" x="608" y="89" width="64" height="20"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<text><![CDATA[Total Receita]]></text>
</staticText>
<line>
<reportElement uuid="c8484e52-e7f5-41e7-9c15-408458302a2e" x="0" y="116" width="801" height="1"/>
</line>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="82" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="136a5066-d141-4362-af36-0780f0d16542" mode="Transparent" x="11" y="0" width="457" height="35" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="15" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="3dca1764-758d-4e1c-80c0-85cc02e47813" mode="Transparent" x="11" y="35" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="8948c0fc-e878-45e2-8505-7934add98ab9" mode="Transparent" x="150" y="35" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="7f1b9715-baaf-4e20-9a9d-a7ec4c696587" mode="Transparent" x="83" y="35" width="66" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="64632058-9466-479c-ae28-0a11c9ed2c7f" mode="Transparent" x="160" y="35" width="66" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192" x="554" y="0" width="122" height="25"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9" mode="Transparent" x="691" y="0" width="111" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="bbf33a72-515f-42fc-8c79-e859aebca31d" x="0" y="59" width="802" height="1"/>
</line>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4" mode="Transparent" x="571" y="27" width="105" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="314e312c-8f24-42de-8354-3c1f7241a985" mode="Transparent" x="691" y="27" width="35" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="4e030613-9cee-443e-9eaa-b19fa3090976" mode="Transparent" x="468" y="42" width="208" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="6ca45088-a58d-43b3-b196-8fc26e128fbf" x="0" y="81" width="802" height="1"/>
</line>
<textField>
<reportElement uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda" x="0" y="59" width="802" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<detail>
<band height="23" splitType="Stretch">
<textField>
<reportElement uuid="b15ada19-a1c0-4feb-9734-3a6c624bbfe6" x="49" y="0" width="51" height="20"/>
<textElement>
<font size="7" isBold="true" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c35afacb-b160-4ace-b7be-c2e2f54ac1c0" x="100" y="0" width="66" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="fd8ae360-3ae2-4adc-8c3a-fcfb19551d22" x="166" y="0" width="30" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="29ae3fa8-9db1-46c8-bcf7-cb9aa7bc6eb3" x="196" y="0" width="33" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="7265d085-4188-44a0-8e04-e5efdb0d5ccf" x="229" y="0" width="68" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{classe}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00">
<reportElement uuid="6430daa4-d318-4f4a-87ff-2ea4de9d492e" x="297" y="0" width="41" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00">
<reportElement uuid="49faea3b-2ce4-469a-b07c-3b4869aaa9e5" x="374" y="0" width="34" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{tut}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00">
<reportElement uuid="16461919-04ea-48df-af5c-7f0d7dcb7fab" x="408" y="0" width="41" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00">
<reportElement uuid="97be07ba-bdb1-4bf2-91af-554b580ee3fa" x="449" y="0" width="40" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="8cf0c102-4e42-4f6d-8922-8edc808fdc0f" x="489" y="0" width="40" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="0ecedfc0-febb-40e0-b5ca-168b5a296646" x="529" y="0" width="73" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="8229beec-daa6-4357-a4c9-f475d7a873aa" x="602" y="0" width="43" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataHoraCompra})]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="8e67c346-5c72-4a92-beee-9dd9ad647bb1" x="678" y="0" width="78" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{passageiro}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9a639996-146c-42c9-a8fd-f947a59310f4" x="756" y="0" width="45" height="20"/>
<textElement textAlignment="Right">
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{nrBilhete}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa" x="0" y="0" width="49" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="8d419689-a353-4332-8e39-222dde198168" x="645" y="0" width="33" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("HH:mm:ss").format($F{dataHoraCompra})]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00">
<reportElement uuid="48c368c2-dd11-4724-a5e9-b3f139464d4a" x="338" y="0" width="36" height="20"/>
<textElement>
<font size="7" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{preciobase}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="a11636cc-5ee1-44cc-8cd1-cbe2ebc47abb" x="1" y="0" width="801" height="1"/>
</line>
</band>
</detail>
<summary>
<band height="9" splitType="Stretch"/>
</summary>
<noData>
<band height="50">
<textField>
<reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="46" y="24" width="530" height="26"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,342 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.util.Calendar;
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.Comboitem;
import org.zkoss.zul.ComboitemRenderer;
import org.zkoss.zul.Datebox;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioReceitaEmbarcadaServico;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
@Controller("relatorioReceitaEmbarcadaServicoController")
@Scope("prototype")
public class RelatorioReceitaEmbarcadaServicoController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
private Datebox datInicial;
private Datebox datFinal;
private MyComboboxParada cmbParadaOrigem;
private MyComboboxParadaCve cmbParadaOrigemCve;
private MyComboboxParada cmbParadaDestino;
private MyComboboxParadaCve cmbParadaDestinoCve;
private List<Empresa> lsEmpresa;
private List<ClaseServicio> lsClase;
private MyTextbox txtCorridaId;
private MyComboboxEstandar cmbEmpresa;
private MyComboboxEstandar cmbClase;
@Autowired
private EmpresaService empresaService;
@Autowired
private ClaseServicioService claseService;
@Autowired
private DataSource dataSourceRead;
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEmpresa = empresaService.obtenerTodos();
lsClase = claseService.obtenerTodos();
super.doAfterCompose(comp);
cmbParadaOrigemCve.setItemRenderer(new ComboitemRenderer() {
@Override
public void render(Comboitem cmbtm, Object o) throws Exception {
Parada parada = (Parada) o;
cmbtm.setLabel(parada.getCveparada());
cmbtm.setValue(parada);
}
});
cmbParadaDestinoCve.setItemRenderer(new ComboitemRenderer() {
@Override
public void render(Comboitem cmbtm, Object o) throws Exception {
Parada parada = (Parada) o;
cmbtm.setLabel(parada.getCveparada());
cmbtm.setValue(parada);
}
});
}
public void onSelect$cmbParadaOrigemCve(Event ev) {
if (cmbParadaOrigemCve.getSelectedItem() != null) {
cmbParadaOrigem.setComboItemByParada((Parada) cmbParadaOrigemCve.getSelectedItem().getValue());
}
}
public void onSelect$cmbParadaOrigem(Event ev) {
if (cmbParadaOrigem.getSelectedItem() != null)
cmbParadaOrigemCve.setComboItemByParada((Parada) cmbParadaOrigem.getSelectedItem().getValue());
}
public void onSelect$cmbParadaDestinoCve(Event ev) {
if (cmbParadaDestinoCve.getSelectedItem() != null) {
cmbParadaDestino.setComboItemByParada((Parada) cmbParadaDestinoCve.getSelectedItem().getValue());
}
}
public void onSelect$cmbParadaDestino(Event ev) {
if (cmbParadaDestino.getSelectedItem() != null) {
cmbParadaDestinoCve.setComboItemByParada((Parada) cmbParadaDestino.getSelectedItem().getValue());
}
}
/**
* @throws Exception
*
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
private void executarRelatorio() throws Exception {
if (datInicial != null && datFinal != null && datFinal.getValue().compareTo(datInicial.getValue()) < 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("relatorioReceitaServicoController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
ex.printStackTrace();
}
} else
{
Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
if (null != txtCorridaId.getValue() && !("".equals(txtCorridaId.getValue())))
{
filtro.append("Serviço: ");
filtro.append(txtCorridaId.getValue() + "; ");
parametros.put("CORRIDA_ID", txtCorridaId.getValue());
} else {
filtro.append("Serviço: TODOS; ");
parametros.put("CORRIDA_ID", null);
}
filtro.append("Início período: ");
Calendar cal = Calendar.getInstance();
cal.setTime(datInicial.getValue());
filtro.append(cal.get(Calendar.DATE) + "/");
filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
filtro.append(cal.get(Calendar.YEAR) + "; ");
filtro.append("Fim período: ");
cal.setTime(datFinal.getValue());
filtro.append(cal.get(Calendar.DATE) + "/");
filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
filtro.append(cal.get(Calendar.YEAR) + "; ");
parametros.put("DATA_INICIAL", (java.util.Date) datInicial.getValue());
parametros.put("DATA_FINAL", (java.util.Date) datFinal.getValue());
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
if (cbiOrigem != null) {
Parada origem = (Parada) cbiOrigem.getValue();
if (origem.getParadaId() != -1) {
parametros.put("ORIGEN_ID", origem.getParadaId());
filtro.append("Origem: " + origem.getCveparada() + "; ");
}
else {
parametros.put("ORIGEN_ID", null);
filtro.append("Origem: Todas; ");
}
} else {
parametros.put("ORIGEN_ID", null);
filtro.append("Origem: Todas; ");
}
Comboitem cbiDestino = cmbParadaDestino.getSelectedItem();
if (cbiDestino != null) {
Parada destino = (Parada) cbiDestino.getValue();
if (destino.getParadaId() != -1)
{
parametros.put("DESTINO_ID", destino.getParadaId());
filtro.append("Destino: " + destino.getCveparada() + "; ");
} else {
parametros.put("DESTINO_ID", null);
filtro.append("Destino: Todos; ");
}
} else {
parametros.put("DESTINO_ID", null);
filtro.append("Destino: Todos; ");
}
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
filtro.append("Empresa: " + empresa.getNombempresa() + "; ");
} else {
parametros.put("EMPRESA_ID", "");
}
Comboitem itemClasse = cmbClase.getSelectedItem();
if (itemClasse != null) {
ClaseServicio clase = (ClaseServicio) itemClasse.getValue();
if (clase.getClaseservicioId() == -1) {
parametros.put("CLASESERVICIO_ID", "");
filtro.append("Classe: " + clase.getDescclase() + "; ");
}
else {
parametros.put("CLASESERVICIO_ID", clase.getClaseservicioId());
}
filtro.append("Classe: " + clase.getDescclase() + "; ");
} else {
parametros.put("CLASESERVICIO_ID", "");
filtro.append("Classe: TODAS; ");
}
parametros.put("FILTROS", filtro.toString());
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioReceitaEmbarcadaServicoController.window.title"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
relatorio = new RelatorioReceitaEmbarcadaServico(parametros, dataSourceRead.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioReceitaEmbarcadaServicoController.window.title"), args, MODAL);
}
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
public Datebox getDatInicial() {
return datInicial;
}
public void setDatInicial(Datebox datInicial) {
this.datInicial = datInicial;
}
public Datebox getDatFinal() {
return datFinal;
}
public void setDatFinal(Datebox datFinal) {
this.datFinal = datFinal;
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
public EmpresaService getEmpresaService() {
return empresaService;
}
public void setEmpresaService(EmpresaService empresaService) {
this.empresaService = empresaService;
}
public List<ClaseServicio> getLsClase() {
return lsClase;
}
public void setLsClase(List<ClaseServicio> lsClase) {
this.lsClase = lsClase;
}
public MyComboboxEstandar getCmbEmpresa() {
return cmbEmpresa;
}
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
this.cmbEmpresa = cmbEmpresa;
}
public ClaseServicioService getClaseService() {
return claseService;
}
public void setClaseService(ClaseServicioService claseService) {
this.claseService = claseService;
}
public MyComboboxEstandar getCmbClase() {
return cmbClase;
}
public void setCmbClase(MyComboboxEstandar cmbClase) {
this.cmbClase = cmbClase;
}
public MyComboboxParada getCmbParadaOrigem() {
return cmbParadaOrigem;
}
public void setCmbParadaOrigem(MyComboboxParada cmbParadaOrigem) {
this.cmbParadaOrigem = cmbParadaOrigem;
}
public MyComboboxParadaCve getCmbParadaOrigemCve() {
return cmbParadaOrigemCve;
}
public void setCmbParadaOrigemCve(MyComboboxParadaCve cmbParadaOrigemCve) {
this.cmbParadaOrigemCve = cmbParadaOrigemCve;
}
public MyComboboxParada getCmbParadaDestino() {
return cmbParadaDestino;
}
public void setCmbParadaDestino(MyComboboxParada cmbParadaDestino) {
this.cmbParadaDestino = cmbParadaDestino;
}
public MyComboboxParadaCve getCmbParadaDestinoCve() {
return cmbParadaDestinoCve;
}
public void setCmbParadaDestinoCve(MyComboboxParadaCve cmbParadaDestinoCve) {
this.cmbParadaDestinoCve = cmbParadaDestinoCve;
}
public MyTextbox getTxtCorridaId() {
return txtCorridaId;
}
public void setTxtCorridaId(MyTextbox txtCorridaId) {
this.txtCorridaId = txtCorridaId;
}
}

View File

@ -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 ItemMenuRelatorioReceitaEmbarcadaServico extends DefaultItemMenuSistema {
public ItemMenuRelatorioReceitaEmbarcadaServico() {
super("indexController.mniRelatorioReceitaEmbarcadaServico.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIORECITAEMBARCADASERVICO";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioReceitaEmbarcadaServico.zul",
Labels.getLabel("relatorioReceitaEmbarcadaServicoController.window.title"), getArgs(), desktop);
}
}

View File

@ -251,6 +251,7 @@ indexController.mniFechamentoParamptovta.label = Cierre Cuenta Contábil Punto d
indexController.mniRelatorioCorridas.label = Reporte de Corridas
indexController.mniRelatorioDemandas.label = Reporte de Demandas
indexController.mniRelatorioReceitaServico.label = Reporte de Ingreso por Servicio
indexController.mniRelatorioReceitaEmbarcadaServico.label = Reporte de Ingreso Embarcado por Servicio
indexController.mniRelatorioCancelamentoVendaCartao.label = Reporte Cancelación de Venta con Tarjeta
indexController.mniRelatorioCancelamentoTransacao.label = Relatório de Cancelamento J3
indexController.mniRelatorioTabelaPreco.label = Relátorio de Tabela de Preços
@ -6488,6 +6489,16 @@ busquedaOCDParamController.FormaPagamentoOCD.label = Formas de pago para la gene
busquedaOCDParamController.SomenteCartao.label = Solo tarjeta
busquedaOCDParamController.TodasFormasPagamento.label = Todas las formas de pago
# Relatorio Receita Embarcada Servico Controller
relatorioReceitaEmbarcadaServicoController.window.title = Relatório de Receita Embarcada por Serviço
relatorioReceitaEmbarcadaServicoController.lbDePeriodoViagem.value = Período de Viagem
relatorioReceitaEmbarcadaServicoController.lbAtePeriodoViagem.value = até
relatorioReceitaEmbarcadaServicoController.lbCidadeOrigem.value = Localidade Origem
relatorioReceitaEmbarcadaServicoController.lbCidadeDestino.value = Localidade Destino
relatorioReceitaEmbarcadaServicoController.lbEmpresa.value = Empresa
relatorioReceitaEmbarcadaServicoController.lbClase.value = Classe
relatorioReceitaEmbarcadaServicoController.lbServico.value = N. Serviço
# Relatorio Conferencia Formulario Fisico
relatorioConferenciaFormularioFisicoController.lbDataIni.value = Data Inicial
relatorioConferenciaFormularioFisicoController.lbDataFin.value = Data Final
@ -6495,4 +6506,4 @@ relatorioConferenciaFormularioFisicoController.lbEmpresa.value = Empresa
relatorioConferenciaFormularioFisicoController.lbTipoVenda.value = Tipo Venda
relatorioConferenciaFormularioFisicoController.lbPuntoVenta.value = Agência
relatorioConferenciaFormularioFisicoController.msg.erro.puntoventa = O Campo Agência é obrigatório!
relatorioConferenciaFormularioFisicoController.msg.erro.empresa = O Campo Empresa é obrigatório!
relatorioConferenciaFormularioFisicoController.msg.erro.empresa = O Campo Empresa é obrigatório!>>>>>>> .r57294

View File

@ -256,6 +256,7 @@ indexController.mniRelatorioCorridas.label = Relatório de Serviços
indexController.mniRelatorioCorridas.label = Relatório de Serviços
indexController.mniRelatorioDemandas.label = Relatório de Demandas
indexController.mniRelatorioReceitaServico.label = Relatório de Receita por Serviço
indexController.mniRelatorioReceitaEmbarcadaServico.label = Relatório de Receita Embarcada por Serviço
indexController.mniRelatorioCancelamentoVendaCartao.label = Relatório Cancelamento de Venda de Cartão
indexController.mniRelatorioCancelamentoTransacao.label = Relatório de Cancelamento J3
indexController.mniRelatorioTabelaPreco.label = Relátorio de Tabela de Preços
@ -6637,3 +6638,13 @@ busquedaImportacionFiscalEcfPendenciaReducaoZController.window.title=Impressão
busquedaImportacionFiscalEcfReducaoZController.window.title=Impressão Fiscal :: ECF Integrado c/ Redução Z
busquedaImportacionFiscalEcfPendenciaReducaoZController.window.title=Impressão Fiscal :: Pendência Redução Z
busquedaImportacionFiscalEcfReducaoZController.window.title=Impressão Fiscal :: ECF Integrado c/ Redução Z
# Relatorio Receita Embarcada Servico Controller
relatorioReceitaEmbarcadaServicoController.window.title = Relatório de Receita Embarcada por Serviço
relatorioReceitaEmbarcadaServicoController.lbDePeriodoViagem.value = Período de Viagem
relatorioReceitaEmbarcadaServicoController.lbAtePeriodoViagem.value = até
relatorioReceitaEmbarcadaServicoController.lbCidadeOrigem.value = Localidade Origem
relatorioReceitaEmbarcadaServicoController.lbCidadeDestino.value = Localidade Destino
relatorioReceitaEmbarcadaServicoController.lbEmpresa.value = Empresa
relatorioReceitaEmbarcadaServicoController.lbClase.value = Classe
relatorioReceitaEmbarcadaServicoController.lbServico.value = N. Serviço

View File

@ -0,0 +1,93 @@
<?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="winFiltroRelatorioReceitaEmbarcadaServico"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioReceitaEmbarcadaServico"
apply="${relatorioReceitaEmbarcadaServicoController}" contentStyle="overflow:auto"
width="800px" border="normal">
<grid fixedLayout="true">
<columns>
<column width="15%" />
<column width="35%" />
<column width="15%" />
<column width="35%" />
</columns>
<rows>
<row>
<label
value="${c:l('relatorioReceitaEmbarcadaServicoController.lbDePeriodoViagem.value')}" />
<datebox id="datInicial" format="dd/MM/yyyy"
mold="rounded" width="95%" lenient="false" constraint="no empty, no future"
maxlength="10" />
<label
value="${c:l('relatorioReceitaEmbarcadaServicoController.lbAtePeriodoViagem.value')}" />
<datebox id="datFinal" format="dd/MM/yyyy"
mold="rounded" width="95%" lenient="false" constraint="no empty, no future"
maxlength="10" />
</row>
<row>
<label
value="${c:l('relatorioReceitaEmbarcadaServicoController.lbCidadeOrigem.value')}" />
<cell>
<combobox id="cmbParadaOrigemCve"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
mold="rounded" buttonVisible="true" width="30%" />
<combobox id="cmbParadaOrigem"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
mold="rounded" buttonVisible="true" width="65%" />
</cell>
<label
value="${c:l('relatorioReceitaEmbarcadaServicoController.lbCidadeDestino.value')}" />
<cell>
<combobox id="cmbParadaDestinoCve"
autodrop="false"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
mold="rounded" buttonVisible="true" width="30%" />
<combobox id="cmbParadaDestino" autodrop="false"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
mold="rounded" buttonVisible="true" width="65%" />
</cell>
</row>
<row>
<label
value="${c:l('relatorioReceitaEmbarcadaServicoController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa" width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioReceitaEmbarcadaServico$composer.lsEmpresa}"
constraint="no empty" />
</row>
<row>
<label
value="${c:l('relatorioReceitaEmbarcadaServicoController.lbClase.value')}" />
<combobox id="cmbClase" width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioReceitaEmbarcadaServico$composer.lsClase}"
constraint="no empty" />
</row>
<row>
<label
value="${c:l('relatorioReceitaEmbarcadaServicoController.lbServico.value')}" />
<textbox id="txtCorridaId" width="95%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
maxlength="7" />
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>