diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioRemarcacaoDevolucao.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioRemarcacaoDevolucao.java new file mode 100644 index 000000000..a4e1ac3e5 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioRemarcacaoDevolucao.java @@ -0,0 +1,118 @@ +package com.rjconsultores.ventaboletos.relatorios.impl; + +import java.sql.Connection; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.service.ConstanteService; +import com.rjconsultores.ventaboletos.utilerias.DateUtil; +import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; + +public class RelatorioRemarcacaoDevolucao extends Relatorio { + + public RelatorioRemarcacaoDevolucao(Map parametros, Connection conexao, ConstanteService constanteService, final Boolean isRemarcacao) throws Exception { + super(parametros, conexao); + + this.setCustomDataSource(new ArrayDataSource(this) { + + public void initDados() throws Exception { + Connection conexao = this.relatorio.getConexao(); + Map parametros = this.relatorio.getParametros(); + + String sql = getSql((Integer) parametros.get("EMPRESA_ID"), (String) parametros.get("NUMPUNTOVENTA"), isRemarcacao); + + NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); + + stmt.setTimestamp("data_inicial", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime())); + stmt.setTimestamp("data_final", new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime())); + + ResultSet rset = stmt.executeQuery(); + + List> data = new ArrayList>(); + + while (rset.next()) { + Map dataResult = new HashMap(); + dataResult.put("dataRemarcacaoDevolucao", rset.getTimestamp("dataRemarcacaoDevolucao")); + dataResult.put("dataVenta", rset.getTimestamp("dataVenta")); + dataResult.put("origem", rset.getString("origem")); + dataResult.put("destino", rset.getString("destino")); + dataResult.put("agencia", rset.getString("agencia")); + dataResult.put("linha", rset.getString("linha")); + dataResult.put("servico", rset.getInt("servico")); + if (isRemarcacao) { + dataResult.put("dataViagemOriginal", rset.getTimestamp("dataViagemOriginal")); + } + dataResult.put("passageiro", rset.getString("passageiro")); + dataResult.put("documento", rset.getString("documento")); + dataResult.put("preco", rset.getBigDecimal("preço")); + dataResult.put("multa", rset.getBigDecimal("multa")); + + data.add(dataResult); + } + + if (!data.isEmpty()) { + Map dataResult = new HashMap(); + dataResult.put("temDados", true); + this.dados.add(dataResult); + parametros.put("data", data); + } + this.resultSet = rset; + } + }); + } + + @Override + protected void processaParametros() throws Exception { + } + + private String getSql(Integer empresaId, String puntoVentasId, Boolean isRemarcacao) { + StringBuilder sql = new StringBuilder(); + + sql.append("SELECT "); + sql.append("boleto.FECHORVENTA as dataRemarcacaoDevolucao, "); + sql.append("boletoOriginal.FECHORVENTA as dataVenta, "); + sql.append("origem.DESCPARADA as origem, "); + sql.append("destino.DESCPARADA as destino, "); + sql.append("agencia.NOMBPUNTOVENTA as agencia, "); + sql.append("linha.DESCRUTA as linha, "); + sql.append("servico.CORRIDA_ID as servico, "); + sql.append(isRemarcacao ? "boletoOriginal.FECHORVIAJE as dataViagemOriginal, " : " "); + sql.append("CASE WHEN cliente.CLIENTE_ID IS NULL THEN boleto.NOMBPASAJERO ELSE cliente.NOMBCLIENTE END as passageiro, "); + sql.append("CASE WHEN cliente.CLIENTE_ID IS NULL THEN boleto.DESCNUMDOC ELSE cliente.NUMIDENTIFICAUNO END as documento, "); + sql.append("boleto.PRECIOPAGADO as preço, "); + sql.append("COALESCE(eventoExtra.IMPINGRESO,0) as multa "); + + sql.append("FROM BOLETO boleto "); + sql.append("INNER JOIN BOLETO boletoOriginal ON boletoOriginal.BOLETO_ID = boleto.BOLETOORIGINAL_ID "); + sql.append("INNER JOIN PARADA origem ON origem.PARADA_ID = boleto.ORIGEN_ID "); + sql.append("INNER JOIN PARADA destino ON destino.PARADA_ID = boleto.DESTINO_ID "); + sql.append("INNER JOIN RUTA linha ON linha.RUTA_ID = boleto.RUTA_ID "); + sql.append("INNER JOIN CORRIDA servico ON (servico.CORRIDA_ID = boleto.CORRIDA_ID AND servico.FECCORRIDA = boleto.FECCORRIDA) "); + sql.append("LEFT JOIN EVENTO_EXTRA eventoExtra ON eventoExtra.BOLETO_ID = boleto.BOLETO_ID "); + sql.append("INNER JOIN MARCA marca ON marca.MARCA_ID = boleto.MARCA_ID "); + sql.append("LEFT JOIN CLIENTE cliente ON cliente.CLIENTE_ID = boleto.CLIENTE_ID "); + sql.append("INNER JOIN PUNTO_VENTA agencia ON agencia.PUNTOVENTA_ID = boleto.PUNTOVENTA_ID "); + + sql.append("WHERE "); + sql.append(isRemarcacao ? "boleto.MOTIVOCANCELACION_ID = 23 " : "boleto.MOTIVOCANCELACION_ID = 32 "); + sql.append(isRemarcacao ? "AND boleto.INDSTATUSBOLETO = 'T' " : " "); + sql.append("AND boleto.FECHORVENTA BETWEEN :data_inicial AND :data_final "); + sql.append("AND boleto.INDCANCELACION = 0 "); + sql.append("AND boleto.INDREIMPRESION = 0 "); + + if (empresaId != null) { + sql.append("AND marca.EMPRESA_ID = ").append(empresaId); + } + if (puntoVentasId != null && !puntoVentasId.isEmpty()) { + sql.append("AND agencia.PUNTOVENTA_ID IN (").append(puntoVentasId).append(") "); + } + return sql.toString(); + } +} diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioRemarcacaoDevolucao_es.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioRemarcacaoDevolucao_es.properties new file mode 100644 index 000000000..3eb284c4f --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioRemarcacaoDevolucao_es.properties @@ -0,0 +1,24 @@ +#geral +msg.noData=Não foi possivel obter dados com os parâmetros informados. +msg.a=à + +#Labels header +header.periodo=Período: +header.data.hora=Data/Hora\: +header.pagina=Página\: +header.filtro=Filtro\: + +#Labels detail +detail.dataRemarcacao=Data Remarcação +detail.dataDevolucao=Data Devolucação +detail.dataVenta=Data Venda +detail.origem=Origem +detail.destino=Destino +detail.agencia=Agência +detail.linha=Linha +detail.servico=Serviço +detail.dataViagemOriginal=Data Viagem Original +detail.passageiro=Passageiro +detail.documento=Doc +detail.preco=Preço +detail.multa=Multa diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioRemarcacaoDevolucao_pt_BR.properties b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioRemarcacaoDevolucao_pt_BR.properties new file mode 100644 index 000000000..3eb284c4f --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioRemarcacaoDevolucao_pt_BR.properties @@ -0,0 +1,24 @@ +#geral +msg.noData=Não foi possivel obter dados com os parâmetros informados. +msg.a=à + +#Labels header +header.periodo=Período: +header.data.hora=Data/Hora\: +header.pagina=Página\: +header.filtro=Filtro\: + +#Labels detail +detail.dataRemarcacao=Data Remarcação +detail.dataDevolucao=Data Devolucação +detail.dataVenta=Data Venda +detail.origem=Origem +detail.destino=Destino +detail.agencia=Agência +detail.linha=Linha +detail.servico=Serviço +detail.dataViagemOriginal=Data Viagem Original +detail.passageiro=Passageiro +detail.documento=Doc +detail.preco=Preço +detail.multa=Multa diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioRemarcacaoDevolucao.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioRemarcacaoDevolucao.jasper new file mode 100644 index 000000000..8cb62a50f Binary files /dev/null and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioRemarcacaoDevolucao.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioRemarcacaoDevolucao.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioRemarcacaoDevolucao.jrxml new file mode 100644 index 000000000..20dee5f47 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioRemarcacaoDevolucao.jrxml @@ -0,0 +1,701 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <band height="94" splitType="Stretch"> + <textField pattern="dd/MM/yyyy HH:mm"> + <reportElement uuid="1d25eae5-3bdd-4191-b928-a22eaf7e5a03" x="732" y="0" width="98" height="20"/> + <textElement textAlignment="Left"/> + <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="be5f7ffc-da87-44a0-bfcc-84cd0f66f36a" x="676" y="0" width="56" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="d4b4816b-da66-4d25-9c22-d30bd55dc34c" x="781" y="20" width="27" height="20"/> + <textElement textAlignment="Right"/> + <textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression> + </textField> + <textField evaluationTime="Report"> + <reportElement uuid="5f47e34e-efae-4d91-b7ca-04aecfc909f5" x="808" y="20" width="22" height="20"/> + <textElement textAlignment="Right"/> + <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> + </textField> + <textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> + <reportElement uuid="3329905a-f0cd-4788-8a38-722dc6d4f9a7" x="49" y="20" width="77" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="11d7e7d5-9128-40a8-ae73-406b86f9bee8" x="744" y="20" width="37" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="d0939e91-23cf-4ecf-9dce-272002419d19" x="0" y="0" width="231" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="201503fc-95d2-4d13-a2f4-39e0a786fc57" x="0" y="20" width="49" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$R{header.periodo}]]></textFieldExpression> + </textField> + <textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> + <reportElement uuid="8ba1afc9-cc5f-4947-ab31-cb7273ad8123" x="164" y="20" width="78" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="9edd4bc8-ce45-47d4-90f5-59f0def26e72" x="126" y="20" width="38" height="20"/> + <textElement textAlignment="Center"/> + <textFieldExpression><![CDATA[$R{msg.a}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="1340c66f-18a6-421d-905a-aa5c863b6192" x="49" y="74" width="742" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="4c4004ee-7bb0-4438-81f8-86d8c7d2fefe" x="0" y="74" width="49" height="20"/> + <textElement/> + <textFieldExpression><![CDATA[$R{header.filtro}]]></textFieldExpression> + </textField> + </band> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioRemarcacaoDevolucaoController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioRemarcacaoDevolucaoController.java new file mode 100644 index 000000000..2acb5d1e1 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioRemarcacaoDevolucaoController.java @@ -0,0 +1,241 @@ +package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Calendar; +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.zhtml.Messagebox; +import org.zkoss.zk.ui.Component; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zul.Comboitem; +import org.zkoss.zul.Datebox; +import org.zkoss.zul.Paging; +import org.zkoss.zul.Radio; + +import com.rjconsultores.ventaboletos.entidad.Empresa; +import com.rjconsultores.ventaboletos.entidad.PuntoVenta; +import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioRemarcacaoDevolucao; +import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; +import com.rjconsultores.ventaboletos.service.ConstanteService; +import com.rjconsultores.ventaboletos.service.EmpresaService; +import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; +import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; +import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; +import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; +import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox; +import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject; +import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper; +import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiro; +import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiroSelecionados; + +@Controller("relatorioRemarcacaoDevolucaoController") +@Scope("prototype") +public class RelatorioRemarcacaoDevolucaoController extends MyGenericForwardComposer { + + private static final long serialVersionUID = 1L; + + private Datebox datInicial; + private Datebox datFinal; + private MyComboboxEstandar cmbEmpresa; + private List lsEmpresa; + private Paging pagingPuntoVenta; + private MyTextbox txtNombrePuntoVenta; + private MyListbox puntoVentaList; + private MyListbox puntoVentaSelList; + + private Radio rdbTipoRemarcao; + + @Autowired + private EmpresaService empresaService; + @Autowired + private ConstanteService constanteService; + @Autowired + private DataSource dataSourceRead; + @Autowired + private transient PagedListWrapper plwPuntoVenta; + + @Override + public void doAfterCompose(Component comp) throws Exception { + lsEmpresa = empresaService.obtenerTodos(); + super.doAfterCompose(comp); + puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro()); + puntoVentaSelList.setItemRenderer(new RenderRelatorioVendasBilheteiroSelecionados()); + rdbTipoRemarcao.setSelected(true); + } + + /** + * @throws Exception + * + */ + @SuppressWarnings({ "rawtypes", "unchecked" }) + private void executarRelatorio() throws Exception { + { + if (datInicial != null && datFinal != null && datFinal.getValue().compareTo(datInicial.getValue()) < 0) { + try { + Messagebox.show(Labels.getLabel("MSG.ningunRegistro"), + Labels.getLabel("relatorioCancelamentoVendaCartaoController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + } catch (InterruptedException ex) { + ex.printStackTrace(); + } + } else + { + Relatorio relatorio; + + Map parametros = new HashMap(); + + String titulo = rdbTipoRemarcao.isSelected() ? + Labels.getLabel("relatorioRemarcacaoDevolucao.relatorioRemarcacao.title") + : Labels.getLabel("relatorioRemarcacaoDevolucao.relatorioDevolução.title"); + + StringBuilder filtro = new StringBuilder(); + + filtro.append("Início período: "); + Calendar cal = Calendar.getInstance(); + cal.setTime(datInicial.getValue()); + filtro.append(cal.get(Calendar.DATE) + "/"); + filtro.append((cal.get(Calendar.MONTH) + 1) + "/"); + filtro.append(cal.get(Calendar.YEAR) + "; "); + + filtro.append("Fim período: "); + cal.setTime(datFinal.getValue()); + filtro.append(cal.get(Calendar.DATE) + "/"); + filtro.append((cal.get(Calendar.MONTH) + 1) + "/"); + filtro.append(cal.get(Calendar.YEAR) + "; "); + + parametros.put("DATA_INICIAL", (java.util.Date) datInicial.getValue()); + parametros.put("DATA_FINAL", (java.util.Date) datFinal.getValue()); + + parametros.put("TITULO", titulo); + + parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString()); + parametros.put("USUARIO_NOME", UsuarioLogado.getUsuarioLogado().getNombusuario()); + + filtro.append("Empresa: "); + Comboitem itemEmpresa = cmbEmpresa.getSelectedItem(); + if (itemEmpresa != null) { + Empresa empresa = (Empresa) itemEmpresa.getValue(); + parametros.put("EMPRESA_ID", empresa.getEmpresaId()); + filtro.append(empresa.getNombempresa() + ";"); + } else { + filtro.append(" Todas;"); + } + + filtro.append("Agência: "); + String puntoVentas = ""; + List lsPuntoVentaSelecionados = new ArrayList(Arrays.asList(puntoVentaSelList.getData())); + if (lsPuntoVentaSelecionados.isEmpty()) { + puntoVentas = "Todas"; + } else { + StringBuilder puntoVentaIds = new StringBuilder(); + for (int i = 0; i < lsPuntoVentaSelecionados.size(); i++) { + PuntoVenta puntoVenta = lsPuntoVentaSelecionados.get(i); + puntoVentas = puntoVentas + puntoVenta.getNombpuntoventa() + ","; + if (puntoVentaIds.length() > 0) { + puntoVentaIds.append(","); + } + puntoVentaIds.append(puntoVenta.getPuntoventaId()); + } + parametros.put("NUMPUNTOVENTA", puntoVentaIds.toString()); + } + filtro.append(puntoVentas).append(";"); + parametros.put("FILTROS", filtro.toString()); + parametros.put("IS_REMARCACAO", rdbTipoRemarcao.isSelected()); + relatorio = new RelatorioRemarcacaoDevolucao(parametros, dataSourceRead.getConnection(), constanteService, rdbTipoRemarcao.isSelected()); + + Map args = new HashMap(); + args.put("relatorio", relatorio); + + openWindow("/component/reportView.zul", titulo, args, MODAL); + } + } + } + + public void onClick$btnExecutarRelatorio(Event ev) throws Exception { + executarRelatorio(); + } + + private void executarPesquisa() { + HibernateSearchObject puntoVentaBusqueda = + new HibernateSearchObject(PuntoVenta.class, pagingPuntoVenta.getPageSize()); + + puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%"); + puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE); + + puntoVentaBusqueda.addSortAsc("nombpuntoventa"); + + puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE); + + plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta); + + if (puntoVentaList.getData().length == 0) { + try { + Messagebox.show(Labels.getLabel("MSG.ningunRegistro"), + Labels.getLabel("relatorioVendasBilheteiroController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + } catch (InterruptedException ex) { + ex.printStackTrace(); + } + } + } + + public void onClick$btnPesquisa(Event ev) { + executarPesquisa(); + } + + public void onClick$btnLimpar(Event ev) { + puntoVentaList.setData(new ArrayList()); + txtNombrePuntoVenta.setText(""); + } + + public void onDoubleClick$puntoVentaSelList(Event ev) { + PuntoVenta puntoVenta = (PuntoVenta) puntoVentaSelList.getSelected(); + puntoVentaSelList.removeItem(puntoVenta); + } + + public void onDoubleClick$puntoVentaList(Event ev) { + PuntoVenta puntoVenta = (PuntoVenta) puntoVentaList.getSelected(); + puntoVentaSelList.addItemNovo(puntoVenta); + } + + public Datebox getDatInicial() { + return datInicial; + } + + public void setDatInicial(Datebox datInicial) { + this.datInicial = datInicial; + } + + public Datebox getDatFinal() { + return datFinal; + } + + public void setDatFinal(Datebox datFinal) { + this.datFinal = datFinal; + } + + public List getLsEmpresa() { + return lsEmpresa; + } + + public void setLsEmpresa(List lsEmpresa) { + this.lsEmpresa = lsEmpresa; + } + + public MyComboboxEstandar getCmbEmpresa() { + return cmbEmpresa; + } + + public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) { + this.cmbEmpresa = cmbEmpresa; + } +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioRemarcacaoDevolucao.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioRemarcacaoDevolucao.java new file mode 100644 index 000000000..eb7f2c6e0 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/relatorios/ItemMenuRelatorioRemarcacaoDevolucao.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 ItemMenuRelatorioRemarcacaoDevolucao extends DefaultItemMenuSistema { + + public ItemMenuRelatorioRemarcacaoDevolucao() { + super("indexController.mniRelatorioRemarcacaoDevolucao.label"); + } + + @Override + public String getClaveMenu() { + return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOREMARCACAODEVOLUCAO"; + } + + @Override + public void ejecutar() { + PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioRemarcacaoDevolucao.zul", + Labels.getLabel("relatorioRemarcacaoDevolucao.window.title"), getArgs(), desktop); + } + +} diff --git a/web/WEB-INF/i3-label_es_MX.label b/web/WEB-INF/i3-label_es_MX.label index 84f2211d1..82a632329 100644 --- a/web/WEB-INF/i3-label_es_MX.label +++ b/web/WEB-INF/i3-label_es_MX.label @@ -6560,3 +6560,11 @@ relatorioErrosIntegracaoBGMController.btnPesquisa.label = Buscar relatorioErrosIntegracaoBGMController.btnLimpar.label = Limpar relatorioErrosIntegracaoBGMController.lbNumero.value = Número Agência +# Relatorio Remarcacao Devolucao +indexController.mniRelatorioRemarcacaoDevolucao.label = Relatório Remarcação/Devolução +relatorioRemarcacaoDevolucao.window.title = Relatório Remarcação/Devolução +relatorioRemarcacaoDevolucao.relatorioRemarcacao.title = Relatório de Remarcação +relatorioRemarcacaoDevolucao.relatorioDevolução.title = Relatório de Devolução +relatorioRemarcacaoDevolucao.remarcacao.value = Remarcação +relatorioRemarcacaoDevolucao.devolucao.value = Devolucação +relatorioRemarcacaoDevolucao.tipo.label = Tipo diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index 6b7d1bf4d..7b3a4723c 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -6699,4 +6699,12 @@ relatorioErrosIntegracaoBGMController.btnLimpar.label = Limpar relatorioErrosIntegracaoBGMController.lbNumero.value = Número Agência +# Relatorio Remarcacao Devolucao +indexController.mniRelatorioRemarcacaoDevolucao.label = Relatório Remarcação/Devolução +relatorioRemarcacaoDevolucao.window.title = Relatório Remarcação/Devolução +relatorioRemarcacaoDevolucao.relatorioRemarcacao.title = Relatório de Remarcação +relatorioRemarcacaoDevolucao.relatorioDevolução.title = Relatório de Devolução +relatorioRemarcacaoDevolucao.remarcacao.value = Remarcação +relatorioRemarcacaoDevolucao.devolucao.value = Devolucação +relatorioRemarcacaoDevolucao.tipo.label = Tipo diff --git a/web/gui/relatorios/filtroRelatorioRemarcacaoDevolucao.zul b/web/gui/relatorios/filtroRelatorioRemarcacaoDevolucao.zul new file mode 100644 index 000000000..bd72c5e0b --- /dev/null +++ b/web/gui/relatorios/filtroRelatorioRemarcacaoDevolucao.zul @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + +