fixes bug 0010007 -commit das alterações do relatorio na trunk

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@75784 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno.neves 2017-10-27 18:24:03 +00:00
parent 390f1261aa
commit e0c95bbdde
11 changed files with 981 additions and 10 deletions

View File

@ -0,0 +1,272 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import org.apache.commons.lang.math.NumberUtils;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioAgenciaFechamentoAntigoBean;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioAgenciaFechamentoBean;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioAgenciaFechamentoAntigo extends Relatorio {
private List<RelatorioAgenciaFechamentoAntigoBean> lsDadosRelatorio;
public RelatorioAgenciaFechamentoAntigo(Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
this.setCustomDataSource(new DataSource(this) {
@Override
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
String fecInicio = parametros.get("fecInicio").toString() + " 00:00:00";
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
String empresaNome = parametros.get("empresaNome") != null ? parametros.get("empresaNome").toString() : "";
String puntoVenta = parametros.get("NUMPUNTOVENTA") != null ? parametros.get("NUMPUNTOVENTA").toString() : null;
lsDadosRelatorio = new ArrayList<RelatorioAgenciaFechamentoAntigoBean>();
String sql = carregarDadosTotaisdeVenda(puntoVenta);
System.out.println(sql);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset1 = null;
ResultSet rset2 = null;
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
if (empresa != null && !empresa.equals("")) {
stmt.setInt("empresaId", Integer.parseInt(empresa));
}
rset1= stmt.executeQuery();
while (rset1.next()) {
RelatorioAgenciaFechamentoAntigoBean agenciaFechamento = new RelatorioAgenciaFechamentoAntigoBean();
BigDecimal total = BigDecimal.ZERO;
BigDecimal vendido = BigDecimal.ZERO;
String puntoVentaId = rset1.getString("codigo");
Integer qtdevendido = rset1.getInt("qtdevendido");
Integer qtdedigitado = rset1.getInt("qtdedigitado");
Integer qtdeAnulado = rset1.getInt("qtdeAnulado");
Integer qtdeDevolvido = rset1.getInt("qtdeDevolvido");
Integer qtdeTotal = null;
vendido = rset1.getBigDecimal("vendido");
BigDecimal digitado = rset1.getBigDecimal("digitado");
BigDecimal anulado = rset1.getBigDecimal("anulado");
BigDecimal devolvido = rset1.getBigDecimal("devolvido");
agenciaFechamento.setEmpresa(empresaNome);
agenciaFechamento.setCodigo(rset1.getString("codigo"));
agenciaFechamento.setDescricao(rset1.getString("descricao"));
agenciaFechamento.setQtdeVendido(qtdevendido != null ? qtdevendido : NumberUtils.INTEGER_ZERO);
agenciaFechamento.setQtdeDigitado(qtdedigitado != null ? qtdedigitado : NumberUtils.INTEGER_ZERO);
agenciaFechamento.setQtdeAnulado(qtdeAnulado != null ? qtdeAnulado : NumberUtils.INTEGER_ZERO);
agenciaFechamento.setQtdeDevolvido(qtdeDevolvido != null ? qtdeDevolvido : NumberUtils.INTEGER_ZERO);
qtdeTotal = ((qtdevendido != null ? qtdevendido : NumberUtils.INTEGER_ZERO) + (qtdedigitado != null ? qtdedigitado : NumberUtils.INTEGER_ZERO))
- ((qtdeAnulado != null ? qtdeAnulado : NumberUtils.INTEGER_ZERO) + (qtdeDevolvido != null ? qtdeDevolvido : NumberUtils.INTEGER_ZERO));
if (qtdeTotal < 0) {
qtdeTotal = NumberUtils.INTEGER_ZERO;
}
agenciaFechamento.setQtdeTotal(qtdeTotal);
agenciaFechamento.setDigitado(digitado != null ? digitado : BigDecimal.ZERO);
agenciaFechamento.setAnulado(anulado != null ? anulado : BigDecimal.ZERO);
agenciaFechamento.setDevolvido(devolvido != null ? devolvido : BigDecimal.ZERO);
total = total.add(vendido != null ? vendido : BigDecimal.ZERO);
total = total.add(digitado != null ? digitado : BigDecimal.ZERO);
total = total.subtract(anulado != null ? anulado : BigDecimal.ZERO);
total = total.subtract(devolvido != null ? devolvido : BigDecimal.ZERO);
stmt = new NamedParameterStatement(conexao, carregarDadosReceitaDespesa(puntoVentaId));
System.out.println(carregarDadosReceitaDespesa(puntoVentaId));
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
if (empresa != null && !empresa.equals("")) {
stmt.setInt("empresaId", Integer.parseInt(empresa));
}
if (puntoVentaId != null ) {
stmt.setString("puntoVentaId", puntoVentaId);
}
rset2 = stmt.executeQuery();
if (rset2.next()) {
Integer qtdedespesa = rset2.getInt("qtdedespesa");
BigDecimal receita = rset2.getBigDecimal("receita");
BigDecimal despesa = rset2.getBigDecimal("despesa");
agenciaFechamento.setQtdeDespesa(qtdedespesa != null ? qtdedespesa : NumberUtils.INTEGER_ZERO);
agenciaFechamento.setReceita(receita != null ? receita : BigDecimal.ZERO);
agenciaFechamento.setDespesa(despesa != null ? despesa : BigDecimal.ZERO);
total = total.add(receita != null ? receita : BigDecimal.ZERO);
total = total.subtract(despesa != null ? despesa : BigDecimal.ZERO);
agenciaFechamento.setVendido(vendido != null ? vendido : BigDecimal.ZERO);
agenciaFechamento.setTotal(total.abs());
} else {
agenciaFechamento.setQtdeDespesa(NumberUtils.INTEGER_ZERO);
agenciaFechamento.setReceita(BigDecimal.ZERO);
agenciaFechamento.setDespesa(BigDecimal.ZERO);
agenciaFechamento.setVendido(vendido != null ? vendido : BigDecimal.ZERO);
agenciaFechamento.setTotal(total.abs());
}
lsDadosRelatorio.add(agenciaFechamento);
//Estava dando um erro de "máximo de cursores abertos excedido"
//Colocado isso o erro parou de ocorrer
rset2.getStatement().close();
rset2.close();
}
if (lsDadosRelatorio.size() > 0) {
setLsDadosRelatorio(lsDadosRelatorio);
}
}
});
}
public void setLsDadosRelatorio(List<RelatorioAgenciaFechamentoAntigoBean> lsDadosRelatorio) {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
this.lsDadosRelatorio = lsDadosRelatorio;
}
@Override
protected void processaParametros() throws Exception {
}
private String carregarDadosTotaisdeVenda(String puntoVenta) {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT ");
sql.append(" pv.PUNTOVENTA_ID AS codigo, ");
sql.append(" pv.nombpuntoventa AS descricao, ");
sql.append(" ");
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and (c.INDREMOTOINVERSO is null or c.INDREMOTOINVERSO =0) THEN c.caja_id ELSE NULL END),0) AS qtdevendido, ");
sql.append(" ");
sql.append(" COALESCE(COUNT(CASE WHEN c.INDREMOTOINVERSO = 1 THEN 1 ELSE NULL END),0) AS qtdedigitado, ");
sql.append(" ");
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID = 31 THEN 1 ELSE NULL END),0) AS qtdeAnulado, ");
sql.append(" COALESCE(COUNT(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID <> 31 THEN 1 ELSE NULL END),0) AS qtdeDevolvido, ");
sql.append(" ");
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and (c.INDREMOTOINVERSO is null or c.INDREMOTOINVERSO =0) THEN ( ");
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS vendido, ");
sql.append(" ");
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID IS NULL and c.INDREMOTOINVERSO = 1 THEN ( ");
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS digitado, ");
sql.append(" ");
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID = 31 THEN ( ");
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS anulado, ");
sql.append(" ");
sql.append(" COALESCE(SUM(CASE WHEN c.MOTIVOCANCELACION_ID is not null and c.MOTIVOCANCELACION_ID <> 31 THEN ( ");
sql.append(" coalesce(c.IMPORTEOUTROS,0) + coalesce(c.IMPORTEPEDAGIO,0) + coalesce(c.IMPORTESEGURO,0) ");
sql.append(" +coalesce(IMPORTETAXAEMBARQUE ,0)+coalesce(c.preciopagado,0)) ELSE NULL END),0) AS devolvido ");
sql.append(" ");
sql.append(" ");
sql.append(" FROM CAJA c ");
sql.append(" INNER JOIN PUNTO_VENTA pv ON c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
sql.append(" inner join marca m on m.marca_id = c.marca_id ");
sql.append(" WHERE c.TURNO_ID IS NOT NULL ");
sql.append(" AND c.FECCORTE BETWEEN :de AND :ate ");
if (puntoVenta != null && !puntoVenta.equals("-1")) {
sql.append(" AND c.PUNTOVENTA_ID in (" + puntoVenta + ") ");
}
sql.append(" AND c.TIPOVENTA_ID <> 6 ");
sql.append(" AND c.INDREIMPRESION = 0 ");
sql.append(" AND m.empresa_id = :empresaId ");
sql.append(" GROUP BY pv.PUNTOVENTA_ID , pv.nombpuntoventa ");
sql.append(" ORDER BY pv.PUNTOVENTA_ID , pv.nombpuntoventa ");
return sql.toString();
}
private String carregaAgenciasComVenda() {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT DISTINCT cc.PUNTOVENTA_ID ");
sql.append(" FROM CONTA_CORRENTE_PTOVTA cc ");
sql.append(" WHERE cc.FECHOROPERACION BETWEEN :de AND :ate ");
sql.append(" and cc.EMPRESA_ID = :empresaId ");
return sql.toString();
}
private String carregarDadosReceitaDespesa(String puntoVenta) {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT ");
sql.append(" COALESCE(COUNT(CASE WHEN cdp.IMPORTE < 0 THEN 1 ELSE NULL END),0) as qtdedespesa, ");
sql.append(" COALESCE(SUM(CASE WHEN cdp.IMPORTE > 0 THEN cdp.IMPORTE ELSE NULL END),0) AS receita, ");
sql.append(" COALESCE(ABS(SUM(CASE WHEN cdp.IMPORTE < 0 THEN cdp.IMPORTE ELSE NULL END)),0) AS despesa ");
sql.append(" FROM CAJA_DIVERSOS cd, ");
sql.append(" CAJA_DIVERSOS_PAGO cdp, ");
sql.append(" EVENTO_EXTRA ee ");
sql.append(" WHERE cd.MOTIVOCANCELACION_ID IS NULL ");
sql.append(" AND ee.EVENTOEXTRA_ID = cd.EVENTOEXTRA_ID ");
sql.append(" AND cdp.CAJADIVERSOS_ID = cd.CAJADIVERSOS_ID ");
sql.append(" AND ee.activo = 1 ");
sql.append(" AND cd.TURNO_ID IS NOT NULL ");
sql.append(" AND cd.FECCORTE BETWEEN :de AND :ate ");
if (puntoVenta != null && !puntoVenta.equals("-1")) {
sql.append(" AND cd.PUNTOVENTA_ID = :puntoVentaId ");
}
sql.append(" AND ee.EMPRESA_ID=:empresaId ");
return sql.toString();
}
private String carregarNomeEmpresa() {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT ");
sql.append(" NOMBEMPRESA ");
sql.append(" FROM EMPRESA ");
sql.append(" WHERE EMPRESA_ID=:empresaId ");
return sql.toString();
}
}

View File

@ -0,0 +1,23 @@
#geral
msg.noData=No se pudo obtener datos con los parámetros reportados.
msg.a=a
#Labels header
header.data=Data :
header.empresa=Empresa :
header.codigo=Código
header.descricao=Descrição
header.vendido=Vendido
header.digitado=Digitado
header.anulado=Anulados
header.devolvido=Devolvidos
header.receita=Receita
header.despesa=Despesa
header.total=Total
detail.agencia=AGÊNCIA
detail.quantidade=QUANTIDADE
detail.valor=VALOR
detail.totalGeral=TOTAL GERAL
linhas=Linhas

View File

@ -0,0 +1,23 @@
#geral
msg.noData=No se pudo obtener datos con los parámetros reportados.
msg.a=a
#Labels header
header.data=Data :
header.empresa=Empresa :
header.codigo=Código
header.descricao=Descrição
header.vendido=Vendido
header.digitado=Digitado
header.anulado=Anulados
header.devolvido=Devolvidos
header.receita=Receita
header.despesa=Despesa
header.total=Total
detail.agencia=AGÊNCIA
detail.quantidade=QUANTIDADE
detail.valor=VALOR
detail.totalGeral=TOTAL GERAL
linhas=Linhas

View File

@ -0,0 +1,490 @@
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioAgenciaFechamento" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
<property name="ireport.zoom" value="2.1961500000000007"/>
<property name="ireport.x" value="503"/>
<property name="ireport.y" value="99"/>
<parameter name="fecInicio" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
<parameter name="fecFinal" class="java.lang.String"/>
<parameter name="TITULO" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="codigo" class="java.lang.String"/>
<field name="empresa" class="java.lang.String"/>
<field name="descricao" class="java.lang.String"/>
<field name="qtdeVendido" class="java.lang.Integer"/>
<field name="qtdeDigitado" class="java.lang.Integer"/>
<field name="qtdeAnulado" class="java.lang.Integer"/>
<field name="qtdeDevolvido" class="java.lang.Integer"/>
<field name="qtdeDespesa" class="java.lang.Integer"/>
<field name="vendido" class="java.math.BigDecimal"/>
<field name="digitado" class="java.math.BigDecimal"/>
<field name="anulado" class="java.math.BigDecimal"/>
<field name="devolvido" class="java.math.BigDecimal"/>
<field name="receita" class="java.math.BigDecimal"/>
<field name="despesa" class="java.math.BigDecimal"/>
<field name="total" class="java.math.BigDecimal"/>
<field name="qtdeTotal" class="java.lang.Integer"/>
<variable name="sum.qtdeVendido" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{qtdeVendido}]]></variableExpression>
</variable>
<variable name="sum.qtdeDigitado" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{qtdeDigitado}]]></variableExpression>
</variable>
<variable name="sum.qtdeAnulado" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{qtdeAnulado}]]></variableExpression>
</variable>
<variable name="sum.qtdeDespesa" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{qtdeDespesa}]]></variableExpression>
</variable>
<variable name="sum.qtdeDevolvido" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{qtdeDevolvido}]]></variableExpression>
</variable>
<variable name="sum.qtdeTotal" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{qtdeTotal}]]></variableExpression>
</variable>
<variable name="sum.vendido" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{vendido}]]></variableExpression>
</variable>
<variable name="sum.digitado" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{digitado}]]></variableExpression>
</variable>
<variable name="sum.anulado" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{anulado}]]></variableExpression>
</variable>
<variable name="sum.devolvido" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{devolvido}]]></variableExpression>
</variable>
<variable name="sum.receita" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{receita}]]></variableExpression>
</variable>
<variable name="sum.despesa" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{despesa}]]></variableExpression>
</variable>
<variable name="sum.total" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{total}]]></variableExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="61" splitType="Stretch">
<textField>
<reportElement x="481" y="20" width="49" height="20" uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.data}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="647" y="0" width="56" height="20" uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60"/>
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="779" y="20" width="22" height="20" uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="713" y="20" width="42" height="20" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="530" y="20" width="182" height="20" uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50"/>
<textFieldExpression><![CDATA[$P{fecInicio} + " à " + $P{fecFinal}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="231" height="20" uuid="652312bd-292a-424d-a234-5f157e3699c6"/>
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement x="703" y="0" width="98" height="20" uuid="6f671365-868e-41a6-81ee-a308d1d91e1d"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="755" y="20" width="24" height="20" uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="19" width="49" height="20" uuid="08817d2b-5f71-4c7a-9880-51c1a791ad04"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="49" y="19" width="182" height="19" isPrintWhenDetailOverflows="true" uuid="64d97814-2298-4fd7-bb29-dc868f21c951"/>
<textElement textAlignment="Right" markup="none">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="39" width="802" height="1" uuid="ee05e1fa-6963-4ff9-b3c8-c6cd1bb54e94"/>
</line>
<textField isBlankWhenNull="true">
<reportElement x="25" y="41" width="182" height="19" isPrintWhenDetailOverflows="true" uuid="2cbc8ddc-38e5-4914-8189-5761ddeb2ce9"/>
<textElement textAlignment="Center" markup="none">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.agencia}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="301" y="41" width="144" height="19" isPrintWhenDetailOverflows="true" uuid="7965e761-2e24-4f17-84eb-9431c98ce72c"/>
<textElement textAlignment="Right" markup="none">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.quantidade}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="642" y="41" width="158" height="19" isPrintWhenDetailOverflows="true" uuid="bbaa5f53-76e0-491e-9145-e522122709e5"/>
<textElement textAlignment="Center" markup="none">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.valor}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="25" splitType="Stretch">
<textField>
<reportElement x="739" y="4" width="61" height="17" uuid="0638d013-af03-46b5-850f-8ee3da2bc8b8"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.total}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="691" y="4" width="48" height="17" uuid="dd31dee7-98a4-4b46-a2c4-e79677790bc2"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.despesa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="642" y="4" width="48" height="17" uuid="e294d86e-22eb-48b8-81c3-fb8e1dea9bae"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.receita}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="61" y="4" width="119" height="17" uuid="c0bf8f56-20d8-47af-a650-4a6ba4442c8c"/>
<textElement textAlignment="Center" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.descricao}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="180" y="4" width="45" height="17" uuid="eb16bd4c-e5d9-423e-a089-a9b2bcbe4189"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.vendido}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="225" y="4" width="45" height="17" uuid="2c5f4806-65df-48b0-b3d4-d0912d2c5d73"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.digitado}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="270" y="4" width="45" height="17" uuid="9f25b0f2-c5bd-495a-9ef9-0916c7c07fd3"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.anulado}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="315" y="4" width="45" height="17" uuid="6555f6ff-ca40-4c88-a4b4-fb47871f6d24"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.devolvido}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="360" y="4" width="45" height="17" uuid="6e4f99f7-3a81-4fc4-b647-ab77968fd9c2"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.despesa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="405" y="4" width="45" height="17" uuid="73004b45-c340-4f04-9697-24fb33e6e608"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.total}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="450" y="4" width="48" height="17" uuid="30ae2209-0899-4dc0-a4f0-bf8c29d6fd70"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.vendido}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="498" y="4" width="48" height="17" uuid="bc4ff148-f663-4c3f-95bd-df48630945e5"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.digitado}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="546" y="4" width="48" height="17" uuid="801f59e8-8ff7-4a8c-bd8f-757126d95d14"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.anulado}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="594" y="4" width="48" height="17" uuid="84490947-1221-4baa-b514-003634254e5c"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.devolvido}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="4" width="60" height="17" uuid="890b61c9-2195-455a-9c28-316d48ab5fea"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{header.codigo}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="23" width="802" height="1" uuid="ae94e51c-f84c-405c-a9c3-d8fd0c48f03a"/>
</line>
<line>
<reportElement x="0" y="0" width="802" height="1" uuid="83809dd0-64dc-4779-9552-440eabef278e"/>
</line>
</band>
</columnHeader>
<detail>
<band height="17" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement x="0" y="0" width="60" height="17" uuid="b2a04e5c-f61e-4380-990e-604417465e9d"/>
<textElement textAlignment="Right" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{codigo}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="180" y="0" width="45" height="17" uuid="5eac8194-63bd-43d7-8da2-8ed75f4f9219"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{qtdeVendido}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="225" y="0" width="45" height="17" uuid="a1102ca6-594a-4e66-8c6e-8d17eeb32005"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{qtdeDigitado}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="270" y="0" width="45" height="17" uuid="b371369f-84e7-4121-b00d-5d1430da8a68"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{qtdeAnulado}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="360" y="0" width="45" height="17" uuid="fcdf6e5b-55b4-4df1-9115-abe42f6a679a"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{qtdeDespesa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="315" y="0" width="45" height="17" uuid="9840555e-e3b7-4496-a3a2-914f80abe2c8"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{qtdeDevolvido}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="405" y="0" width="45" height="17" uuid="ca7b87f8-538c-44ca-99a9-58df6d377d33"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{qtdeTotal}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement x="450" y="0" width="48" height="17" uuid="7ac7fbc7-49b0-4205-ad7f-e21ae7b5b860"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{vendido}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement x="498" y="0" width="48" height="17" uuid="a2a6fbc4-5e2c-4183-a638-845493a8e345"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{digitado}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement x="546" y="0" width="48" height="17" uuid="37b92899-0cf9-4390-8daa-7f84b884c9af"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{anulado}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement x="594" y="0" width="48" height="17" uuid="5f34ab58-15a2-4b0c-886e-9e432f24cbb9"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{devolvido}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement x="642" y="0" width="48" height="17" uuid="7f3dee8d-6a9f-4daf-a92a-3cdae3914b24"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{receita}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement x="691" y="0" width="48" height="17" uuid="414427e1-2de9-47a6-b35b-0a7d5ea6220c"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{despesa}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement x="739" y="0" width="61" height="17" uuid="4917968a-5153-4c7d-a52f-ea3886ec1751"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="61" y="0" width="119" height="17" uuid="3f2de0d3-e1e1-4c38-abe4-539529605c34"/>
<textElement textAlignment="Center" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{descricao}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="21">
<textField isBlankWhenNull="true">
<reportElement x="180" y="3" width="45" height="17" uuid="f9fc3c96-035d-4560-a6b7-4b1694a78d65"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.qtdeVendido}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="225" y="3" width="45" height="17" uuid="ce427a1a-d640-4060-85c9-690eacd95175"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.qtdeDigitado}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="270" y="3" width="45" height="17" uuid="b6810f0c-87c7-42c7-86c7-f011efd30571"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.qtdeAnulado}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="315" y="3" width="45" height="17" uuid="d37852e4-2683-4181-b336-20c1b9e923d7"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.qtdeDespesa}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="360" y="3" width="45" height="17" uuid="54b8507c-0d48-4f4c-860b-b1057ebbcc2c"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.qtdeDevolvido}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="405" y="3" width="45" height="17" uuid="63cd03cf-dfc9-4f36-a19f-e9dda994881b"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.qtdeTotal}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement mode="Transparent" x="450" y="3" width="48" height="17" forecolor="#000000" backcolor="#FFFFFF" uuid="00457524-e86e-4bb3-b1fe-4abe0b17f187"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.vendido}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="498" y="3" width="48" height="17" uuid="e923470b-ac0e-43fa-a70b-1d9a98554d60"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.digitado}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="546" y="3" width="48" height="17" uuid="48f8733b-29be-4a8b-aecf-e064fcbc0a2b"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.anulado}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="594" y="3" width="48" height="17" uuid="0740115f-b366-459a-afd6-a08a277b248e"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.devolvido}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="642" y="3" width="48" height="17" uuid="fa77631c-b045-42d8-a192-091dae493739"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.receita}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="691" y="3" width="48" height="17" uuid="12b45f25-3417-4b90-95e5-1cbd1435030b"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.despesa}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="739" y="3" width="61" height="17" uuid="60cb5ef9-121c-4fb9-b425-7bc9b301d62d"/>
<textElement textAlignment="Right">
<font size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum.total}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="1" width="802" height="1" uuid="1653e342-87ec-40f2-94ad-5d27b1020c3a"/>
</line>
<textField>
<reportElement x="3" y="3" width="127" height="17" uuid="f0f7fc52-26be-4c51-8c78-3c55375be4aa"/>
<textElement textAlignment="Right" markup="none">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.totalGeral}]]></textFieldExpression>
</textField>
</band>
</columnFooter>
<noData>
<band height="20">
<textField>
<reportElement x="0" y="0" width="803" height="20" uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620"/>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,123 @@
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
import java.math.BigDecimal;
public class RelatorioAgenciaFechamentoAntigoBean {
protected String empresa;
protected String codigo;
protected String descricao;
protected Integer qtdeVendido;
protected Integer qtdeDigitado;
protected Integer qtdeAnulado;
protected Integer qtdeDevolvido;
protected Integer qtdeDespesa;
protected Integer qtdeTotal;
protected BigDecimal vendido;
protected BigDecimal digitado;
protected BigDecimal anulado;
protected BigDecimal devolvido;
protected BigDecimal receita;
protected BigDecimal despesa;
protected BigDecimal total;
public String getEmpresa() {
return empresa;
}
public void setEmpresa(String empresa) {
this.empresa = empresa;
}
public String getCodigo() {
return codigo;
}
public void setCodigo(String codigo) {
this.codigo = codigo;
}
public String getDescricao() {
return descricao;
}
public void setDescricao(String descricao) {
this.descricao = descricao;
}
public Integer getQtdeVendido() {
return qtdeVendido;
}
public void setQtdeVendido(Integer qtdeVendido) {
this.qtdeVendido = qtdeVendido;
}
public Integer getQtdeDigitado() {
return qtdeDigitado;
}
public void setQtdeDigitado(Integer qtdeDigitado) {
this.qtdeDigitado = qtdeDigitado;
}
public Integer getQtdeAnulado() {
return qtdeAnulado;
}
public void setQtdeAnulado(Integer qtdeAnulado) {
this.qtdeAnulado = qtdeAnulado;
}
public Integer getQtdeDevolvido() {
return qtdeDevolvido;
}
public void setQtdeDevolvido(Integer qtdeDevolvido) {
this.qtdeDevolvido = qtdeDevolvido;
}
public Integer getQtdeDespesa() {
return qtdeDespesa;
}
public void setQtdeDespesa(Integer qtdeDespesa) {
this.qtdeDespesa = qtdeDespesa;
}
public BigDecimal getVendido() {
return vendido;
}
public void setVendido(BigDecimal vendido) {
this.vendido = vendido;
}
public BigDecimal getDigitado() {
return digitado;
}
public void setDigitado(BigDecimal digitado) {
this.digitado = digitado;
}
public BigDecimal getAnulado() {
return anulado;
}
public void setAnulado(BigDecimal anulado) {
this.anulado = anulado;
}
public BigDecimal getDevolvido() {
return devolvido;
}
public void setDevolvido(BigDecimal devolvido) {
this.devolvido = devolvido;
}
public BigDecimal getReceita() {
return receita;
}
public void setReceita(BigDecimal receita) {
this.receita = receita;
}
public BigDecimal getDespesa() {
return despesa;
}
public void setDespesa(BigDecimal despesa) {
this.despesa = despesa;
}
public Integer getQtdeTotal() {
return qtdeTotal;
}
public void setQtdeTotal(Integer qtdeTotal) {
this.qtdeTotal = qtdeTotal;
}
public BigDecimal getTotal() {
return total;
}
public void setTotal(BigDecimal total) {
this.total = total;
}
}

View File

@ -1,3 +1,4 @@
package com.rjconsultores.ventaboletos.relatorios.utilitarios; package com.rjconsultores.ventaboletos.relatorios.utilitarios;
import java.math.BigDecimal; import java.math.BigDecimal;

View File

@ -20,10 +20,12 @@ import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Bandbox; import org.zkoss.zul.Bandbox;
import org.zkoss.zul.Datebox; import org.zkoss.zul.Datebox;
import org.zkoss.zul.Paging; import org.zkoss.zul.Paging;
import org.zkoss.zul.Radio;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamento; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamento;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamentoAntigo;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService; import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
@ -57,12 +59,15 @@ public class RelatorioAgenciaFechamentoController extends MyGenericForwardCompos
private MyListbox puntoVentaSelList; private MyListbox puntoVentaSelList;
private Paging pagingPuntoVenta; private Paging pagingPuntoVenta;
private Radio radLayoutNovo;
private Radio radLayoutAntigo;
private List<Empresa> lsEmpresas; private List<Empresa> lsEmpresas;
private void executarRelatorio() throws Exception { private void executarRelatorio() throws Exception {
Map<String, Object> parametros = new HashMap<String, Object>(); Map<String, Object> parametros = new HashMap<String, Object>();
Boolean booleanLayout = false;
Empresa empresa = cmbEmpresa.getSelectedItem() != null ? (Empresa)cmbEmpresa.getSelectedItem().getValue() : null; Empresa empresa = cmbEmpresa.getSelectedItem() != null ? (Empresa)cmbEmpresa.getSelectedItem().getValue() : null;
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
@ -92,11 +97,20 @@ public class RelatorioAgenciaFechamentoController extends MyGenericForwardCompos
puntoVentas = puntoVentas.substring(0, puntoVentas.length() - 1); puntoVentas = puntoVentas.substring(0, puntoVentas.length() - 1);
parametros.put("NUMPUNTOVENTA", puntoVentaIds); parametros.put("NUMPUNTOVENTA", puntoVentaIds);
} }
Relatorio relatorio;
Relatorio relatorio = new RelatorioAgenciaFechamento(parametros, dataSourceRead.getConnection());
Map<String, Object> args = new HashMap<String, Object>(); Map<String, Object> args = new HashMap<String, Object>();
args.put("relatorio", relatorio); if (radLayoutNovo.isChecked()) {
booleanLayout = true;
}
if(booleanLayout) {
relatorio = new RelatorioAgenciaFechamento(parametros, dataSourceRead.getConnection());
args.put("relatorio", relatorio);
}else {
relatorio = new RelatorioAgenciaFechamentoAntigo(parametros, dataSourceRead.getConnection());
args.put("relatorio", relatorio);
}
openWindow("/component/reportView.zul", openWindow("/component/reportView.zul",
Labels.getLabel("indexController.mniRelatorioAgenciaFechamento.label"), args, MODAL); Labels.getLabel("indexController.mniRelatorioAgenciaFechamento.label"), args, MODAL);
@ -175,4 +189,21 @@ public class RelatorioAgenciaFechamentoController extends MyGenericForwardCompos
this.lsEmpresas = lsEmpresas; this.lsEmpresas = lsEmpresas;
} }
public Radio getRadLayoutNovo() {
return radLayoutNovo;
}
public void setRadLayoutNovo(Radio radLayoutNovo) {
this.radLayoutNovo = radLayoutNovo;
}
public Radio getRadLayoutAntigo() {
return radLayoutAntigo;
}
public void setRadLayoutAntigo(Radio radLayoutAntigo) {
this.radLayoutAntigo = radLayoutAntigo;
}
} }

View File

@ -1155,7 +1155,7 @@ editarEmpresaController.indgapcancelado.label = Gaps Canceladas
editarEmpresaController.indgapdevolvido.label = Gaps Devueltas editarEmpresaController.indgapdevolvido.label = Gaps Devueltas
editarEmpresaController.indeventosfinanceiros.label = Eventos Financieros editarEmpresaController.indeventosfinanceiros.label = Eventos Financieros
editarEmpresaController.indocd.label = OCDs editarEmpresaController.indocd.label = OCDs
editarEmpresaController.indEmiteCupomFiscalRemarcacao.label = Emite Cupom Fiscal Remarcação editarEmpresaController.indRemarcacaoTrocaPassagem.label = Utiliza Troca de Passagens para Remarcação
#Empresa impuesto #Empresa impuesto
editarEmpresaImpostoController.window.title = Configuración de impuesto por empresa/estado editarEmpresaImpostoController.window.title = Configuración de impuesto por empresa/estado

View File

@ -290,7 +290,7 @@ indexController.mniRelatorioEstornoCartao.label=Estorno Cartão
indexController.mniRelatorioCancelamentoTransacao.label = Cancelamento J3 indexController.mniRelatorioCancelamentoTransacao.label = Cancelamento J3
indexController.mniRelatorioTabelaPreco.label = Tabela de Preços indexController.mniRelatorioTabelaPreco.label = Tabela de Preços
indexController.mniRelatorioAIDF.label = AIDF indexController.mniRelatorioAIDF.label = AIDF
indexController.mniRelatorioAIDFDetalhado.label = Relatório Estoque indexController.mniRelatorioAIDFDetalhado.label = AIDF Detalhado
indexController.mniRelatorioConsultaAntt.label= Consulta ANTT indexController.mniRelatorioConsultaAntt.label= Consulta ANTT
indexController.mniRelatorioSegundaVia.label = Segunda Via indexController.mniRelatorioSegundaVia.label = Segunda Via
indexController.mniPrecoApanhe.label = Preço Apanhe indexController.mniPrecoApanhe.label = Preço Apanhe
@ -785,7 +785,7 @@ relatorioAidfController.lbEmpresa.value = Empresa
relatorioAidfController.lbSerie.value = Série relatorioAidfController.lbSerie.value = Série
#Relatorio Aidf Detalhado #Relatorio Aidf Detalhado
relatorioAidfDetalhadoController.window.title = Relatório Estoque relatorioAidfDetalhadoController.window.title = Relatório Aidf Detalhado
relatorioAidfDetalhadoController.datainicial.value = Data Inicial relatorioAidfDetalhadoController.datainicial.value = Data Inicial
relatorioAidfDetalhadoController.dataFinal.value = Data Final relatorioAidfDetalhadoController.dataFinal.value = Data Final
relatorioAidfDetalhadoController.lbEmpresa.value = Empresa relatorioAidfDetalhadoController.lbEmpresa.value = Empresa
@ -1276,7 +1276,7 @@ editarEmpresaController.indgapcancelado.label = Gaps Canceladas
editarEmpresaController.indgapdevolvido.label = Gaps Devolvidas editarEmpresaController.indgapdevolvido.label = Gaps Devolvidas
editarEmpresaController.indeventosfinanceiros.label = Eventos Financeiros editarEmpresaController.indeventosfinanceiros.label = Eventos Financeiros
editarEmpresaController.indocd.label = OCDs editarEmpresaController.indocd.label = OCDs
editarEmpresaController.indEmiteCupomFiscalRemarcacao.label = Emite Cupom Fiscal Remarcação editarEmpresaController.indRemarcacaoTrocaPassagem.label = Utiliza Troca de Passagens para Remarcação
#Empresa Imposto #Empresa Imposto
editarEmpresaImpostoController.window.title = Configuração de Imposto por Empresa/Estado editarEmpresaImpostoController.window.title = Configuração de Imposto por Empresa/Estado

View File

@ -7,7 +7,7 @@
<zk xmlns="http://www.zkoss.org/2005/zul"> <zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winRelatorioAgenciaFechamento" <window id="winRelatorioAgenciaFechamento"
apply="${relatorioAgenciaFechamentoController}" apply="${relatorioAgenciaFechamentoController}"
contentStyle="overflow:auto" height="250px" width="560px" contentStyle="overflow:auto" height="280px" width="560px"
border="normal"> border="normal">
<grid fixedLayout="true"> <grid fixedLayout="true">
@ -76,6 +76,14 @@
</bandpopup> </bandpopup>
</bandbox> </bandbox>
</row> </row>
<row >
<label
value="${c:l('relatorioVendasBilheteiroController.lbLayout.value')}" />
<radiogroup Id="layout">
<radio id="radLayoutNovo" label="${c:l('relatorioVendasBilheteiroController.lbLayoutNovo.value')}" />
<radio id="radLayoutAntigo" label="${c:l('relatorioVendasBilheteiroController.lbLayoutAntigo.value')}" />
</radiogroup>
</row>
<row spans="4"> <row spans="4">
<listbox id="puntoVentaSelList" mold="paging" <listbox id="puntoVentaSelList" mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"