fixes bug#20985

qua:juliane
dev:fabio

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@104845 d1611594-4594-4d17-8e1d-87c2c4800839
master
walace 2020-12-23 19:50:02 +00:00
parent 6e545219a4
commit 610b734e6f
12 changed files with 1208 additions and 0 deletions

View File

@ -0,0 +1,158 @@
/**
*
*/
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioResumoVendaOrgaoConcedenteBean;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
/**
* @author Wallace
*
*/
public class RelatorioResumoVendaOrgaoConcedente extends Relatorio {
public RelatorioResumoVendaOrgaoConcedente(Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
}
private List<RelatorioResumoVendaOrgaoConcedenteBean> lsDadosRelatorio;
@Override
protected void processaParametros() throws Exception {
this.setCustomDataSource(new ArrayDataSource(this) {
@Override
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
StringBuilder sb = new StringBuilder();
sb.append("SELECT ");
sb.append(" CAJA.PONTOVENTA,");
sb.append(" COALESCE(SUM(CASE WHEN CAJA.ORGAOCONCEDENTEID IN(3) THEN CAJA.IMPORTE END), 0) AS ANTT,");
sb.append(" COALESCE(SUM(CASE WHEN CAJA.ORGAOCONCEDENTEID IN(27) THEN CAJA.IMPORTE END), 0) AS AGERBA, ");
sb.append(" COALESCE(SUM(CASE WHEN CAJA.FORMAPAGO IN(2) THEN CAJA.IMPORTE END), 0) AS CARTAO,");
sb.append(" COALESCE(SUM(CASE WHEN CAJA.FORMAPAGO IN(1, 3) THEN CAJA.IMPORTE END), 0) AS AVISTA,");
sb.append(" COALESCE(SUM(CAJA.IMPORTE - (CAJA.IMPORTE * COALESCE(CAJA.porcredbaseicms / 100,0))) , 0) AS VALORBASECALCULO, ");
sb.append(" SUM(CAJA.IMPORTE) AS ISENTO, ");
sb.append(" CAJA.NOMECLASSE AS NOMECLASSE, ");
sb.append(" CAJA.NOMEESTADO AS NOMEESTADO ");
sb.append("FROM ");
sb.append(" (SELECT PV.NOMBPUNTOVENTA AS PONTOVENTA,");
sb.append(" OC.DESCORGAO AS ORGAO,");
sb.append(" OC.ORGAOCONCEDENTE_ID AS ORGAOCONCEDENTEID,");
sb.append(" CASE WHEN C.MOTIVOCANCELACION_ID IS NULL THEN CFP.IMPORTE ELSE 0 END AS IMPORTE, ");
sb.append(" FP.FORMAPAGO_ID AS FORMAPAGO,");
sb.append(" EI.porcredbaseicms,");
sb.append(" EST.NOMBESTADO AS NOMEESTADO, ");
sb.append(" CS.DESCCLASE AS NOMECLASSE ");
sb.append(" ");
sb.append(" FROM CAJA C");
sb.append(" INNER JOIN CAJA_FORMAPAGO CFP ON (C.CAJA_ID = CFP.CAJA_ID AND CFP.ACTIVO = 1)");
sb.append(" INNER JOIN FORMA_PAGO FP ON (FP.FORMAPAGO_ID = CFP.FORMAPAGO_ID)");
sb.append(" INNER JOIN PUNTO_VENTA PV ON C.PUNTOVENTA_ID = PV.PUNTOVENTA_ID");
sb.append(" INNER JOIN MARCA M ON M.MARCA_ID = C.MARCA_ID");
sb.append(" INNER JOIN RUTA R ON (C.RUTA_ID = R.RUTA_ID)");
sb.append(" INNER JOIN ORGAO_CONCEDENTE OC ON (R.ORGAOCONCEDENTE_ID = OC.ORGAOCONCEDENTE_ID)");
sb.append(" INNER JOIN empresa_imposto ei on ei.empresa_id = c.empresacorrida_id");
sb.append(" ");
sb.append(" INNER JOIN PARADA ORI ON C.ORIGEN_ID = ORI.PARADA_ID");
sb.append(" INNER JOIN CIUDAD CO ON CO.CIUDAD_ID = ORI.CIUDAD_ID");
sb.append(" INNER JOIN ESTADO EST ON EST.ESTADO_ID = CO.ESTADO_ID ");
sb.append(" INNER JOIN CLASE_SERVICIO CS ON (C.CLASESERVICIO_ID = CS.CLASESERVICIO_ID ) ");
sb.append(" WHERE C.ACTIVO = 1");
sb.append(" and C.FECHORVENTA >= :DATA_INICIAL ");
sb.append(" and C.FECHORVENTA <= :DATA_FINAL ");
sb.append(" AND C.TIPOVENTA_ID <> 6");
sb.append(" AND C.INDREIMPRESION = 0");
if (parametros.get("NUMPUNTOVENTA") != null && !parametros.get("NUMPUNTOVENTA").equals("-1")) {
sb.append(" and C.PUNTOVENTA_ID IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
}
if (parametros.get("ESTADOS_ID") != null && !parametros.get("ESTADOS_ID").equals("-1")) {
sb.append(" and EST.estado_id in (" + parametros.get("ESTADOS_ID").toString() + ")");
}
if (parametros.get("EMPRESA_ID") != null && !parametros.get("EMPRESA_ID").equals("-1")) {
sb.append(" and M.EMPRESA_ID IN (" + parametros.get("EMPRESA_ID").toString() + ")");
}
if (parametros.get("CLASESERVICIO_ID") != null && !parametros.get("CLASESERVICIO_ID").toString().equals("-1")) {
sb.append(" AND C.CLASESERVICIO_ID = " + parametros.get("CLASESERVICIO_ID").toString() + " ");
}
sb.append(" ) CAJA ");
sb.append(" GROUP BY CAJA.PONTOVENTA, CAJA.NOMEESTADO, CAJA.NOMECLASSE ");
sb.append(" ORDER BY CAJA.NOMEESTADO, CAJA.PONTOVENTA, CAJA.NOMECLASSE ");
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sb.toString());
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()));
ResultSet rset = stmt.executeQuery();
rset.setFetchSize(1000);
lsDadosRelatorio = new ArrayList<RelatorioResumoVendaOrgaoConcedenteBean>();
DecimalFormat df = new DecimalFormat("0.00");
df.setMaximumFractionDigits(2);
df.setRoundingMode(RoundingMode.DOWN);
while (rset.next()) {
RelatorioResumoVendaOrgaoConcedenteBean bean = new RelatorioResumoVendaOrgaoConcedenteBean();
bean.setAgencia(StringUtils.defaultString(rset.getString("PONTOVENTA")));
bean.setANTT(getValor("ANTT", rset));
bean.setAGERBA(getValor("AGERBA", rset));
bean.setCartao(getValor("CARTAO", rset));
bean.setAVista(getValor("AVISTA", rset));
bean.setIsento(getValor("ISENTO", rset));
bean.setValorBaseCalculo(getValor("VALORBASECALCULO", rset));
bean.setNomeEstado(StringUtils.defaultString(rset.getString("NOMEESTADO")));
bean.setNomeClasse(StringUtils.defaultString(rset.getString("NOMECLASSE")));
lsDadosRelatorio.add(bean);
}
if (lsDadosRelatorio.size() > 0) {
setLsDadosRelatorio(lsDadosRelatorio);
}
}
});
}
private BigDecimal getValor(String campo, ResultSet resultSet) throws SQLException {
if (resultSet.getObject(campo) == null) {
return BigDecimal.ZERO;
}
return new BigDecimal(resultSet.getString(campo));
}
public void setLsDadosRelatorio(List<RelatorioResumoVendaOrgaoConcedenteBean> lsDadosRelatorio) {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
this.lsDadosRelatorio = lsDadosRelatorio;
}
}

