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 000000000..fed6bccd7 Binary files /dev/null and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jrxml new file mode 100644 index 000000000..6c35bbe8e --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioSegundaVia.jrxml @@ -0,0 +1,316 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +