fixes bug #9157
fixes bug #9391 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@73199 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a73e15d5a7
commit
e8febdef81
|
@ -7,9 +7,11 @@ import java.util.ArrayList;
|
|||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ConferenciaFormularioFisico;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioConferenciaFormularioFisico extends Relatorio {
|
||||
|
@ -28,7 +30,7 @@ public class RelatorioConferenciaFormularioFisico extends Relatorio {
|
|||
StringBuffer sql = new StringBuffer();
|
||||
sql.append("select t1.ter,t1.caixa,t1.serie,t1.feccorte,t1.usuario,t1.turno,t1.abertura,t1.fechamento, ");
|
||||
sql.append("t1.minfisico,t1.maxfisico,t1.dif1,t1.total, ");
|
||||
sql.append("min(to_number(t2.numfoliosistema)) as minlogico, max(to_number(t3.numfoliosistema)) as maxlogico ");
|
||||
sql.append("min(to_number(nvl(t2.numfoliosistema,0))) as minlogico, max(to_number(nvl(t3.numfoliosistema,0))) as maxlogico ");
|
||||
sql.append("from ");
|
||||
sql.append("(select ");
|
||||
sql.append(" e.numcaja as ter, ");
|
||||
|
@ -79,7 +81,7 @@ public class RelatorioConferenciaFormularioFisico extends Relatorio {
|
|||
sql.append("where abb.articulo_id = " + tipoventaId);
|
||||
}
|
||||
sql.append(" group by t1.ter,t1.caixa,t1.serie,t1.feccorte,t1.usuario,t1.turno,t1.abertura,t1.fechamento, t1.minfisico,t1.maxfisico,t1.dif1,t1.total ");
|
||||
sql.append(" order by t1.caixa, min(to_number(t2.numfoliosistema)), max(to_number(t3.numfoliosistema)) ");
|
||||
sql.append(" order by t1.caixa, min(to_number(nvl(t2.numfoliosistema,0))), max(to_number(nvl(t3.numfoliosistema,0))) ");
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
|
@ -104,22 +106,38 @@ public class RelatorioConferenciaFormularioFisico extends Relatorio {
|
|||
|
||||
ResultSet rs = pstmt.executeQuery();
|
||||
while (rs.next()) {
|
||||
|
||||
|
||||
/*
|
||||
1- t1.ter,
|
||||
2- t1.caixa,
|
||||
3- t1.serie,
|
||||
4- t1.feccorte,
|
||||
5- t1.usuario,
|
||||
6- t1.turno,
|
||||
7- t1.abertura,
|
||||
8- t1.fechamento, ");
|
||||
9- t1.minfisico,
|
||||
10- t1.maxfisico,
|
||||
11- t1.dif1,
|
||||
12- t1.total, ");
|
||||
13- min(to_number(nvl(t2.numfoliosistema,0))) as minlogico,
|
||||
14- max(to_number(nvl(t3.numfoliosistema,0))) as maxlogico
|
||||
*/
|
||||
ConferenciaFormularioFisico formulario = new ConferenciaFormularioFisico();
|
||||
formulario.setAbertura(rs.getDate(6));
|
||||
formulario.setBilheteFisicoAbertura(rs.getInt(8));
|
||||
formulario.setBilheteFisicoFechamento(rs.getInt(9));
|
||||
formulario.setDif1(rs.getInt(10));
|
||||
formulario.setBilheteLogicoAbertura(rs.getInt(12));
|
||||
formulario.setBilheteLogicoFechamento(rs.getInt(13));
|
||||
formulario.setDif2(rs.getInt(10));
|
||||
formulario.setCaixa(rs.getString(2));
|
||||
formulario.setFechamento(rs.getDate(7));
|
||||
formulario.setSerie(rs.getString(3));
|
||||
formulario.setTerminal(rs.getInt(1));
|
||||
formulario.setTurno(rs.getInt(5));
|
||||
formulario.setUsuario(rs.getString(4));
|
||||
formulario.setTotal(rs.getInt(11));
|
||||
formulario.setCaixa(rs.getString(2));
|
||||
formulario.setSerie(rs.getString(3));
|
||||
formulario.setUsuario(rs.getString(5));
|
||||
formulario.setTurno(rs.getInt(6));
|
||||
formulario.setAbertura(rs.getDate(7));
|
||||
formulario.setFechamento(rs.getDate(8));
|
||||
formulario.setBilheteFisicoAbertura(rs.getInt(9));
|
||||
formulario.setBilheteFisicoFechamento(rs.getInt(10));
|
||||
formulario.setDif1(rs.getInt(11));
|
||||
formulario.setDif2(rs.getInt(11));
|
||||
formulario.setTotal(rs.getInt(12));
|
||||
formulario.setBilheteLogicoAbertura(rs.getInt(13));
|
||||
formulario.setBilheteLogicoFechamento(rs.getInt(14));
|
||||
formularios.add(formulario);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,103 +1,38 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.receitaDespesa.RelatorioFinanceiroReceitasDespesasBean;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioFinanceiroReceitasDespesasBean;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioFinanceiroReceitasDespesas extends Relatorio {
|
||||
|
||||
private List<RelatorioFinanceiroReceitasDespesasBean> lsDadosRelatorio;
|
||||
protected List<RelatorioFinanceiroReceitasDespesasBean> lsDadosRelatorio;
|
||||
|
||||
public RelatorioFinanceiroReceitasDespesas(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
public RelatorioFinanceiroReceitasDespesas(Map<String, Object> parametros, List<RelatorioFinanceiroReceitasDespesasBean> lsDadosRelatorio) throws Exception {
|
||||
|
||||
super(parametros, conexao);
|
||||
super(parametros, null);
|
||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
super.initDados();
|
||||
lsDadosRelatorio = executeQuery();
|
||||
setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||
setCollectionDataSource(new JRBeanCollectionDataSource(getLsDadosRelatorio()));
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private List<RelatorioFinanceiroReceitasDespesasBean> executeQuery() throws SQLException {
|
||||
|
||||
Date fecInicio = (Date) parametros.get("fecInicio");
|
||||
Date fecFinal = (Date) parametros.get("fecFinal");
|
||||
Empresa empresa = (Empresa) parametros.get("empresa");
|
||||
List<PuntoVenta> lsPuntoVenta = (List<PuntoVenta>) parametros.get("lsPuntoVenta");
|
||||
Integer indTipo = (Integer) parametros.get("indTipo");
|
||||
|
||||
String sql = getSql(indTipo, lsPuntoVenta);
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(this.getConexao(), sql);
|
||||
stmt.setDate("fecInicio", new java.sql.Date(fecInicio.getTime()));
|
||||
stmt.setDate("fecFinal", new java.sql.Date(fecFinal.getTime()));
|
||||
stmt.setInt("empresaId", empresa.getEmpresaId());
|
||||
|
||||
ResultSet resultSet = stmt.executeQuery();
|
||||
List<RelatorioFinanceiroReceitasDespesasBean> lsBean = new ArrayList<RelatorioFinanceiroReceitasDespesasBean>();
|
||||
while (resultSet.next()) {
|
||||
RelatorioFinanceiroReceitasDespesasBean bean = new RelatorioFinanceiroReceitasDespesasBean();
|
||||
bean.setDescTipoEvento(resultSet.getString("DESCTIPOEVENTO"));
|
||||
bean.setFecHorVta(resultSet.getDate("FECHORVTA"));
|
||||
bean.setTipoEventoExtraId(resultSet.getInt("TIPOEVENTOEXTRA_ID"));
|
||||
bean.setNombPuntoVenta(resultSet.getString("NOMBPUNTOVENTA"));
|
||||
bean.setPrecio(resultSet.getBigDecimal("PRECIO"));
|
||||
bean.setPuntoVentaId(resultSet.getInt("PUNTOVENTA_ID"));
|
||||
lsBean.add(bean);
|
||||
}
|
||||
|
||||
return lsBean;
|
||||
|
||||
}
|
||||
|
||||
private String getSql(Integer indTipo, List<PuntoVenta> lsPuntoVenta) {
|
||||
|
||||
String sql = "SELECT C.FECHORVTA, P.PUNTOVENTA_ID, P.NOMBPUNTOVENTA, TE.INDTIPO, TE.TIPOEVENTOEXTRA_ID, TE.DESCTIPOEVENTO, C.PRECIO "
|
||||
+ "FROM CAJA_DIVERSOS C "
|
||||
+ "JOIN EVENTO_EXTRA E ON E.EVENTOEXTRA_ID = C.EVENTOEXTRA_ID "
|
||||
+ "JOIN TIPO_EVENTO_EXTRA TE ON TE.TIPOEVENTOEXTRA_ID = E.TIPOEVENTOEXTRA_ID "
|
||||
+ "JOIN PUNTO_VENTA P ON P.PUNTOVENTA_ID = C.PUNTOVENTA_ID "
|
||||
+ "WHERE E.EMPRESA_ID = :empresaId "
|
||||
+ "AND C.FECHORVTA BETWEEN :fecInicio AND :fecFinal ";
|
||||
|
||||
if (indTipo >= 0) {
|
||||
sql += "AND TE.INDTIPO = " + indTipo;
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(lsPuntoVenta)) {
|
||||
Integer[] lsPuntoVentaId = new Integer[lsPuntoVenta.size()];
|
||||
for (int i = 0; i < lsPuntoVenta.size(); i++) {
|
||||
lsPuntoVentaId[i] = lsPuntoVenta.get(i).getPuntoventaId();
|
||||
}
|
||||
sql += "AND C.PUNTOVENTA_ID IN (" + StringUtils.join(lsPuntoVentaId, ',') + ") ";
|
||||
}
|
||||
|
||||
return sql;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {}
|
||||
|
||||
private List<RelatorioFinanceiroReceitasDespesasBean> getLsDadosRelatorio() {
|
||||
return this.lsDadosRelatorio;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.receitaDespesa.RelatorioFinanceiroReceitasDespesasBean;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioFinanceiroReceitasDespesasAgencia extends Relatorio {
|
||||
|
||||
protected List<RelatorioFinanceiroReceitasDespesasBean> lsDadosRelatorio;
|
||||
|
||||
public RelatorioFinanceiroReceitasDespesasAgencia(Map<String, Object> parametros, List<RelatorioFinanceiroReceitasDespesasBean> lsDadosRelatorio) throws Exception {
|
||||
|
||||
super(parametros, null);
|
||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
super.initDados();
|
||||
setCollectionDataSource(new JRBeanCollectionDataSource(getLsDadosRelatorio()));
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {}
|
||||
|
||||
private List<RelatorioFinanceiroReceitasDespesasBean> getLsDadosRelatorio() {
|
||||
return this.lsDadosRelatorio;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.receitaDespesa.RelatorioFinanceiroReceitasDespesasBean;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioFinanceiroReceitasDespesasEvento extends Relatorio {
|
||||
|
||||
protected List<RelatorioFinanceiroReceitasDespesasBean> lsDadosRelatorio;
|
||||
|
||||
public RelatorioFinanceiroReceitasDespesasEvento(Map<String, Object> parametros, List<RelatorioFinanceiroReceitasDespesasBean> lsDadosRelatorio) throws Exception {
|
||||
|
||||
super(parametros, null);
|
||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
super.initDados();
|
||||
setCollectionDataSource(new JRBeanCollectionDataSource(getLsDadosRelatorio()));
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {}
|
||||
|
||||
private List<RelatorioFinanceiroReceitasDespesasBean> getLsDadosRelatorio() {
|
||||
return this.lsDadosRelatorio;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.receitaDespesa.RelatorioFinanceiroReceitasDespesasBean;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioFinanceiroReceitasDespesasSintetico extends Relatorio {
|
||||
|
||||
protected List<RelatorioFinanceiroReceitasDespesasBean> lsDadosRelatorio;
|
||||
|
||||
public RelatorioFinanceiroReceitasDespesasSintetico(Map<String, Object> parametros, List<RelatorioFinanceiroReceitasDespesasBean> lsDadosRelatorio) throws Exception {
|
||||
|
||||
super(parametros, null);
|
||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
super.initDados();
|
||||
setCollectionDataSource(new JRBeanCollectionDataSource(getLsDadosRelatorio()));
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {}
|
||||
|
||||
private List<RelatorioFinanceiroReceitasDespesasBean> getLsDadosRelatorio() {
|
||||
return this.lsDadosRelatorio;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório Financeiro de Receitas e Despesas - Por Agência
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.empresa=Empresa:
|
||||
label.numpuntoventa=Num. da Agência
|
||||
label.agenciaDescricao=Nome da Agência
|
||||
label.descevento=Evento
|
||||
label.desctipo=Tipo
|
||||
label.precio=Valor
|
||||
label.subtotal=SubTotal
|
||||
label.total=Total
|
|
@ -0,0 +1,23 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório Financeiro de Receitas e Despesas - Por Agência
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.empresa=Empresa:
|
||||
label.numpuntoventa=Num. da Agência
|
||||
label.agenciaDescricao=Nome da Agência
|
||||
label.descevento=Evento
|
||||
label.desctipo=Tipo
|
||||
label.precio=Valor
|
||||
label.subtotal=SubTotal
|
||||
label.total=Total
|
|
@ -0,0 +1,23 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório Financeiro de Receitas e Despesas - Por Eventos
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.empresa=Empresa:
|
||||
label.numpuntoventa=Num. da Agência
|
||||
label.agenciaDescricao=Nome da Agência
|
||||
label.descevento=Evento
|
||||
label.desctipo=Tipo
|
||||
label.precio=Valor
|
||||
label.subtotal=SubTotal
|
||||
label.total=Total
|
|
@ -0,0 +1,23 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório Financeiro de Receitas e Despesas - Por Eventos
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.empresa=Empresa:
|
||||
label.numpuntoventa=Num. da Agência
|
||||
label.agenciaDescricao=Nome da Agência
|
||||
label.descevento=Evento
|
||||
label.desctipo=Tipo
|
||||
label.precio=Valor
|
||||
label.subtotal=SubTotal
|
||||
label.total=Total
|
|
@ -0,0 +1,22 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório Financeiro de Receitas e Despesas - Sintético
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.empresa=Empresa:
|
||||
label.numpuntoventa=Num. da Agência
|
||||
label.agenciaDescricao=Nome da Agência
|
||||
label.receita=Receita
|
||||
label.despesa=Despesa
|
||||
label.saldo=Saldo
|
||||
label.total=Total
|
|
@ -0,0 +1,22 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório Financeiro de Receitas e Despesas - Sintético
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.empresa=Empresa:
|
||||
label.numpuntoventa=Num. da Agência
|
||||
label.agenciaDescricao=Nome da Agência
|
||||
label.receita=Receita
|
||||
label.despesa=Despesa
|
||||
label.saldo=Saldo
|
||||
label.total=Total
|
|
@ -12,8 +12,10 @@ cabecalho.pagina=P
|
|||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.empresa=Empresa:
|
||||
label.data=Data
|
||||
label.agenciaCodigo=Código da Agência
|
||||
label.agenciaCodigo=Num. da Agência
|
||||
label.agenciaDescricao=Nome da Agência
|
||||
label.operacaoCodigo=Código da Operação
|
||||
label.operacaoDescricao=Descrição da Operação
|
||||
|
|
|
@ -12,8 +12,10 @@ cabecalho.pagina=P
|
|||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.empresa=Empresa:
|
||||
label.data=Data
|
||||
label.agenciaCodigo=Código da Agência
|
||||
label.agenciaCodigo=Num. da Agência
|
||||
label.agenciaDescricao=Nome da Agência
|
||||
label.operacaoCodigo=Código da Operação
|
||||
label.operacaoDescricao=Descrição da Operação
|
||||
|
|
Binary file not shown.
|
@ -1,21 +1,28 @@
|
|||
<?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="RelatorioVendasComissao" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
|
||||
<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="RelatorioFinanceiroReceitasDespesas" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
|
||||
<property name="ireport.zoom" value="1.5"/>
|
||||
<property name="ireport.x" value="577"/>
|
||||
<property name="ireport.x" value="468"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<parameter name="fecInicioFormatted" class="java.lang.String"/>
|
||||
<parameter name="fecFinalFormatted" class="java.lang.String"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="Summary"/>
|
||||
<parameter name="fecInicioFiltro" class="java.lang.String"/>
|
||||
<parameter name="fecFinalFiltro" class="java.lang.String"/>
|
||||
<parameter name="noDataRelatorio" class="java.lang.String"/>
|
||||
<parameter name="nombEmpresa" class="java.lang.String"/>
|
||||
<parameter name="USUARIO" class="java.lang.String"/>
|
||||
<parameter name="filtros" class="java.lang.String"/>
|
||||
<queryString>
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="fecHorVta" class="java.util.Date"/>
|
||||
<field name="puntoVentaId" class="java.lang.Integer"/>
|
||||
<field name="nombPuntoVenta" class="java.lang.String"/>
|
||||
<field name="tipoEventoExtraId" class="java.lang.Integer"/>
|
||||
<field name="tipoEventoExtraId" class="java.lang.String"/>
|
||||
<field name="descTipoEvento" class="java.lang.String"/>
|
||||
<field name="precio" class="java.math.BigDecimal"/>
|
||||
<field name="numPuntoVenta" class="java.lang.String"/>
|
||||
<variable name="vTotal" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{precio}]]></variableExpression>
|
||||
</variable>
|
||||
|
@ -23,9 +30,19 @@
|
|||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band splitType="Stretch"/>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="81" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="620" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/>
|
||||
<reportElement x="638" y="20" width="142" height="20" uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}+ " " + $R{cabecalho.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="638" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/>
|
||||
<textElement markup="none">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -34,97 +51,104 @@
|
|||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement x="638" y="0" width="164" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="">
|
||||
<reportElement x="0" y="20" width="620" height="20" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b"/>
|
||||
<reportElement x="0" y="20" width="638" height="20" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicioFormatted} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinalFormatted}]]></textFieldExpression>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicioFiltro} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinalFiltro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="53" y="41" width="139" height="20" uuid="8fa1c53b-1da7-4d4d-a75c-ab1543acae2a"/>
|
||||
<textField evaluationTime="Report">
|
||||
<reportElement x="783" y="20" width="19" height="20" uuid="b3192d34-b55c-4a4e-9d38-227fbcd2f2bb"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement x="53" y="40" width="585" height="20" uuid="cbf22091-2856-4cb1-8115-c3fee5ce5299"/>
|
||||
<textFieldExpression><![CDATA[$P{nombEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement x="0" y="41" width="53" height="20" uuid="a91f6081-4740-4e36-8965-41b6cde4cc20"/>
|
||||
<text><![CDATA[Empresa:]]></text>
|
||||
</staticText>
|
||||
</band>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="21" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement x="0" y="60" width="802" height="20" uuid="b1cf4373-eaf7-44ea-a501-f860094844df"/>
|
||||
<textFieldExpression><![CDATA[$P{filtros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="607" y="0" width="195" height="20" uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
<reportElement x="0" y="40" width="53" height="20" uuid="3c46e28b-2bd3-4839-aacb-c60759cdbe19"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="638" y="40" width="164" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="2112e0ea-6df2-448f-8761-5c211d3012d3"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}+ " " + $R{cabecalho.de} + " " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="23" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="100" height="20" uuid="a3dea313-f2a7-4388-bd91-5c02e8612b8e"/>
|
||||
<band height="21" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="102" height="20" uuid="a3dea313-f2a7-4388-bd91-5c02e8612b8e"/>
|
||||
<textFieldExpression><![CDATA[$R{label.data}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="21" width="802" height="1" uuid="811af238-a027-48e9-bd6f-eee885474929"/>
|
||||
<reportElement positionType="Float" x="0" y="20" width="802" height="1" uuid="811af238-a027-48e9-bd6f-eee885474929"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="102" y="0" width="100" height="20" uuid="1ee34c25-6f62-4fec-88b8-09678b2bfd18"/>
|
||||
<textElement textAlignment="Center"/>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="102" y="0" width="102" height="20" uuid="1ee34c25-6f62-4fec-88b8-09678b2bfd18"/>
|
||||
<textFieldExpression><![CDATA[$R{label.agenciaCodigo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="204" y="0" width="190" height="20" uuid="a228f320-6e89-45a4-aef6-d1e8e76fa7a7"/>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="204" y="0" width="193" height="20" uuid="a228f320-6e89-45a4-aef6-d1e8e76fa7a7"/>
|
||||
<textFieldExpression><![CDATA[$R{label.agenciaDescricao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="509" y="0" width="190" height="20" uuid="6724b194-ae32-48c6-ac74-578fe785e768"/>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="509" y="0" width="193" height="20" uuid="6724b194-ae32-48c6-ac74-578fe785e768"/>
|
||||
<textFieldExpression><![CDATA[$R{label.operacaoDescricao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="702" y="0" width="100" height="20" uuid="97964207-4388-4f8b-be2b-befe4264210c"/>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" uuid="97964207-4388-4f8b-be2b-befe4264210c"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{label.valor}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="397" y="0" width="110" height="20" uuid="4aec7219-59e5-4942-9887-363a961fb6f1"/>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="397" y="0" width="112" height="20" uuid="4aec7219-59e5-4942-9887-363a961fb6f1"/>
|
||||
<textElement textAlignment="Center"/>
|
||||
<textFieldExpression><![CDATA[$R{label.operacaoCodigo}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="22" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy h.mm a" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="c98526c0-c36f-42df-9308-452ac671044c"/>
|
||||
<band height="20" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="102" height="20" isPrintWhenDetailOverflows="true" uuid="c98526c0-c36f-42df-9308-452ac671044c"/>
|
||||
<textFieldExpression><![CDATA[$F{fecHorVta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="102" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="15424f70-9d6b-436a-a844-4ff5a828e9a1"/>
|
||||
<textElement textAlignment="Center"/>
|
||||
<textFieldExpression><![CDATA[$F{puntoVentaId}]]></textFieldExpression>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="102" y="0" width="102" height="20" isPrintWhenDetailOverflows="true" uuid="15424f70-9d6b-436a-a844-4ff5a828e9a1"/>
|
||||
<textFieldExpression><![CDATA[$F{numPuntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="204" y="0" width="190" height="20" isPrintWhenDetailOverflows="true" uuid="aad51f92-6577-4404-9c57-1d47c0c64c6a"/>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="204" y="0" width="193" height="20" isPrintWhenDetailOverflows="true" uuid="aad51f92-6577-4404-9c57-1d47c0c64c6a"/>
|
||||
<textFieldExpression><![CDATA[$F{nombPuntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="397" y="0" width="110" height="20" isPrintWhenDetailOverflows="true" uuid="54df7028-fdb6-489b-bfe9-63a5ccf0a54b"/>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="397" y="0" width="112" height="20" isPrintWhenDetailOverflows="true" uuid="54df7028-fdb6-489b-bfe9-63a5ccf0a54b"/>
|
||||
<textElement textAlignment="Center"/>
|
||||
<textFieldExpression><![CDATA[$F{tipoEventoExtraId}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="509" y="0" width="190" height="20" isPrintWhenDetailOverflows="true" uuid="e2841610-831d-4379-96ff-e5806f4c1ceb"/>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="509" y="0" width="193" height="20" isPrintWhenDetailOverflows="true" uuid="e2841610-831d-4379-96ff-e5806f4c1ceb"/>
|
||||
<textFieldExpression><![CDATA[$F{descTipoEvento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="77d7eb39-6b9d-448d-981b-01813e97d038"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{precio}]]></textFieldExpression>
|
||||
|
@ -138,19 +162,19 @@
|
|||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band height="26" splitType="Stretch">
|
||||
<band height="21" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="5" width="99" height="20" isPrintWhenDetailOverflows="true" uuid="417ed1de-ce71-42fa-8108-33a37f6a0626"/>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="1" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="417ed1de-ce71-42fa-8108-33a37f6a0626"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vTotal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="2" width="802" height="1" uuid="c8dfd524-14cc-454c-afc0-3ce9f8d0ead8"/>
|
||||
<reportElement positionType="Float" x="0" y="0" width="802" height="1" uuid="c8dfd524-14cc-454c-afc0-3ce9f8d0ead8"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="546" y="5" width="154" height="20" uuid="38a0f957-1b50-46f9-b79f-c631baf8937b"/>
|
||||
<reportElement x="546" y="1" width="156" height="20" uuid="38a0f957-1b50-46f9-b79f-c631baf8937b"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,213 @@
|
|||
<?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="RelatorioFinanceiroReceitasDespesasAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
|
||||
<property name="ireport.zoom" value="1.5"/>
|
||||
<property name="ireport.x" value="485"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="Summary"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
|
||||
<parameter name="fecInicioFiltro" class="java.lang.String"/>
|
||||
<parameter name="fecFinalFiltro" class="java.lang.String"/>
|
||||
<parameter name="noDataRelatorio" class="java.lang.String"/>
|
||||
<parameter name="nombEmpresa" class="java.lang.String"/>
|
||||
<parameter name="filtros" class="java.lang.String"/>
|
||||
<parameter name="USUARIO" class="java.lang.String"/>
|
||||
<queryString>
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="nombPuntoVenta" class="java.lang.String"/>
|
||||
<field name="numPuntoVenta" class="java.lang.String"/>
|
||||
<field name="precio" class="java.math.BigDecimal"/>
|
||||
<field name="descTipo" class="java.lang.String"/>
|
||||
<field name="puntoVentaId" class="java.lang.Integer"/>
|
||||
<field name="descTipoEvento" class="java.lang.String"/>
|
||||
<variable name="vTotal" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{precio}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="vSubTotal" class="java.math.BigDecimal" resetType="Group" resetGroup="agencia" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{precio}]]></variableExpression>
|
||||
</variable>
|
||||
<group name="agencia">
|
||||
<groupExpression><![CDATA[$F{puntoVentaId}]]></groupExpression>
|
||||
<groupHeader>
|
||||
<band height="42">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="1" width="109" height="20" uuid="a3dea313-f2a7-4388-bd91-5c02e8612b8e"/>
|
||||
<textFieldExpression><![CDATA[$R{label.numpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="21" width="802" height="1" uuid="811af238-a027-48e9-bd6f-eee885474929"/>
|
||||
</line>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="109" y="1" width="280" height="20" uuid="a228f320-6e89-45a4-aef6-d1e8e76fa7a7"/>
|
||||
<textFieldExpression><![CDATA[$R{label.agenciaDescricao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="22" width="100" height="20" uuid="97964207-4388-4f8b-be2b-befe4264210c"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{label.precio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="602" y="22" width="100" height="20" uuid="86d783fe-132a-4724-a4cd-16fb16bc0292"/>
|
||||
<textFieldExpression><![CDATA[$R{label.desctipo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="22" width="109" height="20" isPrintWhenDetailOverflows="true" uuid="c98526c0-c36f-42df-9308-452ac671044c"/>
|
||||
<textFieldExpression><![CDATA[$F{numPuntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="109" y="22" width="280" height="20" isPrintWhenDetailOverflows="true" uuid="aad51f92-6577-4404-9c57-1d47c0c64c6a"/>
|
||||
<textFieldExpression><![CDATA[$F{nombPuntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="389" y="22" width="213" height="20" uuid="670228b3-4fbc-4e3e-a7d7-3952294b6d3d"/>
|
||||
<textFieldExpression><![CDATA[$R{label.descevento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="0" width="802" height="1" uuid="e084b6d2-8877-49be-8aa8-f20ca7decee4"/>
|
||||
</line>
|
||||
</band>
|
||||
</groupHeader>
|
||||
<groupFooter>
|
||||
<band height="20">
|
||||
<textField>
|
||||
<reportElement x="534" y="0" width="168" height="20" uuid="608a9bbf-4069-4236-b395-38768d8f05d1"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.subtotal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="6e8e3a23-b4ae-4c1b-9afd-26cff36df812"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vSubTotal}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band splitType="Stretch"/>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="80" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="638" y="20" width="142" height="20" uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}+ " " + $R{cabecalho.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="638" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/>
|
||||
<textElement markup="none">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement x="638" y="0" width="164" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="">
|
||||
<reportElement x="0" y="20" width="638" height="20" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b"/>
|
||||
<textElement>
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicioFiltro} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinalFiltro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report">
|
||||
<reportElement x="783" y="20" width="19" height="20" uuid="b0635582-1d50-4d42-a0f4-e0e21412f70b"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement x="0" y="60" width="802" height="20" uuid="7fd1ffec-2814-4bb2-93e8-12580f4557b3"/>
|
||||
<textFieldExpression><![CDATA[$P{filtros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="40" width="53" height="20" uuid="1a8b1a1d-b6df-4df2-8c19-b5c1be857a85"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement x="53" y="40" width="585" height="20" uuid="62fb92c4-08c6-40d3-925a-c2e1df785fee"/>
|
||||
<textFieldExpression><![CDATA[$P{nombEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="638" y="40" width="164" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="7fdc4e4f-c2fe-4e56-ac0a-ee8150971404"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band splitType="Stretch"/>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="20" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="77d7eb39-6b9d-448d-981b-01813e97d038"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{precio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="602" y="0" width="100" height="20" uuid="e3a6f51b-9146-442d-b076-92d5652fec2b"/>
|
||||
<textFieldExpression><![CDATA[$F{descTipo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="389" y="0" width="213" height="20" uuid="06951041-1dc3-4500-88eb-3a2df05ba67a"/>
|
||||
<textFieldExpression><![CDATA[$F{descTipoEvento}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band height="21" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="1" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="417ed1de-ce71-42fa-8108-33a37f6a0626"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vTotal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="0" width="802" height="1" uuid="c8dfd524-14cc-454c-afc0-3ce9f8d0ead8"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="534" y="1" width="168" height="20" uuid="38a0f957-1b50-46f9-b79f-c631baf8937b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="20">
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement positionType="Float" x="0" y="0" width="555" height="20" isPrintWhenDetailOverflows="true" uuid="d7df66c6-4dc0-4f3b-88f4-b22094d29091"/>
|
||||
<textElement verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -0,0 +1,214 @@
|
|||
<?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="RelatorioFinanceiroReceitasDespesasEvento" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
|
||||
<property name="ireport.zoom" value="1.5"/>
|
||||
<property name="ireport.x" value="485"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="Summary"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
|
||||
<parameter name="fecInicioFiltro" class="java.lang.String"/>
|
||||
<parameter name="fecFinalFiltro" class="java.lang.String"/>
|
||||
<parameter name="noDataRelatorio" class="java.lang.String"/>
|
||||
<parameter name="nombEmpresa" class="java.lang.String"/>
|
||||
<parameter name="filtros" class="java.lang.String"/>
|
||||
<parameter name="USUARIO" class="java.lang.String"/>
|
||||
<queryString>
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="nombPuntoVenta" class="java.lang.String"/>
|
||||
<field name="numPuntoVenta" class="java.lang.String"/>
|
||||
<field name="precio" class="java.math.BigDecimal"/>
|
||||
<field name="descTipo" class="java.lang.String"/>
|
||||
<field name="puntoVentaId" class="java.lang.Integer"/>
|
||||
<field name="descTipoEvento" class="java.lang.String"/>
|
||||
<field name="tipoEventoExtraId" class="java.lang.String"/>
|
||||
<variable name="vTotal" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{precio}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="vSubTotal" class="java.math.BigDecimal" resetType="Group" resetGroup="evento" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{precio}]]></variableExpression>
|
||||
</variable>
|
||||
<group name="evento">
|
||||
<groupExpression><![CDATA[$F{tipoEventoExtraId}]]></groupExpression>
|
||||
<groupHeader>
|
||||
<band height="42">
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="21" width="802" height="1" uuid="811af238-a027-48e9-bd6f-eee885474929"/>
|
||||
</line>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="22" width="100" height="20" uuid="97964207-4388-4f8b-be2b-befe4264210c"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{label.precio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="602" y="22" width="100" height="20" uuid="86d783fe-132a-4724-a4cd-16fb16bc0292"/>
|
||||
<textFieldExpression><![CDATA[$R{label.desctipo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="1" width="213" height="20" uuid="670228b3-4fbc-4e3e-a7d7-3952294b6d3d"/>
|
||||
<textFieldExpression><![CDATA[$R{label.descevento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="0" width="802" height="1" uuid="e084b6d2-8877-49be-8aa8-f20ca7decee4"/>
|
||||
</line>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="22" width="213" height="20" uuid="06951041-1dc3-4500-88eb-3a2df05ba67a"/>
|
||||
<textFieldExpression><![CDATA[$F{descTipoEvento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="322" y="22" width="280" height="20" uuid="a228f320-6e89-45a4-aef6-d1e8e76fa7a7"/>
|
||||
<textFieldExpression><![CDATA[$R{label.agenciaDescricao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="213" y="22" width="109" height="20" uuid="a3dea313-f2a7-4388-bd91-5c02e8612b8e"/>
|
||||
<textFieldExpression><![CDATA[$R{label.numpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupHeader>
|
||||
<groupFooter>
|
||||
<band height="20">
|
||||
<textField>
|
||||
<reportElement x="534" y="0" width="168" height="20" uuid="608a9bbf-4069-4236-b395-38768d8f05d1"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.subtotal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="6e8e3a23-b4ae-4c1b-9afd-26cff36df812"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vSubTotal}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band splitType="Stretch"/>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="82" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="638" y="20" width="142" height="20" uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}+ " " + $R{cabecalho.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="638" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/>
|
||||
<textElement markup="none">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement x="638" y="0" width="164" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="">
|
||||
<reportElement x="0" y="20" width="638" height="20" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b"/>
|
||||
<textElement>
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicioFiltro} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinalFiltro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement x="53" y="40" width="585" height="20" uuid="8fa1c53b-1da7-4d4d-a75c-ab1543acae2a"/>
|
||||
<textFieldExpression><![CDATA[$P{nombEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="40" width="53" height="20" uuid="ec8faa1e-0434-4771-9dcb-00118503a781"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report">
|
||||
<reportElement x="783" y="20" width="19" height="20" uuid="b0635582-1d50-4d42-a0f4-e0e21412f70b"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement x="0" y="61" width="802" height="20" uuid="fdd05f3f-d9fc-423c-84f4-159866bc3963"/>
|
||||
<textFieldExpression><![CDATA[$P{filtros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="638" y="40" width="164" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="94a441de-4065-43bc-8a99-6abdc8fa5e94"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band splitType="Stretch"/>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="20" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="77d7eb39-6b9d-448d-981b-01813e97d038"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{precio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="602" y="0" width="100" height="20" uuid="e3a6f51b-9146-442d-b076-92d5652fec2b"/>
|
||||
<textFieldExpression><![CDATA[$F{descTipo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="322" y="0" width="280" height="20" isPrintWhenDetailOverflows="true" uuid="aad51f92-6577-4404-9c57-1d47c0c64c6a"/>
|
||||
<textFieldExpression><![CDATA[$F{nombPuntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="213" y="0" width="109" height="20" isPrintWhenDetailOverflows="true" uuid="c98526c0-c36f-42df-9308-452ac671044c"/>
|
||||
<textFieldExpression><![CDATA[$F{numPuntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band height="21" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="1" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="417ed1de-ce71-42fa-8108-33a37f6a0626"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vTotal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="0" width="802" height="1" uuid="c8dfd524-14cc-454c-afc0-3ce9f8d0ead8"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="534" y="1" width="168" height="20" uuid="38a0f957-1b50-46f9-b79f-c631baf8937b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="20">
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement positionType="Float" x="0" y="0" width="555" height="20" isPrintWhenDetailOverflows="true" uuid="d7df66c6-4dc0-4f3b-88f4-b22094d29091"/>
|
||||
<textElement verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -0,0 +1,204 @@
|
|||
<?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="RelatorioFinanceiroReceitasDespesasSintetico" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
|
||||
<property name="ireport.zoom" value="1.5"/>
|
||||
<property name="ireport.x" value="468"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="Summary"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
|
||||
<parameter name="fecInicioFiltro" class="java.lang.String"/>
|
||||
<parameter name="fecFinalFiltro" class="java.lang.String"/>
|
||||
<parameter name="noDataRelatorio" class="java.lang.String"/>
|
||||
<parameter name="nombEmpresa" class="java.lang.String"/>
|
||||
<parameter name="filtros" class="java.lang.String"/>
|
||||
<parameter name="USUARIO" class="java.lang.String"/>
|
||||
<queryString>
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="nombPuntoVenta" class="java.lang.String"/>
|
||||
<field name="numPuntoVenta" class="java.lang.String"/>
|
||||
<field name="receita" class="java.math.BigDecimal"/>
|
||||
<field name="despesa" class="java.math.BigDecimal"/>
|
||||
<field name="saldo" class="java.math.BigDecimal"/>
|
||||
<variable name="vReceita" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{receita}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="vDespesa" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{despesa}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="vSaldo" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{saldo}]]></variableExpression>
|
||||
</variable>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band splitType="Stretch"/>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="81" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="638" y="20" width="142" height="20" uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}+ " " + $R{cabecalho.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="638" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/>
|
||||
<textElement markup="none">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement x="638" y="0" width="164" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="">
|
||||
<reportElement x="0" y="20" width="638" height="20" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b"/>
|
||||
<textElement>
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicioFiltro} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinalFiltro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Report">
|
||||
<reportElement x="783" y="20" width="19" height="20" uuid="b0635582-1d50-4d42-a0f4-e0e21412f70b"/>
|
||||
<textElement>
|
||||
<font size="10" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement x="53" y="40" width="585" height="20" uuid="7e0c5dcd-1aef-4ea5-9086-58ba403c72cb"/>
|
||||
<textFieldExpression><![CDATA[$P{nombEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement x="0" y="60" width="802" height="20" uuid="bf0da4ed-c3e9-4a30-bee4-7fe1e1e36291"/>
|
||||
<textFieldExpression><![CDATA[$P{filtros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="40" width="53" height="20" uuid="66d18dd5-7e25-4ffe-aa86-8106b2d13d41"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement mode="Transparent" x="638" y="40" width="164" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="c27f48c2-ce16-48ba-b704-c3969cbb4356"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="21" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="143" height="20" uuid="a3dea313-f2a7-4388-bd91-5c02e8612b8e"/>
|
||||
<textFieldExpression><![CDATA[$R{label.numpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="20" width="802" height="1" uuid="811af238-a027-48e9-bd6f-eee885474929"/>
|
||||
</line>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="153" y="0" width="349" height="20" uuid="a228f320-6e89-45a4-aef6-d1e8e76fa7a7"/>
|
||||
<textFieldExpression><![CDATA[$R{label.agenciaDescricao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" uuid="97964207-4388-4f8b-be2b-befe4264210c"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{label.saldo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="502" y="0" width="100" height="20" uuid="86d783fe-132a-4724-a4cd-16fb16bc0292"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{label.receita}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="602" y="0" width="100" height="20" uuid="ef72dc85-10bf-4474-b99c-c4d87c13370b"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{label.despesa}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="20" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="143" height="20" isPrintWhenDetailOverflows="true" uuid="c98526c0-c36f-42df-9308-452ac671044c"/>
|
||||
<textFieldExpression><![CDATA[$F{numPuntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="143" y="0" width="359" height="20" isPrintWhenDetailOverflows="true" uuid="aad51f92-6577-4404-9c57-1d47c0c64c6a"/>
|
||||
<textFieldExpression><![CDATA[$F{nombPuntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="77d7eb39-6b9d-448d-981b-01813e97d038"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{saldo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="502" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="732434aa-7a10-4c36-997a-8fa7f6d26891"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{receita}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="602" y="0" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="4925fe82-df5b-46c2-a176-d78bb20ec93e"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{despesa}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band height="21" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="702" y="1" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="417ed1de-ce71-42fa-8108-33a37f6a0626"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vSaldo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement positionType="Float" x="0" y="0" width="802" height="1" uuid="c8dfd524-14cc-454c-afc0-3ce9f8d0ead8"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="334" y="1" width="168" height="20" uuid="38a0f957-1b50-46f9-b79f-c631baf8937b"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="502" y="1" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="2bdad77e-49ae-4c5a-8af5-e20f4b06854e"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vReceita}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="602" y="1" width="100" height="20" isPrintWhenDetailOverflows="true" uuid="051e311d-91a5-4316-bcab-c9b7d35c16c6"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{vDespesa}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="20">
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement positionType="Float" x="0" y="0" width="555" height="20" isPrintWhenDetailOverflows="true" uuid="d7df66c6-4dc0-4f3b-88f4-b22094d29091"/>
|
||||
<textElement verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -1,68 +0,0 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
public class RelatorioFinanceiroReceitasDespesasBean {
|
||||
|
||||
private Date fecHorVta;
|
||||
|
||||
private Integer puntoVentaId;
|
||||
|
||||
private String nombPuntoVenta;
|
||||
|
||||
private Integer tipoEventoExtraId;
|
||||
|
||||
private String descTipoEvento;
|
||||
|
||||
private BigDecimal precio;
|
||||
|
||||
public Date getFecHorVta() {
|
||||
return fecHorVta;
|
||||
}
|
||||
|
||||
public void setFecHorVta(Date fecHorVta) {
|
||||
this.fecHorVta = fecHorVta;
|
||||
}
|
||||
|
||||
public Integer getPuntoVentaId() {
|
||||
return puntoVentaId;
|
||||
}
|
||||
|
||||
public void setPuntoVentaId(Integer puntoVentaId) {
|
||||
this.puntoVentaId = puntoVentaId;
|
||||
}
|
||||
|
||||
public String getNombPuntoVenta() {
|
||||
return nombPuntoVenta;
|
||||
}
|
||||
|
||||
public void setNombPuntoVenta(String nombPuntoVenta) {
|
||||
this.nombPuntoVenta = nombPuntoVenta;
|
||||
}
|
||||
|
||||
public Integer getTipoEventoExtraId() {
|
||||
return tipoEventoExtraId;
|
||||
}
|
||||
|
||||
public void setTipoEventoExtraId(Integer tipoEventoExtraId) {
|
||||
this.tipoEventoExtraId = tipoEventoExtraId;
|
||||
}
|
||||
|
||||
public String getDescTipoEvento() {
|
||||
return descTipoEvento;
|
||||
}
|
||||
|
||||
public void setDescTipoEvento(String descTipoEvento) {
|
||||
this.descTipoEvento = descTipoEvento;
|
||||
}
|
||||
|
||||
public BigDecimal getPrecio() {
|
||||
return precio;
|
||||
}
|
||||
|
||||
public void setPrecio(BigDecimal precio) {
|
||||
this.precio = precio;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,14 +1,11 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -19,17 +16,25 @@ import org.zkoss.zk.ui.event.Event;
|
|||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFinanceiroReceitasDespesas;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFinanceiroReceitasDespesasAgencia;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFinanceiroReceitasDespesasEvento;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFinanceiroReceitasDespesasSintetico;
|
||||
import com.rjconsultores.ventaboletos.relatorios.receitaDespesa.RelatorioFinanceiroReceitasDespesasBean;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.ReceitaDespesaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPuntoVentaSimple;
|
||||
import com.trg.search.Filter;
|
||||
|
||||
/**
|
||||
|
@ -44,11 +49,8 @@ public class RelatorioFinanceiroReceitasDespesasController extends MyGenericForw
|
|||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
|
||||
ReceitaDespesaService receitaDespesaService;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
private Datebox dataInicial;
|
||||
private Datebox dataFinal;
|
||||
|
@ -57,35 +59,116 @@ public class RelatorioFinanceiroReceitasDespesasController extends MyGenericForw
|
|||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<TipoEventoExtra> plwEventoExtra;
|
||||
private MyListbox puntoVentaList;
|
||||
private MyListbox puntoVentaSelectedList;
|
||||
private MyListbox eventoExtraList;
|
||||
private MyListbox eventoExtraSelectedList;
|
||||
private Textbox txtPalavraPesquisa;
|
||||
private Textbox txtPalavraPesquisaEventoExtra;
|
||||
private Paging pagingPuntoVenta;
|
||||
private Paging pagingEventoExtra;
|
||||
|
||||
private Radio rDetalhado;
|
||||
private Radio rSintetico;
|
||||
private Radio rAgencia;
|
||||
private Radio rEvento;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
puntoVentaList.setItemRenderer(new RenderPuntoVentaSimple());
|
||||
puntoVentaSelectedList.setItemRenderer(new RenderPuntoVentaSimple());
|
||||
lsEmpresa = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
cmbIndTipo.setSelectedIndex(0);
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("fecInicio", dataInicial.getValue());
|
||||
parametros.put("fecInicioFormatted", sdf.format(dataInicial.getValue()));
|
||||
parametros.put("fecFinal", dataFinal.getValue());
|
||||
parametros.put("fecFinalFormatted", sdf.format(dataFinal.getValue()));
|
||||
Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
parametros.put("empresa", empresa);
|
||||
parametros.put("nombEmpresa", empresa.getNombempresa());
|
||||
parametros.put("lsPuntoVenta", Arrays.asList(puntoVentaSelectedList.getData()));
|
||||
parametros.put("indTipo", Integer.valueOf((String) cmbIndTipo.getSelectedItem().getValue()));
|
||||
|
||||
RelatorioFinanceiroReceitasDespesas relatorio = new RelatorioFinanceiroReceitasDespesas(parametros, dataSourceRead.getConnection());
|
||||
String formatoData = "dd/MM/yyyy HH:mm";
|
||||
String formatoDataFiltro = "dd/MM/yyyy";
|
||||
if(dataInicial.getValue() != null) {
|
||||
parametros.put("fecInicio", DateUtil.getStringDate(DateUtil.inicioFecha(dataInicial.getValue()), formatoData));
|
||||
parametros.put("fecInicioFiltro", DateUtil.getStringDate(dataInicial.getValue(), formatoDataFiltro));
|
||||
}
|
||||
if(dataFinal.getValue() != null) {
|
||||
parametros.put("fecFinal", DateUtil.getStringDate(DateUtil.fimFecha(dataFinal.getValue()), formatoData));
|
||||
parametros.put("fecFinalFiltro", DateUtil.getStringDate(dataFinal.getValue(), formatoDataFiltro));
|
||||
}
|
||||
|
||||
if(cmbEmpresa.getSelectedItem() != null) {
|
||||
Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
parametros.put("empresaId", empresa.getEmpresaId());
|
||||
parametros.put("nombEmpresa", empresa.getNombempresa());
|
||||
}
|
||||
|
||||
StringBuilder sbFiltros = new StringBuilder();
|
||||
sbFiltros.append("Agências: ");
|
||||
if(puntoVentaSelectedList.getData() != null && puntoVentaSelectedList.getData().length > 0) {
|
||||
List<Object> puntosVenta = Arrays.asList(puntoVentaSelectedList.getData());
|
||||
List<Integer> lsPuntoVenta = new ArrayList<Integer>();
|
||||
for (Object obj : puntosVenta) {
|
||||
PuntoVenta puntoVenta = (PuntoVenta) obj;
|
||||
lsPuntoVenta.add(puntoVenta.getPuntoventaId());
|
||||
sbFiltros.append(puntoVenta.getNombpuntoventa())
|
||||
.append("; ");
|
||||
}
|
||||
parametros.put("lsPuntoVenta", lsPuntoVenta);
|
||||
} else {
|
||||
sbFiltros.append("Todas; ");
|
||||
}
|
||||
|
||||
sbFiltros.append("Eventos: ");
|
||||
if(eventoExtraSelectedList.getData() != null && eventoExtraSelectedList.getData().length > 0) {
|
||||
List<Object> eventosExtra = Arrays.asList(eventoExtraSelectedList.getData());
|
||||
List<Integer> lsEventosExtra = new ArrayList<Integer>();
|
||||
for (Object obj : eventosExtra) {
|
||||
TipoEventoExtra eventoExtra = (TipoEventoExtra) obj;
|
||||
lsEventosExtra.add(eventoExtra.getTipoeventoextraId());
|
||||
sbFiltros.append(eventoExtra.getDescTipoEvento())
|
||||
.append("; ");
|
||||
}
|
||||
parametros.put("lsEventosExtra", lsEventosExtra);
|
||||
} else {
|
||||
sbFiltros.append("Todos; ");
|
||||
}
|
||||
|
||||
sbFiltros.append("Tipo: ");
|
||||
if(cmbIndTipo.getSelectedItem() != null) {
|
||||
Integer indTipo = Integer.valueOf((String) cmbIndTipo.getSelectedItem().getValue());
|
||||
if(indTipo > -1) {
|
||||
parametros.put("indTipo", Integer.valueOf((String) cmbIndTipo.getSelectedItem().getValue()));
|
||||
}
|
||||
if(RelatorioFinanceiroReceitasDespesasBean.TIPO_CREDITO.equals(indTipo)) {
|
||||
sbFiltros.append("Receita; ");
|
||||
} else if(RelatorioFinanceiroReceitasDespesasBean.TIPO_DEBITO.equals(indTipo)) {
|
||||
sbFiltros.append("Despesa; ");
|
||||
} else {
|
||||
sbFiltros.append("Todos; ");
|
||||
}
|
||||
} else {
|
||||
sbFiltros.append("Todos; ");
|
||||
}
|
||||
|
||||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getClaveUsuario());
|
||||
parametros.put("filtros", sbFiltros.toString());
|
||||
List<RelatorioFinanceiroReceitasDespesasBean> lsDados = null;
|
||||
Relatorio relatorio = null;
|
||||
|
||||
if(rDetalhado.isChecked()) {
|
||||
lsDados = receitaDespesaService.getRelatorioDetalhado(parametros);
|
||||
relatorio = new RelatorioFinanceiroReceitasDespesas(parametros, lsDados);
|
||||
} else if(rSintetico.isChecked()) {
|
||||
lsDados = receitaDespesaService.getRelatorioSintetico(parametros);
|
||||
relatorio = new RelatorioFinanceiroReceitasDespesasSintetico(parametros, lsDados);
|
||||
} else if(rAgencia.isChecked()) {
|
||||
lsDados = receitaDespesaService.getRelatorioAgencia(parametros);
|
||||
relatorio = new RelatorioFinanceiroReceitasDespesasAgencia(parametros, lsDados);
|
||||
} else if(rEvento.isChecked()) {
|
||||
lsDados = receitaDespesaService.getRelatorioEvento(parametros);
|
||||
relatorio = new RelatorioFinanceiroReceitasDespesasEvento(parametros, lsDados);
|
||||
}
|
||||
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
args.put("relatorio", relatorio);
|
||||
|
@ -100,7 +183,7 @@ public class RelatorioFinanceiroReceitasDespesasController extends MyGenericForw
|
|||
puntoVentaSelectedList.addItemNovo(puntoVentaSel);
|
||||
}
|
||||
|
||||
public void onDoubleClick$puntoVentaSelList(Event ev) {
|
||||
public void onDoubleClick$puntoVentaSelectedList(Event ev) {
|
||||
PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaSelectedList.getSelected();
|
||||
puntoVentaSelectedList.removeItem(puntoVentaSel);
|
||||
}
|
||||
|
@ -109,6 +192,20 @@ public class RelatorioFinanceiroReceitasDespesasController extends MyGenericForw
|
|||
puntoVentaSelectedList.setData(new ArrayList<Object>());
|
||||
}
|
||||
|
||||
public void onDoubleClick$eventoExtraList(Event ev) {
|
||||
TipoEventoExtra eventoExtraSel = (TipoEventoExtra) eventoExtraList.getSelected();
|
||||
eventoExtraSelectedList.addItemNovo(eventoExtraSel);
|
||||
}
|
||||
|
||||
public void onDoubleClick$eventoExtraSelectedList(Event ev) {
|
||||
TipoEventoExtra eventoExtraSel = (TipoEventoExtra) eventoExtraSelectedList.getSelected();
|
||||
eventoExtraSelectedList.removeItem(eventoExtraSel);
|
||||
}
|
||||
|
||||
public void onClick$btnLimparEventoExtra(Event ev) {
|
||||
eventoExtraSelectedList.setData(new ArrayList<Object>());
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
|
||||
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda =
|
||||
|
@ -131,6 +228,29 @@ public class RelatorioFinanceiroReceitasDespesasController extends MyGenericForw
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisaEventoExtra(Event ev) {
|
||||
|
||||
HibernateSearchObject<TipoEventoExtra> eventoExtraBusqueda =
|
||||
new HibernateSearchObject<TipoEventoExtra>(TipoEventoExtra.class,
|
||||
pagingEventoExtra.getPageSize());
|
||||
|
||||
eventoExtraBusqueda.addFilterOr(Filter.like("descTipoEvento", "%" + txtPalavraPesquisaEventoExtra.getText().trim().toUpperCase().concat("%")));
|
||||
eventoExtraBusqueda.addSortAsc("descTipoEvento");
|
||||
eventoExtraBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
plwEventoExtra.init(eventoExtraBusqueda, eventoExtraList, pagingEventoExtra);
|
||||
|
||||
if (eventoExtraList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
|
|
|
@ -7050,4 +7050,26 @@ editarRegionMetropolitanaController.window.title = Região Metropolitana
|
|||
editarRegionMetropolitanaController.MSG.suscribirOK = Região Metropolitana Registrado com Sucesso.
|
||||
editarRegionMetropolitanaController.MSG.borrarPergunta = Eliminar a Região Metropolitana?
|
||||
editarRegionMetropolitanaController.MSG.borrarOK = Região Metropolitana Excluido com Sucesso.
|
||||
editarRegionMetropolitanaController.MSG.vazio = Nenhum filtro foi adicionado.
|
||||
editarRegionMetropolitanaController.MSG.vazio = Nenhum filtro foi adicionado.
|
||||
|
||||
# Reporte Ingresos y Gastos Financieros
|
||||
relatorioFinanceiroReceitasDespesasController.window.title=Relatório Financeiro de Receitas e Despesas
|
||||
indexController.mniRelatorioFinanceiroReceitasDespesas.label=Receitas e Despesas
|
||||
relatorioFinanceiroReceitasDespesasController.lbDataIni.value=Data Início
|
||||
relatorioFinanceiroReceitasDespesasController.lbDataFin.value=Data Final
|
||||
relatorioFinanceiroReceitasDespesasController.lbEmpresa.value=Empresa
|
||||
relatorioFinanceiroReceitasDespesasController.lbAgencia.value=Agência
|
||||
relatorioFinanceiroReceitasDespesasController.tipoOperacion.value=Tipo Evento
|
||||
relatorioFinanceiroReceitasDespesasController.indTipo1=Receita
|
||||
relatorioFinanceiroReceitasDespesasController.indTipo2=Despesa
|
||||
relatorioFinanceiroReceitasDespesasController.indTipo3=Todas
|
||||
relatorioFinanceiroReceitasDespesasController.btnPesquisa.label = Pesquisar
|
||||
relatorioFinanceiroReceitasDespesasController.btnLimpar.label = Limpar Seleção
|
||||
relatorioFinanceiroReceitasDespesasController.puntoVentaSelectedList.codigo = Código
|
||||
relatorioFinanceiroReceitasDespesasController.puntoVentaSelectedList.nome = Nome
|
||||
relatorioFinanceiroReceitasDespesasController.lb.tipo = Tipo Relatorio
|
||||
relatorioFinanceiroReceitasDespesasController.lb.detalhado = Detalhado
|
||||
relatorioFinanceiroReceitasDespesasController.lb.sintetico = Sintético
|
||||
relatorioFinanceiroReceitasDespesasController.lb.agencia = Por Agência
|
||||
relatorioFinanceiroReceitasDespesasController.lb.evento = Por Evento
|
||||
relatorioFinanceiroReceitasDespesasController.lbEventoExtra.value = Evento
|
|
@ -7516,7 +7516,7 @@ relatorioFinanceiroReceitasDespesasController.lbDataIni.value=Data Início
|
|||
relatorioFinanceiroReceitasDespesasController.lbDataFin.value=Data Final
|
||||
relatorioFinanceiroReceitasDespesasController.lbEmpresa.value=Empresa
|
||||
relatorioFinanceiroReceitasDespesasController.lbAgencia.value=Agência
|
||||
relatorioFinanceiroReceitasDespesasController.tipoOperacion.value=Tipo
|
||||
relatorioFinanceiroReceitasDespesasController.tipoOperacion.value=Tipo Evento
|
||||
relatorioFinanceiroReceitasDespesasController.indTipo1=Receita
|
||||
relatorioFinanceiroReceitasDespesasController.indTipo2=Despesa
|
||||
relatorioFinanceiroReceitasDespesasController.indTipo3=Todas
|
||||
|
@ -7524,6 +7524,12 @@ relatorioFinanceiroReceitasDespesasController.btnPesquisa.label = Pesquisar
|
|||
relatorioFinanceiroReceitasDespesasController.btnLimpar.label = Limpar Seleção
|
||||
relatorioFinanceiroReceitasDespesasController.puntoVentaSelectedList.codigo = Código
|
||||
relatorioFinanceiroReceitasDespesasController.puntoVentaSelectedList.nome = Nome
|
||||
relatorioFinanceiroReceitasDespesasController.lb.tipo = Tipo Relatório
|
||||
relatorioFinanceiroReceitasDespesasController.lb.detalhado = Detalhado
|
||||
relatorioFinanceiroReceitasDespesasController.lb.sintetico = Sintético
|
||||
relatorioFinanceiroReceitasDespesasController.lb.agencia = Por Agência
|
||||
relatorioFinanceiroReceitasDespesasController.lb.evento = Por Evento
|
||||
relatorioFinanceiroReceitasDespesasController.lbEventoExtra.value = Evento
|
||||
|
||||
#Auditoria
|
||||
auditoriaController.window.title = Auditoria
|
||||
|
|
|
@ -28,14 +28,19 @@
|
|||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
|
||||
<row spans="1,4">
|
||||
<label
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
buttonVisible="true" width="100%" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioFinanceiroReceitasDespesas$composer.lsEmpresa}" />
|
||||
<label value="${c:l('relatorioFinanceiroReceitasDespesasController.lbAgencia.value')}" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.lbAgencia.value')}" />
|
||||
<bandbox id="bbPesquisaPuntoVenta" width="90%"
|
||||
mold="rounded" readonly="true">
|
||||
<bandpopup height="150px">
|
||||
|
@ -66,22 +71,44 @@
|
|||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
|
||||
<label
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.lbEventoExtra.value')}" />
|
||||
<bandbox id="bbPesquisaEventoExtra" width="90%"
|
||||
mold="rounded" readonly="true">
|
||||
<bandpopup height="150px">
|
||||
<vbox>
|
||||
<hbox>
|
||||
<textbox id="txtPalavraPesquisaEventoExtra" />
|
||||
<button id="btnPesquisaEventoExtra"
|
||||
image="/gui/img/find.png"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.btnPesquisa.label')}" />
|
||||
<button id="btnLimparEventoExtra"
|
||||
image="/gui/img/eraser.png"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.btnLimpar.label')}" />
|
||||
</hbox>
|
||||
|
||||
<listbox id="eventoExtraList"
|
||||
mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="100%" width="360px">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.eventoExtraSelectedList.nome')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging id="pagingEventoExtra"
|
||||
pageSize="10" />
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.tipoOperacion.value')}" />
|
||||
<combobox id="cmbIndTipo" width="100%" mold="rounded"
|
||||
buttonVisible="true" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar">
|
||||
<comboitem value="1"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.indTipo1')}" />
|
||||
<comboitem value="0"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.indTipo2')}" />
|
||||
<comboitem value="-1"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.indTipo3')}" />
|
||||
</combobox>
|
||||
<cell colspan="2" rowspan="2">
|
||||
<borderlayout height="100px">
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.lbAgencia.value')}" />
|
||||
<cell rowspan="1" valign="middle">
|
||||
<borderlayout height="150px">
|
||||
<center border="0">
|
||||
<listbox id="puntoVentaSelectedList"
|
||||
mold="paging"
|
||||
|
@ -89,16 +116,66 @@
|
|||
vflex="true" multiple="true" height="60%" width="100%">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.puntoVentaSelectedList.codigo')}" />
|
||||
label="${c:l('relatorioDevolucaoBilhetesController.puntoVentaSelList.codigo')}" />
|
||||
<listheader
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.puntoVentaSelectedList.nome')}" />
|
||||
label="${c:l('relatorioDevolucaoBilhetesController.puntoVentaSelList.nome')}" />
|
||||
<listheader width="35px" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</center>
|
||||
</borderlayout>
|
||||
</cell>
|
||||
</row>
|
||||
|
||||
<label
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.lbEventoExtra.value')}" />
|
||||
<cell rowspan="1" valign="middle">
|
||||
<borderlayout height="150px">
|
||||
<center border="0">
|
||||
<listbox id="eventoExtraSelectedList"
|
||||
mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="true" height="60%" width="100%">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('relatorioDevolucaoBilhetesController.puntoVentaSelList.nome')}" />
|
||||
<listheader width="35px" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</center>
|
||||
</borderlayout>
|
||||
</cell>
|
||||
</row>
|
||||
|
||||
<row spans="1,4">
|
||||
<label
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.tipoOperacion.value')}" />
|
||||
<combobox id="cmbIndTipo" width="100%" mold="rounded"
|
||||
buttonVisible="true" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar">
|
||||
<comboitem value="-1"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.indTipo3')}" />
|
||||
<comboitem value="1"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.indTipo1')}" />
|
||||
<comboitem value="0"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.indTipo2')}" />
|
||||
</combobox>
|
||||
</row>
|
||||
|
||||
<row spans="1,4">
|
||||
<label
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.lb.tipo')}" />
|
||||
<radiogroup>
|
||||
<radio id="rDetalhado"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lb.detalhado')}"
|
||||
checked="true" />
|
||||
<radio id="rSintetico"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lb.sintetico')}" />
|
||||
<radio id="rAgencia"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lb.agencia')}" />
|
||||
<radio id="rEvento"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lb.evento')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
|
Loading…
Reference in New Issue