View File

@ -0,0 +1,26 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
label.titulo=Relatório Resumo Venda por Órgão Concedente
label.periodoVenda=Data Venda:
label.periodoA=à
label.periodo=Período
label.dataHora=Data/Hora:
label.impressorPor=Impressor por:
label.pagina=Página
label.de=de
label.filtros=Filtros:
header.filtro.total=Total Geral:
label.agencia=Agência
label.ANTT=ANTT
label.AGERBA=AGERBA
label.cartao=Cartão
label.avista=À Vista
label.isento=Isento
label.valorBaseCalculo=Valor Base Cálculo
label.total=Total
label.nomeEstado=Estado:
label.nomeClasse=Classe
label.totalGeral=Total Geral

View File

@ -0,0 +1,26 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
label.titulo=Relatório Resumo Venda por Órgão Concedente
label.periodoVenda=Data Venda:
label.periodoA=à
label.periodo=Período
label.dataHora=Data/Hora:
label.impressorPor=Impressor por:
label.pagina=Página
label.de=de
label.filtros=Filtros:
header.filtro.total=Total Geral:
label.agencia=Agência
label.ANTT=ANTT
label.AGERBA=AGERBA
label.cartao=Cartão
label.avista=À Vista
label.isento=Isento
label.valorBaseCalculo=Valor Base Cálculo
label.total=Total
label.nomeEstado=Estado:
label.nomeClasse=Classe
label.totalGeral=Total Geral

View File

