From 467eede42a0f9d9dd9296e522ed6b31839000d97 Mon Sep 17 00:00:00 2001 From: frederico Date: Mon, 4 Sep 2017 18:15:12 +0000 Subject: [PATCH] #9746 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@73488 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../relatorios/impl/RelatorioSegundaVia.java | 170 ++++++++++ .../RelatorioSegundaVia_es.properties | 22 ++ .../RelatorioSegundaVia_pt_BR.properties | 22 ++ .../templates/RelatorioSegundaVia.jasper | Bin 0 -> 38738 bytes .../templates/RelatorioSegundaVia.jrxml | 316 ++++++++++++++++++ .../utilitarios/RelatorioSegundaViaBean.java | 162 +++++++++ .../RelatorioSegundaViaController.java | 142 ++++++++ .../ItemMenuRelatorioSegundaVia.java | 25 ++ .../utilerias/menu/menu_original.properties | 2 + web/WEB-INF/i3-label_es_MX.label | 14 + web/WEB-INF/i3-label_pt_BR.label | 9 + .../relatorios/filtroRelatorioSegundaVia.zul | 57 ++++ 12 files changed, 941 insertions(+) create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioSegundaVia.java create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioSegundaVia_es.properties create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioSegundaVia_pt_BR.properties create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jasper create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jrxml create mode 100644 src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioSegundaViaBean.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioSegundaViaController.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioSegundaVia.java create mode 100644 web/gui/relatorios/filtroRelatorioSegundaVia.zul diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioSegundaVia.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioSegundaVia.java new file mode 100644 index 000000000..768c918bd --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioSegundaVia.java @@ -0,0 +1,170 @@ +package com.rjconsultores.ventaboletos.relatorios.impl; + +import java.sql.Connection; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Timestamp; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Date; +import java.util.List; +import java.util.Map; + +import org.apache.log4j.Logger; + +import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioSegundaViaBean; +import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; + +import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; + +public class RelatorioSegundaVia extends Relatorio { + + private static Logger log = Logger.getLogger(RelatorioSegundaVia.class); + private SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); + private List lsDadosRelatorio; + + public RelatorioSegundaVia(Map parametros, Connection conexao) throws Exception { + super(parametros, conexao); + + this.setCustomDataSource(new DataSource(this) { + @Override + public void initDados() throws Exception { + + Map parametros = this.relatorio.getParametros(); + + Date dataInicial = (Date) parametros.get("dataInicial"); + Date dataFinal = (Date) parametros.get("dataFinal"); + Integer empresaId = (Integer) parametros.get("empresaId"); + Integer puntoVentaId = (Integer) parametros.get("puntoVentaId"); + + String sql = getSqlDados(dataInicial, dataFinal, empresaId, puntoVentaId); + ResultSet rset = null; + NamedParameterStatement stmt = null; + Connection conexao = this.relatorio.getConexao(); + + stmt = new NamedParameterStatement(conexao, sql); + stmt.setTimestamp("dataInicial", getDataHoraInicial(dataInicial)); + stmt.setTimestamp("dataFinal", getDataHoraFinal(dataFinal)); + + parametros.put("dataInicial", sdf.format(dataInicial)); + parametros.put("dataFinal", sdf.format(dataFinal)); + try { + rset = stmt.executeQuery(); + + lsDadosRelatorio = new ArrayList(); + while (rset.next()) { + lsDadosRelatorio.add(criarRelatorioSegundaViaBean(rset)); + } + setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio)); + } catch (Exception e) { + log.error(e.getMessage(), e); + } finally { + try { + if (rset != null) { + rset.close(); + } + if (stmt != null) { + stmt.close(); + } + } catch (SQLException e) { + log.error(e.getMessage(), e); + } + } + } + + private RelatorioSegundaViaBean criarRelatorioSegundaViaBean(ResultSet rset) throws SQLException { + RelatorioSegundaViaBean r = new RelatorioSegundaViaBean(); + r.setBilheteiro(rset.getString("bilheteiro")); + r.setBilhete(rset.getInt("bilhete")); + r.setCoo(rset.getInt("coo") == 0 ? null : rset.getInt("coo")); + r.setDataVenda(rset.getTimestamp("dataVenda")); + r.setDataViagem(rset.getDate("dataViagem")); + r.setDestino(rset.getInt("destino")); + r.setOrigem(rset.getInt("origem")); + r.setPedagio(rset.getBigDecimal("pedagio")); + r.setPoltrona(rset.getInt("poltrona")); + r.setPreImpresso(rset.getString("preImpresso")); + r.setPuntoVenta(rset.getInt("puntoVenta")); + r.setSeguro(rset.getBigDecimal("seguro")); + r.setSerieImpFiscal(rset.getString("serieImpFiscal")); + r.setServico(rset.getString("servico")); + r.setTaxa(rset.getBigDecimal("taxa")); + r.setTarifa(rset.getBigDecimal("tarifa")); + return r; + } + }); + } + + public void setLsDadosRelatorio(List lsDadosRelatorio) { + this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio)); + this.lsDadosRelatorio = lsDadosRelatorio; + } + + private String getSqlDados(Date dataInicial, Date dataFinal, Integer empresaId, Integer puntoVentaId) { + StringBuilder sql = new StringBuilder(); + sql.append("SELECT boleto.CORRIDA_ID AS servico, "); + sql.append("boleto.FECHORVIAJE AS dataViagem, "); + sql.append("boleto.ORIGEN_ID AS origem, "); + sql.append("boleto.DESTINO_ID AS destino, "); + sql.append("boleto.NUMASIENTO AS poltrona, "); + sql.append("boleto.FECHORVENTA AS dataVenda, "); + sql.append("boleto.NUMFOLIOSISTEMA AS bilhete, "); + sql.append("usuario.NOMBUSUARIO AS bilheteiro, "); + sql.append("boleto.PUNTOVENTA_ID AS puntoVenta, "); + sql.append("boleto.PRECIOPAGADO AS tarifa, "); + sql.append("boleto.IMPORTETAXAEMBARQUE AS taxa, "); + sql.append("boleto.IMPORTESEGURO AS seguro, "); + sql.append("boleto.IMPORTEPEDAGIO AS pedagio, "); + sql.append("boleto.COO AS coo, "); + sql.append("boleto.NUMFOLIOPREIMPRESO AS preimpresso, "); + sql.append("boleto.NUMSERIEPREIMPRESA AS seriePreImpresso, "); + sql.append("boleto.SERIEIMPFISCAL AS serieImpFiscal "); + + sql.append("FROM BOLETO boleto "); + sql.append("INNER JOIN USUARIO usuario ON boleto.USUARIO_ID = usuario.USUARIO_ID "); + + sql.append("WHERE boleto.INDSEGUNDAVIAIMPRESSA = 1 "); + if (dataInicial != null && dataFinal != null) { + sql.append(" AND boleto.FECSEGUNDAVIA BETWEEN :dataInicial AND :dataFinal"); + } + if (empresaId != null && empresaId != -1) { + sql.append(" AND boleto.EMPRESACORRIDA_ID = " + empresaId); + } + if (puntoVentaId != null && puntoVentaId != -1) { + sql.append(" AND boleto.PUNTOVENTA_ID = " + puntoVentaId); + } + + return sql.toString(); + } + + @Override + protected void processaParametros() throws Exception { + + } + + private Timestamp getDataHoraInicial(Date dataInicial) { + Calendar calendar = Calendar.getInstance(); + + calendar.setTime(dataInicial); + calendar.set(Calendar.HOUR_OF_DAY, 0); + calendar.set(Calendar.MINUTE, 0); + calendar.set(Calendar.SECOND, 0); + + return new Timestamp(calendar.getTime().getTime()); + } + + private Timestamp getDataHoraFinal(Date dataFinal) { + Calendar calendar = Calendar.getInstance(); + + calendar.setTime(dataFinal); + calendar.set(Calendar.HOUR_OF_DAY, 23); + calendar.set(Calendar.MINUTE, 59); + calendar.set(Calendar.SECOND, 59); + + return new Timestamp(calendar.getTime().getTime()); + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioSegundaVia_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioSegundaVia_es.properties new file mode 100644 index 000000000..989002da4 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioSegundaVia_es.properties @@ -0,0 +1,22 @@ +cabecalho.nome=Relatório Segunda Via +cabecalho.periodo=Período +cabecalho.periodoA=à +cabecalho.puntoVenta=Agência: +cabecalho.empresa=Empresa: +label.servico=Serviço +label.dataViagem=Data Viagem +label.origem=Origem +label.destino=Destino +label.poltrona=Poltrona +label.dataVenda=Data Venda +label.bilheteiro=Bilheteiro +label.bilhete=Bilhete +label.puntoVenta=Agência +label.tarifa=Tarifa +label.taxa=Taxa +label.seguro=Seguro +label.pedagio=Pedágio +label.coo=Coo +label.preImpresso=Pre Imp. +label.serieImpFiscal=Série +msg.noData=Não foi possivel obter dados com os parâmetros informados. \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioSegundaVia_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioSegundaVia_pt_BR.properties new file mode 100644 index 000000000..989002da4 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioSegundaVia_pt_BR.properties @@ -0,0 +1,22 @@ +cabecalho.nome=Relatório Segunda Via +cabecalho.periodo=Período +cabecalho.periodoA=à +cabecalho.puntoVenta=Agência: +cabecalho.empresa=Empresa: +label.servico=Serviço +label.dataViagem=Data Viagem +label.origem=Origem +label.destino=Destino +label.poltrona=Poltrona +label.dataVenda=Data Venda +label.bilheteiro=Bilheteiro +label.bilhete=Bilhete +label.puntoVenta=Agência +label.tarifa=Tarifa +label.taxa=Taxa +label.seguro=Seguro +label.pedagio=Pedágio +label.coo=Coo +label.preImpresso=Pre Imp. +label.serieImpFiscal=Série +msg.noData=Não foi possivel obter dados com os parâmetros informados. \ No newline at end of file diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jasper new file mode 100644 index 0000000000000000000000000000000000000000..fed6bccd76eaf986dc064b655b2d9799df4ab93c GIT binary patch literal 38738 zcmeHwd0-s1^}nP^?6tEo&Ychl4p(kFfgC^r#Aj^B7q$~f0yt}X94}e#n%#Bc1ey{c z+yzQ$p%e-f`lTG@h7h0}r6nyb6lnPZEl?Ky;@hPE1uN{xuy|H*QQEW%og`;+Htqg3IflU5Q zdr2^>j*aMu_4I}#c10)|O0w~Fr-U|yO2V;{7CRmeMZ%jy?Gbx%9UG;iHH3QXmcFj8 zaDS4GR*@s2=(>`YWIP;QhlnF}#CUlmlt`S)wlL8jXLB-@tv!@L0h`Nk8(6@ZHEdE- zOXZ4+#O*lFbG>$NHkl8Y&4r zwe*HMP&Ai%e7G~&y_yw<*F|G-yD5Z}p=3A~UCqXX6IGE|C|NGkRmEaSJ5CW3Eqy&b zq4=f-dn2OTt67m7bbL73O<~n`sMC&@MmwEU1>r<%I2o~Zni`fLvAdG0pk-`CEFQL_ z037cHsaNI@Ue}FM=h1^KV;KklHQ5+P)+m0QA~;peOU8Pg+zK{!+tG#?ajhQbkDoRR9O#i{7Dp>k0Xk|~PdqZ&qEG8{oWqH+hQk@SJHvO(0b0yK^!362M+5j~-BR9801hALJHm0?k|N}Y2~ zR0@KwYM~)$D?^b!V0Ku>+Df)IrleDIRf?#mtXgPE?Df0$NlB}I)x4o!)#OUJeA611 zlOWbYDh?e=DjeqKCRFp3#aP4gl6FsTB$T8)N`}fq>6=!a0*o4-q*kkIG{)PobgdQ) zU900g4N}&uzn8HmTA_Kz;^ImLTT9iQvElHD7RIbv3ZbX5tanSC&C8@WiC4t~n;@m9 zztN0A?-r0cFDBtDrcx-9BK9Vs{#%=S(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Sum7KVQ7aFA{&?my1{U72j5R?_wkC=x)_&qpYkx7rnkwd52a5UDp<; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <band height="81" splitType="Stretch"> + <textField> + <reportElement uuid="6d12efc3-f23b-431a-bfb1-9950e6bfe6fc" x="53" y="61" width="139" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$P{puntoVenta}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="7830e707-ce31-4907-8665-aa462d023a82" x="0" y="20" width="620" height="20"/> + <textElement> + <font isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{dataInicial} + " " + $R{cabecalho.periodoA} + " " + $P{dataFinal}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="b148e230-ff82-488a-bcdd-5ceb2ea723e3" x="0" y="0" width="620" height="20"/> + <textElement markup="none"> + <font size="14" isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression> + </textField> + <textField pattern="dd/MM/yyyy HH:mm"> + <reportElement uuid="1f9eb9ba-8865-4a88-9dbb-471a1907d3c5" x="638" y="0" width="164" height="20"/> + <textElement textAlignment="Right"> + <font isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="47f0b61e-1ba4-43e4-9a4a-c8e17972b943" x="0" y="61" width="53" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$R{cabecalho.puntoVenta}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="f4c6e5b9-844d-440a-9a47-719101152087" x="0" y="41" width="53" height="20"/> + <textElement markup="none"/> + <textFieldExpression><![CDATA[$R{cabecalho.empresa}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="6985a79c-5487-47e6-acf7-e94ef7c24073" x="53" y="41" width="139" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression> + </textField> + </band> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioSegundaViaBean.java b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioSegundaViaBean.java new file mode 100644 index 000000000..be1890542 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/RelatorioSegundaViaBean.java @@ -0,0 +1,162 @@ +package com.rjconsultores.ventaboletos.relatorios.utilitarios; + +import java.math.BigDecimal; +import java.util.Date; + +public class RelatorioSegundaViaBean { + + private String servico; + private Date dataViagem; + private Integer origem; + private Integer destino; + private Integer poltrona; + private Date dataVenda; + private String bilheteiro; + private Integer bilhete; + private Integer puntoVenta; + private BigDecimal taxa; + private BigDecimal tarifa; + private BigDecimal seguro; + private BigDecimal pedagio; + private Integer coo; + private String preImpresso; + private String seriePreImpresso; + private String serieImpFiscal; + + public String getServico() { + return servico; + } + + public void setServico(String servico) { + this.servico = servico; + } + + public Date getDataViagem() { + return dataViagem; + } + + public void setDataViagem(Date dataViagem) { + this.dataViagem = dataViagem; + } + + public Integer getOrigem() { + return origem; + } + + public void setOrigem(Integer origem) { + this.origem = origem; + } + + public Integer getDestino() { + return destino; + } + + public void setDestino(Integer destino) { + this.destino = destino; + } + + public Integer getPoltrona() { + return poltrona; + } + + public void setPoltrona(Integer poltrona) { + this.poltrona = poltrona; + } + + public Date getDataVenda() { + return dataVenda; + } + + public void setDataVenda(Date dataVenda) { + this.dataVenda = dataVenda; + } + + public String getBilheteiro() { + return bilheteiro; + } + + public void setBilheteiro(String bilheteiro) { + this.bilheteiro = bilheteiro; + } + + public Integer getBilhete() { + return bilhete; + } + + public void setBilhete(Integer bilhete) { + this.bilhete = bilhete; + } + + public Integer getPuntoVenta() { + return puntoVenta; + } + + public void setPuntoVenta(Integer puntoVenta) { + this.puntoVenta = puntoVenta; + } + + public BigDecimal getTaxa() { + return taxa; + } + + public void setTaxa(BigDecimal taxa) { + this.taxa = taxa; + } + + public BigDecimal getTarifa() { + return tarifa; + } + + public void setTarifa(BigDecimal tarifa) { + this.tarifa = tarifa; + } + + public BigDecimal getSeguro() { + return seguro; + } + + public void setSeguro(BigDecimal seguro) { + this.seguro = seguro; + } + + public BigDecimal getPedagio() { + return pedagio; + } + + public void setPedagio(BigDecimal pedagio) { + this.pedagio = pedagio; + } + + public Integer getCoo() { + return coo; + } + + public void setCoo(Integer coo) { + this.coo = coo; + } + + public String getPreImpresso() { + return preImpresso; + } + + public void setPreImpresso(String preImpresso) { + this.preImpresso = preImpresso; + } + + public String getSeriePreImpresso() { + return seriePreImpresso; + } + + public void setSeriePreImpresso(String seriePreImpresso) { + this.seriePreImpresso = seriePreImpresso; + } + + public String getSerieImpFiscal() { + return serieImpFiscal; + } + + public void setSerieImpFiscal(String serieImpFiscal) { + this.serieImpFiscal = serieImpFiscal; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioSegundaViaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioSegundaViaController.java new file mode 100644 index 000000000..ad67b068e --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioSegundaViaController.java @@ -0,0 +1,142 @@ +package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.sql.DataSource; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Scope; +import org.springframework.stereotype.Controller; +import org.zkoss.util.resource.Labels; +import org.zkoss.zk.ui.Component; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zul.Datebox; + +import com.rjconsultores.ventaboletos.entidad.Empresa; +import com.rjconsultores.ventaboletos.entidad.PuntoVenta; +import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioSegundaVia; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.service.EmpresaService; +import com.rjconsultores.ventaboletos.service.PuntoVentaService; +import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; +import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta; +import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; + +@Controller("relatorioSegundaViaController") +@Scope("prototype") +public class RelatorioSegundaViaController extends MyGenericForwardComposer { + + private static final long serialVersionUID = 1L; + + @Autowired + private DataSource dataSourceRead; + @Autowired + private EmpresaService empresaService; + @Autowired + private PuntoVentaService puntoVentaService; + + private List lsPuntoVenta; + private List lsEmpresa; + + private Datebox txtDataInicial; + private Datebox txtDataFinal; + private MyComboboxEstandar cmbEmpresa; + private MyComboboxPuntoVenta cmbPuntoVenta; + + public void onClick$btnExecutarRelatorio(Event ev) throws Exception { + executarRelatorio(); + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + private void executarRelatorio() throws Exception { + + Map parametros = new HashMap(); + Empresa empresa = (Empresa) (cmbEmpresa.getSelectedItem() != null ? cmbEmpresa.getSelectedItem().getValue() : null); + PuntoVenta puntoVenta = (PuntoVenta) (cmbPuntoVenta.getSelectedItem() != null ? cmbPuntoVenta.getSelectedItem().getValue() : null); + Date dataInicial = txtDataInicial.getValue(); + Date dataFinal = txtDataFinal.getValue(); + + parametros.put("empresaId", empresa == null ? null : empresa.getEmpresaId()); + parametros.put("empresa", empresa == null ? "Todas" : empresa.getNombempresa()); + parametros.put("puntoVentaId", puntoVenta == null ? null : puntoVenta.getPuntoventaId()); + parametros.put("puntoVenta", puntoVenta == null ? "Todas" : puntoVenta.getNombpuntoventa()); + parametros.put("dataInicial", dataInicial); + parametros.put("dataFinal", dataFinal); + parametros.put("NOME_RELATORIO", "RelatorioSegundaVia"); + + Relatorio relatorio = new RelatorioSegundaVia(parametros, dataSourceRead.getConnection()); + + Map args = new HashMap(); + args.put("relatorio", relatorio); + + openWindow("/component/reportView.zul", + Labels.getLabel("relatorioSegundaViaController.window.title"), args, MODAL); + } + + @Override + public void doAfterCompose(Component comp) throws Exception { + lsEmpresa = empresaService.obtenerTodos(); + super.doAfterCompose(comp); + + } + + public List getLsEmpresa() { + return lsEmpresa; + } + + public void setLsEmpresa(List lsEmpresa) { + this.lsEmpresa = lsEmpresa; + } + + public List getLsPuntoVenta() { + return lsPuntoVenta; + } + + public void setLsPuntoVenta(List lsPuntoVenta) { + this.lsPuntoVenta = lsPuntoVenta; + } + + public PuntoVentaService getPuntoVentaService() { + return puntoVentaService; + } + + public void setPuntoVentaService(PuntoVentaService puntoVentaService) { + this.puntoVentaService = puntoVentaService; + } + + public Datebox getTxtDataInicial() { + return txtDataInicial; + } + + public void setTxtDataInicial(Datebox txtDataInicial) { + this.txtDataInicial = txtDataInicial; + } + + public Datebox getTxtDataFinal() { + return txtDataFinal; + } + + public void setTxtDataFinal(Datebox txtDataFinal) { + this.txtDataFinal = txtDataFinal; + } + + public MyComboboxEstandar getCmbEmpresa() { + return cmbEmpresa; + } + + public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) { + this.cmbEmpresa = cmbEmpresa; + } + + public MyComboboxPuntoVenta getCmbPuntoVenta() { + return cmbPuntoVenta; + } + + public void setCmbPuntoVenta(MyComboboxPuntoVenta cmbPuntoVenta) { + this.cmbPuntoVenta = cmbPuntoVenta; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioSegundaVia.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioSegundaVia.java new file mode 100644 index 000000000..17f2fe29e --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioSegundaVia.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 ItemMenuRelatorioSegundaVia extends DefaultItemMenuSistema { + + public ItemMenuRelatorioSegundaVia() { + super("indexController.mniRelatorioSegundaVia.label"); + } + + @Override + public String getClaveMenu() { + return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOSEGUNDAVIA"; + } + + @Override + public void ejecutar() { + PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioSegundaVia.zul", + Labels.getLabel("relatorioSegundaViaController.window.title"), getArgs(), desktop); + + } +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties index e4c972919..3dd664715 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/menu_original.properties @@ -1,4 +1,5 @@ catalogos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.MenuCatalogos +catalogos.mensagemRecusa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuMensagemRecusa catalogos.claseServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuClaseServicio catalogos.categoria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuCategoria catalogos.grupoCategoria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuGrupoCategoria @@ -126,6 +127,7 @@ ingresosExtras.ingreso=com.rjconsultores.ventaboletos.web.utilerias.menu.item.in analitico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.MenuAnalitico analitico.item=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.ItemMenuAnalitico analitico.gerenciais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.SubMenuGerenciais +analitico.gerenciais.segundaVia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioSegundaVia analitico.gerenciais.aidfDetalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAidfDetalhado analitico.gerenciais.cancelamentoAutomaticoECF=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCancelamentoAutomaticoECF analitico.gerenciais.confFormulario=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioConferenciaFormularioFisico diff --git a/web/WEB-INF/i3-label_es_MX.label b/web/WEB-INF/i3-label_es_MX.label index e36bc213d..3e65cb251 100644 --- a/web/WEB-INF/i3-label_es_MX.label +++ b/web/WEB-INF/i3-label_es_MX.label @@ -273,6 +273,7 @@ indexController.mniRelatorioCancelamentoTransacao.label = Cancelamento J3 indexController.mniRelatorioTabelaPreco.label = Reporte de tabla de precios indexController.mniRelatorioAIDF.label = Reporte AIDF indexController.mniRelatorioAIDFDetalhado.label = AIDF detallado +indexController.mniRelatorioSegundaVia.label = Segunda Via indexController.mniPrecoApanhe.label = Precio Apanhe indexController.mniRelatorioVendasPacotesResumido.label = Ventas de paquetes - Resumido indexController.mniRelatorioVendasPacotesDetalhado.label = Ventas de paquetes - Detallado @@ -700,6 +701,19 @@ relatorioVendasPTAController.lbEmpresa.value = Empresa relatorioVendasPTAController.lbAgencia.value = Agencia relatorioVendasPTAController.lbSituacao.value = Situación +#Relatorio Segunda Via +relatorioSegundaViaController.window.title=Relatório Segunda Via +relatorioSegundaViaController.lbEmpresa.value=Empresa +relatorioSegundaViaController.lbPuntoVenta.value=Agência +relatorioSegundaViaController.lbNumero.value=Número Agência +relatorioSegundaViaController.lbDataInicial.value=Data Inicial +relatorioSegundaViaController.lbDataFinal.value=Data Final +relatorioVendasPTAController.lbSituacao.value = Situação +relatorioVendasPTAController.btnPesquisa.label = Pesquisar +relatorioVendasPTAController.btnLimpar.label = Limpar Seleção +relatorioVendasPTAController.puntoVentaSelList.codigo = Código +relatorioVendasPTAController.puntoVentaSelList.nome = Nome + #Relatório de Serviço Bloqueado na Venda Internet relatorioServicoBloqueadoVendaInternetController.window.title = Reporte corrida bgloqueada en venta internet relatorioServicoBloqueadoVendaInternetController.lbDatInicial.value = Fecha inicial diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index 80d10ba22..d754097e4 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -290,6 +290,7 @@ indexController.mniRelatorioCancelamentoTransacao.label = Cancelamento J3 indexController.mniRelatorioTabelaPreco.label = Tabela de Preços indexController.mniRelatorioAIDF.label = AIDF indexController.mniRelatorioAIDFDetalhado.label = AIDF Detalhado +indexController.mniRelatorioSegundaVia.label = Segunda Via indexController.mniPrecoApanhe.label = Preço Apanhe indexController.mniRelatorioVendasPacotesResumido.label = Vendas de Pacotes - Resumido indexController.mniRelatorioVendasPacotesDetalhado.label = Vendas de Pacotes - Detalhado @@ -787,6 +788,14 @@ relatorioVendasPTAController.lbDatInicial.value = Data Inicial relatorioVendasPTAController.lbDatFinal.value = Data Final relatorioVendasPTAController.lbEmpresa.value = Empresa relatorioVendasPTAController.lbAgencia.value = Agência + +#Relatorio Segunda Via +relatorioSegundaViaController.window.title=Relatório Segunda Via +relatorioSegundaViaController.lbEmpresa.value=Empresa +relatorioSegundaViaController.lbPuntoVenta.value=Agência +relatorioSegundaViaController.lbNumero.value=Número Agência +relatorioSegundaViaController.lbDataInicial.value=Data Inicial +relatorioSegundaViaController.lbDataFinal.value=Data Final relatorioVendasPTAController.lbSituacao.value = Situação relatorioVendasPTAController.btnPesquisa.label = Pesquisar relatorioVendasPTAController.btnLimpar.label = Limpar Seleção diff --git a/web/gui/relatorios/filtroRelatorioSegundaVia.zul b/web/gui/relatorios/filtroRelatorioSegundaVia.zul new file mode 100644 index 000000000..b6795b7f9 --- /dev/null +++ b/web/gui/relatorios/filtroRelatorioSegundaVia.zul @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +