diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioAgenciaFechamento.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioAgenciaFechamento.java new file mode 100644 index 000000000..632a7b1fa --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioAgenciaFechamento.java @@ -0,0 +1,258 @@ +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.Iterator; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang.math.NumberUtils; + +import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; + +import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioAgenciaFechamentoBean; +import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; + +public class RelatorioAgenciaFechamento extends Relatorio { + + private List lsDadosRelatorio; + + public RelatorioAgenciaFechamento(Map 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 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 sql = carregaAgenciasComVenda(); + String nomeEmpresa = null; + + System.out.println(sql); + + NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); + ResultSet rset = 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)); + } + rset = stmt.executeQuery(); + + lsDadosRelatorio = new ArrayList(); + List puntoVentas = new ArrayList(); + + while (rset.next()) { + puntoVentas.add(rset.getInt("PUNTOVENTA_ID")); + } + + stmt = new NamedParameterStatement(conexao, carregarNomeEmpresa()); + if (empresa != null && !empresa.equals("")){ + stmt.setInt("empresaId", Integer.parseInt(empresa)); + } + + rset = stmt.executeQuery(); + + while (rset.next()) { + nomeEmpresa = rset.getString("NOMBEMPRESA"); + } + + for (Iterator iterator = puntoVentas.iterator(); iterator.hasNext();) { + + RelatorioAgenciaFechamentoBean agenciaFechamento = new RelatorioAgenciaFechamentoBean(); + Boolean existeRegistro = Boolean.FALSE; + + Integer integer = (Integer) iterator.next(); + BigDecimal total = BigDecimal.ZERO; + BigDecimal vendido = BigDecimal.ZERO; + + stmt = new NamedParameterStatement(conexao, carregarDadosTotaisdeVenda()); + stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime())); + stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime())); + stmt.setInt("puntoVentaId", integer); + if (empresa != null && !empresa.equals("")){ + stmt.setInt("empresaId", Integer.parseInt(empresa)); + } + + System.out.println(carregarDadosTotaisdeVenda()); + + rset = stmt.executeQuery(); + + while (rset.next()) { + + existeRegistro = Boolean.TRUE; + + Integer qtdevendido = rset.getInt("qtdevendido"); + Integer qtdedigitado = rset.getInt("qtdedigitado"); + Integer qtdeAnulado = rset.getInt("qtdeAnulado"); + Integer qtdeDevolvido = rset.getInt("qtdeDevolvido"); + Integer qtdeTotal = null; + + vendido = rset.getBigDecimal("vendido"); + BigDecimal digitado = rset.getBigDecimal("digitado"); + BigDecimal anulado = rset.getBigDecimal("anulado"); + BigDecimal devolvido = rset.getBigDecimal("devolvido"); + + agenciaFechamento.setEmpresa(nomeEmpresa); + + agenciaFechamento.setCodigo(rset.getString("codigo")); + agenciaFechamento.setDescricao(rset.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)); + + 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); + + agenciaFechamento.setTotal(total); + + } + + if(existeRegistro){ + + stmt = new NamedParameterStatement(conexao, carregarDadosReceitaDespesa()); + stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime())); + stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime())); + stmt.setInt("puntoVentaId", integer); + if (empresa != null && !empresa.equals("")){ + stmt.setInt("empresaId", Integer.parseInt(empresa)); + } + rset = stmt.executeQuery(); + + while (rset.next()) { + + Integer qtdedespesa = rset.getInt("qtdedespesa"); + BigDecimal receita = rset.getBigDecimal("receita"); + BigDecimal despesa = rset.getBigDecimal("despesa"); + + agenciaFechamento.setQtdeDespesa(qtdedespesa != null ? qtdedespesa : NumberUtils.INTEGER_ZERO); + agenciaFechamento.setReceita(receita != null ? receita : BigDecimal.ZERO); + agenciaFechamento.setDespesa(despesa != null ? despesa : BigDecimal.ZERO); + + vendido = vendido.add(receita != null ? receita : BigDecimal.ZERO); + vendido = vendido.subtract(despesa != null ? despesa : BigDecimal.ZERO); + + agenciaFechamento.setVendido(vendido != null ? vendido : BigDecimal.ZERO); + + } + + lsDadosRelatorio.add(agenciaFechamento); + } + + } + + if (lsDadosRelatorio.size() > 0) { + + setLsDadosRelatorio(lsDadosRelatorio); + } + } + }); + } + + public void setLsDadosRelatorio(List lsDadosRelatorio) { + this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio)); + this.lsDadosRelatorio = lsDadosRelatorio; + } + + @Override + protected void processaParametros() throws Exception { + } + + private String carregarDadosTotaisdeVenda() { + + StringBuilder sql = new StringBuilder(); + sql.append(" SELECT pv.PUNTOVENTA_ID as codigo, "); + sql.append(" pv.nombpuntoventa descricao, "); + sql.append(" COUNT(case when b.motivocancelacion_id is null then 1 else null end) as qtdevendido, "); + sql.append(" 0 as qtdedigitado, "); + sql.append(" count(case when b.motivocancelacion_id = 31 then 1 else null end) as qtdeAnulado, "); + sql.append(" count(case when b.motivocancelacion_id = 32 then 1 else null end) as qtdeDevolvido, "); + sql.append(" SUM(case when b.motivocancelacion_id is null then b.preciobase + b.importetaxaembarque + b.importepedagio + b.importeseguro + b.importeoutros else 0 END) as vendido, "); + sql.append(" 0 as digitado, "); + sql.append(" SUM(case when b.motivocancelacion_id = 31 then b.preciobase + b.importetaxaembarque + b.importepedagio + b.importeseguro + b.importeoutros ELSE 0 END) anulado, "); + sql.append(" SUM(case when b.motivocancelacion_id = 32 then b.preciobase + b.importetaxaembarque + b.importepedagio + b.importeseguro + b.importeoutros ELSE 0 END) devolvido "); + sql.append(" FROM boleto b "); + sql.append(" INNER JOIN PUNTO_VENTA pv ON b.PUNTOVENTA_ID = pv.PUNTOVENTA_ID "); + sql.append(" WHERE b.motivoreimpresion_id IS NULL "); + sql.append(" AND b.boletooriginal_id IS NULL "); + sql.append(" AND b.activo = 1 "); + sql.append(" AND b.fechorventa BETWEEN :de AND :ate "); + sql.append(" AND b.puntoventa_id=:puntoVentaId "); + sql.append(" AND b.empresacorrida_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() { + + StringBuilder sql = new StringBuilder(); + sql.append(" SELECT "); + sql.append(" COUNT(CASE WHEN ee.IMPINGRESO < 0 THEN 1 ELSE NULL END) as qtdedespesa, "); + sql.append(" SUM(CASE WHEN ee.IMPINGRESO > 0 THEN ee.IMPINGRESO ELSE 0 END) AS receita, "); + sql.append(" ABS(SUM(CASE WHEN ee.IMPINGRESO < 0 THEN ee.IMPINGRESO ELSE 0 END)) AS despesa "); + sql.append(" FROM evento_extra ee "); + sql.append(" INNER JOIN tipo_evento_extra tee ON ee.TIPOEVENTOEXTRA_ID = tee.TIPOEVENTOEXTRA_ID "); + sql.append(" WHERE ee.activo=1 AND ee.EMPRESA_ID=:empresaId AND ee.PUNTOVENTA_ID=:puntoVentaId "); + sql.append(" AND ee.FECHORINGRESO BETWEEN :de AND :ate "); + + 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(); + + } + + + +} diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioAgenciaFechamento_es .properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioAgenciaFechamento_es .properties new file mode 100644 index 000000000..15e87882f --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioAgenciaFechamento_es .properties @@ -0,0 +1,22 @@ +#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 + +linhas=Linhas \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioAgenciaFechamento_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioAgenciaFechamento_pt_BR.properties new file mode 100644 index 000000000..15e87882f --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioAgenciaFechamento_pt_BR.properties @@ -0,0 +1,22 @@ +#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 + +linhas=Linhas \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioAgenciaFechamento.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioAgenciaFechamento.jasper new file mode 100644 index 000000000..9fd191303 Binary files /dev/null and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioAgenciaFechamento.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioAgenciaFechamento.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioAgenciaFechamento.jrxml new file mode 100644 index 000000000..cb7e34ab5 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioAgenciaFechamento.jrxml @@ -0,0 +1,345 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioAgenciaFechamentoBean.java b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioAgenciaFechamentoBean.java new file mode 100644 index 000000000..115f15656 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioAgenciaFechamentoBean.java @@ -0,0 +1,123 @@ +package com.rjconsultores.ventaboletos.relatorios.utilitarios; + +import java.math.BigDecimal; + +public class RelatorioAgenciaFechamentoBean { + 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; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioAgenciaFechamentoController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioAgenciaFechamentoController.java new file mode 100644 index 000000000..d6d5023d8 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioAgenciaFechamentoController.java @@ -0,0 +1,94 @@ +package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios; + +import java.text.SimpleDateFormat; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.sql.DataSource; + +import org.apache.log4j.Logger; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Scope; +import org.springframework.stereotype.Controller; +import org.zkoss.util.resource.Labels; +import org.zkoss.zk.ui.Component; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zul.Datebox; + +import com.rjconsultores.ventaboletos.entidad.Empresa; +import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAgenciaFechamento; +import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioEmpresaCorrida; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.service.EmpresaService; +import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; +import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; + +@Controller("relatorioAgenciaFechamentoController") +@Scope("prototype") +public class RelatorioAgenciaFechamentoController extends MyGenericForwardComposer { + private static final long serialVersionUID = 1L; + private static Logger log = Logger.getLogger(RelatorioAgenciaFechamentoController.class); + + @Autowired + private DataSource dataSource; + @Autowired + private EmpresaService empresaService; + + private Datebox datInicial; + private Datebox datFinal; + private MyComboboxEstandar cmbEmpresa; + + private List lsEmpresas; + + private void executarRelatorio() throws Exception { + + Map parametros = new HashMap(); + + Empresa empresa = cmbEmpresa.getSelectedItem() != null ? (Empresa)cmbEmpresa.getSelectedItem().getValue() : null; + + SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); + parametros.put("fecInicio", sdf.format(this.datInicial.getValue())); + parametros.put("fecFinal", sdf.format(this.datFinal.getValue())); + if (empresa != null){ + parametros.put("empresa", empresa.getEmpresaId()); + } + parametros.put("TITULO", Labels.getLabel("indexController.mniRelatorioAgenciaFechamento.label")); + + Relatorio relatorio = new RelatorioAgenciaFechamento(parametros, dataSource.getConnection()); + + Map args = new HashMap(); + args.put("relatorio", relatorio); + + openWindow("/component/reportView.zul", + Labels.getLabel("indexController.mniRelatorioAgenciaFechamento.label"), args, MODAL); + + } + + public void onClick$btnExecutarRelatorio(Event ev) throws Exception { + executarRelatorio(); + } + + @Override + public void doAfterCompose(Component comp) throws Exception { + lsEmpresas = empresaService.obtenerTodos(); + super.doAfterCompose(comp); + } + + public MyComboboxEstandar getCmbEmpresa() { + return cmbEmpresa; + } + + public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) { + this.cmbEmpresa = cmbEmpresa; + } + + public List getLsEmpresas() { + return lsEmpresas; + } + + public void setLsEmpresas(List lsEmpresas) { + this.lsEmpresas = lsEmpresas; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioAgenciaFechamento.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioAgenciaFechamento.java new file mode 100644 index 000000000..206336d8a --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioAgenciaFechamento.java @@ -0,0 +1,25 @@ +package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios; + +import org.zkoss.util.resource.Labels; + +import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria; +import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema; + +public class ItemMenuRelatorioAgenciaFechamento extends DefaultItemMenuSistema { + + public ItemMenuRelatorioAgenciaFechamento() { + super("indexController.mniRelatorioAgenciaFechamento.label"); + } + + @Override + public String getClaveMenu() { + return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVAGENCIAFECHAMENTO"; + } + + @Override + public void ejecutar() { + PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioAgenciaFechamento.zul", + Labels.getLabel("indexController.mniRelatorioAgenciaFechamento.label"), getArgs() ,desktop); + } + +} diff --git a/web/WEB-INF/i3-label_es_MX.label b/web/WEB-INF/i3-label_es_MX.label index 71f6304ae..eef4b1003 100644 --- a/web/WEB-INF/i3-label_es_MX.label +++ b/web/WEB-INF/i3-label_es_MX.label @@ -5091,4 +5091,6 @@ relatorioGratuidadeController.lbLinhas.value = Ruta relatorioGratuidadeController.lbDataIni.value = Fecha Inicio relatorioGratuidadeController.lbDataFin.value = Fecha Final +indexController.mniRelatorioAgenciaFechamento.label= Relatorio Agências Fechamento + integracion.totvs=ERRO ao fazer integracion com a TOTVS \ No newline at end of file diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index 20bbce6f3..d3e65317c 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -5159,4 +5159,6 @@ relatorioGratuidadeController.lbLinhas.value = Linha relatorioGratuidadeController.lbDataIni.value = Data Inicio relatorioGratuidadeController.lbDataFin.value = Data Final +indexController.mniRelatorioAgenciaFechamento.label= Relatorio Agências Fechamento + integracion.totvs=ERRO ao fazer integração com a TOTVS \ No newline at end of file diff --git a/web/gui/relatorios/filtroRelatorioAgenciaFechamento.zul b/web/gui/relatorios/filtroRelatorioAgenciaFechamento.zul new file mode 100644 index 000000000..3a4807078 --- /dev/null +++ b/web/gui/relatorios/filtroRelatorioAgenciaFechamento.zul @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + +