fixes bug#17730
dev:Valdir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@100431 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
5e3a58ddf4
commit
48c1fee10d
|
@ -3,231 +3,65 @@ package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.commons.lang.math.NumberUtils;
|
import org.apache.commons.lang.math.NumberUtils;
|
||||||
import org.slf4j.Logger;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioAgenciaFechamentoBean;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioAgenciaFechamentoAntigoBean;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
public class RelatorioAgenciaFechamento extends Relatorio {
|
public abstract class RelatorioAgenciaFechamento extends Relatorio {
|
||||||
|
|
||||||
private static Logger log = org.slf4j.LoggerFactory.getLogger(RelatorioAgenciaFechamento.class);
|
protected List<RelatorioAgenciaFechamentoAntigoBean> lsDadosRelatorio;
|
||||||
|
|
||||||
private List<RelatorioAgenciaFechamentoBean> lsDadosRelatorio;
|
protected TipoRelatorioFechamentoEnum tipoRelatorio;
|
||||||
|
|
||||||
public RelatorioAgenciaFechamento(Map<String, Object> parametros, Connection conexao) throws Exception {
|
public RelatorioAgenciaFechamento(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
super(parametros, conexao);
|
super(parametros, conexao);
|
||||||
|
}
|
||||||
|
|
||||||
this.setCustomDataSource(new DataSource(this) {
|
|
||||||
@Override
|
@Override
|
||||||
public void initDados() throws Exception {
|
protected void processaParametros() throws Exception {
|
||||||
|
|
||||||
Connection conexao = this.relatorio.getConexao();
|
|
||||||
|
|
||||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
|
||||||
|
|
||||||
String fecInicio = parametros.get("fecInicio").toString() + " 00:00:00";
|
String fecInicio = parametros.get("fecInicio").toString() + " 00:00:00";
|
||||||
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
|
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
|
||||||
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
|
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
|
||||||
String empresaNome = parametros.get("empresaNome") != null ? parametros.get("empresaNome").toString() : "";
|
String empresaNome = parametros.get("empresaNome") != null ? parametros.get("empresaNome").toString() : "";
|
||||||
String puntoVenta = parametros.get("NUMPUNTOVENTA") != null ? parametros.get("NUMPUNTOVENTA").toString() : null;
|
String puntoVenta = parametros.get("NUMPUNTOVENTA") != null ? parametros.get("NUMPUNTOVENTA").toString() : null;
|
||||||
|
parametros.put("tipoRelatorio", tipoRelatorio.name());
|
||||||
|
lsDadosRelatorio = new ArrayList<RelatorioAgenciaFechamentoAntigoBean>();
|
||||||
|
|
||||||
lsDadosRelatorio = new ArrayList<RelatorioAgenciaFechamentoBean>();
|
carregarDadosTotaisVenda(fecInicio, fecFinal, empresa, empresaNome, puntoVenta);
|
||||||
|
|
||||||
String sql = carregarDadosTotaisdeVenda(puntoVenta, empresa);
|
|
||||||
|
|
||||||
log.debug(sql);
|
|
||||||
|
|
||||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
|
||||||
ResultSet rset1 = null;
|
|
||||||
ResultSet rset2 = null;
|
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
|
|
||||||
|
|
||||||
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
|
||||||
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
|
||||||
|
|
||||||
rset1= stmt.executeQuery();
|
|
||||||
|
|
||||||
while (rset1.next()) {
|
|
||||||
|
|
||||||
Integer qtdExcesso = NumberUtils.INTEGER_ZERO;
|
|
||||||
Integer qtdSeguro = NumberUtils.INTEGER_ZERO;
|
|
||||||
|
|
||||||
BigDecimal valorExcesso = BigDecimal.ZERO;
|
|
||||||
BigDecimal valorSeguro = BigDecimal.ZERO;
|
|
||||||
|
|
||||||
RelatorioAgenciaFechamentoBean agenciaFechamento = new RelatorioAgenciaFechamentoBean();
|
|
||||||
|
|
||||||
agenciaFechamento.setEmpresa(empresaNome);
|
|
||||||
String puntoVentaId = rset1.getString("codigo");
|
|
||||||
agenciaFechamento.setDescricao(rset1.getString("descricao"));
|
|
||||||
|
|
||||||
agenciaFechamento.setValorBilhete(rset1.getBigDecimal("valorBilhete"));
|
|
||||||
agenciaFechamento.setValorVch(rset1.getBigDecimal("valorVch"));
|
|
||||||
agenciaFechamento.setValorInternet(rset1.getBigDecimal("valorInternet"));
|
|
||||||
agenciaFechamento.setValorCancelado(rset1.getBigDecimal("valorCancelado"));
|
|
||||||
agenciaFechamento.setValorEstornado(rset1.getBigDecimal("valorEstornado"));
|
|
||||||
valorSeguro = rset1.getBigDecimal("valorSeguro");
|
|
||||||
|
|
||||||
agenciaFechamento.setQtdBilhete(rset1.getInt("qtdBilhete"));
|
|
||||||
agenciaFechamento.setQtdVch(rset1.getInt("qtdVch"));
|
|
||||||
agenciaFechamento.setQtdInternet(rset1.getInt("qtdInternet"));
|
|
||||||
agenciaFechamento.setQtdCancelado(rset1.getInt("qtdCancelado"));
|
|
||||||
agenciaFechamento.setQtdEstornado(rset1.getInt("qtdEstornado"));
|
|
||||||
qtdSeguro = rset1.getInt("qtdSeguro");
|
|
||||||
|
|
||||||
String strQueryEventoExtra = carregarEventosExtras(puntoVentaId, empresa);
|
|
||||||
stmt = new NamedParameterStatement(conexao, strQueryEventoExtra);
|
|
||||||
|
|
||||||
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
|
||||||
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
|
||||||
|
|
||||||
rset2 = stmt.executeQuery();
|
|
||||||
|
|
||||||
if (rset2.next()) {
|
|
||||||
|
|
||||||
qtdSeguro += rset2.getInt("qtdSeguro");
|
|
||||||
qtdExcesso = rset2.getInt("qtdExcesso");
|
|
||||||
|
|
||||||
valorSeguro = valorSeguro.add(rset2.getBigDecimal("valorSeguro"));
|
|
||||||
valorExcesso = valorExcesso.add(rset2.getBigDecimal("valorExcesso"));
|
|
||||||
}
|
|
||||||
|
|
||||||
agenciaFechamento.setQtdExcesso(qtdExcesso);
|
|
||||||
agenciaFechamento.setQtdSeguro(qtdSeguro);
|
|
||||||
agenciaFechamento.setValorExcesso(valorExcesso);
|
|
||||||
agenciaFechamento.setValorSeguro(valorSeguro);
|
|
||||||
|
|
||||||
lsDadosRelatorio.add(agenciaFechamento);
|
|
||||||
//Estava dando um erro de "máximo de cursores abertos excedido"
|
|
||||||
//Colocado isso o erro parou de ocorrer
|
|
||||||
rset2.getStatement().close();
|
|
||||||
rset2.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
rset1.close();
|
|
||||||
|
|
||||||
if (lsDadosRelatorio.size() > 0) {
|
|
||||||
setLsDadosRelatorio(lsDadosRelatorio);
|
setLsDadosRelatorio(lsDadosRelatorio);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
public abstract StringBuilder carregarDados(String puntoVenta, String empresa);
|
||||||
});
|
|
||||||
|
protected String criarQueryBilhetesVenda(String puntoVenta, String empresa) {
|
||||||
|
StringBuilder sql = this.carregarDados(puntoVenta, empresa);
|
||||||
|
return filtrosPadraoQueryRelatorioFechamento(puntoVenta, empresa, sql);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLsDadosRelatorio(List<RelatorioAgenciaFechamentoBean> lsDadosRelatorio) {
|
protected abstract String criarQueryReceitaDespesa(String puntoVenta, String empresa);
|
||||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
|
||||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
protected void processaParametros() throws Exception {
|
* @param puntoVenta
|
||||||
}
|
* @param empresa
|
||||||
|
* @param sql
|
||||||
private String carregarDadosTotaisdeVenda(String puntoVenta, String empresa) {
|
*/
|
||||||
|
protected String filtrosPadraoQueryRelatorioFechamento(String puntoVenta, String empresa, StringBuilder sql) {
|
||||||
StringBuilder sql = new StringBuilder();
|
|
||||||
sql.append(" SELECT pv.PUNTOVENTA_ID AS codigo, ");
|
|
||||||
sql.append(" pv.nombpuntoventa AS descricao, ");
|
|
||||||
sql.append(" COALESCE(SUM( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND (c.INDREMOTOINVERSO IS NULL ");
|
|
||||||
sql.append(" OR c.INDREMOTOINVERSO =0) ");
|
|
||||||
sql.append(" AND (c.INDSTATUSBOLETO <> 'E' AND c.TIPOVENTA_ID not in (5,12,18)) ");
|
|
||||||
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
|
||||||
sql.append(" ELSE null ");
|
|
||||||
sql.append(" END),0) AS valorBilhete, ");
|
|
||||||
sql.append(" COALESCE(COUNT( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND (c.INDREMOTOINVERSO IS NULL ");
|
|
||||||
sql.append(" OR c.INDREMOTOINVERSO =0) ");
|
|
||||||
sql.append(" AND (c.INDSTATUSBOLETO <> 'E' AND c.TIPOVENTA_ID not in (5,12,18)) ");
|
|
||||||
sql.append(" THEN c.caja_id ");
|
|
||||||
sql.append(" ELSE NULL ");
|
|
||||||
sql.append(" END),0) AS qtdBilhete, ");
|
|
||||||
sql.append(" SUM( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND COALESCE(c.IMPORTESEGURO,0) > 0 ");
|
|
||||||
sql.append(" THEN c.IMPORTESEGURO ");
|
|
||||||
sql.append(" ELSE 0 ");
|
|
||||||
sql.append(" END) AS valorSeguro, ");
|
|
||||||
sql.append(" COALESCE(COUNT( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND COALESCE(c.IMPORTESEGURO,0) > 0 ");
|
|
||||||
sql.append(" THEN 1 ");
|
|
||||||
sql.append(" ELSE NULL ");
|
|
||||||
sql.append(" END),0) AS qtdSeguro, ");
|
|
||||||
sql.append(" COALESCE(SUM( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND (c.INDSTATUSBOLETO = 'E' OR c.TIPOVENTA_ID in (5,18)) ");
|
|
||||||
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
|
||||||
sql.append(" ELSE 0 ");
|
|
||||||
sql.append(" END),0) AS valorVch, ");
|
|
||||||
sql.append(" COALESCE(COUNT( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND (c.INDSTATUSBOLETO = 'E' OR c.TIPOVENTA_ID in (5,18)) ");
|
|
||||||
sql.append(" THEN 1 ");
|
|
||||||
sql.append(" ELSE NULL ");
|
|
||||||
sql.append(" END),0) AS qtdVch, ");
|
|
||||||
sql.append(" COALESCE(SUM( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND c.TIPOVENTA_ID = 12 ");
|
|
||||||
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
|
||||||
sql.append(" ELSE 0 ");
|
|
||||||
sql.append(" END),0) AS valorInternet, ");
|
|
||||||
sql.append(" COALESCE(COUNT( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND c.TIPOVENTA_ID = 12 ");
|
|
||||||
sql.append(" THEN 1 ");
|
|
||||||
sql.append(" ELSE NULL ");
|
|
||||||
sql.append(" END),0) AS qtdInternet, ");
|
|
||||||
sql.append(" COALESCE(SUM( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID = 31 ");
|
|
||||||
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
|
||||||
sql.append(" ELSE 0 ");
|
|
||||||
sql.append(" END),0) AS valorCancelado, ");
|
|
||||||
sql.append(" COALESCE(COUNT( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID = 31 ");
|
|
||||||
sql.append(" THEN 1 ");
|
|
||||||
sql.append(" ELSE NULL ");
|
|
||||||
sql.append(" END),0) AS qtdCancelado, ");
|
|
||||||
sql.append(" COALESCE(SUM( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NOT NULL ");
|
|
||||||
sql.append(" AND c.MOTIVOCANCELACION_ID <> 31 ");
|
|
||||||
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
|
||||||
sql.append(" ELSE 0 ");
|
|
||||||
sql.append(" END),0) AS valorEstornado, ");
|
|
||||||
sql.append(" COALESCE(COUNT( ");
|
|
||||||
sql.append(" CASE ");
|
|
||||||
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NOT NULL ");
|
|
||||||
sql.append(" AND c.MOTIVOCANCELACION_ID <> 31 ");
|
|
||||||
sql.append(" THEN 1 ");
|
|
||||||
sql.append(" ELSE NULL ");
|
|
||||||
sql.append(" END),0) AS qtdEstornado ");
|
|
||||||
sql.append(" ");
|
|
||||||
sql.append(" FROM CAJA c ");
|
sql.append(" FROM CAJA c ");
|
||||||
sql.append(" INNER JOIN PUNTO_VENTA pv ");
|
sql.append(" INNER JOIN PUNTO_VENTA pv ");
|
||||||
sql.append(" ON c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
|
sql.append(" ON c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
|
||||||
|
sql.append(" LEFT JOIN PUNTO_VENTA PV_GERENCIA ON PV_GERENCIA.PUNTOVENTA_ID = PV.PUNTOVENTAPADRE_ID ");
|
||||||
sql.append(" INNER JOIN marca m ");
|
sql.append(" INNER JOIN marca m ");
|
||||||
sql.append(" ON m.marca_id = c.marca_id ");
|
sql.append(" ON m.marca_id = c.marca_id ");
|
||||||
sql.append(" WHERE c.TURNO_ID IS NOT NULL ");
|
sql.append(" WHERE c.TURNO_ID IS NOT NULL ");
|
||||||
|
@ -238,45 +72,148 @@ public class RelatorioAgenciaFechamento extends Relatorio {
|
||||||
sql.append(" AND c.TIPOVENTA_ID <> 6 ");
|
sql.append(" AND c.TIPOVENTA_ID <> 6 ");
|
||||||
sql.append(" AND c.INDREIMPRESION = 0 ");
|
sql.append(" AND c.INDREIMPRESION = 0 ");
|
||||||
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
||||||
sql.append(" AND m.empresa_id = "+empresa+" ");
|
sql.append(" AND m.empresa_id = " + empresa + " ");
|
||||||
}
|
}
|
||||||
sql.append(" GROUP BY pv.PUNTOVENTA_ID, pv.nombpuntoventa ");
|
criarGroupByEOrderBy(sql);
|
||||||
sql.append(" ORDER BY pv.nombpuntoventa ");
|
|
||||||
|
|
||||||
return sql.toString();
|
return sql.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param sql
|
||||||
|
*/
|
||||||
|
protected abstract void criarGroupByEOrderBy(StringBuilder sql);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param fecInicio
|
||||||
|
* @param fecFinal
|
||||||
|
* @param empresa
|
||||||
|
* @param empresaNome
|
||||||
|
* @param puntoVenta
|
||||||
|
* @throws SQLException
|
||||||
|
* @throws ParseException
|
||||||
|
*/
|
||||||
|
protected void carregarDadosTotaisVenda(String fecInicio, String fecFinal, String empresa, String empresaNome, String puntoVenta) throws SQLException, ParseException {
|
||||||
|
|
||||||
|
NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), criarQueryBilhetesVenda(puntoVenta, empresa));
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
|
||||||
|
|
||||||
|
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
||||||
|
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
||||||
|
|
||||||
|
ResultSet rset1 = stmt.executeQuery();
|
||||||
|
|
||||||
|
while (rset1.next()) {
|
||||||
|
|
||||||
|
RelatorioAgenciaFechamentoAntigoBean agenciaFechamento = new RelatorioAgenciaFechamentoAntigoBean();
|
||||||
|
BigDecimal total = BigDecimal.ZERO;
|
||||||
|
BigDecimal vendido = BigDecimal.ZERO;
|
||||||
|
|
||||||
|
String puntoVentaId = rset1.getString("puntoventaId");
|
||||||
|
|
||||||
|
Integer qtdevendido = rset1.getInt("qtdevendido");
|
||||||
|
Integer qtdedigitado = rset1.getInt("qtdedigitado");
|
||||||
|
Integer qtdeAnulado = rset1.getInt("qtdeAnulado");
|
||||||
|
Integer qtdeDevolvido = rset1.getInt("qtdeDevolvido");
|
||||||
|
Integer qtdeTotal = null;
|
||||||
|
|
||||||
|
vendido = rset1.getBigDecimal("vendido");
|
||||||
|
BigDecimal digitado = rset1.getBigDecimal("digitado");
|
||||||
|
BigDecimal anulado = rset1.getBigDecimal("anulado");
|
||||||
|
BigDecimal devolvido = rset1.getBigDecimal("devolvido");
|
||||||
|
|
||||||
|
agenciaFechamento.setEmpresa(empresaNome);
|
||||||
|
|
||||||
|
agenciaFechamento.setCodigo(rset1.getString("codigo"));
|
||||||
|
agenciaFechamento.setDescricao(rset1.getString("descricao"));
|
||||||
|
if (TipoRelatorioFechamentoEnum.DIARIO.equals(tipoRelatorio)) {
|
||||||
|
agenciaFechamento.setData(rset1.getDate("data"));
|
||||||
|
}
|
||||||
|
if (!TipoRelatorioFechamentoEnum.ANTIGO.equals(tipoRelatorio)) {
|
||||||
|
agenciaFechamento.setSubordinado(rset1.getString("subordinado"));
|
||||||
|
}
|
||||||
|
agenciaFechamento.setQtdeVendido(qtdevendido != null ? qtdevendido : NumberUtils.INTEGER_ZERO);
|
||||||
|
agenciaFechamento.setQtdeDigitado(qtdedigitado != null ? qtdedigitado : NumberUtils.INTEGER_ZERO);
|
||||||
|
agenciaFechamento.setQtdeAnulado(qtdeAnulado != null ? qtdeAnulado : NumberUtils.INTEGER_ZERO);
|
||||||
|
agenciaFechamento.setQtdeDevolvido(qtdeDevolvido != null ? qtdeDevolvido : NumberUtils.INTEGER_ZERO);
|
||||||
|
|
||||||
|
qtdeTotal = ((qtdevendido != null ? qtdevendido : NumberUtils.INTEGER_ZERO) + (qtdedigitado != null ? qtdedigitado : NumberUtils.INTEGER_ZERO))
|
||||||
|
- ((qtdeAnulado != null ? qtdeAnulado : NumberUtils.INTEGER_ZERO) + (qtdeDevolvido != null ? qtdeDevolvido : NumberUtils.INTEGER_ZERO));
|
||||||
|
|
||||||
|
if (qtdeTotal < 0) {
|
||||||
|
qtdeTotal = NumberUtils.INTEGER_ZERO;
|
||||||
|
}
|
||||||
|
|
||||||
|
agenciaFechamento.setQtdeTotal(qtdeTotal);
|
||||||
|
|
||||||
|
agenciaFechamento.setDigitado(digitado != null ? digitado : BigDecimal.ZERO);
|
||||||
|
agenciaFechamento.setAnulado(anulado != null ? anulado : BigDecimal.ZERO);
|
||||||
|
agenciaFechamento.setDevolvido(devolvido != null ? devolvido : BigDecimal.ZERO);
|
||||||
|
|
||||||
|
total = total.add(vendido != null ? vendido : BigDecimal.ZERO);
|
||||||
|
total = total.add(digitado != null ? digitado : BigDecimal.ZERO);
|
||||||
|
total = total.subtract(anulado != null ? anulado : BigDecimal.ZERO);
|
||||||
|
total = total.subtract(devolvido != null ? devolvido : BigDecimal.ZERO);
|
||||||
|
|
||||||
|
carregarDadosReceitaDespesa(fecInicio, fecFinal, empresa, sdf, agenciaFechamento, total, vendido, puntoVentaId);
|
||||||
|
lsDadosRelatorio.add(agenciaFechamento);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String carregarEventosExtras(String puntoVenta, String empresa) {
|
public void setLsDadosRelatorio(List<RelatorioAgenciaFechamentoAntigoBean> lsDadosRelatorio) {
|
||||||
|
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||||
StringBuilder sql = new StringBuilder();
|
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||||
sql.append(" SELECT ");
|
|
||||||
sql.append(" COALESCE(SUM(CASE WHEN tee.CVETIPOEVENTO = 'EXCESSO_BAGAGEM' THEN cd.PRECIO ELSE NULL END),0) AS valorExcesso, ");
|
|
||||||
sql.append(" COALESCE(COUNT(CASE WHEN tee.CVETIPOEVENTO = 'EXCESSO_BAGAGEM' THEN 1 ELSE NULL END),0) as qtdExcesso, ");
|
|
||||||
sql.append(" COALESCE(SUM(CASE WHEN tee.CVETIPOEVENTO = 'SEGURO_OPCIONAL' THEN cd.PRECIO ELSE NULL END),0) AS valorSeguro, ");
|
|
||||||
sql.append(" COALESCE(COUNT(CASE WHEN tee.CVETIPOEVENTO = 'SEGURO_OPCIONAL' THEN 1 ELSE NULL END),0) as qtdSeguro ");
|
|
||||||
sql.append(" FROM CAJA_DIVERSOS cd ");
|
|
||||||
sql.append(" INNER JOIN EVENTO_EXTRA ee ");
|
|
||||||
sql.append(" ON ee.EVENTOEXTRA_ID = cd.EVENTOEXTRA_ID ");
|
|
||||||
sql.append(" INNER JOIN TIPO_EVENTO_EXTRA tee ");
|
|
||||||
sql.append(" ON ee.TIPOEVENTOEXTRA_ID = tee.TIPOEVENTOEXTRA_ID ");
|
|
||||||
sql.append(" WHERE cd.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND ee.activo = 1 ");
|
|
||||||
sql.append(" AND cd.TURNO_ID IS NOT NULL ");
|
|
||||||
sql.append(" AND tee.CVETIPOEVENTO in ('EXCESSO_BAGAGEM', 'SEGURO_OPCIONAL' ) ");
|
|
||||||
sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate ");
|
|
||||||
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
|
||||||
sql.append(" AND cd.PUNTOVENTA_ID = ").append(puntoVenta);
|
|
||||||
}
|
|
||||||
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
|
||||||
sql.append(" AND ee.EMPRESA_ID = "+empresa+" ");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param fecInicio
|
||||||
|
* @param fecFinal
|
||||||
|
* @param empresa
|
||||||
|
* @param sdf
|
||||||
|
* @param agenciaFechamento
|
||||||
|
* @param total
|
||||||
|
* @param vendido
|
||||||
|
* @param puntoVentaId
|
||||||
|
* @throws SQLException
|
||||||
|
* @throws ParseException
|
||||||
|
*/
|
||||||
|
protected void carregarDadosReceitaDespesa(String fecInicio, String fecFinal, String empresa, SimpleDateFormat sdf, RelatorioAgenciaFechamentoAntigoBean agenciaFechamento, BigDecimal total, BigDecimal vendido, String puntoVentaId) throws SQLException, ParseException {
|
||||||
|
NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), criarQueryReceitaDespesa(puntoVentaId, empresa));
|
||||||
|
|
||||||
log.debug(sql.toString());
|
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
||||||
|
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
||||||
|
|
||||||
return sql.toString();
|
ResultSet rset2 = stmt.executeQuery();
|
||||||
|
|
||||||
|
if (rset2.next()) {
|
||||||
|
|
||||||
|
Integer qtdedespesa = rset2.getInt("qtdedespesa");
|
||||||
|
BigDecimal receita = rset2.getBigDecimal("receita");
|
||||||
|
BigDecimal despesa = rset2.getBigDecimal("despesa");
|
||||||
|
|
||||||
|
agenciaFechamento.setQtdeDespesa(qtdedespesa != null ? qtdedespesa : NumberUtils.INTEGER_ZERO);
|
||||||
|
agenciaFechamento.setReceita(receita != null ? receita : BigDecimal.ZERO);
|
||||||
|
agenciaFechamento.setDespesa(despesa != null ? despesa : BigDecimal.ZERO);
|
||||||
|
|
||||||
|
total = total.add(receita != null ? receita : BigDecimal.ZERO);
|
||||||
|
total = total.subtract(despesa != null ? despesa : BigDecimal.ZERO);
|
||||||
|
|
||||||
|
agenciaFechamento.setVendido(vendido != null ? vendido : BigDecimal.ZERO);
|
||||||
|
agenciaFechamento.setTotal(total);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
agenciaFechamento.setQtdeDespesa(NumberUtils.INTEGER_ZERO);
|
||||||
|
agenciaFechamento.setReceita(BigDecimal.ZERO);
|
||||||
|
agenciaFechamento.setDespesa(BigDecimal.ZERO);
|
||||||
|
agenciaFechamento.setVendido(vendido != null ? vendido : BigDecimal.ZERO);
|
||||||
|
agenciaFechamento.setTotal(total);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Estava dando um erro de "máximo de cursores abertos excedido"
|
||||||
|
// Colocado isso o erro parou de ocorrer
|
||||||
|
rset2.getStatement().close();
|
||||||
|
rset2.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,165 +1,17 @@
|
||||||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
public class RelatorioAgenciaFechamentoAntigo extends RelatorioAgenciaFechamento {
|
||||||
|
|
||||||
import org.apache.commons.lang.math.NumberUtils;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioAgenciaFechamentoAntigoBean;
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioAgenciaFechamentoBean;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
|
||||||
|
|
||||||
public class RelatorioAgenciaFechamentoAntigo extends Relatorio {
|
|
||||||
|
|
||||||
private List<RelatorioAgenciaFechamentoAntigoBean> lsDadosRelatorio;
|
|
||||||
|
|
||||||
public RelatorioAgenciaFechamentoAntigo(Map<String, Object> parametros, Connection conexao) throws Exception {
|
public RelatorioAgenciaFechamentoAntigo(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
super(parametros, conexao);
|
super(parametros, conexao);
|
||||||
|
tipoRelatorio = TipoRelatorioFechamentoEnum.ANTIGO;
|
||||||
this.setCustomDataSource(new DataSource(this) {
|
|
||||||
@Override
|
|
||||||
public void initDados() throws Exception {
|
|
||||||
|
|
||||||
Connection conexao = this.relatorio.getConexao();
|
|
||||||
|
|
||||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
|
||||||
|
|
||||||
String fecInicio = parametros.get("fecInicio").toString() + " 00:00:00";
|
|
||||||
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
|
|
||||||
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
|
|
||||||
String empresaNome = parametros.get("empresaNome") != null ? parametros.get("empresaNome").toString() : "";
|
|
||||||
String puntoVenta = parametros.get("NUMPUNTOVENTA") != null ? parametros.get("NUMPUNTOVENTA").toString() : null;
|
|
||||||
|
|
||||||
lsDadosRelatorio = new ArrayList<RelatorioAgenciaFechamentoAntigoBean>();
|
|
||||||
|
|
||||||
String sql = carregarDadosTotaisdeVenda(puntoVenta, empresa);
|
|
||||||
|
|
||||||
System.out.println(sql);
|
|
||||||
|
|
||||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
|
||||||
ResultSet rset1 = null;
|
|
||||||
ResultSet rset2 = null;
|
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
|
|
||||||
|
|
||||||
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
|
||||||
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
|
||||||
|
|
||||||
rset1= stmt.executeQuery();
|
|
||||||
|
|
||||||
while (rset1.next()) {
|
|
||||||
|
|
||||||
RelatorioAgenciaFechamentoAntigoBean agenciaFechamento = new RelatorioAgenciaFechamentoAntigoBean();
|
|
||||||
BigDecimal total = BigDecimal.ZERO;
|
|
||||||
BigDecimal vendido = BigDecimal.ZERO;
|
|
||||||
|
|
||||||
String puntoVentaId = rset1.getString("codigo");
|
|
||||||
|
|
||||||
Integer qtdevendido = rset1.getInt("qtdevendido");
|
|
||||||
Integer qtdedigitado = rset1.getInt("qtdedigitado");
|
|
||||||
Integer qtdeAnulado = rset1.getInt("qtdeAnulado");
|
|
||||||
Integer qtdeDevolvido = rset1.getInt("qtdeDevolvido");
|
|
||||||
Integer qtdeTotal = null;
|
|
||||||
|
|
||||||
vendido = rset1.getBigDecimal("vendido");
|
|
||||||
BigDecimal digitado = rset1.getBigDecimal("digitado");
|
|
||||||
BigDecimal anulado = rset1.getBigDecimal("anulado");
|
|
||||||
BigDecimal devolvido = rset1.getBigDecimal("devolvido");
|
|
||||||
|
|
||||||
agenciaFechamento.setEmpresa(empresaNome);
|
|
||||||
|
|
||||||
agenciaFechamento.setCodigo(rset1.getString("codigo"));
|
|
||||||
agenciaFechamento.setDescricao(rset1.getString("descricao"));
|
|
||||||
|
|
||||||
agenciaFechamento.setQtdeVendido(qtdevendido != null ? qtdevendido : NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setQtdeDigitado(qtdedigitado != null ? qtdedigitado : NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setQtdeAnulado(qtdeAnulado != null ? qtdeAnulado : NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setQtdeDevolvido(qtdeDevolvido != null ? qtdeDevolvido : NumberUtils.INTEGER_ZERO);
|
|
||||||
|
|
||||||
qtdeTotal = ((qtdevendido != null ? qtdevendido : NumberUtils.INTEGER_ZERO) + (qtdedigitado != null ? qtdedigitado : NumberUtils.INTEGER_ZERO))
|
|
||||||
- ((qtdeAnulado != null ? qtdeAnulado : NumberUtils.INTEGER_ZERO) + (qtdeDevolvido != null ? qtdeDevolvido : NumberUtils.INTEGER_ZERO));
|
|
||||||
|
|
||||||
if (qtdeTotal < 0) {
|
|
||||||
qtdeTotal = NumberUtils.INTEGER_ZERO;
|
|
||||||
}
|
|
||||||
|
|
||||||
agenciaFechamento.setQtdeTotal(qtdeTotal);
|
|
||||||
|
|
||||||
agenciaFechamento.setDigitado(digitado != null ? digitado : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setAnulado(anulado != null ? anulado : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setDevolvido(devolvido != null ? devolvido : BigDecimal.ZERO);
|
|
||||||
|
|
||||||
total = total.add(vendido != null ? vendido : BigDecimal.ZERO);
|
|
||||||
total = total.add(digitado != null ? digitado : BigDecimal.ZERO);
|
|
||||||
total = total.subtract(anulado != null ? anulado : BigDecimal.ZERO);
|
|
||||||
total = total.subtract(devolvido != null ? devolvido : BigDecimal.ZERO);
|
|
||||||
String strQueryReceitaDespesas = carregarDadosReceitaDespesa(puntoVentaId, empresa);
|
|
||||||
stmt = new NamedParameterStatement(conexao, strQueryReceitaDespesas);
|
|
||||||
|
|
||||||
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
|
||||||
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
|
||||||
|
|
||||||
rset2 = stmt.executeQuery();
|
|
||||||
|
|
||||||
if (rset2.next()) {
|
|
||||||
|
|
||||||
Integer qtdedespesa = rset2.getInt("qtdedespesa");
|
|
||||||
BigDecimal receita = rset2.getBigDecimal("receita");
|
|
||||||
BigDecimal despesa = rset2.getBigDecimal("despesa");
|
|
||||||
|
|
||||||
agenciaFechamento.setQtdeDespesa(qtdedespesa != null ? qtdedespesa : NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setReceita(receita != null ? receita : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setDespesa(despesa != null ? despesa : BigDecimal.ZERO);
|
|
||||||
|
|
||||||
total = total.add(receita != null ? receita : BigDecimal.ZERO);
|
|
||||||
total = total.subtract(despesa != null ? despesa : BigDecimal.ZERO);
|
|
||||||
|
|
||||||
agenciaFechamento.setVendido(vendido != null ? vendido : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setTotal(total);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
agenciaFechamento.setQtdeDespesa(NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setReceita(BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setDespesa(BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setVendido(vendido != null ? vendido : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setTotal(total);
|
|
||||||
}
|
|
||||||
|
|
||||||
lsDadosRelatorio.add(agenciaFechamento);
|
|
||||||
//Estava dando um erro de "máximo de cursores abertos excedido"
|
|
||||||
//Colocado isso o erro parou de ocorrer
|
|
||||||
rset2.getStatement().close();
|
|
||||||
rset2.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lsDadosRelatorio.size() > 0) {
|
|
||||||
|
|
||||||
setLsDadosRelatorio(lsDadosRelatorio);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsDadosRelatorio(List<RelatorioAgenciaFechamentoAntigoBean> lsDadosRelatorio) {
|
|
||||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
|
||||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void processaParametros() throws Exception {
|
public StringBuilder carregarDados(String puntoVenta, String empresa) {
|
||||||
}
|
|
||||||
|
|
||||||
private String carregarDadosTotaisdeVenda(String puntoVenta, String empresa) {
|
|
||||||
|
|
||||||
StringBuilder sql = new StringBuilder();
|
StringBuilder sql = new StringBuilder();
|
||||||
sql.append(" SELECT ");
|
sql.append(" SELECT ");
|
||||||
sql.append(" pv.PUNTOVENTA_ID AS codigo, ");
|
sql.append(" pv.PUNTOVENTA_ID AS codigo, ");
|
||||||
|
@ -186,43 +38,13 @@ public class RelatorioAgenciaFechamentoAntigo extends Relatorio {
|
||||||
sql.append(" ");
|
sql.append(" ");
|
||||||
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID = 32 THEN ( ");
|
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID = 32 THEN ( ");
|
||||||
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
||||||
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS devolvido ");
|
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS devolvido, ");
|
||||||
sql.append(" ");
|
sql.append(" pv.PUNTOVENTA_ID AS puntoventaId ");
|
||||||
sql.append(" ");
|
return sql;
|
||||||
sql.append(" FROM CAJA c ");
|
|
||||||
sql.append(" INNER JOIN PUNTO_VENTA pv ON c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
|
|
||||||
sql.append(" inner join marca m on m.marca_id = c.marca_id ");
|
|
||||||
sql.append(" WHERE c.TURNO_ID IS NOT NULL ");
|
|
||||||
sql.append(" AND c.FECCORTE BETWEEN :de AND :ate ");
|
|
||||||
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
|
||||||
sql.append(" AND c.PUNTOVENTA_ID in (" + puntoVenta + ") ");
|
|
||||||
}
|
|
||||||
sql.append(" AND c.TIPOVENTA_ID <> 6 ");
|
|
||||||
sql.append(" AND c.INDREIMPRESION = 0 ");
|
|
||||||
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
|
||||||
sql.append(" AND m.empresa_id = "+empresa+" ");
|
|
||||||
}
|
|
||||||
sql.append(" GROUP BY pv.PUNTOVENTA_ID , pv.nombpuntoventa ");
|
|
||||||
sql.append(" ORDER BY pv.PUNTOVENTA_ID , pv.nombpuntoventa ");
|
|
||||||
|
|
||||||
return sql.toString();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String carregaAgenciasComVenda() {
|
@Override
|
||||||
|
protected String criarQueryReceitaDespesa(String puntoVenta, String empresa) {
|
||||||
StringBuilder sql = new StringBuilder();
|
|
||||||
sql.append(" SELECT DISTINCT cc.PUNTOVENTA_ID ");
|
|
||||||
sql.append(" FROM CONTA_CORRENTE_PTOVTA cc ");
|
|
||||||
sql.append(" WHERE cc.FECHOROPERACION BETWEEN :de AND :ate ");
|
|
||||||
sql.append(" and cc.EMPRESA_ID = :empresaId ");
|
|
||||||
|
|
||||||
return sql.toString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private String carregarDadosReceitaDespesa(String puntoVenta, String empresa) {
|
|
||||||
|
|
||||||
StringBuilder sql = new StringBuilder();
|
StringBuilder sql = new StringBuilder();
|
||||||
sql.append(" SELECT ");
|
sql.append(" SELECT ");
|
||||||
sql.append(" COALESCE(COUNT(CASE WHEN cdp.IMPORTE < 0 THEN 1 ELSE NULL END),0) as qtdedespesa, ");
|
sql.append(" COALESCE(COUNT(CASE WHEN cdp.IMPORTE < 0 THEN 1 ELSE NULL END),0) as qtdedespesa, ");
|
||||||
|
@ -238,26 +60,20 @@ public class RelatorioAgenciaFechamentoAntigo extends Relatorio {
|
||||||
sql.append(" AND cd.TURNO_ID IS NOT NULL ");
|
sql.append(" AND cd.TURNO_ID IS NOT NULL ");
|
||||||
sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate ");
|
sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate ");
|
||||||
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
||||||
sql.append(" AND cd.PUNTOVENTA_ID = "+puntoVenta+" ");
|
sql.append(" AND cd.PUNTOVENTA_ID = " + puntoVenta + " ");
|
||||||
}
|
}
|
||||||
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
||||||
sql.append(" AND ee.EMPRESA_ID = "+empresa+" ");
|
sql.append(" AND ee.EMPRESA_ID = " + empresa + " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return sql.toString();
|
return sql.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void criarGroupByEOrderBy(StringBuilder sql) {
|
||||||
|
sql.append(" GROUP BY pv.PUNTOVENTA_ID , pv.nombpuntoventa ");
|
||||||
|
sql.append(" ORDER BY pv.PUNTOVENTA_ID , pv.nombpuntoventa ");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String carregarNomeEmpresa() {
|
|
||||||
|
|
||||||
StringBuilder sql = new StringBuilder();
|
|
||||||
sql.append(" SELECT ");
|
|
||||||
sql.append(" NOMBEMPRESA ");
|
|
||||||
sql.append(" FROM EMPRESA ");
|
|
||||||
sql.append(" WHERE EMPRESA_ID=:empresaId ");
|
|
||||||
|
|
||||||
return sql.toString();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,75 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class RelatorioAgenciaFechamentoDiario extends RelatorioAgenciaFechamento {
|
||||||
|
|
||||||
|
public RelatorioAgenciaFechamentoDiario(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
|
super(parametros, conexao);
|
||||||
|
tipoRelatorio = TipoRelatorioFechamentoEnum.DIARIO;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String criarQueryReceitaDespesa(String puntoVenta, String empresa) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
sql.append(" SELECT ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN cdp.IMPORTE < 0 THEN 1 ELSE NULL END),0) as qtdedespesa, ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN cdp.IMPORTE > 0 THEN cdp.IMPORTE ELSE NULL END),0) AS receita, ");
|
||||||
|
sql.append(" COALESCE(ABS(SUM(CASE WHEN cdp.IMPORTE < 0 THEN cdp.IMPORTE ELSE NULL END)),0) AS despesa ");
|
||||||
|
sql.append(" FROM CAJA_DIVERSOS cd, ");
|
||||||
|
sql.append(" CAJA_DIVERSOS_PAGO cdp, ");
|
||||||
|
sql.append(" EVENTO_EXTRA ee ");
|
||||||
|
sql.append(" WHERE cd.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND ee.EVENTOEXTRA_ID = cd.EVENTOEXTRA_ID ");
|
||||||
|
sql.append(" AND cdp.CAJADIVERSOS_ID = cd.CAJADIVERSOS_ID ");
|
||||||
|
sql.append(" AND ee.activo = 1 ");
|
||||||
|
sql.append(" AND cd.TURNO_ID IS NOT NULL ");
|
||||||
|
sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate ");
|
||||||
|
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
||||||
|
sql.append(" AND cd.PUNTOVENTA_ID = " + puntoVenta + " ");
|
||||||
|
}
|
||||||
|
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
||||||
|
sql.append(" AND ee.EMPRESA_ID = " + empresa + " ");
|
||||||
|
}
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StringBuilder carregarDados(String puntoVenta, String empresa) {
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
sql.append(" SELECT ");
|
||||||
|
sql.append(" pv.NUMPUNTOVENTA AS codigo, ");
|
||||||
|
sql.append(" pv.nombpuntoventa AS descricao, ");
|
||||||
|
sql.append(" c.feccorte AS data, ");
|
||||||
|
sql.append(" PV_GERENCIA.NUMPUNTOVENTA AS subordinado, ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and (c.INDREMOTOINVERSO is null or c.INDREMOTOINVERSO =0) THEN c.caja_id ELSE NULL END),0) AS qtdevendido, ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN c.INDREMOTOINVERSO = 1 THEN 1 ELSE NULL END),0) AS qtdedigitado, ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID = 31 THEN 1 ELSE NULL END),0) AS qtdeAnulado, ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID = 32 THEN 1 ELSE NULL END),0) AS qtdeDevolvido, ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and (c.INDREMOTOINVERSO is null or c.INDREMOTOINVERSO =0) THEN ( ");
|
||||||
|
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
||||||
|
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS vendido, ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and c.INDREMOTOINVERSO = 1 THEN ( ");
|
||||||
|
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
||||||
|
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS digitado, ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID = 31 THEN ( ");
|
||||||
|
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
||||||
|
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS anulado, ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID = 32 THEN ( ");
|
||||||
|
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
||||||
|
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS devolvido, ");
|
||||||
|
sql.append(" pv.PUNTOVENTA_ID AS puntoventaId ");
|
||||||
|
return sql;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void criarGroupByEOrderBy(StringBuilder sql) {
|
||||||
|
sql.append(" GROUP BY pv.NUMPUNTOVENTA , pv.nombpuntoventa, pv.puntoventa_id, c.feccorte, PV_GERENCIA.NUMPUNTOVENTA ");
|
||||||
|
sql.append(" ORDER BY pv.nombpuntoventa, c.feccorte ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,283 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.math.NumberUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioAgenciaFechamentoBean;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
|
public class RelatorioAgenciaFechamentoNovo extends Relatorio {
|
||||||
|
|
||||||
|
private static Logger log = LoggerFactory.getLogger(RelatorioAgenciaFechamentoNovo.class);
|
||||||
|
|
||||||
|
private List<RelatorioAgenciaFechamentoBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
public RelatorioAgenciaFechamentoNovo(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
|
super(parametros, conexao);
|
||||||
|
|
||||||
|
this.setCustomDataSource(new DataSource(this) {
|
||||||
|
@Override
|
||||||
|
public void initDados() throws Exception {
|
||||||
|
|
||||||
|
Connection conexao = this.relatorio.getConexao();
|
||||||
|
|
||||||
|
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||||
|
|
||||||
|
String fecInicio = parametros.get("fecInicio").toString() + " 00:00:00";
|
||||||
|
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
|
||||||
|
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
|
||||||
|
String empresaNome = parametros.get("empresaNome") != null ? parametros.get("empresaNome").toString() : "";
|
||||||
|
String puntoVenta = parametros.get("NUMPUNTOVENTA") != null ? parametros.get("NUMPUNTOVENTA").toString() : null;
|
||||||
|
|
||||||
|
lsDadosRelatorio = new ArrayList<RelatorioAgenciaFechamentoBean>();
|
||||||
|
|
||||||
|
String sql = carregarDadosTotaisdeVenda(puntoVenta, empresa);
|
||||||
|
|
||||||
|
log.debug(sql);
|
||||||
|
|
||||||
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||||
|
ResultSet rset1 = null;
|
||||||
|
ResultSet rset2 = null;
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
|
||||||
|
|
||||||
|
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
||||||
|
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
||||||
|
|
||||||
|
rset1= stmt.executeQuery();
|
||||||
|
|
||||||
|
while (rset1.next()) {
|
||||||
|
|
||||||
|
Integer qtdExcesso = NumberUtils.INTEGER_ZERO;
|
||||||
|
Integer qtdSeguro = NumberUtils.INTEGER_ZERO;
|
||||||
|
|
||||||
|
BigDecimal valorExcesso = BigDecimal.ZERO;
|
||||||
|
BigDecimal valorSeguro = BigDecimal.ZERO;
|
||||||
|
|
||||||
|
RelatorioAgenciaFechamentoBean agenciaFechamento = new RelatorioAgenciaFechamentoBean();
|
||||||
|
|
||||||
|
agenciaFechamento.setEmpresa(empresaNome);
|
||||||
|
String puntoVentaId = rset1.getString("codigo");
|
||||||
|
agenciaFechamento.setDescricao(rset1.getString("descricao"));
|
||||||
|
|
||||||
|
agenciaFechamento.setValorBilhete(rset1.getBigDecimal("valorBilhete"));
|
||||||
|
agenciaFechamento.setValorVch(rset1.getBigDecimal("valorVch"));
|
||||||
|
agenciaFechamento.setValorInternet(rset1.getBigDecimal("valorInternet"));
|
||||||
|
agenciaFechamento.setValorCancelado(rset1.getBigDecimal("valorCancelado"));
|
||||||
|
agenciaFechamento.setValorEstornado(rset1.getBigDecimal("valorEstornado"));
|
||||||
|
valorSeguro = rset1.getBigDecimal("valorSeguro");
|
||||||
|
|
||||||
|
agenciaFechamento.setQtdBilhete(rset1.getInt("qtdBilhete"));
|
||||||
|
agenciaFechamento.setQtdVch(rset1.getInt("qtdVch"));
|
||||||
|
agenciaFechamento.setQtdInternet(rset1.getInt("qtdInternet"));
|
||||||
|
agenciaFechamento.setQtdCancelado(rset1.getInt("qtdCancelado"));
|
||||||
|
agenciaFechamento.setQtdEstornado(rset1.getInt("qtdEstornado"));
|
||||||
|
qtdSeguro = rset1.getInt("qtdSeguro");
|
||||||
|
|
||||||
|
String strQueryEventoExtra = carregarEventosExtras(puntoVentaId, empresa);
|
||||||
|
stmt = new NamedParameterStatement(conexao, strQueryEventoExtra);
|
||||||
|
|
||||||
|
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
||||||
|
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
||||||
|
|
||||||
|
rset2 = stmt.executeQuery();
|
||||||
|
|
||||||
|
if (rset2.next()) {
|
||||||
|
|
||||||
|
qtdSeguro += rset2.getInt("qtdSeguro");
|
||||||
|
qtdExcesso = rset2.getInt("qtdExcesso");
|
||||||
|
|
||||||
|
valorSeguro = valorSeguro.add(rset2.getBigDecimal("valorSeguro"));
|
||||||
|
valorExcesso = valorExcesso.add(rset2.getBigDecimal("valorExcesso"));
|
||||||
|
}
|
||||||
|
|
||||||
|
agenciaFechamento.setQtdExcesso(qtdExcesso);
|
||||||
|
agenciaFechamento.setQtdSeguro(qtdSeguro);
|
||||||
|
agenciaFechamento.setValorExcesso(valorExcesso);
|
||||||
|
agenciaFechamento.setValorSeguro(valorSeguro);
|
||||||
|
|
||||||
|
lsDadosRelatorio.add(agenciaFechamento);
|
||||||
|
//Estava dando um erro de "máximo de cursores abertos excedido"
|
||||||
|
//Colocado isso o erro parou de ocorrer
|
||||||
|
rset2.getStatement().close();
|
||||||
|
rset2.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
rset1.close();
|
||||||
|
|
||||||
|
if (!lsDadosRelatorio.isEmpty()) {
|
||||||
|
setLsDadosRelatorio(lsDadosRelatorio);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDadosRelatorio(List<RelatorioAgenciaFechamentoBean> lsDadosRelatorio) {
|
||||||
|
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||||
|
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void processaParametros() throws Exception {
|
||||||
|
}
|
||||||
|
|
||||||
|
private String carregarDadosTotaisdeVenda(String puntoVenta, String empresa) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
sql.append(" SELECT pv.PUNTOVENTA_ID AS codigo, ");
|
||||||
|
sql.append(" pv.nombpuntoventa AS descricao, ");
|
||||||
|
sql.append(" COALESCE(SUM( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND (c.INDREMOTOINVERSO IS NULL ");
|
||||||
|
sql.append(" OR c.INDREMOTOINVERSO =0) ");
|
||||||
|
sql.append(" AND (c.INDSTATUSBOLETO <> 'E' AND c.TIPOVENTA_ID not in (5,12,18)) ");
|
||||||
|
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
||||||
|
sql.append(" ELSE null ");
|
||||||
|
sql.append(" END),0) AS valorBilhete, ");
|
||||||
|
sql.append(" COALESCE(COUNT( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND (c.INDREMOTOINVERSO IS NULL ");
|
||||||
|
sql.append(" OR c.INDREMOTOINVERSO =0) ");
|
||||||
|
sql.append(" AND (c.INDSTATUSBOLETO <> 'E' AND c.TIPOVENTA_ID not in (5,12,18)) ");
|
||||||
|
sql.append(" THEN c.caja_id ");
|
||||||
|
sql.append(" ELSE NULL ");
|
||||||
|
sql.append(" END),0) AS qtdBilhete, ");
|
||||||
|
sql.append(" SUM( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND COALESCE(c.IMPORTESEGURO,0) > 0 ");
|
||||||
|
sql.append(" THEN c.IMPORTESEGURO ");
|
||||||
|
sql.append(" ELSE 0 ");
|
||||||
|
sql.append(" END) AS valorSeguro, ");
|
||||||
|
sql.append(" COALESCE(COUNT( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND COALESCE(c.IMPORTESEGURO,0) > 0 ");
|
||||||
|
sql.append(" THEN 1 ");
|
||||||
|
sql.append(" ELSE NULL ");
|
||||||
|
sql.append(" END),0) AS qtdSeguro, ");
|
||||||
|
sql.append(" COALESCE(SUM( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND (c.INDSTATUSBOLETO = 'E' OR c.TIPOVENTA_ID in (5,18)) ");
|
||||||
|
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
||||||
|
sql.append(" ELSE 0 ");
|
||||||
|
sql.append(" END),0) AS valorVch, ");
|
||||||
|
sql.append(" COALESCE(COUNT( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND (c.INDSTATUSBOLETO = 'E' OR c.TIPOVENTA_ID in (5,18)) ");
|
||||||
|
sql.append(" THEN 1 ");
|
||||||
|
sql.append(" ELSE NULL ");
|
||||||
|
sql.append(" END),0) AS qtdVch, ");
|
||||||
|
sql.append(" COALESCE(SUM( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND c.TIPOVENTA_ID = 12 ");
|
||||||
|
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
||||||
|
sql.append(" ELSE 0 ");
|
||||||
|
sql.append(" END),0) AS valorInternet, ");
|
||||||
|
sql.append(" COALESCE(COUNT( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND c.TIPOVENTA_ID = 12 ");
|
||||||
|
sql.append(" THEN 1 ");
|
||||||
|
sql.append(" ELSE NULL ");
|
||||||
|
sql.append(" END),0) AS qtdInternet, ");
|
||||||
|
sql.append(" COALESCE(SUM( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID = 31 ");
|
||||||
|
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
||||||
|
sql.append(" ELSE 0 ");
|
||||||
|
sql.append(" END),0) AS valorCancelado, ");
|
||||||
|
sql.append(" COALESCE(COUNT( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID = 31 ");
|
||||||
|
sql.append(" THEN 1 ");
|
||||||
|
sql.append(" ELSE NULL ");
|
||||||
|
sql.append(" END),0) AS qtdCancelado, ");
|
||||||
|
sql.append(" COALESCE(SUM( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NOT NULL ");
|
||||||
|
sql.append(" AND c.MOTIVOCANCELACION_ID <> 31 ");
|
||||||
|
sql.append(" THEN ( COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.preciopagado,0)) ");
|
||||||
|
sql.append(" ELSE 0 ");
|
||||||
|
sql.append(" END),0) AS valorEstornado, ");
|
||||||
|
sql.append(" COALESCE(COUNT( ");
|
||||||
|
sql.append(" CASE ");
|
||||||
|
sql.append(" WHEN c.MOTIVOCANCELACION_ID IS NOT NULL ");
|
||||||
|
sql.append(" AND c.MOTIVOCANCELACION_ID <> 31 ");
|
||||||
|
sql.append(" THEN 1 ");
|
||||||
|
sql.append(" ELSE NULL ");
|
||||||
|
sql.append(" END),0) AS qtdEstornado ");
|
||||||
|
sql.append(" ");
|
||||||
|
sql.append(" FROM CAJA c ");
|
||||||
|
sql.append(" INNER JOIN PUNTO_VENTA pv ");
|
||||||
|
sql.append(" ON c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
|
||||||
|
sql.append(" INNER JOIN marca m ");
|
||||||
|
sql.append(" ON m.marca_id = c.marca_id ");
|
||||||
|
sql.append(" WHERE c.TURNO_ID IS NOT NULL ");
|
||||||
|
sql.append(" AND c.FECCORTE BETWEEN :de AND :ate ");
|
||||||
|
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
||||||
|
sql.append(" AND c.PUNTOVENTA_ID in (" + puntoVenta + ") ");
|
||||||
|
}
|
||||||
|
sql.append(" AND c.TIPOVENTA_ID <> 6 ");
|
||||||
|
sql.append(" AND c.INDREIMPRESION = 0 ");
|
||||||
|
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
||||||
|
sql.append(" AND m.empresa_id = "+empresa+" ");
|
||||||
|
}
|
||||||
|
sql.append(" GROUP BY pv.PUNTOVENTA_ID, pv.nombpuntoventa ");
|
||||||
|
sql.append(" ORDER BY pv.nombpuntoventa ");
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private String carregarEventosExtras(String puntoVenta, String empresa) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
sql.append(" SELECT ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN tee.CVETIPOEVENTO = 'EXCESSO_BAGAGEM' THEN cd.PRECIO ELSE NULL END),0) AS valorExcesso, ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN tee.CVETIPOEVENTO = 'EXCESSO_BAGAGEM' THEN 1 ELSE NULL END),0) as qtdExcesso, ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN tee.CVETIPOEVENTO = 'SEGURO_OPCIONAL' THEN cd.PRECIO ELSE NULL END),0) AS valorSeguro, ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN tee.CVETIPOEVENTO = 'SEGURO_OPCIONAL' THEN 1 ELSE NULL END),0) as qtdSeguro ");
|
||||||
|
sql.append(" FROM CAJA_DIVERSOS cd ");
|
||||||
|
sql.append(" INNER JOIN EVENTO_EXTRA ee ");
|
||||||
|
sql.append(" ON ee.EVENTOEXTRA_ID = cd.EVENTOEXTRA_ID ");
|
||||||
|
sql.append(" INNER JOIN TIPO_EVENTO_EXTRA tee ");
|
||||||
|
sql.append(" ON ee.TIPOEVENTOEXTRA_ID = tee.TIPOEVENTOEXTRA_ID ");
|
||||||
|
sql.append(" WHERE cd.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND ee.activo = 1 ");
|
||||||
|
sql.append(" AND cd.TURNO_ID IS NOT NULL ");
|
||||||
|
sql.append(" AND tee.CVETIPOEVENTO in ('EXCESSO_BAGAGEM', 'SEGURO_OPCIONAL' ) ");
|
||||||
|
sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate ");
|
||||||
|
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
||||||
|
sql.append(" AND cd.PUNTOVENTA_ID = ").append(puntoVenta);
|
||||||
|
}
|
||||||
|
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
||||||
|
sql.append(" AND ee.EMPRESA_ID = "+empresa+" ");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
log.debug(sql.toString());
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,80 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class RelatorioAgenciaFechamentoResumo extends RelatorioAgenciaFechamento {
|
||||||
|
|
||||||
|
public RelatorioAgenciaFechamentoResumo(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
|
super(parametros, conexao);
|
||||||
|
tipoRelatorio = TipoRelatorioFechamentoEnum.RESUMO;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String criarQueryReceitaDespesa(String puntoVenta, String empresa) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
sql.append(" SELECT ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN cdp.IMPORTE < 0 THEN 1 ELSE NULL END),0) as qtdedespesa, ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN cdp.IMPORTE > 0 THEN cdp.IMPORTE ELSE NULL END),0) AS receita, ");
|
||||||
|
sql.append(" COALESCE(ABS(SUM(CASE WHEN cdp.IMPORTE < 0 THEN cdp.IMPORTE ELSE NULL END)),0) AS despesa ");
|
||||||
|
sql.append(" FROM CAJA_DIVERSOS cd, ");
|
||||||
|
sql.append(" CAJA_DIVERSOS_PAGO cdp, ");
|
||||||
|
sql.append(" EVENTO_EXTRA ee ");
|
||||||
|
sql.append(" WHERE cd.MOTIVOCANCELACION_ID IS NULL ");
|
||||||
|
sql.append(" AND ee.EVENTOEXTRA_ID = cd.EVENTOEXTRA_ID ");
|
||||||
|
sql.append(" AND cdp.CAJADIVERSOS_ID = cd.CAJADIVERSOS_ID ");
|
||||||
|
sql.append(" AND ee.activo = 1 ");
|
||||||
|
sql.append(" AND cd.TURNO_ID IS NOT NULL ");
|
||||||
|
sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate ");
|
||||||
|
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
||||||
|
sql.append(" AND cd.PUNTOVENTA_ID = " + puntoVenta + " ");
|
||||||
|
}
|
||||||
|
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
||||||
|
sql.append(" AND ee.EMPRESA_ID = " + empresa + " ");
|
||||||
|
}
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StringBuilder carregarDados(String puntoVenta, String empresa) {
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
sql.append(" SELECT ");
|
||||||
|
sql.append(" pv.NUMPUNTOVENTA AS codigo, ");
|
||||||
|
sql.append(" pv.nombpuntoventa AS descricao, ");
|
||||||
|
sql.append(" PV_GERENCIA.NUMPUNTOVENTA AS subordinado, ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and (c.INDREMOTOINVERSO is null or c.INDREMOTOINVERSO =0) THEN c.caja_id ELSE NULL END),0) AS qtdevendido, ");
|
||||||
|
sql.append(" ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN c.INDREMOTOINVERSO = 1 THEN 1 ELSE NULL END),0) AS qtdedigitado, ");
|
||||||
|
sql.append(" ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID = 31 THEN 1 ELSE NULL END),0) AS qtdeAnulado, ");
|
||||||
|
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID = 32 THEN 1 ELSE NULL END),0) AS qtdeDevolvido, ");
|
||||||
|
sql.append(" ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and (c.INDREMOTOINVERSO is null or c.INDREMOTOINVERSO =0) THEN ( ");
|
||||||
|
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
||||||
|
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS vendido, ");
|
||||||
|
sql.append(" ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and c.INDREMOTOINVERSO = 1 THEN ( ");
|
||||||
|
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
||||||
|
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS digitado, ");
|
||||||
|
sql.append(" ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID = 31 THEN ( ");
|
||||||
|
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
||||||
|
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS anulado, ");
|
||||||
|
sql.append(" ");
|
||||||
|
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID = 32 THEN ( ");
|
||||||
|
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
||||||
|
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS devolvido, ");
|
||||||
|
sql.append(" pv.PUNTOVENTA_ID AS puntoventaId ");
|
||||||
|
return sql;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void criarGroupByEOrderBy(StringBuilder sql) {
|
||||||
|
sql.append(" GROUP BY pv.NUMPUNTOVENTA , pv.nombpuntoventa, pv.puntoventa_id, PV_GERENCIA.NUMPUNTOVENTA ");
|
||||||
|
sql.append(" ORDER BY pv.nombpuntoventa ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,262 +0,0 @@
|
||||||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.apache.commons.lang.math.NumberUtils;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioAgenciaFechamentoAntigoBean;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
|
||||||
|
|
||||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
|
||||||
|
|
||||||
public class RelatorioAgenciaFechamentoResumoDiario extends Relatorio {
|
|
||||||
|
|
||||||
private List<RelatorioAgenciaFechamentoAntigoBean> lsDadosRelatorio;
|
|
||||||
|
|
||||||
public RelatorioAgenciaFechamentoResumoDiario(Map<String, Object> parametros, Connection conexao) throws Exception {
|
|
||||||
super(parametros, conexao);
|
|
||||||
|
|
||||||
this.setCustomDataSource(new DataSource(this) {
|
|
||||||
@Override
|
|
||||||
public void initDados() throws Exception {
|
|
||||||
|
|
||||||
Connection conexao = this.relatorio.getConexao();
|
|
||||||
|
|
||||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
|
||||||
|
|
||||||
String fecInicio = parametros.get("fecInicio").toString() + " 00:00:00";
|
|
||||||
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
|
|
||||||
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
|
|
||||||
String empresaNome = parametros.get("empresaNome") != null ? parametros.get("empresaNome").toString() : "";
|
|
||||||
String puntoVenta = parametros.get("NUMPUNTOVENTA") != null ? parametros.get("NUMPUNTOVENTA").toString() : null;
|
|
||||||
|
|
||||||
lsDadosRelatorio = new ArrayList<RelatorioAgenciaFechamentoAntigoBean>();
|
|
||||||
|
|
||||||
String sql = carregarDadosTotaisdeVenda(puntoVenta, empresa);
|
|
||||||
|
|
||||||
System.out.println(sql);
|
|
||||||
|
|
||||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
|
||||||
ResultSet rset1 = null;
|
|
||||||
ResultSet rset2 = null;
|
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
|
|
||||||
|
|
||||||
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
|
||||||
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
|
||||||
|
|
||||||
rset1= stmt.executeQuery();
|
|
||||||
|
|
||||||
while (rset1.next()) {
|
|
||||||
|
|
||||||
RelatorioAgenciaFechamentoAntigoBean agenciaFechamento = new RelatorioAgenciaFechamentoAntigoBean();
|
|
||||||
BigDecimal total = BigDecimal.ZERO;
|
|
||||||
BigDecimal vendido = BigDecimal.ZERO;
|
|
||||||
|
|
||||||
String puntoVentaId = rset1.getString("puntoventaId");
|
|
||||||
|
|
||||||
Integer qtdevendido = rset1.getInt("qtdevendido");
|
|
||||||
Integer qtdedigitado = rset1.getInt("qtdedigitado");
|
|
||||||
Integer qtdeAnulado = rset1.getInt("qtdeAnulado");
|
|
||||||
Integer qtdeDevolvido = rset1.getInt("qtdeDevolvido");
|
|
||||||
Integer qtdeTotal = null;
|
|
||||||
|
|
||||||
vendido = rset1.getBigDecimal("vendido");
|
|
||||||
BigDecimal digitado = rset1.getBigDecimal("digitado");
|
|
||||||
BigDecimal anulado = rset1.getBigDecimal("anulado");
|
|
||||||
BigDecimal devolvido = rset1.getBigDecimal("devolvido");
|
|
||||||
|
|
||||||
agenciaFechamento.setEmpresa(empresaNome);
|
|
||||||
|
|
||||||
agenciaFechamento.setCodigo(rset1.getString("codigo"));
|
|
||||||
agenciaFechamento.setDescricao(rset1.getString("descricao"));
|
|
||||||
|
|
||||||
agenciaFechamento.setQtdeVendido(qtdevendido != null ? qtdevendido : NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setQtdeDigitado(qtdedigitado != null ? qtdedigitado : NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setQtdeAnulado(qtdeAnulado != null ? qtdeAnulado : NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setQtdeDevolvido(qtdeDevolvido != null ? qtdeDevolvido : NumberUtils.INTEGER_ZERO);
|
|
||||||
|
|
||||||
qtdeTotal = ((qtdevendido != null ? qtdevendido : NumberUtils.INTEGER_ZERO) + (qtdedigitado != null ? qtdedigitado : NumberUtils.INTEGER_ZERO))
|
|
||||||
- ((qtdeAnulado != null ? qtdeAnulado : NumberUtils.INTEGER_ZERO) + (qtdeDevolvido != null ? qtdeDevolvido : NumberUtils.INTEGER_ZERO));
|
|
||||||
|
|
||||||
if (qtdeTotal < 0) {
|
|
||||||
qtdeTotal = NumberUtils.INTEGER_ZERO;
|
|
||||||
}
|
|
||||||
|
|
||||||
agenciaFechamento.setQtdeTotal(qtdeTotal);
|
|
||||||
|
|
||||||
agenciaFechamento.setDigitado(digitado != null ? digitado : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setAnulado(anulado != null ? anulado : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setDevolvido(devolvido != null ? devolvido : BigDecimal.ZERO);
|
|
||||||
|
|
||||||
total = total.add(vendido != null ? vendido : BigDecimal.ZERO);
|
|
||||||
total = total.add(digitado != null ? digitado : BigDecimal.ZERO);
|
|
||||||
total = total.subtract(anulado != null ? anulado : BigDecimal.ZERO);
|
|
||||||
total = total.subtract(devolvido != null ? devolvido : BigDecimal.ZERO);
|
|
||||||
|
|
||||||
String strQueryReceitaDespesa = carregarDadosReceitaDespesa(puntoVentaId, empresa);
|
|
||||||
stmt = new NamedParameterStatement(conexao, strQueryReceitaDespesa);
|
|
||||||
|
|
||||||
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
|
||||||
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
|
||||||
|
|
||||||
rset2 = stmt.executeQuery();
|
|
||||||
|
|
||||||
if (rset2.next()) {
|
|
||||||
|
|
||||||
Integer qtdedespesa = rset2.getInt("qtdedespesa");
|
|
||||||
BigDecimal receita = rset2.getBigDecimal("receita");
|
|
||||||
BigDecimal despesa = rset2.getBigDecimal("despesa");
|
|
||||||
|
|
||||||
agenciaFechamento.setQtdeDespesa(qtdedespesa != null ? qtdedespesa : NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setReceita(receita != null ? receita : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setDespesa(despesa != null ? despesa : BigDecimal.ZERO);
|
|
||||||
|
|
||||||
total = total.add(receita != null ? receita : BigDecimal.ZERO);
|
|
||||||
total = total.subtract(despesa != null ? despesa : BigDecimal.ZERO);
|
|
||||||
|
|
||||||
agenciaFechamento.setVendido(vendido != null ? vendido : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setTotal(total);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
agenciaFechamento.setQtdeDespesa(NumberUtils.INTEGER_ZERO);
|
|
||||||
agenciaFechamento.setReceita(BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setDespesa(BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setVendido(vendido != null ? vendido : BigDecimal.ZERO);
|
|
||||||
agenciaFechamento.setTotal(total);
|
|
||||||
}
|
|
||||||
|
|
||||||
lsDadosRelatorio.add(agenciaFechamento);
|
|
||||||
//Estava dando um erro de "máximo de cursores abertos excedido"
|
|
||||||
//Colocado isso o erro parou de ocorrer
|
|
||||||
rset2.getStatement().close();
|
|
||||||
rset2.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lsDadosRelatorio.size() > 0) {
|
|
||||||
|
|
||||||
setLsDadosRelatorio(lsDadosRelatorio);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsDadosRelatorio(List<RelatorioAgenciaFechamentoAntigoBean> lsDadosRelatorio) {
|
|
||||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
|
||||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void processaParametros() throws Exception {
|
|
||||||
}
|
|
||||||
|
|
||||||
private String carregarDadosTotaisdeVenda(String puntoVenta, String empresa) {
|
|
||||||
|
|
||||||
StringBuilder sql = new StringBuilder();
|
|
||||||
sql.append(" SELECT ");
|
|
||||||
sql.append(" pv.NUMPUNTOVENTA AS codigo, ");
|
|
||||||
sql.append(" pv.nombpuntoventa AS descricao, ");
|
|
||||||
sql.append(" ");
|
|
||||||
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and (c.INDREMOTOINVERSO is null or c.INDREMOTOINVERSO =0) THEN c.caja_id ELSE NULL END),0) AS qtdevendido, ");
|
|
||||||
sql.append(" ");
|
|
||||||
sql.append(" COALESCE(COUNT(CASE WHEN c.INDREMOTOINVERSO = 1 THEN 1 ELSE NULL END),0) AS qtdedigitado, ");
|
|
||||||
sql.append(" ");
|
|
||||||
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID = 31 THEN 1 ELSE NULL END),0) AS qtdeAnulado, ");
|
|
||||||
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID = 32 THEN 1 ELSE NULL END),0) AS qtdeDevolvido, ");
|
|
||||||
sql.append(" ");
|
|
||||||
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and (c.INDREMOTOINVERSO is null or c.INDREMOTOINVERSO =0) THEN ( ");
|
|
||||||
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
|
||||||
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS vendido, ");
|
|
||||||
sql.append(" ");
|
|
||||||
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and c.INDREMOTOINVERSO = 1 THEN ( ");
|
|
||||||
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
|
||||||
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS digitado, ");
|
|
||||||
sql.append(" ");
|
|
||||||
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID = 31 THEN ( ");
|
|
||||||
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
|
||||||
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS anulado, ");
|
|
||||||
sql.append(" ");
|
|
||||||
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID = 32 THEN ( ");
|
|
||||||
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
|
|
||||||
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS devolvido, ");
|
|
||||||
sql.append(" pv.PUNTOVENTA_ID AS puntoventaId ");
|
|
||||||
sql.append(" ");
|
|
||||||
sql.append(" FROM CAJA c ");
|
|
||||||
sql.append(" INNER JOIN PUNTO_VENTA pv ON c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
|
|
||||||
sql.append(" inner join marca m on m.marca_id = c.marca_id ");
|
|
||||||
sql.append(" WHERE c.TURNO_ID IS NOT NULL ");
|
|
||||||
sql.append(" AND c.FECCORTE BETWEEN :de AND :ate ");
|
|
||||||
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
|
||||||
sql.append(" AND c.PUNTOVENTA_ID in (" + puntoVenta + ") ");
|
|
||||||
}
|
|
||||||
sql.append(" AND c.TIPOVENTA_ID <> 6 ");
|
|
||||||
sql.append(" AND c.INDREIMPRESION = 0 ");
|
|
||||||
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
|
||||||
sql.append(" AND m.empresa_id = "+empresa+" ");
|
|
||||||
}
|
|
||||||
sql.append(" GROUP BY pv.NUMPUNTOVENTA , pv.nombpuntoventa, pv.puntoventa_id ");
|
|
||||||
sql.append(" ORDER BY pv.NUMPUNTOVENTA , pv.nombpuntoventa ");
|
|
||||||
|
|
||||||
return sql.toString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private String carregaAgenciasComVenda() {
|
|
||||||
|
|
||||||
StringBuilder sql = new StringBuilder();
|
|
||||||
sql.append(" SELECT DISTINCT cc.PUNTOVENTA_ID ");
|
|
||||||
sql.append(" FROM CONTA_CORRENTE_PTOVTA cc ");
|
|
||||||
sql.append(" WHERE cc.FECHOROPERACION BETWEEN :de AND :ate ");
|
|
||||||
sql.append(" and cc.EMPRESA_ID = :empresaId ");
|
|
||||||
|
|
||||||
return sql.toString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private String carregarDadosReceitaDespesa(String puntoVenta, String empresa) {
|
|
||||||
|
|
||||||
StringBuilder sql = new StringBuilder();
|
|
||||||
sql.append(" SELECT ");
|
|
||||||
sql.append(" COALESCE(COUNT(CASE WHEN cdp.IMPORTE < 0 THEN 1 ELSE NULL END),0) as qtdedespesa, ");
|
|
||||||
sql.append(" COALESCE(SUM(CASE WHEN cdp.IMPORTE > 0 THEN cdp.IMPORTE ELSE NULL END),0) AS receita, ");
|
|
||||||
sql.append(" COALESCE(ABS(SUM(CASE WHEN cdp.IMPORTE < 0 THEN cdp.IMPORTE ELSE NULL END)),0) AS despesa ");
|
|
||||||
sql.append(" FROM CAJA_DIVERSOS cd, ");
|
|
||||||
sql.append(" CAJA_DIVERSOS_PAGO cdp, ");
|
|
||||||
sql.append(" EVENTO_EXTRA ee ");
|
|
||||||
sql.append(" WHERE cd.MOTIVOCANCELACION_ID IS NULL ");
|
|
||||||
sql.append(" AND ee.EVENTOEXTRA_ID = cd.EVENTOEXTRA_ID ");
|
|
||||||
sql.append(" AND cdp.CAJADIVERSOS_ID = cd.CAJADIVERSOS_ID ");
|
|
||||||
sql.append(" AND ee.activo = 1 ");
|
|
||||||
sql.append(" AND cd.TURNO_ID IS NOT NULL ");
|
|
||||||
sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate ");
|
|
||||||
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
|
||||||
sql.append(" AND cd.PUNTOVENTA_ID = "+puntoVenta+" ");
|
|
||||||
}
|
|
||||||
if (empresa != null && !empresa.equals("") && !empresa.equals("-1")) {
|
|
||||||
sql.append(" AND ee.EMPRESA_ID = "+empresa+" ");
|
|
||||||
}
|
|
||||||
|
|
||||||
return sql.toString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private String carregarNomeEmpresa() {
|
|
||||||
|
|
||||||
StringBuilder sql = new StringBuilder();
|
|
||||||
sql.append(" SELECT ");
|
|
||||||
sql.append(" NOMBEMPRESA ");
|
|
||||||
sql.append(" FROM EMPRESA ");
|
|
||||||
sql.append(" WHERE EMPRESA_ID=:empresaId ");
|
|
||||||
|
|
||||||
return sql.toString();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
public enum TipoRelatorioFechamentoEnum {
|
||||||
|
|
||||||
|
NOVO,
|
||||||
|
ANTIGO,
|
||||||
|
RESUMO,
|
||||||
|
DIARIO;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
#geral
|
||||||
|
msg.noData=No se pudo obtener datos con los parámetros reportados.
|
||||||
|
msg.a=a
|
||||||
|
|
||||||
|
#Labels header
|
||||||
|
header.data=Data :
|
||||||
|
header.empresa=Empresa :
|
||||||
|
header.codigo=Código
|
||||||
|
header.descricao=Descrição
|
||||||
|
header.vendido=Vendido
|
||||||
|
header.digitado=Digitado
|
||||||
|
header.anulado=Anulados
|
||||||
|
header.devolvido=Devolvidos
|
||||||
|
header.receita=Receita
|
||||||
|
header.despesa=Despesa
|
||||||
|
header.total=Total
|
||||||
|
header.dataCorte=Data
|
||||||
|
header.subordinado=Subordinado
|
||||||
|
|
||||||
|
detail.agencia=AGÊNCIA
|
||||||
|
detail.quantidade=QUANTIDADE
|
||||||
|
detail.valor=VALOR
|
||||||
|
detail.totalGeral=TOTAL GERAL
|
||||||
|
|
||||||
|
linhas=Linhas
|
|
@ -1,12 +1,12 @@
|
||||||
#geral
|
#geral
|
||||||
msg.noData=No se pudo obtener datos con los parámetros reportados.
|
msg.noData=No se pudo obtener datos con los parámetros reportados.
|
||||||
msg.a=a
|
msg.a=a
|
||||||
|
|
||||||
#Labels header
|
#Labels header
|
||||||
header.data=Data :
|
header.data=Data :
|
||||||
header.empresa=Empresa :
|
header.empresa=Empresa :
|
||||||
header.codigo=Código
|
header.codigo=Código
|
||||||
header.descricao=Descrição
|
header.descricao=Descrição
|
||||||
header.vendido=Vendido
|
header.vendido=Vendido
|
||||||
header.digitado=Digitado
|
header.digitado=Digitado
|
||||||
header.anulado=Anulados
|
header.anulado=Anulados
|
||||||
|
@ -14,8 +14,10 @@ header.devolvido=Devolvidos
|
||||||
header.receita=Receita
|
header.receita=Receita
|
||||||
header.despesa=Despesa
|
header.despesa=Despesa
|
||||||
header.total=Total
|
header.total=Total
|
||||||
|
header.dataCorte=Data
|
||||||
|
header.subordinado=Subordinado
|
||||||
|
|
||||||
detail.agencia=AGÊNCIA
|
detail.agencia=AGÊNCIA
|
||||||
detail.quantidade=QUANTIDADE
|
detail.quantidade=QUANTIDADE
|
||||||
detail.valor=VALOR
|
detail.valor=VALOR
|
||||||
detail.totalGeral=TOTAL GERAL
|
detail.totalGeral=TOTAL GERAL
|
|
@ -0,0 +1,24 @@
|
||||||
|
#geral
|
||||||
|
msg.noData=No se pudo obtener datos con los parámetros reportados.
|
||||||
|
msg.a=a
|
||||||
|
|
||||||
|
#Labels header
|
||||||
|
header.data=Data :
|
||||||
|
header.empresa=Empresa :
|
||||||
|
header.codigo=Código
|
||||||
|
header.descricao=Descrição
|
||||||
|
header.vendido=Vendido
|
||||||
|
header.digitado=Digitado
|
||||||
|
header.anulado=Anulados
|
||||||
|
header.devolvido=Devolvidos
|
||||||
|
header.receita=Receita
|
||||||
|
header.despesa=Despesa
|
||||||
|
header.total=Total
|
||||||
|
header.subordinado=Subordinado
|
||||||
|
|
||||||
|
detail.agencia=AGÊNCIA
|
||||||
|
detail.quantidade=QUANTIDADE
|
||||||
|
detail.valor=VALOR
|
||||||
|
detail.totalGeral=TOTAL GERAL
|
||||||
|
|
||||||
|
linhas=Linhas
|
|
@ -14,6 +14,7 @@ header.devolvido=Devolvidos
|
||||||
header.receita=Receita
|
header.receita=Receita
|
||||||
header.despesa=Despesa
|
header.despesa=Despesa
|
||||||
header.total=Total
|
header.total=Total
|
||||||
|
header.subordinado=Subordinado
|
||||||
|
|
||||||
detail.agencia=AGÊNCIA
|
detail.agencia=AGÊNCIA
|
||||||
detail.quantidade=QUANTIDADE
|
detail.quantidade=QUANTIDADE
|
Binary file not shown.
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioAgenciaFechamento" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
<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="RelatorioAgenciaFechamentoAntigo" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
<property name="ireport.zoom" value="1.5"/>
|
<property name="ireport.zoom" value="1.5"/>
|
||||||
<property name="ireport.x" value="0"/>
|
<property name="ireport.x" value="0"/>
|
||||||
<property name="ireport.y" value="0"/>
|
<property name="ireport.y" value="0"/>
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,526 @@
|
||||||
|
<?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="RelatorioAgenciaFechamentoDiario" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
|
<property name="ireport.zoom" value="1.3636363636363653"/>
|
||||||
|
<property name="ireport.x" value="0"/>
|
||||||
|
<property name="ireport.y" value="0"/>
|
||||||
|
<parameter name="fecInicio" class="java.lang.String">
|
||||||
|
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||||
|
</parameter>
|
||||||
|
<parameter name="fecFinal" class="java.lang.String"/>
|
||||||
|
<parameter name="TITULO" class="java.lang.String"/>
|
||||||
|
<parameter name="tipoRelatorio" class="java.lang.String"/>
|
||||||
|
<queryString>
|
||||||
|
<![CDATA[]]>
|
||||||
|
</queryString>
|
||||||
|
<field name="codigo" class="java.lang.String"/>
|
||||||
|
<field name="empresa" class="java.lang.String"/>
|
||||||
|
<field name="descricao" class="java.lang.String"/>
|
||||||
|
<field name="qtdeVendido" class="java.lang.Integer"/>
|
||||||
|
<field name="qtdeDigitado" class="java.lang.Integer"/>
|
||||||
|
<field name="qtdeAnulado" class="java.lang.Integer"/>
|
||||||
|
<field name="qtdeDevolvido" class="java.lang.Integer"/>
|
||||||
|
<field name="qtdeDespesa" class="java.lang.Integer"/>
|
||||||
|
<field name="vendido" class="java.math.BigDecimal"/>
|
||||||
|
<field name="digitado" class="java.math.BigDecimal"/>
|
||||||
|
<field name="anulado" class="java.math.BigDecimal"/>
|
||||||
|
<field name="devolvido" class="java.math.BigDecimal"/>
|
||||||
|
<field name="receita" class="java.math.BigDecimal"/>
|
||||||
|
<field name="despesa" class="java.math.BigDecimal"/>
|
||||||
|
<field name="total" class="java.math.BigDecimal"/>
|
||||||
|
<field name="qtdeTotal" class="java.lang.Integer"/>
|
||||||
|
<field name="data" class="java.util.Date"/>
|
||||||
|
<field name="subordinado" class="java.lang.String"/>
|
||||||
|
<variable name="sum.qtdeVendido" class="java.lang.Integer" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{qtdeVendido}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.qtdeDigitado" class="java.lang.Integer" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{qtdeDigitado}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.qtdeAnulado" class="java.lang.Integer" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{qtdeAnulado}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.qtdeDespesa" class="java.lang.Integer" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{qtdeDespesa}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.qtdeDevolvido" class="java.lang.Integer" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{qtdeDevolvido}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.qtdeTotal" class="java.lang.Integer" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{qtdeTotal}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.vendido" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{vendido}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.digitado" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{digitado}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.anulado" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{anulado}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.devolvido" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{devolvido}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.receita" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{receita}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.despesa" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{despesa}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<variable name="sum.total" class="java.math.BigDecimal" calculation="Sum">
|
||||||
|
<variableExpression><![CDATA[$F{total}]]></variableExpression>
|
||||||
|
</variable>
|
||||||
|
<background>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</background>
|
||||||
|
<pageHeader>
|
||||||
|
<band height="61" splitType="Stretch">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716" x="481" y="20" width="49" height="20"/>
|
||||||
|
<textElement>
|
||||||
|
<font isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60" x="647" y="0" width="56" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Report">
|
||||||
|
<reportElement uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f" x="779" y="20" width="22" height="20"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="be1692e9-f130-4d08-9173-6ca3e4699030" x="713" y="20" width="42" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50" x="530" y="20" width="182" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{fecInicio} + " à " + $P{fecFinal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="652312bd-292a-424d-a234-5f157e3699c6" x="0" y="0" width="231" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy HH:mm">
|
||||||
|
<reportElement uuid="6f671365-868e-41a6-81ee-a308d1d91e1d" x="703" y="0" width="98" height="20"/>
|
||||||
|
<textElement textAlignment="Left"/>
|
||||||
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a" x="755" y="20" width="24" height="20"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="08817d2b-5f71-4c7a-9880-51c1a791ad04" x="0" y="19" width="49" height="20"/>
|
||||||
|
<textElement>
|
||||||
|
<font isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="64d97814-2298-4fd7-bb29-dc868f21c951" x="49" y="19" width="182" height="19" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="10"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<line>
|
||||||
|
<reportElement uuid="ee05e1fa-6963-4ff9-b3c8-c6cd1bb54e94" x="0" y="39" width="802" height="1"/>
|
||||||
|
</line>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="2cbc8ddc-38e5-4914-8189-5761ddeb2ce9" x="25" y="41" width="182" height="19" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.agencia}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="7965e761-2e24-4f17-84eb-9431c98ce72c" x="301" y="41" width="144" height="19" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.quantidade}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="bbaa5f53-76e0-491e-9145-e522122709e5" x="642" y="41" width="158" height="19" isPrintWhenDetailOverflows="true"/>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="10" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.valor}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</pageHeader>
|
||||||
|
<columnHeader>
|
||||||
|
<band height="25" splitType="Stretch">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="d0ee9f0c-26b3-4a2c-ba74-9b9bb1e32268" positionType="Float" x="63" y="1" width="51" height="17" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.subordinado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="0638d013-af03-46b5-850f-8ee3da2bc8b8" positionType="Float" x="741" y="1" width="61" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.total}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="dd31dee7-98a4-4b46-a2c4-e79677790bc2" positionType="Float" x="693" y="1" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.despesa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="e294d86e-22eb-48b8-81c3-fb8e1dea9bae" positionType="Float" x="645" y="1" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.receita}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="c0bf8f56-20d8-47af-a650-4a6ba4442c8c" positionType="Float" x="185" y="1" width="94" height="17"/>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.descricao}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="eb16bd4c-e5d9-423e-a089-a9b2bcbe4189" positionType="Float" x="279" y="1" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.vendido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="2c5f4806-65df-48b0-b3d4-d0912d2c5d73" positionType="Float" x="308" y="1" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.digitado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="9f25b0f2-c5bd-495a-9ef9-0916c7c07fd3" positionType="Float" x="337" y="1" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.anulado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="6555f6ff-ca40-4c88-a4b4-fb47871f6d24" positionType="Float" x="366" y="1" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.devolvido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="6e4f99f7-3a81-4fc4-b647-ab77968fd9c2" positionType="Float" x="395" y="1" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.despesa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="73004b45-c340-4f04-9697-24fb33e6e608" positionType="Float" x="424" y="1" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.total}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="30ae2209-0899-4dc0-a4f0-bf8c29d6fd70" positionType="Float" x="453" y="1" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.vendido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="bc4ff148-f663-4c3f-95bd-df48630945e5" positionType="Float" x="501" y="1" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.digitado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="801f59e8-8ff7-4a8c-bd8f-757126d95d14" positionType="Float" x="549" y="1" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.anulado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="84490947-1221-4baa-b514-003634254e5c" positionType="Float" x="597" y="1" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.devolvido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="890b61c9-2195-455a-9c28-316d48ab5fea" positionType="Float" x="114" y="1" width="71" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.codigo}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="5aaa1d0b-cfc3-4817-98cb-b8e22db5bf4d" positionType="Float" x="4" y="1" width="59" height="17" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.dataCorte}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<line>
|
||||||
|
<reportElement uuid="83809dd0-64dc-4779-9552-440eabef278e" positionType="Float" x="0" y="0" width="802" height="1"/>
|
||||||
|
</line>
|
||||||
|
<line>
|
||||||
|
<reportElement uuid="ae94e51c-f84c-405c-a9c3-d8fd0c48f03a" positionType="Float" x="0" y="23" width="802" height="1"/>
|
||||||
|
</line>
|
||||||
|
</band>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band height="17" splitType="Stretch">
|
||||||
|
<textField pattern="dd/MM/yyyy">
|
||||||
|
<reportElement uuid="5f1da012-2cbb-414c-bafc-ec079c55fa3d" positionType="Float" x="4" y="0" width="59" height="17" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="36868b52-98e7-43ff-b074-d13f2be18eca" positionType="Float" x="63" y="0" width="51" height="17" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{subordinado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="5f34ab58-15a2-4b0c-886e-9e432f24cbb9" positionType="Float" x="597" y="0" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{devolvido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="5eac8194-63bd-43d7-8da2-8ed75f4f9219" positionType="Float" x="279" y="0" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{qtdeVendido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="ca7b87f8-538c-44ca-99a9-58df6d377d33" positionType="Float" x="424" y="0" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{qtdeTotal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="7f3dee8d-6a9f-4daf-a92a-3cdae3914b24" positionType="Float" x="645" y="0" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{receita}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true">
|
||||||
|
<reportElement uuid="3f2de0d3-e1e1-4c38-abe4-539529605c34" positionType="Float" stretchType="RelativeToBandHeight" x="185" y="0" width="94" height="17"/>
|
||||||
|
<textElement textAlignment="Center" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{descricao}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="fcdf6e5b-55b4-4df1-9115-abe42f6a679a" positionType="Float" x="395" y="0" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{qtdeDespesa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="a1102ca6-594a-4e66-8c6e-8d17eeb32005" positionType="Float" x="308" y="0" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{qtdeDigitado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="4917968a-5153-4c7d-a52f-ea3886ec1751" positionType="Float" x="741" y="0" width="61" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="9840555e-e3b7-4496-a3a2-914f80abe2c8" positionType="Float" x="366" y="0" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{qtdeDevolvido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="b2a04e5c-f61e-4380-990e-604417465e9d" positionType="Float" x="114" y="0" width="71" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{codigo}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="7ac7fbc7-49b0-4205-ad7f-e21ae7b5b860" positionType="Float" x="453" y="0" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{vendido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="37b92899-0cf9-4390-8daa-7f84b884c9af" positionType="Float" x="549" y="0" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{anulado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="a2a6fbc4-5e2c-4183-a638-845493a8e345" positionType="Float" x="501" y="0" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{digitado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00">
|
||||||
|
<reportElement uuid="414427e1-2de9-47a6-b35b-0a7d5ea6220c" positionType="Float" x="693" y="0" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{despesa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="b371369f-84e7-4121-b00d-5d1430da8a68" positionType="Float" x="337" y="0" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{qtdeAnulado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<columnFooter>
|
||||||
|
<band height="21">
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="f9fc3c96-035d-4560-a6b7-4b1694a78d65" x="276" y="3" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.qtdeVendido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="ce427a1a-d640-4060-85c9-690eacd95175" x="305" y="3" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.qtdeDigitado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="b6810f0c-87c7-42c7-86c7-f011efd30571" x="334" y="3" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.qtdeAnulado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="d37852e4-2683-4181-b336-20c1b9e923d7" x="363" y="3" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.qtdeDevolvido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="54b8507c-0d48-4f4c-860b-b1057ebbcc2c" x="392" y="3" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.qtdeDespesa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="63cd03cf-dfc9-4f36-a19f-e9dda994881b" x="421" y="3" width="29" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.qtdeTotal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="00457524-e86e-4bb3-b1fe-4abe0b17f187" mode="Transparent" x="450" y="3" width="48" height="17" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||||
|
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||||
|
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||||
|
<paragraph lineSpacing="Single"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.vendido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="e923470b-ac0e-43fa-a70b-1d9a98554d60" x="498" y="3" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.digitado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="48f8733b-29be-4a8b-aecf-e064fcbc0a2b" x="546" y="3" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.anulado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="0740115f-b366-459a-afd6-a08a277b248e" x="594" y="3" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.devolvido}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="fa77631c-b045-42d8-a192-091dae493739" x="642" y="3" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.receita}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="12b45f25-3417-4b90-95e5-1cbd1435030b" x="691" y="3" width="48" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.despesa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="60cb5ef9-121c-4fb9-b425-7bc9b301d62d" x="739" y="3" width="61" height="17"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="8" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{sum.total}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<line>
|
||||||
|
<reportElement uuid="1653e342-87ec-40f2-94ad-5d27b1020c3a" positionType="Float" x="0" y="1" width="802" height="1"/>
|
||||||
|
</line>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="f0f7fc52-26be-4c51-8c78-3c55375be4aa" x="3" y="3" width="127" height="17"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.totalGeral}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</columnFooter>
|
||||||
|
<noData>
|
||||||
|
<band height="20">
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620" x="0" y="0" width="803" height="20"/>
|
||||||
|
<textElement/>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioAgenciaFechamento" pageWidth="898" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="858" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioAgenciaFechamento" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
<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="RelatorioAgenciaFechamentoNovo" pageWidth="898" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="858" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioAgenciaFechamentoNovo" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
<property name="ireport.zoom" value="1.3636363636363653"/>
|
<property name="ireport.zoom" value="1.3636363636363653"/>
|
||||||
<property name="ireport.x" value="0"/>
|
<property name="ireport.x" value="0"/>
|
||||||
<property name="ireport.y" value="0"/>
|
<property name="ireport.y" value="0"/>
|
||||||
|
@ -80,170 +80,171 @@
|
||||||
<pageHeader>
|
<pageHeader>
|
||||||
<band height="40" splitType="Stretch">
|
<band height="40" splitType="Stretch">
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement x="523" y="20" width="61" height="20" uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716"/>
|
<reportElement uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716" x="535" y="20" width="49" height="20"/>
|
||||||
<textElement>
|
<textElement>
|
||||||
<font isBold="true"/>
|
<font isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.data}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.data}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement x="686" y="0" width="71" height="20" uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60"/>
|
<reportElement uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60" x="701" y="0" width="56" height="20"/>
|
||||||
|
<textElement/>
|
||||||
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField evaluationTime="Report">
|
<textField evaluationTime="Report">
|
||||||
<reportElement x="833" y="20" width="22" height="20" uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f"/>
|
<reportElement uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f" x="833" y="20" width="22" height="20"/>
|
||||||
<textElement textAlignment="Right"/>
|
<textElement textAlignment="Right"/>
|
||||||
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement x="757" y="20" width="52" height="20" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
|
<reportElement uuid="be1692e9-f130-4d08-9173-6ca3e4699030" x="767" y="20" width="42" height="20"/>
|
||||||
|
<textElement/>
|
||||||
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement x="584" y="20" width="173" height="20" uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50"/>
|
<reportElement uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50" x="584" y="20" width="182" height="20"/>
|
||||||
|
<textElement/>
|
||||||
<textFieldExpression><![CDATA[$P{fecInicio} + " à " + $P{fecFinal}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$P{fecInicio} + " à " + $P{fecFinal}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement x="0" y="0" width="686" height="20" uuid="652312bd-292a-424d-a234-5f157e3699c6"/>
|
<reportElement uuid="652312bd-292a-424d-a234-5f157e3699c6" x="0" y="0" width="231" height="20"/>
|
||||||
<textElement>
|
<textElement/>
|
||||||
<font size="14" isBold="true"/>
|
|
||||||
</textElement>
|
|
||||||
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField pattern="dd/MM/yyyy HH:mm">
|
<textField pattern="dd/MM/yyyy HH:mm">
|
||||||
<reportElement x="757" y="0" width="98" height="20" uuid="6f671365-868e-41a6-81ee-a308d1d91e1d"/>
|
<reportElement uuid="6f671365-868e-41a6-81ee-a308d1d91e1d" x="757" y="0" width="98" height="20"/>
|
||||||
<textElement textAlignment="Left"/>
|
<textElement textAlignment="Left"/>
|
||||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement x="809" y="20" width="24" height="20" uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a"/>
|
<reportElement uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a" x="809" y="20" width="24" height="20"/>
|
||||||
<textElement textAlignment="Right"/>
|
<textElement textAlignment="Right"/>
|
||||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement x="0" y="19" width="49" height="20" uuid="08817d2b-5f71-4c7a-9880-51c1a791ad04"/>
|
<reportElement uuid="08817d2b-5f71-4c7a-9880-51c1a791ad04" x="0" y="19" width="49" height="20"/>
|
||||||
<textElement>
|
<textElement>
|
||||||
<font isBold="true"/>
|
<font isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isBlankWhenNull="true">
|
<textField isBlankWhenNull="true">
|
||||||
<reportElement x="49" y="19" width="474" height="19" isPrintWhenDetailOverflows="true" uuid="64d97814-2298-4fd7-bb29-dc868f21c951"/>
|
<reportElement uuid="64d97814-2298-4fd7-bb29-dc868f21c951" x="49" y="19" width="182" height="19" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="10"/>
|
<font size="10"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<line>
|
<line>
|
||||||
<reportElement x="0" y="39" width="857" height="1" uuid="ee05e1fa-6963-4ff9-b3c8-c6cd1bb54e94"/>
|
<reportElement uuid="ee05e1fa-6963-4ff9-b3c8-c6cd1bb54e94" x="0" y="39" width="857" height="1"/>
|
||||||
</line>
|
</line>
|
||||||
</band>
|
</band>
|
||||||
</pageHeader>
|
</pageHeader>
|
||||||
<columnHeader>
|
<columnHeader>
|
||||||
<band height="38" splitType="Stretch">
|
<band height="38" splitType="Stretch">
|
||||||
<line>
|
<line>
|
||||||
<reportElement mode="Transparent" x="0" y="37" width="857" height="1" uuid="ae94e51c-f84c-405c-a9c3-d8fd0c48f03a"/>
|
<reportElement uuid="ae94e51c-f84c-405c-a9c3-d8fd0c48f03a" mode="Transparent" x="0" y="37" width="857" height="1"/>
|
||||||
</line>
|
</line>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="0" y="0" width="99" height="36" isPrintWhenDetailOverflows="true" uuid="2cbc8ddc-38e5-4914-8189-5761ddeb2ce9"/>
|
<reportElement uuid="2cbc8ddc-38e5-4914-8189-5761ddeb2ce9" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="0" y="0" width="99" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.agencia}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.agencia}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="99" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="7965e761-2e24-4f17-84eb-9431c98ce72c"/>
|
<reportElement uuid="7965e761-2e24-4f17-84eb-9431c98ce72c" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="99" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.valor.bilhete}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.valor.bilhete}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="152" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="bbaa5f53-76e0-491e-9145-e522122709e5"/>
|
<reportElement uuid="bbaa5f53-76e0-491e-9145-e522122709e5" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="152" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.qtd.bilhete}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.qtd.bilhete}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="205" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="2b25ca5a-2c25-4c7d-87d1-5bfd205177a9"/>
|
<reportElement uuid="2b25ca5a-2c25-4c7d-87d1-5bfd205177a9" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="205" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.valor.excesso}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.valor.excesso}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="258" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="ab6b6770-67e8-4224-9304-8de30d3c1384"/>
|
<reportElement uuid="ab6b6770-67e8-4224-9304-8de30d3c1384" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="258" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.qtd.excesso}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.qtd.excesso}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="311" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="e3f4df4e-24a9-45b3-8ac3-f8b66d46a15f"/>
|
<reportElement uuid="e3f4df4e-24a9-45b3-8ac3-f8b66d46a15f" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="311" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.valor.seguro}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.valor.seguro}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="364" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="79775d53-3de4-4c0c-8ec7-3be13738dc14"/>
|
<reportElement uuid="79775d53-3de4-4c0c-8ec7-3be13738dc14" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="364" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.qtd.seguro}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.qtd.seguro}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="417" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="746627ad-15b0-4435-93ce-6d370b75e594"/>
|
<reportElement uuid="746627ad-15b0-4435-93ce-6d370b75e594" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="417" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.valor.vch}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.valor.vch}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="470" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="0844b500-feab-477d-ade1-2d943491de32"/>
|
<reportElement uuid="0844b500-feab-477d-ade1-2d943491de32" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="470" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.qtd.vch}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.qtd.vch}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="523" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="3647e647-81bb-4098-afce-52d942daa341"/>
|
<reportElement uuid="3647e647-81bb-4098-afce-52d942daa341" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="523" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.valor.internet}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.valor.internet}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="576" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="328a6678-fc02-4845-98e6-a3d3bfaa2c73"/>
|
<reportElement uuid="328a6678-fc02-4845-98e6-a3d3bfaa2c73" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="576" y="0" width="53" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.qtd.internet}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.qtd.internet}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="686" y="0" width="57" height="36" isPrintWhenDetailOverflows="true" uuid="959d61e9-4311-4fab-8ead-da9c65f00be3"/>
|
<reportElement uuid="959d61e9-4311-4fab-8ead-da9c65f00be3" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="686" y="0" width="57" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.qtd.cancelados}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.qtd.cancelados}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="629" y="0" width="57" height="36" isPrintWhenDetailOverflows="true" uuid="2cca17d2-47ba-4dba-a8c3-96e4f6d7deff"/>
|
<reportElement uuid="2cca17d2-47ba-4dba-a8c3-96e4f6d7deff" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="629" y="0" width="57" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.valor.cancelados}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.valor.cancelados}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="743" y="0" width="57" height="36" isPrintWhenDetailOverflows="true" uuid="eb34f98d-93fe-4dc9-8852-31c12270ae3d"/>
|
<reportElement uuid="eb34f98d-93fe-4dc9-8852-31c12270ae3d" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="743" y="0" width="57" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.valor.estornados}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.valor.estornados}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="800" y="0" width="57" height="36" isPrintWhenDetailOverflows="true" uuid="a7c28fc6-e4fc-431b-b5ba-b001a36dcb54"/>
|
<reportElement uuid="a7c28fc6-e4fc-431b-b5ba-b001a36dcb54" positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="800" y="0" width="57" height="36" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
<font size="11" isBold="true"/>
|
<font size="11" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
|
@ -254,105 +255,105 @@
|
||||||
<detail>
|
<detail>
|
||||||
<band height="17" splitType="Stretch">
|
<band height="17" splitType="Stretch">
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="470" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="784343f8-f7aa-4997-82e7-312878bd9a27"/>
|
<reportElement uuid="784343f8-f7aa-4997-82e7-312878bd9a27" stretchType="RelativeToTallestObject" mode="Transparent" x="470" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdVch}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdVch}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" x="99" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="ad46494b-0240-46d1-a775-f91f0035d7f8"/>
|
<reportElement uuid="ad46494b-0240-46d1-a775-f91f0035d7f8" stretchType="RelativeToTallestObject" x="99" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{valorBilhete}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{valorBilhete}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="311" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="0ed9578b-73d5-4f51-b21c-07d9419bbc08"/>
|
<reportElement uuid="0ed9578b-73d5-4f51-b21c-07d9419bbc08" stretchType="RelativeToTallestObject" mode="Transparent" x="311" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{valorSeguro}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{valorSeguro}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="686" y="0" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="617806c3-5059-4e8b-9cb3-5b2bd10e4705"/>
|
<reportElement uuid="617806c3-5059-4e8b-9cb3-5b2bd10e4705" stretchType="RelativeToTallestObject" mode="Transparent" x="686" y="0" width="57" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdCancelado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdCancelado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" x="152" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="1ed844e5-7aa4-49ee-8024-765e5ae49f74"/>
|
<reportElement uuid="1ed844e5-7aa4-49ee-8024-765e5ae49f74" stretchType="RelativeToTallestObject" x="152" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdBilhete}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdBilhete}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="364" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="92017408-1781-4e17-90b7-5ff86457cf6d"/>
|
<reportElement uuid="92017408-1781-4e17-90b7-5ff86457cf6d" stretchType="RelativeToTallestObject" mode="Transparent" x="364" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdSeguro}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdSeguro}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="523" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="b7842ed3-aa20-4fe9-996a-c8397aa66c40"/>
|
<reportElement uuid="b7842ed3-aa20-4fe9-996a-c8397aa66c40" stretchType="RelativeToTallestObject" mode="Transparent" x="523" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{valorInternet}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{valorInternet}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="417" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="36f5d507-0340-4c7e-b44b-5057c1e8bee6"/>
|
<reportElement uuid="36f5d507-0340-4c7e-b44b-5057c1e8bee6" stretchType="RelativeToTallestObject" mode="Transparent" x="417" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{valorVch}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{valorVch}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="576" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="c24531bc-66b7-459b-9c60-07bea18e98d9"/>
|
<reportElement uuid="c24531bc-66b7-459b-9c60-07bea18e98d9" stretchType="RelativeToTallestObject" mode="Transparent" x="576" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdInternet}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdInternet}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="629" y="0" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="e2ad1400-e2c6-48b0-98c8-812d3c8f008d"/>
|
<reportElement uuid="e2ad1400-e2c6-48b0-98c8-812d3c8f008d" stretchType="RelativeToTallestObject" mode="Transparent" x="629" y="0" width="57" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{valorCancelado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{valorCancelado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="258" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="7f08e540-2cf9-4da3-b40a-fb7d5275751f"/>
|
<reportElement uuid="7f08e540-2cf9-4da3-b40a-fb7d5275751f" stretchType="RelativeToTallestObject" mode="Transparent" x="258" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdExcesso}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdExcesso}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="205" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="16c5bcd4-ac1c-4c49-b065-5794fb9c2e32"/>
|
<reportElement uuid="16c5bcd4-ac1c-4c49-b065-5794fb9c2e32" stretchType="RelativeToTallestObject" mode="Transparent" x="205" y="0" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{valorExcesso}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{valorExcesso}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="743" y="0" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="6562d46b-27f9-4bef-a471-8eff982378c5"/>
|
<reportElement uuid="6562d46b-27f9-4bef-a471-8eff982378c5" stretchType="RelativeToTallestObject" mode="Transparent" x="743" y="0" width="57" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{valorEstornado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{valorEstornado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="99" height="17" isPrintWhenDetailOverflows="true" uuid="16f536ed-9001-4b34-85f4-a01198390b7d"/>
|
<reportElement uuid="16f536ed-9001-4b34-85f4-a01198390b7d" stretchType="RelativeToTallestObject" x="0" y="0" width="99" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{descricao}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{descricao}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="800" y="0" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="33d170a8-cd4c-4148-85b7-48a078e68f7d"/>
|
<reportElement uuid="33d170a8-cd4c-4148-85b7-48a078e68f7d" stretchType="RelativeToTallestObject" mode="Transparent" x="800" y="0" width="57" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
|
@ -363,108 +364,108 @@
|
||||||
<lastPageFooter>
|
<lastPageFooter>
|
||||||
<band height="18">
|
<band height="18">
|
||||||
<line>
|
<line>
|
||||||
<reportElement mode="Transparent" x="0" y="0" width="857" height="1" uuid="1653e342-87ec-40f2-94ad-5d27b1020c3a"/>
|
<reportElement uuid="1653e342-87ec-40f2-94ad-5d27b1020c3a" mode="Transparent" x="0" y="0" width="857" height="1"/>
|
||||||
</line>
|
</line>
|
||||||
<textField isStretchWithOverflow="true">
|
<textField isStretchWithOverflow="true">
|
||||||
<reportElement x="0" y="1" width="99" height="17" uuid="f0f7fc52-26be-4c51-8c78-3c55375be4aa"/>
|
<reportElement uuid="f0f7fc52-26be-4c51-8c78-3c55375be4aa" x="0" y="1" width="99" height="17"/>
|
||||||
<textElement textAlignment="Left" markup="none">
|
<textElement textAlignment="Left" markup="none">
|
||||||
<font size="10"/>
|
<font size="10"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{detail.totalGeral}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{detail.totalGeral}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" x="99" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="5c65a20a-c9d5-4a90-99bc-a388aeaf3b9a"/>
|
<reportElement uuid="5c65a20a-c9d5-4a90-99bc-a388aeaf3b9a" stretchType="RelativeToTallestObject" x="99" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.valorBilhete}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.valorBilhete}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="576" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="dfae2822-460b-4e81-be01-a176d7a2aac7"/>
|
<reportElement uuid="dfae2822-460b-4e81-be01-a176d7a2aac7" stretchType="RelativeToTallestObject" mode="Transparent" x="576" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.qtdInternet}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.qtdInternet}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="311" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="c96675e1-9572-4ab1-9f83-6ec7a6ce6692"/>
|
<reportElement uuid="c96675e1-9572-4ab1-9f83-6ec7a6ce6692" stretchType="RelativeToTallestObject" mode="Transparent" x="311" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.valorSeguro}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.valorSeguro}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="470" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="31a240a5-8c29-4293-a2e3-844b2ca695ef"/>
|
<reportElement uuid="31a240a5-8c29-4293-a2e3-844b2ca695ef" stretchType="RelativeToTallestObject" mode="Transparent" x="470" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.qtdVch}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.qtdVch}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="743" y="1" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="91c51dac-2f23-40a3-beca-81d43577e200"/>
|
<reportElement uuid="91c51dac-2f23-40a3-beca-81d43577e200" stretchType="RelativeToTallestObject" mode="Transparent" x="743" y="1" width="57" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.valorEstornado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.valorEstornado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="417" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="6035409c-38a6-4809-8e25-df5d9fe77cf4"/>
|
<reportElement uuid="6035409c-38a6-4809-8e25-df5d9fe77cf4" stretchType="RelativeToTallestObject" mode="Transparent" x="417" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.valorVch}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.valorVch}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="523" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="a9096947-664a-4340-a0d9-93872e846918"/>
|
<reportElement uuid="a9096947-664a-4340-a0d9-93872e846918" stretchType="RelativeToTallestObject" mode="Transparent" x="523" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.valorInternet}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.valorInternet}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="364" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="1e646b2f-f00a-47aa-84f2-50f886028a22"/>
|
<reportElement uuid="1e646b2f-f00a-47aa-84f2-50f886028a22" stretchType="RelativeToTallestObject" mode="Transparent" x="364" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.qtdSeguro}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.qtdSeguro}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="686" y="1" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="3070f702-c0c4-41fc-8afc-79d25df8f645"/>
|
<reportElement uuid="3070f702-c0c4-41fc-8afc-79d25df8f645" stretchType="RelativeToTallestObject" mode="Transparent" x="686" y="1" width="57" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.qtdCancelado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.qtdCancelado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="205" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="c40286db-ba4d-46d5-a377-a3b7982affe5"/>
|
<reportElement uuid="c40286db-ba4d-46d5-a377-a3b7982affe5" stretchType="RelativeToTallestObject" mode="Transparent" x="205" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.valorExcesso}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.valorExcesso}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="629" y="1" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="b5f5917f-69e4-4408-8961-d9d50f151ede"/>
|
<reportElement uuid="b5f5917f-69e4-4408-8961-d9d50f151ede" stretchType="RelativeToTallestObject" mode="Transparent" x="629" y="1" width="57" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.valorCancelado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.valorCancelado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="258" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="6f4e820e-a46f-4354-9c67-7535cdf12881"/>
|
<reportElement uuid="6f4e820e-a46f-4354-9c67-7535cdf12881" stretchType="RelativeToTallestObject" mode="Transparent" x="258" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.qtdExcesso}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.qtdExcesso}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="800" y="1" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="c19ad692-5d21-4015-94b4-e67390847023"/>
|
<reportElement uuid="c19ad692-5d21-4015-94b4-e67390847023" stretchType="RelativeToTallestObject" mode="Transparent" x="800" y="1" width="57" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$V{sum.qtdEstornado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$V{sum.qtdEstornado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
<reportElement stretchType="RelativeToTallestObject" x="152" y="1" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="903b955c-d69f-487a-9ebe-5cfe37b174e5"/>
|
<reportElement uuid="903b955c-d69f-487a-9ebe-5cfe37b174e5" stretchType="RelativeToTallestObject" x="152" y="1" width="53" height="17" isPrintWhenDetailOverflows="true"/>
|
||||||
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
<font size="11" isBold="false"/>
|
<font size="11" isBold="false"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
|
@ -475,7 +476,8 @@
|
||||||
<noData>
|
<noData>
|
||||||
<band height="20">
|
<band height="20">
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement x="0" y="0" width="857" height="20" uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620"/>
|
<reportElement uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620" x="0" y="0" width="857" height="20"/>
|
||||||
|
<textElement/>
|
||||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
</band>
|
</band>
|
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioAgenciaFechamento" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
<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="RelatorioAgenciaFechamentoResumo" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
<property name="ireport.zoom" value="1.5"/>
|
<property name="ireport.zoom" value="1.5"/>
|
||||||
<property name="ireport.x" value="0"/>
|
<property name="ireport.x" value="0"/>
|
||||||
<property name="ireport.y" value="0"/>
|
<property name="ireport.y" value="0"/>
|
||||||
|
@ -31,6 +31,7 @@
|
||||||
<field name="despesa" class="java.math.BigDecimal"/>
|
<field name="despesa" class="java.math.BigDecimal"/>
|
||||||
<field name="total" class="java.math.BigDecimal"/>
|
<field name="total" class="java.math.BigDecimal"/>
|
||||||
<field name="qtdeTotal" class="java.lang.Integer"/>
|
<field name="qtdeTotal" class="java.lang.Integer"/>
|
||||||
|
<field name="subordinado" class="java.lang.String"/>
|
||||||
<variable name="sum.qtdeVendido" class="java.lang.Integer" calculation="Sum">
|
<variable name="sum.qtdeVendido" class="java.lang.Integer" calculation="Sum">
|
||||||
<variableExpression><![CDATA[$F{qtdeVendido}]]></variableExpression>
|
<variableExpression><![CDATA[$F{qtdeVendido}]]></variableExpression>
|
||||||
</variable>
|
</variable>
|
||||||
|
@ -160,105 +161,105 @@
|
||||||
<columnHeader>
|
<columnHeader>
|
||||||
<band height="25" splitType="Stretch">
|
<band height="25" splitType="Stretch">
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="0638d013-af03-46b5-850f-8ee3da2bc8b8" x="739" y="4" width="61" height="17"/>
|
<reportElement uuid="0638d013-af03-46b5-850f-8ee3da2bc8b8" x="741" y="4" width="61" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.total}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.total}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="dd31dee7-98a4-4b46-a2c4-e79677790bc2" x="691" y="4" width="48" height="17"/>
|
<reportElement uuid="dd31dee7-98a4-4b46-a2c4-e79677790bc2" x="701" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.despesa}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.despesa}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="e294d86e-22eb-48b8-81c3-fb8e1dea9bae" x="642" y="4" width="48" height="17"/>
|
<reportElement uuid="e294d86e-22eb-48b8-81c3-fb8e1dea9bae" x="661" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.receita}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.receita}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="c0bf8f56-20d8-47af-a650-4a6ba4442c8c" x="61" y="4" width="119" height="17"/>
|
<reportElement uuid="c0bf8f56-20d8-47af-a650-4a6ba4442c8c" x="142" y="4" width="119" height="17"/>
|
||||||
<textElement textAlignment="Center" markup="none">
|
<textElement textAlignment="Center" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.descricao}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.descricao}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="eb16bd4c-e5d9-423e-a089-a9b2bcbe4189" x="180" y="4" width="45" height="17"/>
|
<reportElement uuid="eb16bd4c-e5d9-423e-a089-a9b2bcbe4189" x="261" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.vendido}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.vendido}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="2c5f4806-65df-48b0-b3d4-d0912d2c5d73" x="225" y="4" width="45" height="17"/>
|
<reportElement uuid="2c5f4806-65df-48b0-b3d4-d0912d2c5d73" x="301" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.digitado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.digitado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="9f25b0f2-c5bd-495a-9ef9-0916c7c07fd3" x="270" y="4" width="45" height="17"/>
|
<reportElement uuid="9f25b0f2-c5bd-495a-9ef9-0916c7c07fd3" x="341" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.anulado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.anulado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="6555f6ff-ca40-4c88-a4b4-fb47871f6d24" x="315" y="4" width="45" height="17"/>
|
<reportElement uuid="6555f6ff-ca40-4c88-a4b4-fb47871f6d24" x="381" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.devolvido}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.devolvido}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="6e4f99f7-3a81-4fc4-b647-ab77968fd9c2" x="360" y="4" width="45" height="17"/>
|
<reportElement uuid="6e4f99f7-3a81-4fc4-b647-ab77968fd9c2" x="421" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.despesa}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.despesa}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="73004b45-c340-4f04-9697-24fb33e6e608" x="405" y="4" width="45" height="17"/>
|
<reportElement uuid="73004b45-c340-4f04-9697-24fb33e6e608" x="461" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.total}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.total}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="30ae2209-0899-4dc0-a4f0-bf8c29d6fd70" x="450" y="4" width="48" height="17"/>
|
<reportElement uuid="30ae2209-0899-4dc0-a4f0-bf8c29d6fd70" x="501" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.vendido}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.vendido}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="bc4ff148-f663-4c3f-95bd-df48630945e5" x="498" y="4" width="48" height="17"/>
|
<reportElement uuid="bc4ff148-f663-4c3f-95bd-df48630945e5" x="541" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.digitado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.digitado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="801f59e8-8ff7-4a8c-bd8f-757126d95d14" x="546" y="4" width="48" height="17"/>
|
<reportElement uuid="801f59e8-8ff7-4a8c-bd8f-757126d95d14" x="581" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.anulado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.anulado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="84490947-1221-4baa-b514-003634254e5c" x="594" y="4" width="48" height="17"/>
|
<reportElement uuid="84490947-1221-4baa-b514-003634254e5c" x="621" y="4" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$R{header.devolvido}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$R{header.devolvido}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="890b61c9-2195-455a-9c28-316d48ab5fea" x="0" y="4" width="60" height="17"/>
|
<reportElement uuid="890b61c9-2195-455a-9c28-316d48ab5fea" x="82" y="4" width="60" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="7"/>
|
<font size="7"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
|
@ -270,115 +271,131 @@
|
||||||
<line>
|
<line>
|
||||||
<reportElement uuid="83809dd0-64dc-4779-9552-440eabef278e" x="0" y="0" width="802" height="1"/>
|
<reportElement uuid="83809dd0-64dc-4779-9552-440eabef278e" x="0" y="0" width="802" height="1"/>
|
||||||
</line>
|
</line>
|
||||||
|
<textField>
|
||||||
|
<reportElement uuid="b3e54edf-d982-4626-b90e-c8e9f529b083" positionType="Float" x="0" y="4" width="82" height="17" isRemoveLineWhenBlank="true"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="7"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.subordinado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
</band>
|
</band>
|
||||||
</columnHeader>
|
</columnHeader>
|
||||||
<detail>
|
<detail>
|
||||||
<band height="17" splitType="Stretch">
|
<band height="17" splitType="Stretch">
|
||||||
<textField isBlankWhenNull="true">
|
<textField isBlankWhenNull="true">
|
||||||
<reportElement uuid="b2a04e5c-f61e-4380-990e-604417465e9d" x="0" y="0" width="60" height="17"/>
|
<reportElement uuid="b2a04e5c-f61e-4380-990e-604417465e9d" x="82" y="0" width="60" height="17"/>
|
||||||
<textElement textAlignment="Right" markup="none">
|
<textElement textAlignment="Right" markup="none">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{codigo}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{codigo}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isBlankWhenNull="true">
|
<textField isBlankWhenNull="true">
|
||||||
<reportElement uuid="5eac8194-63bd-43d7-8da2-8ed75f4f9219" x="180" y="0" width="45" height="17"/>
|
<reportElement uuid="5eac8194-63bd-43d7-8da2-8ed75f4f9219" x="261" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdeVendido}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdeVendido}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="a1102ca6-594a-4e66-8c6e-8d17eeb32005" x="225" y="0" width="45" height="17"/>
|
<reportElement uuid="a1102ca6-594a-4e66-8c6e-8d17eeb32005" x="301" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdeDigitado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdeDigitado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="b371369f-84e7-4121-b00d-5d1430da8a68" x="270" y="0" width="45" height="17"/>
|
<reportElement uuid="b371369f-84e7-4121-b00d-5d1430da8a68" x="341" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdeAnulado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdeAnulado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="fcdf6e5b-55b4-4df1-9115-abe42f6a679a" x="360" y="0" width="45" height="17"/>
|
<reportElement uuid="fcdf6e5b-55b4-4df1-9115-abe42f6a679a" x="421" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdeDespesa}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdeDespesa}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="9840555e-e3b7-4496-a3a2-914f80abe2c8" x="315" y="0" width="45" height="17"/>
|
<reportElement uuid="9840555e-e3b7-4496-a3a2-914f80abe2c8" x="381" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdeDevolvido}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdeDevolvido}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField>
|
<textField>
|
||||||
<reportElement uuid="ca7b87f8-538c-44ca-99a9-58df6d377d33" x="405" y="0" width="45" height="17"/>
|
<reportElement uuid="ca7b87f8-538c-44ca-99a9-58df6d377d33" x="461" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{qtdeTotal}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{qtdeTotal}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField pattern="#,##0.00">
|
<textField pattern="#,##0.00">
|
||||||
<reportElement uuid="7ac7fbc7-49b0-4205-ad7f-e21ae7b5b860" x="450" y="0" width="48" height="17"/>
|
<reportElement uuid="7ac7fbc7-49b0-4205-ad7f-e21ae7b5b860" x="501" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{vendido}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{vendido}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField pattern="#,##0.00">
|
<textField pattern="#,##0.00">
|
||||||
<reportElement uuid="a2a6fbc4-5e2c-4183-a638-845493a8e345" x="498" y="0" width="48" height="17"/>
|
<reportElement uuid="a2a6fbc4-5e2c-4183-a638-845493a8e345" x="541" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{digitado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{digitado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField pattern="#,##0.00">
|
<textField pattern="#,##0.00">
|
||||||
<reportElement uuid="37b92899-0cf9-4390-8daa-7f84b884c9af" x="546" y="0" width="48" height="17"/>
|
<reportElement uuid="37b92899-0cf9-4390-8daa-7f84b884c9af" x="581" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{anulado}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{anulado}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField pattern="#,##0.00">
|
<textField pattern="#,##0.00">
|
||||||
<reportElement uuid="5f34ab58-15a2-4b0c-886e-9e432f24cbb9" x="594" y="0" width="48" height="17"/>
|
<reportElement uuid="5f34ab58-15a2-4b0c-886e-9e432f24cbb9" x="621" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{devolvido}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{devolvido}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField pattern="#,##0.00">
|
<textField pattern="#,##0.00">
|
||||||
<reportElement uuid="7f3dee8d-6a9f-4daf-a92a-3cdae3914b24" x="642" y="0" width="48" height="17"/>
|
<reportElement uuid="7f3dee8d-6a9f-4daf-a92a-3cdae3914b24" x="661" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{receita}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{receita}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField pattern="#,##0.00">
|
<textField pattern="#,##0.00">
|
||||||
<reportElement uuid="414427e1-2de9-47a6-b35b-0a7d5ea6220c" x="691" y="0" width="48" height="17"/>
|
<reportElement uuid="414427e1-2de9-47a6-b35b-0a7d5ea6220c" x="701" y="0" width="40" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{despesa}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{despesa}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField pattern="#,##0.00">
|
<textField pattern="#,##0.00">
|
||||||
<reportElement uuid="4917968a-5153-4c7d-a52f-ea3886ec1751" x="739" y="0" width="61" height="17"/>
|
<reportElement uuid="4917968a-5153-4c7d-a52f-ea3886ec1751" x="741" y="0" width="61" height="17"/>
|
||||||
<textElement textAlignment="Right">
|
<textElement textAlignment="Right">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
<textField isStretchWithOverflow="true">
|
<textField isStretchWithOverflow="true">
|
||||||
<reportElement uuid="3f2de0d3-e1e1-4c38-abe4-539529605c34" stretchType="RelativeToBandHeight" x="61" y="0" width="119" height="17"/>
|
<reportElement uuid="3f2de0d3-e1e1-4c38-abe4-539529605c34" stretchType="RelativeToBandHeight" x="142" y="0" width="119" height="17"/>
|
||||||
<textElement textAlignment="Center" markup="none">
|
<textElement textAlignment="Center" markup="none">
|
||||||
<font size="8" isBold="true"/>
|
<font size="8" isBold="true"/>
|
||||||
</textElement>
|
</textElement>
|
||||||
<textFieldExpression><![CDATA[$F{descricao}]]></textFieldExpression>
|
<textFieldExpression><![CDATA[$F{descricao}]]></textFieldExpression>
|
||||||
</textField>
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement uuid="70cc0cb2-569c-4d6e-8f07-ce6d400d3438" positionType="Float" x="0" y="0" width="82" height="17" isRemoveLineWhenBlank="true">
|
||||||
|
<printWhenExpression><![CDATA[]]></printWhenExpression>
|
||||||
|
</reportElement>
|
||||||
|
<textElement>
|
||||||
|
<font size="8" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{subordinado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
</band>
|
</band>
|
||||||
</detail>
|
</detail>
|
||||||
<columnFooter>
|
<columnFooter>
|
Binary file not shown.
|
@ -1,6 +1,7 @@
|
||||||
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
public class RelatorioAgenciaFechamentoAntigoBean {
|
public class RelatorioAgenciaFechamentoAntigoBean {
|
||||||
protected String empresa;
|
protected String empresa;
|
||||||
|
@ -20,6 +21,8 @@ public class RelatorioAgenciaFechamentoAntigoBean {
|
||||||
protected BigDecimal receita;
|
protected BigDecimal receita;
|
||||||
protected BigDecimal despesa;
|
protected BigDecimal despesa;
|
||||||
protected BigDecimal total;
|
protected BigDecimal total;
|
||||||
|
protected Date data;
|
||||||
|
protected String subordinado;
|
||||||
|
|
||||||
public String getEmpresa() {
|
public String getEmpresa() {
|
||||||
return empresa;
|
return empresa;
|
||||||
|
@ -119,5 +122,17 @@ public class RelatorioAgenciaFechamentoAntigoBean {
|
||||||
public void setTotal(BigDecimal total) {
|
public void setTotal(BigDecimal total) {
|
||||||
this.total = total;
|
this.total = total;
|
||||||
}
|
}
|
||||||
|
public Date getData() {
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
public void setData(Date data) {
|
||||||
|
this.data = data;
|
||||||
|
}
|
||||||
|
public String getSubordinado() {
|
||||||
|
return subordinado;
|
||||||
|
}
|
||||||
|
public void setSubordinado(String subordinado) {
|
||||||
|
this.subordinado = subordinado;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,9 +24,10 @@ import org.zkoss.zul.Radio;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamento;
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamentoAntigo;
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamentoAntigo;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamentoResumoDiario;
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamentoDiario;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamentoNovo;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamentoResumo;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||||
|
@ -62,14 +63,14 @@ public class RelatorioAgenciaFechamentoController extends MyGenericForwardCompos
|
||||||
|
|
||||||
private Radio radLayoutNovo;
|
private Radio radLayoutNovo;
|
||||||
private Radio radLayoutAntigo;
|
private Radio radLayoutAntigo;
|
||||||
private Radio radLayoutResumoDiario;
|
private Radio radLayoutDiario;
|
||||||
|
private Radio radLayoutResumo;
|
||||||
|
|
||||||
private List<Empresa> lsEmpresas;
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
private void executarRelatorio() throws Exception {
|
private void executarRelatorio() throws Exception {
|
||||||
|
|
||||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||||
Boolean booleanLayout = false;
|
|
||||||
Empresa empresa = cmbEmpresa.getSelectedItem() != null ? (Empresa)cmbEmpresa.getSelectedItem().getValue() : null;
|
Empresa empresa = cmbEmpresa.getSelectedItem() != null ? (Empresa)cmbEmpresa.getSelectedItem().getValue() : null;
|
||||||
|
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
|
@ -102,15 +103,18 @@ public class RelatorioAgenciaFechamentoController extends MyGenericForwardCompos
|
||||||
Relatorio relatorio;
|
Relatorio relatorio;
|
||||||
Map<String, Object> args = new HashMap<String, Object>();
|
Map<String, Object> args = new HashMap<String, Object>();
|
||||||
if (radLayoutNovo.isChecked()) {
|
if (radLayoutNovo.isChecked()) {
|
||||||
relatorio = new RelatorioAgenciaFechamento(parametros, dataSourceRead.getConnection());
|
relatorio = new RelatorioAgenciaFechamentoNovo(parametros, dataSourceRead.getConnection());
|
||||||
args.put("relatorio", relatorio);
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
}else if (radLayoutAntigo.isChecked()){
|
}else if (radLayoutAntigo.isChecked()){
|
||||||
relatorio = new RelatorioAgenciaFechamentoAntigo(parametros, dataSourceRead.getConnection());
|
relatorio = new RelatorioAgenciaFechamentoAntigo(parametros, dataSourceRead.getConnection());
|
||||||
args.put("relatorio", relatorio);
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
} else if(radLayoutDiario.isChecked()) {
|
||||||
|
relatorio = new RelatorioAgenciaFechamentoDiario(parametros, dataSourceRead.getConnection());
|
||||||
|
args.put("relatorio", relatorio);
|
||||||
} else {
|
} else {
|
||||||
relatorio = new RelatorioAgenciaFechamentoResumoDiario(parametros, dataSourceRead.getConnection());
|
relatorio = new RelatorioAgenciaFechamentoResumo(parametros, dataSourceRead.getConnection());
|
||||||
args.put("relatorio", relatorio);
|
args.put("relatorio", relatorio);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,11 +212,11 @@ public class RelatorioAgenciaFechamentoController extends MyGenericForwardCompos
|
||||||
this.radLayoutAntigo = radLayoutAntigo;
|
this.radLayoutAntigo = radLayoutAntigo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Radio getRadLayoutResumoDiario() {
|
public Radio getRadLayoutDiario() {
|
||||||
return radLayoutResumoDiario;
|
return radLayoutDiario;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRadLayoutResumoDiario(Radio radLayoutResumoDiario) {
|
public void setRadLayoutDiario(Radio radLayoutDiario) {
|
||||||
this.radLayoutResumoDiario = radLayoutResumoDiario;
|
this.radLayoutDiario = radLayoutDiario;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
@ -14,27 +11,12 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.zkoss.util.resource.Labels;
|
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.zk.ui.event.Event;
|
||||||
import org.zkoss.zul.Bandbox;
|
|
||||||
import org.zkoss.zul.Datebox;
|
import org.zkoss.zul.Datebox;
|
||||||
import org.zkoss.zul.Paging;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamento;
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciasNaoImportadas;
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciasNaoImportadas;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiro;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiroSelecionados;
|
|
||||||
|
|
||||||
@Controller("relatorioAgenciasNaoImportadasController")
|
@Controller("relatorioAgenciasNaoImportadasController")
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class RelatorioController extends MyGenericForwardComposer {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
this.relatorio = (Relatorio) Executions.getCurrent().getArg().get("relatorio");
|
this.relatorio = (Relatorio) Executions.getCurrent().getArg().get("relatorio");
|
||||||
if (relatorio.getInfoMsg().size() > 0) {
|
if (!relatorio.getInfoMsg().isEmpty()) {
|
||||||
String msg = "";
|
String msg = "";
|
||||||
for (String msgItem : relatorio.getInfoMsg())
|
for (String msgItem : relatorio.getInfoMsg())
|
||||||
msg = msg.concat(msgItem + "\n");
|
msg = msg.concat(msgItem + "\n");
|
||||||
|
|
|
@ -788,7 +788,8 @@ relatorioVendasBilheteiroController.lbBilheteiro.value = Agente de Pasajes
|
||||||
relatorioVendasBilheteiroController.lbLayout.value = Layout
|
relatorioVendasBilheteiroController.lbLayout.value = Layout
|
||||||
relatorioVendasBilheteiroController.lbLayoutNovo.value = Novo
|
relatorioVendasBilheteiroController.lbLayoutNovo.value = Novo
|
||||||
relatorioVendasBilheteiroController.lbLayoutAntigo.value = Antigo
|
relatorioVendasBilheteiroController.lbLayoutAntigo.value = Antigo
|
||||||
relatorioVendasBilheteiroController.lbLayoutResumoDiario.value = Resumo Diário
|
relatorioVendasBilheteiroController.lbLayoutDiario.value = Diario
|
||||||
|
relatorioVendasBilheteiroController.lbLayoutResumo.value = Resumo
|
||||||
|
|
||||||
#Relatório de Vendas por bilheteiro Sintético
|
#Relatório de Vendas por bilheteiro Sintético
|
||||||
relatorioVendasBilheteiroSinteticoController.window.title = Reporte de ventas por agentes sintético
|
relatorioVendasBilheteiroSinteticoController.window.title = Reporte de ventas por agentes sintético
|
||||||
|
|
|
@ -830,7 +830,8 @@ relatorioVendasBilheteiroController.lbBilheteiro.value = Bilheteiro
|
||||||
relatorioVendasBilheteiroController.lbLayout.value = Layout
|
relatorioVendasBilheteiroController.lbLayout.value = Layout
|
||||||
relatorioVendasBilheteiroController.lbLayoutNovo.value = Novo
|
relatorioVendasBilheteiroController.lbLayoutNovo.value = Novo
|
||||||
relatorioVendasBilheteiroController.lbLayoutAntigo.value = Antigo
|
relatorioVendasBilheteiroController.lbLayoutAntigo.value = Antigo
|
||||||
relatorioVendasBilheteiroController.lbLayoutResumoDiario.value = Resumo Diário
|
relatorioVendasBilheteiroController.lbLayoutDiario.value = Diário
|
||||||
|
relatorioVendasBilheteiroController.lbLayoutResumo.value = Resumo
|
||||||
|
|
||||||
#Relatório de Vendas por bilheteiro Sintético
|
#Relatório de Vendas por bilheteiro Sintético
|
||||||
relatorioVendasBilheteiroSinteticoController.window.title = Relatório de Vendas por Bilheteiro Sintético
|
relatorioVendasBilheteiroSinteticoController.window.title = Relatório de Vendas por Bilheteiro Sintético
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winRelatorioAgenciaFechamento"
|
<window id="winRelatorioAgenciaFechamento"
|
||||||
apply="${relatorioAgenciaFechamentoController}"
|
apply="${relatorioAgenciaFechamentoController}"
|
||||||
contentStyle="overflow:auto" height="280px" width="760px"
|
contentStyle="overflow:auto" height="283px" width="800px"
|
||||||
border="normal">
|
border="normal" sizable="true">
|
||||||
|
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -82,7 +82,8 @@
|
||||||
<radiogroup Id="layout">
|
<radiogroup Id="layout">
|
||||||
<radio id="radLayoutNovo" label="${c:l('relatorioVendasBilheteiroController.lbLayoutNovo.value')}" />
|
<radio id="radLayoutNovo" label="${c:l('relatorioVendasBilheteiroController.lbLayoutNovo.value')}" />
|
||||||
<radio id="radLayoutAntigo" label="${c:l('relatorioVendasBilheteiroController.lbLayoutAntigo.value')}" />
|
<radio id="radLayoutAntigo" label="${c:l('relatorioVendasBilheteiroController.lbLayoutAntigo.value')}" />
|
||||||
<radio id="radLayoutResumoDiario" label="${c:l('relatorioVendasBilheteiroController.lbLayoutResumoDiario.value')}" />
|
<radio id="radLayoutDiario" label="${c:l('relatorioVendasBilheteiroController.lbLayoutDiario.value')}" />
|
||||||
|
<radio id="radLayoutResumo" label="${c:l('relatorioVendasBilheteiroController.lbLayoutResumo.value')}" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
<row spans="4">
|
<row spans="4">
|
||||||
|
|
Loading…
Reference in New Issue