@ -0,0 +1,386 @@
<?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="RelatorioDevolucaoBilhetesFinanceiro" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="3.8974342000000037"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="TIPO_DATA" class="java.lang.Integer"/>
<parameter name="dataDevolucaoInicial" class="java.util.Date"/>
<parameter name="dataDevolucaoFinal" class="java.util.Date"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="agencia" class="java.lang.String"/>
<field name="ANTT" class="java.math.BigDecimal"/>
<field name="AGERBA" class="java.math.BigDecimal"/>
<field name="cartao" class="java.math.BigDecimal"/>
<field name="valorBaseCalculo" class="java.math.BigDecimal"/>
<field name="nomeEstado" class="java.lang.String"/>
<field name="isento" class="java.math.BigDecimal"/>
<field name="AVista" class="java.math.BigDecimal"/>
<field name="nomeClasse" class="java.lang.String"/>
<variable name="subTotalANTT" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{ANTT}]]></variableExpression>
</variable>
<variable name="subTotalAGERBA" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{AGERBA}]]></variableExpression>
</variable>
<variable name="subTotalCARTAO" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{cartao}]]></variableExpression>
</variable>
<variable name="subTotalValorBaseCalculo" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valorBaseCalculo}]]></variableExpression>
</variable>
<variable name="subTotalAVista" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{AVista}]]></variableExpression>
</variable>
<variable name="sutTotalIsento" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{isento}]]></variableExpression>
</variable>
<variable name="TOTAL_GERAL" class="java.math.BigDecimal">
<variableExpression><![CDATA[$V{subTotalANTT}.add( $V{subTotalAVista} ).add($V{subTotalAGERBA}).add($V{subTotalCARTAO}).add($V{subTotalValorBaseCalculo}).add($V{sutTotalIsento})]]></variableExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="82" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="0" y="1" width="603" height="22" forecolor="#000000" backcolor="#FFFFFF" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="24" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.titulo}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="63" width="802" height="1" uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9"/>
</line>
<textField>
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="0" y="63" width="46" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="11b7c338-166a-4149-b45c-b47698bd88ea"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.filtros}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="46" y="63" width="756" height="14" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/>
<textElement verticalAlignment="Top">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField>
<reportElement mode="Transparent" x="0" y="23" width="117" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="7f1538d0-be50-4597-bfce-dfc18da5c67a"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="64" y="38" width="53" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="99f1035a-c3a6-42f8-beac-8a0bfe8aff08"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="189" y="38" width="153" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="e13f41e4-5a62-4bf8-81cf-7a64e2cd8a5e"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="0" y="38" width="64" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="37103df3-02a9-4e82-aa2f-92fb1b7fcdd8"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodoVenda}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="117" y="38" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="96e671b8-e26f-4603-b629-456db24a1203"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="665" y="1" width="137" height="22" forecolor="#000000" backcolor="#FFFFFF" uuid="b8a3345b-03b7-4bfd-8cab-31c07f3e0efa"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="496" y="24" width="289" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="4b6e9016-c490-4abc-a659-fc73eb24a93a"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{label.de}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="496" y="39" width="306" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="12e51d0a-4fd5-4dff-95f5-762d8e3bf1f0"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="496" y="1" width="169" height="22" uuid="4ac1cdfd-5dfa-4ce7-b9dd-2f193149c8c2"/>
<textElement textAlignment="Right">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.dataHora}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="785" y="24" width="17" height="15" uuid="eed23f0c-3b83-4d3b-80b1-d188ccb7501b"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="18">
<line>
<reportElement positionType="Float" x="0" y="0" width="802" height="1" uuid="04a75f17-3686-484b-be43-7b7e22e9def7"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement positionType="Float" x="0" y="15" width="802" height="1" uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="268" y="1" width="74" height="14" isPrintWhenDetailOverflows="true" uuid="1835789f-f3ff-4d8d-ba10-12c6d693b270"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.cartao}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="417" y="1" width="79" height="14" isPrintWhenDetailOverflows="true" uuid="d6813bb4-94c3-4f9b-af61-54e3676c31bb"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.valorBaseCalculo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="496" y="1" width="107" height="15" isPrintWhenDetailOverflows="true" uuid="60cc6a71-4f40-49de-9f78-08b65931d16d"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.isento}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="342" y="1" width="75" height="14" isPrintWhenDetailOverflows="true" uuid="a46545d1-264f-4dd1-8d6e-fa62df9cf49b"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.avista}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="1" width="117" height="14" isPrintWhenDetailOverflows="true" uuid="3aab51ae-d4cf-4b3d-9849-df02db28f2bf"/>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.agencia}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="189" y="1" width="79" height="14" isPrintWhenDetailOverflows="true" uuid="2b0943fd-f6c2-414b-b6d1-cb8ad1734e06"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.AGERBA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="117" y="1" width="72" height="14" isPrintWhenDetailOverflows="true" uuid="f8fe80df-0d02-4f10-b11e-970245f8fb54"/>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.ANTT}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="708" y="1" width="94" height="15" isPrintWhenDetailOverflows="true" uuid="c20cbb60-0bc7-46a7-a539-fd1f97d5630c"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.nomeEstado}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="603" y="1" width="105" height="15" isPrintWhenDetailOverflows="true" uuid="af5b0cea-70e3-49b5-be9b-be31497facf5"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.nomeClasse}]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="20">
<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="417" y="5" width="79" height="14" isPrintWhenDetailOverflows="true" uuid="b54f0d65-32a3-4b2d-af6f-9722bad4d290"/>
<textElement verticalAlignment="Top" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorBaseCalculo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="189" y="5" width="79" height="14" isPrintWhenDetailOverflows="true" uuid="13452460-af86-49c4-a121-9f723ee74bb3"/>
<textElement verticalAlignment="Top" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{AGERBA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="117" y="5" width="72" height="14" isPrintWhenDetailOverflows="true" uuid="41269147-5dc4-4e23-8668-f9b550bf238b"/>
<textElement verticalAlignment="Top" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{ANTT}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="268" y="5" width="74" height="14" isPrintWhenDetailOverflows="true" uuid="d898f319-976b-4ffa-8dc1-0aa359f2fc5f"/>
<textElement verticalAlignment="Top" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{cartao}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="5" width="117" height="14" isPrintWhenDetailOverflows="true" uuid="1b2738e1-26b5-4782-a511-477ceb95bfff"/>
<textElement verticalAlignment="Top" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="342" y="5" width="75" height="14" isPrintWhenDetailOverflows="true" uuid="45168356-277d-4305-9b60-33c2cedc0f88"/>
<textElement verticalAlignment="Top" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{AVista}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="708" y="5" width="94" height="14" isPrintWhenDetailOverflows="true" uuid="7b958b83-17b4-4f93-aa23-30bca836f969"/>
<textElement verticalAlignment="Top" markup="none">
<font size="6" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{nomeEstado}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="496" y="5" width="107" height="14" uuid="5e0d5e33-3f2c-4351-9a24-e0ae438b07a6"/>
<textFieldExpression><![CDATA[$F{isento}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="603" y="5" width="105" height="14" uuid="a9484980-4ad4-4d17-993b-4641987815cf"/>
<textFieldExpression><![CDATA[$F{nomeClasse}]]></textFieldExpression>
</textField>
</band>
</detail>
<lastPageFooter>
<band/>
</lastPageFooter>
<summary>
<band height="35">
<textField>
<reportElement stretchType="RelativeToTallestObject" x="0" y="11" width="117" height="14" uuid="c57012f1-edf2-4505-86c8-693c38a8a0cf"/>
<textElement verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="10" width="802" height="1" uuid="c2a4d216-ecbf-4690-876b-3263188595ad"/>
</line>
<line>
<reportElement positionType="Float" x="0" y="25" width="802" height="1" uuid="ff50b0f9-831b-428e-9177-b264920c542b"/>
</line>
<textField pattern="#,##0.00;-#,##0.00">
<reportElement x="117" y="10" width="72" height="15" uuid="86dc4366-a058-41a5-aeaf-d2651f74147b"/>
<textFieldExpression><![CDATA[$V{subTotalANTT}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;-#,##0.00">
<reportElement x="268" y="10" width="74" height="15" uuid="ed2413f4-b68c-4caa-8dd5-7cab62103509"/>
<textFieldExpression><![CDATA[$V{subTotalCARTAO}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;-#,##0.00">
<reportElement x="189" y="10" width="79" height="15" uuid="6c1d24e7-9ad1-490a-a2ad-2d96533e4a05"/>
<textFieldExpression><![CDATA[$V{subTotalAGERBA}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;-#,##0.00">
<reportElement x="417" y="10" width="79" height="15" uuid="bb86029f-a561-4a5e-8279-d14c5dbf5cbe"/>
<textFieldExpression><![CDATA[$V{subTotalValorBaseCalculo}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;-#,##0.00">
<reportElement x="342" y="11" width="75" height="14" uuid="9d6e8ef2-c004-467a-af51-88aaad9b2294"/>
<textFieldExpression><![CDATA[$V{subTotalAVista}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;-#,##0.00">
<reportElement x="496" y="12" width="107" height="14" uuid="3dc8bf9b-613f-44d3-8380-48a767704697"/>
<textFieldExpression><![CDATA[$V{sutTotalIsento}]]></textFieldExpression>
</textField>
<textField>
<reportElement stretchType="RelativeToTallestObject" x="603" y="12" width="105" height="14" uuid="699a7d01-48e8-48a0-bdcb-29f5ff2513ff"/>
<textElement verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.totalGeral}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;-#,##0.00">
<reportElement x="708" y="12" width="94" height="13" uuid="953368eb-8b6b-4580-ab6e-ffb149ef5f4c"/>
<textFieldExpression><![CDATA[$V{TOTAL_GERAL}]]></textFieldExpression>
</textField>
</band>
</summary>
<noData>
<band height="22">
<textField>
<reportElement x="0" y="0" width="802" height="20" uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d"/>
<textElement markup="none">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,97 @@
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
import java.math.BigDecimal;
public class RelatorioResumoVendaOrgaoConcedenteBean {
private BigDecimal aVista;
private BigDecimal cartao;
private BigDecimal AGERBA;
private BigDecimal valorBaseCalculo;
private BigDecimal isento;
private BigDecimal ANTT;
private String nomeEstado;
private String agencia;
private String nomeClasse;
public BigDecimal getAVista() {
return aVista;
}
public void setAVista(BigDecimal aVista) {
this.aVista = aVista;
}
public BigDecimal getCartao() {
return cartao;
}
public void setCartao(BigDecimal cartao) {
this.cartao = cartao;
}
public BigDecimal getAGERBA() {
return AGERBA;
}
public void setAGERBA(BigDecimal aGERBA) {
AGERBA = aGERBA;
}
public BigDecimal getValorBaseCalculo() {
return valorBaseCalculo;
}
public void setValorBaseCalculo(BigDecimal valorBaseCalculo) {
this.valorBaseCalculo = valorBaseCalculo;
}
public BigDecimal getANTT() {
return ANTT;
}
public void setANTT(BigDecimal aNTT) {
ANTT = aNTT;
}
public String getNomeEstado() {
return nomeEstado;
}
public void setNomeEstado(String nomeEstado) {
this.nomeEstado = nomeEstado;
}
public String getAgencia() {
return agencia;
}
public void setAgencia(String agencia) {
this.agencia = agencia;
}
public BigDecimal getIsento() {
return isento;
}
public void setIsento(BigDecimal isento) {
this.isento = isento;
}
public BigDecimal getaVista() {
return aVista;
}
public void setaVista(BigDecimal aVista) {
this.aVista = aVista;
}
public String getNomeClasse() {
return nomeClasse;
}
public void setNomeClasse(String nomeClasse) {
this.nomeClasse = nomeClasse;
}
}

View File

@ -0,0 +1,339 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.util.ArrayList;
import java.util.Arrays;
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.Bandbox;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Paging;
import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoVendaOrgaoConcedente;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.EstadoService;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandarEmpresaUsuario;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEstadoUf;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiro;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiroSelecionados;
@Controller("relatorioResumoVendaOrgaoConcedenteController")
@Scope("prototype")
public class RelatorioResumoVendaOrgaoConcedenteController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
private Datebox dtInicio;
private Datebox dtFim;
private MyComboboxEstandarEmpresaUsuario cmbEmpresa;
private Combobox cmbPuntoVenta;
private MyListbox estadoList;
private MyListbox puntoVentaList;
private Textbox txtNombrePuntoVenta;
private Paging pagingPuntoVenta;
private Bandbox bbPesquisaPuntoVenta;
private List<Empresa> lsEmpresa;
private List<Estado> lsEstado;
@Autowired
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
private MyListbox puntoVentaSelList;
@Autowired
private DataSource dataSourceRead;
@Autowired
private EmpresaService empresaService;
@Autowired
private EstadoService estadoService;
@Autowired
private ClaseServicioService claseServicioService;
private MyComboboxEstandar cmbClasseServicio;
private List<ClaseServicio> lsClasseServico;
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEmpresa = empresaService.obtenerTodos();
lsEstado = estadoService.obtenerTodos();
super.doAfterCompose(comp);
estadoList.setItemRenderer(new RenderEstadoUf());
estadoList.setData(lsEstado);
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
puntoVentaSelList.setItemRenderer(new RenderRelatorioVendasBilheteiroSelecionados());
lsClasseServico = claseServicioService.obtenerTodos();
}
@SuppressWarnings({ "rawtypes", "unchecked" })
private void executarRelatorio() throws Exception {
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
filtro.append("Agência: ");
String puntoVentaIds = "";
String puntoVentas = "";
List<PuntoVenta> lsPuntoVentaSelecionados = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
if (lsPuntoVentaSelecionados.isEmpty()) {
puntoVentas = "Todas";
} else {
for (int i = 0; i < lsPuntoVentaSelecionados.size(); i++) {
PuntoVenta puntoVenta = lsPuntoVentaSelecionados.get(i);
puntoVentas = puntoVentas + puntoVenta.getNombpuntoventa() + ",";
puntoVentaIds = puntoVentaIds + puntoVenta.getPuntoventaId() + ",";
}
// removendo ultima virgula
puntoVentaIds = puntoVentaIds.substring(0, puntoVentaIds.length() - 1);
puntoVentas = puntoVentas.substring(0, puntoVentas.length() - 1);
parametros.put("NUMPUNTOVENTA", puntoVentaIds);
}
filtro.append(puntoVentas).append(";");
if (!validar()) {
return;
}
if (dtInicio.getValue() != null && dtFim.getValue() != null) {
filtro.append("Data: ")
.append(DateUtil.getStringDate(dtInicio.getValue(), "dd/MM/yyyy"))
.append(" - ")
.append(DateUtil.getStringDate(dtFim.getValue(), "dd/MM/yyyy"))
.append(";");
parametros.put("DATA_INICIAL", (java.util.Date) dtInicio.getValue());
parametros.put("DATA_FINAL", (java.util.Date) dtFim.getValue());
}
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoVendaOrgaoConcedenteController.window.title"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
parametros.put("USUARIO_NOME", UsuarioLogado.getUsuarioLogado().getNombusuario());
filtro.append("UF: ");
String estadosIds = "";
String UFs = "";
List<Object> lsEstadosSelecionados = estadoList.getItensSelecionados();
if (!lsEstadosSelecionados.isEmpty()) {
for (int i = 0; i < lsEstadosSelecionados.size(); i++) {
Estado estado = (Estado) lsEstadosSelecionados.get(i);
UFs = UFs + estado.getCveestado() + ",";
estadosIds = estadosIds + estado.getEstadoId() + ",";
}
estadosIds = estadosIds.substring(0, estadosIds.length() - 1);
UFs = UFs.substring(0, UFs.length() - 1);
parametros.put("ESTADOS_ID", estadosIds);
} else {
filtro.append("Todos ");
}
filtro.append(UFs).append(";");
filtro.append("Empresa: ");
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
filtro.append(empresa.getNombempresa()).append(";");
} else {
filtro.append(" Todas; ");
}
Comboitem itemClasseServico = cmbClasseServicio.getSelectedItem();
if (itemClasseServico != null) {
ClaseServicio claseServicio = (ClaseServicio) itemClasseServico.getValue();
parametros.put("CLASESERVICIO_ID", claseServicio.getClaseservicioId());
filtro.append(claseServicio.getDescclase()).append(";");
} else {
filtro.append(" Todas; ");
}
parametros.put("FILTROS", filtro.toString());
Relatorio relatorio = new RelatorioResumoVendaOrgaoConcedente(parametros, dataSourceRead.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioBPeController.window.title"), args, MODAL);
}
private boolean validar() {
try {
if (dtInicio.getValue() == null || dtFim.getValue() == null) {
Messagebox.show(Labels.getLabel("relatorioBPeController.MSG.informarData"),
Labels.getLabel("relatorioBPeController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
return false;
}
if(dtInicio.getValue().after(dtFim.getValue())){
Messagebox.show(Labels.getLabel("relatorioBPeController.MSG.dataInicialMaiorQueFinal"),
Labels.getLabel("relatorioBPeController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
return false;
}
} catch (InterruptedException ex) {
return false;
}
return true;
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
private void executarPesquisa() {
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda =
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%");
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
if (puntoVentaList.getData().length == 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("relatorioVendasBilheteiroController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
}
}
}
public void onClick$btnPesquisa(Event ev) {
executarPesquisa();
}
public void onDoubleClick$puntoVentaSelList(Event ev) {
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaSelList.getSelected();
puntoVentaSelList.removeItem(puntoVenta);
}
public void onDoubleClick$puntoVentaList(Event ev) {
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaList.getSelected();
puntoVentaSelList.addItemNovo(puntoVenta);
}
public void onClick$btnLimpar(Event ev) {
puntoVentaList.setData(new ArrayList<PuntoVenta>());
bbPesquisaPuntoVenta.setText("");
}
public Datebox getDtInicio() {
return dtInicio;
}
public void setDtInicio(Datebox dtInicio) {
this.dtInicio = dtInicio;
}
public Datebox getDtFim() {
return dtFim;
}
public void setDtFim(Datebox dtFim) {
this.dtFim = dtFim;
}
public MyComboboxEstandar getCmbEmpresa() {
return cmbEmpresa;
}
public void setCmbEmpresa(MyComboboxEstandarEmpresaUsuario cmbEmpresa) {
this.cmbEmpresa = cmbEmpresa;
}
public Combobox getCmbPuntoVenta() {
return cmbPuntoVenta;
}
public void setCmbPuntoVenta(Combobox cmbPuntoVenta) {
this.cmbPuntoVenta = cmbPuntoVenta;
}
public MyListbox getEstadoList() {
return estadoList;
}
public void setEstadoList(MyListbox estadoList) {
this.estadoList = estadoList;
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
public List<Estado> getLsEstado() {
return lsEstado;
}
public void setLsEstado(List<Estado> lsEstado) {
this.lsEstado = lsEstado;
}
public EmpresaService getEmpresaService() {
return empresaService;
}
public void setEmpresaService(EmpresaService empresaService) {
this.empresaService = empresaService;
}
public DataSource getDataSourceRead() {
return dataSourceRead;
}
public void setDataSourceRead(DataSource dataSourceRead) {
this.dataSourceRead = dataSourceRead;
}
public EstadoService getEstadoService() {
return estadoService;
}
public void setEstadoService(EstadoService estadoService) {
this.estadoService = estadoService;
}
public List<ClaseServicio> getLsClasseServico() {
return lsClasseServico;
}
}

View File

@ -0,0 +1,24 @@
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 ItemMenuRelatorioResumoVendaOrgaoConcedente extends DefaultItemMenuSistema {
public ItemMenuRelatorioResumoVendaOrgaoConcedente() {
super("indexController.mniRelatorioResumoVendaOrgaoConcedente.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RESUMOVENDAORGAOCONCEDENTE";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioResumoVendaOrgaoConcedente.zul", Labels.getLabel("relatorioResumoVendaOrgaoConcedenteController.window.title"), getArgs(), desktop);
}
}

View File

@ -220,6 +220,7 @@ analitico.gerenciais.financeiro.vendasConexao=com.rjconsultores.ventaboletos.web
analitico.gerenciais.financeiro.vendasRequisicao=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasRequisicao
analitico.gerenciais.financeiro.aproveitamentoFinanceiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAproveitamentoFinanceiro
analitico.gerenciais.financeiro.relatorioOperacionalFinanceiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCaixaOrgaoConcedente
analitico.gerenciais.financeiro.relatorioResumoVendaOrgaoConcedente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoVendaOrgaoConcedente
analitico.gerenciais.pacote=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.pacote.SubMenuRelatorioPacote
analitico.gerenciais.pacote.boletos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesBoletos
analitico.gerenciais.pacote.detalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesDetalhado

View File

@ -8242,6 +8242,19 @@ relatorioBPeController.lbAlias.value = ALIAS Origen / Destino de boletos
relatorioBPeController.MSG.informarData = Favor informar data inicial e final.
relatorioBPeController.MSG.dataInicialMaiorQueFinal = Data de inicio não pode ser maior do que a final.
#Relatorio Resumo Venda por Orgao Concedente
relatorioResumoVendaOrgaoConcedenteController.window.title = Relatorio Resumo Venda por Orgao Concedente
relatorioResumoVendaOrgaoConcedenteController.lbEmpresa.value = Empresa
relatorioResumoVendaOrgaoConcedenteController.lbDtInicio.value = Data Inicio Venda
relatorioResumoVendaOrgaoConcedenteController.lbDtFim.value = Data Fim Venda
relatorioResumoVendaOrgaoConcedenteController.lbUF.value = UF
indexController.mniRelatorioResumoVendaOrgaoConcedente.label= Relatorio Resumo Venda Órgao Concedente
relatorioResumoVendaOrgaoConcedenteController.lbPuntoVenta.value=Agência
relatorioResumoVendaOrgaoConcedenteController.btnPesquisa.label=Pesquisar
relatorioResumoVendaOrgaoConcedenteController.btnLimpar.label=Limpar
relatorioResumoVendaOrgaoConcedenteController.lbClasse.value = Classe
# Dispositivo Venda Embarcada
dispositivoVendaEmbarcadaController.window.title = Dispositivo Venda Embarcada
editarDispositivoVendaEmbarcadaController.window.title = Cadastro de Dispositivo Venda Embarcada

View File

@ -8812,6 +8812,22 @@ relatorioBPeController.lbAlias.value = ALIAS Origen / Destino de boletos
relatorioBPeController.MSG.informarData = Favor informar data inicial e final.
relatorioBPeController.MSG.dataInicialMaiorQueFinal = Data de inicio não pode ser maior do que a final.
#Relatorio Resumo Venda por Orgao Concedente
relatorioResumoVendaOrgaoConcedenteController.window.title = Relatorio Resumo Venda por Orgao Concedente
relatorioResumoVendaOrgaoConcedenteController.lbEmpresa.value = Empresa
relatorioResumoVendaOrgaoConcedenteController.lbDtInicio.value = Data Inicio Venda
relatorioResumoVendaOrgaoConcedenteController.lbDtFim.value = Data Fim Venda
relatorioResumoVendaOrgaoConcedenteController.lbUF.value = UF
indexController.mniRelatorioResumoVendaOrgaoConcedente.label= Relatorio Resumo Venda Órgao Concedente
relatorioResumoVendaOrgaoConcedenteController.lbPuntoVenta.value=Agência
relatorioResumoVendaOrgaoConcedenteController.btnPesquisa.label=Pesquisar
relatorioResumoVendaOrgaoConcedenteController.btnLimpar.label=Limpar
relatorioResumoVendaOrgaoConcedenteController.lbClasse.value = Classe
relatorioResumoVendaOrgaoConcedenteController.MSG.informarData = Favor informar data inicial e final.
relatorioResumoVendaOrgaoConcedenteController.MSG.dataInicialMaiorQueFinal = Data de inicio não pode ser maior do que a final.
# Dispositivo Venda Embarcada
dispositivoVendaEmbarcadaController.window.title = Dispositivo Venda Embarcada
painelVendaEmbarcadaController.window.title = Painel Venda Embarcada

View File

@ -0,0 +1,122 @@
<?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="winFiltroRelatorioResumoVendaOrgaoConcedente"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioResumoVendaOrgaoConcedente" apply="${relatorioResumoVendaOrgaoConcedenteController}"
contentStyle="overflow:auto"
height="580px" width="530px" border="normal">
<grid fixedLayout="true">
<columns>
<column width="30%" />
<column width="70%" />
</columns>
<rows>
<row>
<label
value="${c:l('relatorioResumoVendaOrgaoConcedenteController.lbDtInicio.value')}" />
<datebox id="dtInicio" width="50%" mold="rounded"
format="dd/MM/yyyy" maxlength="10" />
</row>
<row>
<label
value="${c:l('relatorioResumoVendaOrgaoConcedenteController.lbDtFim.value')}" />
<datebox id="dtFim" width="50%" mold="rounded"
format="dd/MM/yyyy" maxlength="10" />
</row>
<row>
<label
value="${c:l('relatorioResumoVendaOrgaoConcedenteController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandarEmpresaUsuario"
mold="rounded" buttonVisible="true"
width="70%" model="@{winFiltroRelatorioResumoVendaOrgaoConcedente$composer.lsEmpresa}"
constraint="no empty" />
</row>
<row>
<label
value="${c:l('relatorioResumoVendaOrgaoConcedenteController.lbClasse.value')}" />
<combobox id="cmbClasseServicio" width="70%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" buttonVisible="true"
model="@{winFiltroRelatorioResumoVendaOrgaoConcedente$composer.lsClasseServico}" />
</row>
<row>
<label
value="Agencia" />
<bandbox id="bbPesquisaPuntoVenta" width="100%"
mold="rounded" readonly="true">
<bandpopup>
<vbox>
<hbox>
<label
value="${c:l('relatorioResumoVendaOrgaoConcedenteController.lbPuntoVenta.value')}" />
<textbox id="txtNombrePuntoVenta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
width="300px" mold="rounded" />
<button id="btnPesquisa"
image="/gui/img/find.png"
label="${c:l('relatorioResumoVendaOrgaoConcedenteController.btnPesquisa.label')}" />
<button id="btnLimpar"
image="/gui/img/eraser.png"
label="${c:l('relatorioResumoVendaOrgaoConcedenteController.btnLimpar.label')}" />
</hbox>
<paging id="pagingPuntoVenta"
pageSize="10" />
<listbox id="puntoVentaList"
mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" height="100%" width="700px">
<listhead>
<listheader
label="${c:l('relatorioResumoVendaOrgaoConcedenteController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioResumoVendaOrgaoConcedenteController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioResumoVendaOrgaoConcedenteController.lbNumero.value')}" />
</listhead>
</listbox>
</vbox>
</bandpopup>
</bandbox>
</row>
<row spans="4">
<listbox id="puntoVentaSelList" mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" height="100px" width="100%">
<listhead>
<listheader
label="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioVendasBilheteiroController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioVendasBilheteiroController.lbNumero.value')}" />
<listheader width="5%" />
</listhead>
</listbox>
<paging id="pagingSelPuntoVenta" pageSize="10" />
</row>
<row spans="1, 3">
<label
value="${c:l('relatorioResumoVendaOrgaoConcedenteController.lbUF.value')}" />
<listbox id="estadoList" rows="10" vflex="false"
width="90%" multiple="true" checkmark="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
</listbox>
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>