Bolivariano - Institucionales ADM: Relatório Saldo Contrato fixes bug#AL-4341

master
Leonardo Oliveira 2024-08-14 14:33:44 -03:00
parent efc21329ef
commit ab0759edab
18 changed files with 907 additions and 28 deletions

View File

@ -59,21 +59,24 @@ public class RelatorioDetalheContrato extends Relatorio {
while (rset.next()) { while (rset.next()) {
RelatorioDetalheContratoBean detalhe = new RelatorioDetalheContratoBean(); RelatorioDetalheContratoBean detalhe = new RelatorioDetalheContratoBean();
detalhe.setBoleto(rset.getObject("contratoId").toString()); detalhe.setTiquete(rset.getString("contratoId"));
detalhe.setDataVenda((Date)rset.getObject("dataVenda")); detalhe.setDataVenda((Date)rset.getObject("dataVenda"));
detalhe.setDestino(rset.getObject("destino").toString()); detalhe.setDestino(rset.getString("destino"));
detalhe.setOrigem(rset.getObject("origem").toString()); detalhe.setOrigem(rset.getString("origem"));
detalhe.setEmpresa(rset.getObject("empresa").toString()); detalhe.setEmpresa(rset.getString("empresa"));
detalhe.setEstado(rset.getObject("estado").toString()); detalhe.setEstado(rset.getString("estado"));
detalhe.setFatura(rset.getObject("fatura").toString()); detalhe.setFatura(rset.getString("fatura"));
detalhe.setNomePassageiro(rset.getObject("cliente").toString()); detalhe.setNomePassageiro(rset.getString("cliente"));
detalhe.setNomeUsuario(rset.getObject("usuario").toString()); detalhe.setNomeUsuario(rset.getString("usuario"));
detalhe.setPassageiroCod((Long)rset.getObject("clicod")); detalhe.setPassageiroCod((Long)rset.getObject("clicod"));
detalhe.setPassagem(rset.getObject("passagem").toString()); detalhe.setPassagem(rset.getString("passagem"));
detalhe.setPrecioPagado((BigDecimal)rset.getBigDecimal("valorUnit")); detalhe.setPrecioPagado((BigDecimal)rset.getBigDecimal("valorUnit"));
detalhe.setPreco((BigDecimal)rset.getBigDecimal("valorTiquete")); detalhe.setPreco((BigDecimal)rset.getBigDecimal("valorTiquete"));
detalhe.setTipoDoc(rset.getObject("tipoDoc").toString()); detalhe.setTipoDoc(rset.getString("tipoDoc"));
if (detalhe.getTipoDoc().equals("Evento Extra")) { detalhe.setClienteId(rset.getLong("clientecorporativo_id"));
detalhe.setNomCliente(rset.getString("nomclientecorp"));
if (detalhe.getTipoDoc() != null && detalhe.getTipoDoc().equals("Evento Extra")) {
valorAdicionado.add(detalhe.getPrecioPagado()); valorAdicionado.add(detalhe.getPrecioPagado());
} }
@ -116,29 +119,33 @@ public class RelatorioDetalheContrato extends Relatorio {
sb.append(" porigen.descparada as origem, "); sb.append(" porigen.descparada as origem, ");
sb.append(" pdestino.descparada as destino, "); sb.append(" pdestino.descparada as destino, ");
sb.append(" 1 as passagem, "); sb.append(" 1 as passagem, ");
sb.append(" c.preciopagado as valorUnit, "); sb.append(" coalesce(c.preciopagado, 0) as valorUnit, ");
sb.append(" c.preciobase as valorTiquete, "); sb.append(" coalesce(c.preciobase, 0) as valorTiquete, ");
sb.append(" t.nome_transportadora as empresa, "); sb.append(" t.nome_transportadora as empresa, ");
sb.append(" c.cliente_id as clicod, "); sb.append(" c.cliente_id as clicod, ");
sb.append(" cli.nombcliente cliente, "); sb.append(" cli.nombcliente cliente, ");
sb.append(" u.nombusuario as usuario "); sb.append(" u.nombusuario as usuario, ");
sb.append(" clicorp.clientecorporativo_id, ");
sb.append(" clicorp.nomclientecorp ");
sb.append("from caixa_contrato cc "); sb.append("from caixa_contrato cc ");
sb.append("join contrato_corporativo corp on corp.contrato_id = cc.contrato_id ");
sb.append("join cliente_corporativo clicorp on clicorp.clientecorporativo_id = corp.clientecorporativo_id ");
sb.append("left join caja c on cc.caja_id = c.caja_id "); sb.append("left join caja c on cc.caja_id = c.caja_id ");
sb.append("left join voucher v on v.voucher_id = cc.voucher_id "); sb.append("left join voucher v on v.voucher_id = cc.voucher_id ");
sb.append("left join transportadora t on t.transportadora_id = v.transportadora_id "); sb.append("left join transportadora t on t.transportadora_id = v.transportadora_id ");
sb.append("left join evento_extra e on e.eventoextra_id = cc.eventoextra_id "); sb.append("left join evento_extra e on e.eventoextra_id = cc.eventoextra_id ");
sb.append("join cliente cli on cli.cliente_id = c.cliente_id "); sb.append("left join cliente cli on cli.cliente_id = c.cliente_id ");
sb.append("join parada porigen on c.origen_id = porigen.parada_id "); sb.append("left join parada porigen on c.origen_id = porigen.parada_id ");
sb.append("join parada pdestino on c.destino_id = pdestino.parada_id "); sb.append("left join parada pdestino on c.destino_id = pdestino.parada_id ");
sb.append("join usuario u on u.usuario_id = c.usuario_id "); sb.append("left join usuario u on u.usuario_id = c.usuario_id ");
sb.append("where 1 = 1 "); sb.append("where 1 = 1 ");
if(dataInicial != null && dataFinal != null){ if(dataInicial != null && dataFinal != null){
sb.append(" and c.fechorventa between :dataInicial and :dataFinal "); sb.append(" and c.fechorventa between :dataInicial and :dataFinal ");
if (geracao == DataGeracaoLegalizacaoEnum.GERACAO) { if (geracao == DataGeracaoLegalizacaoEnum.GERACAO) {
sb.append(" and v.dataGeracao between :dataInicial and :dataFinal "); sb.append(" and v.data_inclusao between :dataInicial and :dataFinal ");
} else { } else {
sb.append(" and v.dataLegalizacao between :dataInicial and :dataFinal "); sb.append(" and v.data_legaliza between :dataInicial and :dataFinal ");
} }
} }

View File

@ -0,0 +1,149 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.rjconsultores.ventaboletos.enums.EstadoBilheteConsultarEnum;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioSaldosContratosBean;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioSaldosDeContratos extends Relatorio {
private List<RelatorioSaldosContratosBean> lsDadosRelatorio;
public RelatorioSaldosDeContratos(Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
this.setCustomDataSource(new DataSource(this) {
@Override
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
Date dataInicial = (Date) parametros.get("DATA_DE");
Date dataFinal = (Date) parametros.get("DATA_ATE");
Integer empresaId = (Integer) parametros.get("EMPRESA_ID");
String numContrato = parametros.get("NUM_CONTRATO") != null ? parametros.get("NUM_CONTRATO").toString() : null;
Long grupoContratoId = (Long) parametros.get("GRUPOCONTRATO_ID");
Integer status = (Integer) parametros.get("STATUS");
NamedParameterStatement nps = new NamedParameterStatement(conexao, getSql(dataInicial,
dataFinal, empresaId, numContrato, grupoContratoId, status));
if(dataInicial != null && dataFinal != null){
nps.setDate("dataInicial", new java.sql.Date(dataInicial.getTime()));
nps.setDate("dataFinal", new java.sql.Date(dataFinal.getTime()));
}
if (empresaId != null) {
nps.setLong("clienteId", empresaId);
}
if (numContrato != null) {
nps.setString("numContrato", numContrato);
}
if (grupoContratoId != null) {
nps.setLong("grupoContratoId", grupoContratoId);
}
if (status != null) {
nps.setInt("status", status);
}
ResultSet rset = nps.executeQuery();
List<RelatorioSaldosContratosBean> ls = new ArrayList<RelatorioSaldosContratosBean>();
while (rset.next()) {
RelatorioSaldosContratosBean saldo = new RelatorioSaldosContratosBean();
saldo.setAdicional(rset.getBigDecimal("adicao"));
saldo.setDataInicio(rset.getDate("data_inicial"));
saldo.setExecutado(rset.getBigDecimal("executado"));
saldo.setNit(rset.getString("numContrato"));
saldo.setNumContrato(rset.getString("numContrato"));
saldo.setRazaoSocial(rset.getString("nomclientecorp"));
saldo.setValorContrato(rset.getBigDecimal("valor_contrato"));
saldo.setSaldoAtual(saldo.getValorContrato().add(saldo.getAdicional()).subtract(saldo.getExecutado()).abs());
ls.add(saldo);
}
setLsDadosRelatorio(ls);
}
});
}
private String getSql(Date dataInicial, Date dataFinal, Integer empresaId,
String numContrato, Long grupoContratoId, Integer status) {
StringBuilder sb = new StringBuilder();
sb.append("select ");
sb.append(" c.numcontrato, ");
sb.append(" cli.nomclientecorp, ");
sb.append(" c.numcontrato, ");
sb.append(" c.data_inicial, ");
sb.append(" coalesce(c.valor_contrato,0) as valor_contrato, ");
sb.append(" coalesce((select sum(cc2.valor) ");
sb.append(" from caixa_contrato cc2 ");
sb.append(" where cc2.contrato_id = c.contrato_id ");
sb.append(" and cc2.eventoextra_id is not null), 0) as adicao, ");
sb.append(" sum(cc.valor) as executado ");
sb.append("from contrato_corporativo c ");
sb.append("join caixa_contrato cc on cc.contrato_id = c.contrato_id ");
sb.append("join cliente_corporativo cli on cli.clientecorporativo_id = cli.clientecorporativo_id ");
sb.append("where 1 = 1 ");
if(dataInicial != null && dataFinal != null){
sb.append(" and cc.data_lancamento between :dataInicial and :dataFinal ");
}
if (empresaId != null) {
sb.append(" and c.clientecorporativo_id = :clienteId ");
}
if (numContrato != null) {
sb.append(" and c.numcontrato in (:numContrato) ");
}
if (grupoContratoId != null) {
sb.append(" and c.grupocontrato_id = :grupoContratoId ");
}
if (status != null) {
sb.append(" and c.status_contrato = :status ");
}
sb.append("group by ");
sb.append(" c.contrato_id, ");
sb.append(" c.numcontrato, ");
sb.append(" cli.nomclientecorp, ");
sb.append(" c.numcontrato, ");
sb.append(" c.data_inicial, ");
sb.append(" c.valor_contrato ");
return sb.toString();
}
@Override
protected void processaParametros() throws Exception {
}
public List<RelatorioSaldosContratosBean> getLsDadosRelatorio() {
return lsDadosRelatorio;
}
public void setLsDadosRelatorio(List<RelatorioSaldosContratosBean> lsDadosRelatorio) {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
this.lsDadosRelatorio = lsDadosRelatorio;
}
}

View File

@ -0,0 +1,16 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
header.titulo.relatorio=CRÉDITOS - SALDOS DE CONTRATOS
#Labels header
label.nit=Nit
label.razaoSocial=Razão Social
label.contrato=Contrato
label.inicio=Início
label.valorContrato=Valor Contrato
label.adicional=Adicional
label.recaudo=Recaudo
label.saldoInicial=Saldo Inicial
label.executado=Executado
label.saldo=Saldo

View File

@ -16,7 +16,7 @@
<parameter name="VALOR_ADICIONADO" class="java.math.BigDecimal"/> <parameter name="VALOR_ADICIONADO" class="java.math.BigDecimal"/>
<parameter name="EXECUTADO" class="java.math.BigDecimal"/> <parameter name="EXECUTADO" class="java.math.BigDecimal"/>
<parameter name="QUOTA_ATUAL" class="java.lang.Number"/> <parameter name="QUOTA_ATUAL" class="java.lang.Number"/>
<field name="boleto" class="java.lang.Long"/> <field name="tiquete" class="java.lang.String"/>
<field name="dataVenda" class="java.util.Date"/> <field name="dataVenda" class="java.util.Date"/>
<field name="tipoDoc" class="java.lang.String"/> <field name="tipoDoc" class="java.lang.String"/>
<field name="fatura" class="java.lang.String"/> <field name="fatura" class="java.lang.String"/>
@ -31,6 +31,44 @@
<field name="nomePassageiro" class="java.lang.String"/> <field name="nomePassageiro" class="java.lang.String"/>
<field name="legalizado" class="java.lang.Integer"/> <field name="legalizado" class="java.lang.Integer"/>
<field name="nomeUsuario" class="java.lang.String"/> <field name="nomeUsuario" class="java.lang.String"/>
<field name="clienteId" class="java.lang.Long"/>
<field name="nomCliente" class="java.lang.String"/>
<group name="Group CliCorp">
<groupExpression><![CDATA[$F{clienteId}]]></groupExpression>
<groupHeader>
<band height="50">
<textField isStretchWithOverflow="true">
<reportElement uuid="dcc61ae7-46e2-46f3-b54f-4f5a8cfb85c7" stretchType="RelativeToTallestObject" x="0" y="11" width="63" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{clienteId}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="ddb0ab2d-c8eb-4b88-9a90-506a5c7c7862" stretchType="RelativeToTallestObject" x="63" y="11" width="197" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{nomCliente}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="50"/>
</groupFooter>
</group>
<background> <background>
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
@ -314,7 +352,7 @@
</columnHeader> </columnHeader>
<detail> <detail>
<band height="20" splitType="Stretch"> <band height="20" splitType="Stretch">
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="7a8c77d7-97f8-4e37-8ebc-97c6ab05eaed" stretchType="RelativeToTallestObject" x="0" y="0" width="152" height="20"/> <reportElement uuid="7a8c77d7-97f8-4e37-8ebc-97c6ab05eaed" stretchType="RelativeToTallestObject" x="0" y="0" width="152" height="20"/>
<box> <box>
<topPen lineWidth="0.25"/> <topPen lineWidth="0.25"/>
@ -325,7 +363,7 @@
<textElement> <textElement>
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{boleto}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{tiquete}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement uuid="b31c9ab2-0cfe-4db1-83ca-57aba183a88b" stretchType="RelativeToTallestObject" x="231" y="0" width="51" height="20"/> <reportElement uuid="b31c9ab2-0cfe-4db1-83ca-57aba183a88b" stretchType="RelativeToTallestObject" x="231" y="0" width="51" height="20"/>

View File

@ -0,0 +1,326 @@
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioCorridas" pageWidth="1205" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1165" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="dc003bfe-c791-4f88-acc6-736e8c97f7e2">
<property name="ireport.zoom" value="1.5026296018031564"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="title"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
<parameter name="DATA" class="java.util.Date"/>
<field name="nit" class="java.lang.String"/>
<field name="razaoSocial" class="java.lang.String"/>
<field name="numContrato" class="java.lang.String"/>
<field name="dataInicio" class="java.util.Date"/>
<field name="valorContrato" class="java.math.BigDecimal"/>
<field name="adicional" class="java.math.BigDecimal"/>
<field name="executado" class="java.math.BigDecimal"/>
<field name="saldoAtual" class="java.math.BigDecimal"/>
<variable name="totalValorContrato" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valorContrato}]]></variableExpression>
</variable>
<variable name="totalAdicional" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{adicional}]]></variableExpression>
</variable>
<variable name="totalExecutado" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{executado}]]></variableExpression>
</variable>
<variable name="totalSaldo" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{saldoAtual}]]></variableExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="62" splitType="Stretch">
<textField>
<reportElement uuid="96572021-01f9-4d05-938c-11ca5721f81c" x="0" y="20" width="149" height="20"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f6fe1c2b-09af-45e6-9883-f6aa7fe3016c" x="0" y="0" width="1015" height="20"/>
<textElement markup="none">
<font size="14" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.titulo.relatorio}]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="20" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement uuid="c06195d4-ba58-47be-aef7-1563b191de27" stretchType="RelativeToTallestObject" x="0" y="0" width="70" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.nit}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="1ecd7528-3828-4cf5-a9c8-f85e07e4ba28" stretchType="RelativeToTallestObject" x="312" y="0" width="51" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.contrato}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="1f6c0d70-a694-43e9-8ad3-aebfb91eed3c" stretchType="RelativeToTallestObject" x="503" y="0" width="90" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.adicional}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="838fd9f8-3595-4eb7-8b1c-a593b306bce3" stretchType="RelativeToTallestObject" x="593" y="0" width="59" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.executado}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="162ffd2f-696a-459d-ae23-2df0b308fa43" stretchType="RelativeToTallestObject" x="363" y="0" width="51" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.inicio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="a7946998-7bb2-4936-b0c4-c54ca8749dfa" stretchType="RelativeToTallestObject" x="70" y="0" width="242" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.razaoSocial}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="1f8dae8e-1925-477d-b9de-059ba69c84f5" stretchType="RelativeToTallestObject" x="414" y="0" width="89" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.valorContrato}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="21c168b8-f4de-4072-a332-f747335b42e1" stretchType="RelativeToTallestObject" x="652" y="0" width="69" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.saldo}]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="20" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement uuid="7a8c77d7-97f8-4e37-8ebc-97c6ab05eaed" stretchType="RelativeToTallestObject" x="0" y="0" width="70" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{nit}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="b31c9ab2-0cfe-4db1-83ca-57aba183a88b" stretchType="RelativeToTallestObject" x="312" y="0" width="51" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{numContrato}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
<reportElement uuid="4768cf26-74b8-48a5-b8eb-cbcc63d5d968" stretchType="RelativeToTallestObject" x="503" y="0" width="90" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{adicional}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm">
<reportElement uuid="301029ea-db8d-48bd-8e13-ed67f6140081" stretchType="RelativeToTallestObject" x="70" y="0" width="242" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement>
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{razaoSocial}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy">
<reportElement uuid="7da11eed-f034-4eb3-bba2-0c7547074136" stretchType="RelativeToTallestObject" x="363" y="0" width="51" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataInicio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
<reportElement uuid="cf5d37e0-ce0e-4089-bcaa-edf01bf46fc3" stretchType="RelativeToTallestObject" x="593" y="0" width="59" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{executado}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
<reportElement uuid="5a0bd7e9-4f49-4024-8b2b-6444f3f23cb4" stretchType="RelativeToTallestObject" x="652" y="0" width="69" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{saldoAtual}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
<reportElement uuid="1f7cb37d-4f34-448b-9438-b4a2b858552e" stretchType="RelativeToTallestObject" x="414" y="0" width="89" height="20"/>
<box>
<topPen lineWidth="0.25"/>
<leftPen lineWidth="0.25"/>
<bottomPen lineWidth="0.25"/>
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Right">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorContrato}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band height="24" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="031670b3-591b-4717-8bb1-e867b1e8f1b2" stretchType="RelativeToTallestObject" x="325" y="0" width="89" height="20"/>
<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
</textElement>
<textFieldExpression><![CDATA["Total"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="d169ead1-c200-4cea-b249-e8a257d16fa5" stretchType="RelativeToTallestObject" x="652" y="0" width="69" height="20"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalSaldo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="437c41be-28e9-4440-9e30-5a84160ddbed" stretchType="RelativeToTallestObject" x="593" y="0" width="59" height="20"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalExecutado}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="3039dd63-6e97-4d8d-bc6e-8a17eaf962c3" stretchType="RelativeToTallestObject" x="503" y="0" width="90" height="20"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalAdicional}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="3424d8bf-d824-430a-922a-b42b5ba230ae" stretchType="RelativeToTallestObject" x="414" y="0" width="89" height="20"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalValorContrato}]]></textFieldExpression>
</textField>
</band>
</summary>
<noData>
<band height="35">
<textField>
<reportElement uuid="ed192bd7-4c3c-4f7f-a805-6d71234d513c" x="0" y="8" width="910" height="20"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -5,7 +5,7 @@ import java.util.Date;
public class RelatorioDetalheContratoBean { public class RelatorioDetalheContratoBean {
private String boleto; private String tiquete;
private Date dataVenda; private Date dataVenda;
private String tipoDoc; private String tipoDoc;
private String fatura; private String fatura;
@ -20,11 +20,14 @@ public class RelatorioDetalheContratoBean {
private String nomePassageiro; private String nomePassageiro;
private Integer legalizado; private Integer legalizado;
private String nomeUsuario; private String nomeUsuario;
public String getBoleto() { private Long clienteId;
return boleto; private String nomCliente;
public String getTiquete() {
return tiquete;
} }
public void setBoleto(String boleto) { public void setTiquete(String tiquete) {
this.boleto = boleto; this.tiquete = tiquete;
} }
public Date getDataVenda() { public Date getDataVenda() {
return dataVenda; return dataVenda;
@ -109,5 +112,18 @@ public class RelatorioDetalheContratoBean {
} }
public void setNomeUsuario(String nomeUsuario) { public void setNomeUsuario(String nomeUsuario) {
this.nomeUsuario = nomeUsuario; this.nomeUsuario = nomeUsuario;
}
public Long getClienteId() {
return clienteId;
}
public void setClienteId(Long clienteId) {
this.clienteId = clienteId;
}
public String getNomCliente() {
return nomCliente;
}
public void setNomCliente(String nomCliente) {
this.nomCliente = nomCliente;
} }
} }

View File

@ -0,0 +1,65 @@
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
import java.math.BigDecimal;
import java.util.Date;
public class RelatorioSaldosContratosBean {
private String nit;
private String razaoSocial;
private String numContrato;
private Date dataInicio;
private BigDecimal valorContrato;
private BigDecimal adicional;
private BigDecimal executado;
private BigDecimal saldoAtual;
public String getNit() {
return nit;
}
public void setNit(String nit) {
this.nit = nit;
}
public String getRazaoSocial() {
return razaoSocial;
}
public void setRazaoSocial(String razaoSocial) {
this.razaoSocial = razaoSocial;
}
public String getNumContrato() {
return numContrato;
}
public void setNumContrato(String numContrato) {
this.numContrato = numContrato;
}
public Date getDataInicio() {
return dataInicio;
}
public void setDataInicio(Date dataInicio) {
this.dataInicio = dataInicio;
}
public BigDecimal getValorContrato() {
return valorContrato;
}
public void setValorContrato(BigDecimal valorContrato) {
this.valorContrato = valorContrato;
}
public BigDecimal getAdicional() {
return adicional;
}
public void setAdicional(BigDecimal adicional) {
this.adicional = adicional;
}
public BigDecimal getExecutado() {
return executado;
}
public void setExecutado(BigDecimal executado) {
this.executado = executado;
}
public BigDecimal getSaldoAtual() {
return saldoAtual;
}
public void setSaldoAtual(BigDecimal saldoAtual) {
this.saldoAtual = saldoAtual;
}
}

View File

@ -21,6 +21,8 @@ import org.zkoss.zul.Radio;
import com.rjconsultores.ventaboletos.entidad.ContratoCorporativo; import com.rjconsultores.ventaboletos.entidad.ContratoCorporativo;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Parada; import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.enums.DataGeracaoLegalizacaoEnum;
import com.rjconsultores.ventaboletos.enums.EstadoBilheteConsultarEnum;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCorridas; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCorridas;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDetalheContrato; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDetalheContrato;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
@ -58,6 +60,16 @@ public class RelatorioDetalheContratoController extends MyGenericForwardCompose
Map<String, Object> parametros = new HashMap<String, Object>(); Map<String, Object> parametros = new HashMap<String, Object>();
parametros.put("NUMCONTRATO", txtNumContrato.getValue()); parametros.put("NUMCONTRATO", txtNumContrato.getValue());
if (datInicial.getValue() != null) {
parametros.put("DATA_DE", new java.sql.Date(((java.util.Date) datInicial.getValue()).getTime()));
}
if (datFinal.getValue() != null) {
parametros.put("DATA_ATE", new java.sql.Date(((java.util.Date) datFinal.getValue()).getTime()));
}
parametros.put("GERACAO", rdbCriacao.isChecked() ? DataGeracaoLegalizacaoEnum.GERACAO : DataGeracaoLegalizacaoEnum.LEGALIZACAO);
parametros.put("ESTADO_BILHETES", rdbFaturado.isChecked() ? EstadoBilheteConsultarEnum.FATURADO : rdbNaoFaturado.isChecked() ? EstadoBilheteConsultarEnum.NAO_FATURADO : EstadoBilheteConsultarEnum.TODOS);
Relatorio relatorio = new RelatorioDetalheContrato(parametros, dataSourceRead.getConnection()); Relatorio relatorio = new RelatorioDetalheContrato(parametros, dataSourceRead.getConnection());
Map<String, Object> args = new HashMap<String, Object>(); Map<String, Object> args = new HashMap<String, Object>();

View File

@ -0,0 +1,111 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
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.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Radio;
import org.zkoss.zul.Radiogroup;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.GrupoContrato;
import com.rjconsultores.ventaboletos.enums.EstadoBilheteConsultarEnum;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioSaldosDeContratos;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.GrupoContratoService;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
@Controller("relatorioSaldosContratosController")
@Scope("prototype")
public class RelatorioSaldosContratosController extends MyGenericForwardComposer {
@Autowired
private DataSource dataSourceRead;
@Autowired
private EmpresaService empresaService;
@Autowired
private GrupoContratoService grupoContratoService;
private Datebox datInicial;
private Datebox datFinal;
private MyTextbox txtNumContrato;
private MyComboboxEmpresa cmbEmpresa;
private MyComboboxEstandar cmbGrupoContrato;
private Radiogroup rdgStatus;
private List<Empresa> lsEmpresa;
private List<GrupoContrato> lsGrupoContrato;
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEmpresa = empresaService.obtenerTodos();
lsGrupoContrato = grupoContratoService.obtenerTodos();
super.doAfterCompose(comp);
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
Map<String, Object> parametros = new HashMap<String, Object>();
parametros.put("NUMCONTRATO", txtNumContrato.getValue());
Comboitem cbiEmpresa = cmbEmpresa.getSelectedItem();
if (cbiEmpresa != null) {
Empresa empresa = (Empresa) cbiEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
}
Comboitem cbiGrupoContrato = cmbGrupoContrato.getSelectedItem();
if (cbiGrupoContrato != null) {
GrupoContrato grupo = (GrupoContrato) cbiGrupoContrato.getValue();
parametros.put("GRUPOCONTRATO_ID", grupo.getGrupoContratoId());
}
if (datInicial.getValue() != null) {
parametros.put("DATA_DE", new java.sql.Date(((java.util.Date) datInicial.getValue()).getTime()));
}
if (datFinal.getValue() != null) {
parametros.put("DATA_ATE", new java.sql.Date(((java.util.Date) datFinal.getValue()).getTime()));
}
parametros.put("STATUS", Integer.valueOf(rdgStatus.getSelectedItem().getValue()));
Relatorio relatorio = new RelatorioSaldosDeContratos(parametros, dataSourceRead.getConnection());
Map<String, Object> args = new HashMap<String, Object>();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioSaldosContratosController.window.title"), args, MODAL);
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
public List<GrupoContrato> getLsGrupoContrato() {
return lsGrupoContrato;
}
public void setLsGrupoContrato(List<GrupoContrato> lsGrupoContrato) {
this.lsGrupoContrato = lsGrupoContrato;
}
}

View File

@ -0,0 +1,25 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos;
import org.zkoss.util.resource.Labels;
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuRelatorioSaldosContratos extends DefaultItemMenuSistema {
public ItemMenuRelatorioSaldosContratos() {
super("indexController.mniRelatorioSaldosContratos.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CONFIGURACIONECCOMERCIALES.MENU.RELATORIOSALDOSCONTRATOS";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioSaldosContratos.zul",
Labels.getLabel("relatorioSaldosContratosController.window.title"), getArgs(), desktop);
}
}

View File

@ -66,6 +66,7 @@ confComerciales.negCorporativos.Contrato=com.rjconsultores.ventaboletos.web.util
confComerciales.negCorporativos.Transportadora=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuTransportadora confComerciales.negCorporativos.Transportadora=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuTransportadora
confComerciales.negCorporativos.Voucher=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuVoucher confComerciales.negCorporativos.Voucher=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuVoucher
confComerciales.negCorporativos.RelatorioDetalhesContrato=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuRelatorioDetalheContrato confComerciales.negCorporativos.RelatorioDetalhesContrato=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuRelatorioDetalheContrato
confComerciales.negCorporativos.RelatorioSaldosContratos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuRelatorioSaldosContratos
confComerciales.impressaofiscal=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.SubMenuImpressaoFiscal confComerciales.impressaofiscal=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.SubMenuImpressaoFiscal
confComerciales.impressaofiscal.totnaofiscalEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuTotnaofiscalEmpresa confComerciales.impressaofiscal.totnaofiscalEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuTotnaofiscalEmpresa
confComerciales.impressaofiscal.formapagoEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuFormapagoEmpresa confComerciales.impressaofiscal.formapagoEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuFormapagoEmpresa

View File

@ -7915,6 +7915,7 @@ indexController.mniRelatorioResumoLinhas.label = Line Summary
indexController.mniRelatorioResumoVendaOrgaoConcedente.label = Sale Summary Report Granting Authority indexController.mniRelatorioResumoVendaOrgaoConcedente.label = Sale Summary Report Granting Authority
# Retorno Bancario # Retorno Bancario
indexController.mniRelatorioRetornoBancario.label = Bank Return indexController.mniRelatorioRetornoBancario.label = Bank Return
indexController.mniRelatorioSaldosContratos.label = Contract Balances Report
indexController.mniRelatorioSap.label = SAP indexController.mniRelatorioSap.label = SAP
indexController.mniRelatorioSegundaVia.label = Second Copy indexController.mniRelatorioSegundaVia.label = Second Copy
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Service Blocked on Internet Sales indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Service Blocked on Internet Sales
@ -9762,6 +9763,15 @@ relatorioRetornoBancario.MSG.extensaoInvalida = Only files in bank return format
relatorioRetornoBancario.fileupload.label = Select File... relatorioRetornoBancario.fileupload.label = Select File...
relatorioRetornoBancario.lbEmpresa.value = Company relatorioRetornoBancario.lbEmpresa.value = Company
relatorioRetornoBancario.window.title = Bank Return Processing relatorioRetornoBancario.window.title = Bank Return Processing
relatorioSaldosContratosController.lblDataFinal.value = End Date
relatorioSaldosContratosController.lblDataInicial.value = Start Date
relatorioSaldosContratosController.lblEstadoBilhete.value = Ticket Status
relatorioSaldosContratosController.lblFaturado.value = Invoiced
relatorioSaldosContratosController.lblGrupoContrato.value = Contract Group
relatorioSaldosContratosController.lblNaoFaturado.value = Not Billed
relatorioSaldosContratosController.lblNumContrato.value = Contract Number
relatorioSaldosContratosController.lblTodos.value = All
relatorioSaldosContratosController.window.title = Contract Balances Report
relatorioSapController.MGS.alertaArquivoRemessaNaoGerado = Shipment file could not be created, please contact support. relatorioSapController.MGS.alertaArquivoRemessaNaoGerado = Shipment file could not be created, please contact support.
relatorioSapController.MGS.alertaCNABSemItens = There are no closing items to send to this company relatorioSapController.MGS.alertaCNABSemItens = There are no closing items to send to this company
relatorioSapController.MGS.erroIntegraManual = Manual execution of integration with SAP relatorioSapController.MGS.erroIntegraManual = Manual execution of integration with SAP

View File

@ -7923,6 +7923,7 @@ indexController.mniRelatorioResumoLinhas.label = Reporte resumen de rutas
indexController.mniRelatorioResumoVendaOrgaoConcedente.label = Relatorio Resumo Venda Órgao Concedente indexController.mniRelatorioResumoVendaOrgaoConcedente.label = Relatorio Resumo Venda Órgao Concedente
# Retorno Bancario # Retorno Bancario
indexController.mniRelatorioRetornoBancario.label = Retorno Bancário indexController.mniRelatorioRetornoBancario.label = Retorno Bancário
indexController.mniRelatorioSaldosContratos.label = Informe de saldos de contratos
indexController.mniRelatorioSap.label = SAP indexController.mniRelatorioSap.label = SAP
indexController.mniRelatorioSegundaVia.label = Segunda Via indexController.mniRelatorioSegundaVia.label = Segunda Via
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Corrida bloqueada en venta internet indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Corrida bloqueada en venta internet
@ -9788,6 +9789,15 @@ relatorioRetornoBancario.MSG.extensaoInvalida = Somente arquivos no formato de r
relatorioRetornoBancario.fileupload.label = Selecionar Arquivo... relatorioRetornoBancario.fileupload.label = Selecionar Arquivo...
relatorioRetornoBancario.lbEmpresa.value = Empresa relatorioRetornoBancario.lbEmpresa.value = Empresa
relatorioRetornoBancario.window.title = Processamento de Retorno Bancário relatorioRetornoBancario.window.title = Processamento de Retorno Bancário
relatorioSaldosContratosController.lblDataFinal.value = Fecha de finalización
relatorioSaldosContratosController.lblDataInicial.value = Fecha de inicio
relatorioSaldosContratosController.lblEstadoBilhete.value = Estado del billete
relatorioSaldosContratosController.lblFaturado.value = Facturado
relatorioSaldosContratosController.lblGrupoContrato.value = Grupo de contrato
relatorioSaldosContratosController.lblNaoFaturado.value = No facturado
relatorioSaldosContratosController.lblNumContrato.value = Número de contrato
relatorioSaldosContratosController.lblTodos.value = Todo
relatorioSaldosContratosController.window.title = Informe de saldos de contratos
relatorioSapController.MGS.alertaArquivoRemessaNaoGerado = Arquivo de remessa não pôde ser criado, favor entrar em contato com o suporte. relatorioSapController.MGS.alertaArquivoRemessaNaoGerado = Arquivo de remessa não pôde ser criado, favor entrar em contato com o suporte.
relatorioSapController.MGS.alertaCNABSemItens = Não há itens fechamento a enviar para esta empresa relatorioSapController.MGS.alertaCNABSemItens = Não há itens fechamento a enviar para esta empresa
relatorioSapController.MGS.erroIntegraManual = Execução manual de integração com SAP relatorioSapController.MGS.erroIntegraManual = Execução manual de integração com SAP

View File

@ -7913,6 +7913,7 @@ indexController.mniRelatorioResumoLinhas.label = Résumé de la ligne
indexController.mniRelatorioResumoVendaOrgaoConcedente.label = Rapport sommaire de vente accordant le pouvoir indexController.mniRelatorioResumoVendaOrgaoConcedente.label = Rapport sommaire de vente accordant le pouvoir
# Retorno Bancario # Retorno Bancario
indexController.mniRelatorioRetornoBancario.label = Retour bancaire indexController.mniRelatorioRetornoBancario.label = Retour bancaire
indexController.mniRelatorioSaldosContratos.label = Rapport sur les soldes des contrats
indexController.mniRelatorioSap.label = SAP indexController.mniRelatorioSap.label = SAP
indexController.mniRelatorioSegundaVia.label = Deuxième copie indexController.mniRelatorioSegundaVia.label = Deuxième copie
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Service bloqué sur les ventes Internet indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Service bloqué sur les ventes Internet
@ -9754,6 +9755,15 @@ relatorioRetornoBancario.MSG.extensaoInvalida = Seuls les fichiers au format ret
relatorioRetornoBancario.fileupload.label = Sélectionnez Fichier... relatorioRetornoBancario.fileupload.label = Sélectionnez Fichier...
relatorioRetornoBancario.lbEmpresa.value = Entreprise relatorioRetornoBancario.lbEmpresa.value = Entreprise
relatorioRetornoBancario.window.title = Traitement des retours bancaires relatorioRetornoBancario.window.title = Traitement des retours bancaires
relatorioSaldosContratosController.lblDataFinal.value = Date de fin
relatorioSaldosContratosController.lblDataInicial.value = Date de début
relatorioSaldosContratosController.lblEstadoBilhete.value = Statut du billet
relatorioSaldosContratosController.lblFaturado.value = Facturé
relatorioSaldosContratosController.lblGrupoContrato.value = Groupe contractuel
relatorioSaldosContratosController.lblNaoFaturado.value = Non facturé
relatorioSaldosContratosController.lblNumContrato.value = Numéro de contrat
relatorioSaldosContratosController.lblTodos.value = Tous
relatorioSaldosContratosController.window.title = Rapport sur les soldes des contrats
relatorioSapController.MGS.alertaArquivoRemessaNaoGerado = Le fichier d'expédition n'a pas pu être créé, veuillez contacter le support. relatorioSapController.MGS.alertaArquivoRemessaNaoGerado = Le fichier d'expédition n'a pas pu être créé, veuillez contacter le support.
relatorioSapController.MGS.alertaCNABSemItens = Il n'y a aucun élément de clôture à envoyer à cette société relatorioSapController.MGS.alertaCNABSemItens = Il n'y a aucun élément de clôture à envoyer à cette société
relatorioSapController.MGS.erroIntegraManual = Exécution manuelle de l'intégration avec SAP relatorioSapController.MGS.erroIntegraManual = Exécution manuelle de l'intégration avec SAP

View File

@ -7919,6 +7919,7 @@ indexController.mniRelatorioResumoLinhas.label = Resumo de Linhas
indexController.mniRelatorioResumoVendaOrgaoConcedente.label = Relatorio Resumo Venda Órgao Concedente indexController.mniRelatorioResumoVendaOrgaoConcedente.label = Relatorio Resumo Venda Órgao Concedente
# Retorno Bancario # Retorno Bancario
indexController.mniRelatorioRetornoBancario.label = Retorno Bancário indexController.mniRelatorioRetornoBancario.label = Retorno Bancário
indexController.mniRelatorioSaldosContratos.label = Relatório Saldos de Contratos
indexController.mniRelatorioSap.label = SAP indexController.mniRelatorioSap.label = SAP
indexController.mniRelatorioSegundaVia.label = Segunda Via indexController.mniRelatorioSegundaVia.label = Segunda Via
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Serviço Bloqueado na Venda Internet indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Serviço Bloqueado na Venda Internet
@ -9768,6 +9769,15 @@ relatorioRetornoBancario.MSG.extensaoInvalida = Somente arquivos no formato de r
relatorioRetornoBancario.fileupload.label = Selecionar Arquivo... relatorioRetornoBancario.fileupload.label = Selecionar Arquivo...
relatorioRetornoBancario.lbEmpresa.value = Empresa relatorioRetornoBancario.lbEmpresa.value = Empresa
relatorioRetornoBancario.window.title = Processamento de Retorno Bancário relatorioRetornoBancario.window.title = Processamento de Retorno Bancário
relatorioSaldosContratosController.lblDataFinal.value = Data Final
relatorioSaldosContratosController.lblDataInicial.value = Data Inicial
relatorioSaldosContratosController.lblEstadoBilhete.value = Estado Bilhete
relatorioSaldosContratosController.lblFaturado.value = Faturado
relatorioSaldosContratosController.lblGrupoContrato.value = Grupo Contrato
relatorioSaldosContratosController.lblNaoFaturado.value = Não Faturado
relatorioSaldosContratosController.lblNumContrato.value = Num. Contrato
relatorioSaldosContratosController.lblTodos.value = Todos
relatorioSaldosContratosController.window.title = Relatório Saldos de Contratos
relatorioSapController.MGS.alertaArquivoRemessaNaoGerado = Arquivo de remessa não pôde ser criado, favor entrar em contato com o suporte. relatorioSapController.MGS.alertaArquivoRemessaNaoGerado = Arquivo de remessa não pôde ser criado, favor entrar em contato com o suporte.
relatorioSapController.MGS.alertaCNABSemItens = Não há itens fechamento a enviar para esta empresa relatorioSapController.MGS.alertaCNABSemItens = Não há itens fechamento a enviar para esta empresa
relatorioSapController.MGS.erroIntegraManual = Execução manual de integração com SAP relatorioSapController.MGS.erroIntegraManual = Execução manual de integração com SAP

View File

@ -0,0 +1,73 @@
<?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="winFiltroRelatorioSaldosContratos"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioSaldosContratos"
apply="${relatorioSaldosContratosController}"
contentStyle="overflow:auto" width="400px" border="normal">
<grid fixedLayout="true">
<columns>
<column width="30%" />
<column width="70%" />
</columns>
<rows>
<row>
<label
value="${c:l('relatorioSaldosContratosController.lblDataInicial.value')}" />
<datebox id="datInicial" width="100%" mold="rounded"
format="dd/MM/yyyy" maxlength="10" />
</row>
<row>
<label
value="${c:l('relatorioSaldosContratosController.lblDataFinal.value')}" />
<datebox id="datFinal" width="100%" mold="rounded"
format="dd/MM/yyyy" maxlength="10" />
</row>
<row spans="1,3">
<label
value="${c:l('relatorioOrigemDestinoController.lblEmpresa.value')}" />
<combobox id="cmbEmpresa"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa"
mold="rounded" buttonVisible="true" width="40%"
model="@{winFiltroRelatorioSaldosContratos$composer.lsEmpresa}" />
</row>
<row spans="1,3">
<label
value="${c:l('relatorioSaldosContratosController.lblNumContrato.value')}" />
<textbox id="txtNumContrato" maxlength="10"
width="100%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
<row spans="1,3">
<label
value="${c:l('relatorioSaldosContratosController.lblGrupoContrato.value')}" />
<combobox id="cmbGrupoContrato"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" buttonVisible="true" width="40%"
model="@{winFiltroRelatorioSaldosContratos$composer.lsGrupoContrato}" />
</row>
<row>
<label value="${c:l('label.status')}" />
<radiogroup id="rdgStatus">
<radio id="rdgAtivo" selected="true"
label="${c:l('label.status.ativo')}" value="1" />
<radio id="rdgDigitado"
label="${c:l('label.status.digitado')}" value="2"
style="padding: 60px; " />
<radio id="rdgInativo"
label="${c:l('label.status.inativo')}" value="0"
style="padding: 5px; " />
</radiogroup>
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>