From 26456f530826c50d8dc2e2ccb19acb4a926d6833 Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 27 Jun 2024 19:25:33 -0300 Subject: [PATCH 1/2] AL-4280 --- .../gui/controladores/IndexController.java | 73 ++++-- ...squedaImpresionLayoutConfigController.java | 135 ++++++++++ .../catalogos/EditarEmpresaController.java | 16 ++ ...EditarImpresionLayoutConfigController.java | 234 ++++++++++++++++++ .../catalogos/EditarPuntoVentaController.java | 37 +++ .../EditarTipoEventoExtraController.java | 13 +- ...edaAsistenciaDeViajeEmpresaController.java | 100 ++++++++ ...tarAsistenciaDeViajeEmpresaController.java | 183 ++++++++++++++ .../MyComboboxImpresionLayoutConfig.java | 127 ++++++++++ .../utilerias/MyComboboxTipoEventoExtra.java | 127 ++++++++++ .../ItemMenuImpresionLayoutConfig.java | 25 ++ .../ItemMenuAsistenciaDeViajeEmpresa.java | 25 ++ .../MenuAsistenciaDeViajeEmpresa.java | 16 ++ .../utilerias/menu/menu_original.properties | 3 + .../RenderAsistenciaDeViajeEmpresa.java | 23 ++ .../render/RenderImpresionLayoutConfig.java | 26 ++ .../utilerias/render/RenderPtoVtaSeguro.java | 6 + src/java/spring-config.xml | 4 +- web/WEB-INF/i3-label_en.label | 32 +++ web/WEB-INF/i3-label_es_MX.label | 33 +++ web/WEB-INF/i3-label_fr_FR.label | 34 +++ web/WEB-INF/i3-label_pt_BR.label | 32 +++ .../busquedaImpresionLayoutConfig.zul | 56 +++++ web/gui/catalogos/editarEmpresa.zul | 9 + .../catalogos/editarImpresionLayoutConfig.zul | 91 +++++++ web/gui/catalogos/editarPuntoVenta.zul | 68 ++++- web/gui/ingreso/editarTipoEventoExtra.zul | 8 + .../busquedaAsistenciaDeViajeEmpresa.zul | 40 +++ .../editarAsistenciaDeViajeEmpresa.zul | 49 ++++ web/index.zul | 1 + 30 files changed, 1583 insertions(+), 43 deletions(-) create mode 100644 src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/BusquedaImpresionLayoutConfigController.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarImpresionLayoutConfigController.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/BusquedaAsistenciaDeViajeEmpresaController.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarAsistenciaDeViajeEmpresaController.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxImpresionLayoutConfig.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxTipoEventoExtra.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/catalogos/ItemMenuImpresionLayoutConfig.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/tarifas/asistenciadeviaje/ItemMenuAsistenciaDeViajeEmpresa.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/tarifas/asistenciadeviaje/MenuAsistenciaDeViajeEmpresa.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderAsistenciaDeViajeEmpresa.java create mode 100644 src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderImpresionLayoutConfig.java create mode 100644 web/gui/catalogos/busquedaImpresionLayoutConfig.zul create mode 100644 web/gui/catalogos/editarImpresionLayoutConfig.zul create mode 100644 web/gui/tarifas/busquedaAsistenciaDeViajeEmpresa.zul create mode 100644 web/gui/tarifas/editarAsistenciaDeViajeEmpresa.zul diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/IndexController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/IndexController.java index ac8fbab5f..575d8eecd 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/IndexController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/IndexController.java @@ -17,7 +17,7 @@ import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.Events; -import org.zkoss.zk.ui.util.Clients; +import org.zkoss.zul.Button; import org.zkoss.zul.Caption; import org.zkoss.zul.Menubar; import org.zkoss.zul.Toolbarbutton; @@ -51,40 +51,17 @@ public class IndexController extends MyGenericForwardComposer { private Usuario usuario; private Toolbarbutton toolBar; private Toolbarbutton toolBarUser; + private Button toolBarSearch; private Menubar menubar; private Caption lblNombreAplicacion; private Window win; private HashMap menuItems; - public Toolbarbutton getToolBar() { - return toolBar; - } - - public void setToolBar(Toolbarbutton toolBar) { - this.toolBar = toolBar; - } - - public Toolbarbutton getToolBarUser() { - return toolBarUser; - } - - public void setToolBarUser(Toolbarbutton toolBarUser) { - this.toolBarUser = toolBarUser; - } - - public Usuario getUsuario() { - return usuario; - } - - public void setUsuario(Usuario usuario) { - this.usuario = usuario; - } - private void cargarNombreAmbiente() { String strNombre = lblNombreAplicacion.getLabel(); strNombre = strNombre + " - " + constanteService.buscarNombreAmbiente(); if (flywayUtilService.existeErroExecucaoScript()){ - strNombre += " - FAVOR CHECAR A ATUALIZAÇÃO"; + strNombre += " - FAVOR CHECAR A ATUALIZACAO"; } lblNombreAplicacion.setLabel(strNombre); @@ -99,6 +76,7 @@ public class IndexController extends MyGenericForwardComposer { if (usuario == null) { toolBarUser.setVisible(Boolean.FALSE); + toolBarSearch.setVisible(Boolean.FALSE); Execution exec = Executions.getCurrent(); String param = exec.getParameter("param"); @@ -126,6 +104,8 @@ public class IndexController extends MyGenericForwardComposer { toolBarUser.setVisible(Boolean.TRUE); toolBarUser.setLabel(usuario.getNombusuario()); + + toolBarSearch.setVisible(Boolean.TRUE); if (usuario.getUsuarioPerfilList().isEmpty()) { return; @@ -137,6 +117,10 @@ public class IndexController extends MyGenericForwardComposer { } } + public void onClick$toolBarSearch(Event ev) { + openSearchMenu(); + } + @SuppressWarnings({ "rawtypes", "unchecked" }) public void onClick$toolBarUser(Event ev) { Map args = new HashMap(); @@ -147,8 +131,12 @@ public class IndexController extends MyGenericForwardComposer { openWindow("/gui/seguridad/editarUsuario.zul", Labels.getLabel("editarUsuarioController.window.title"), args, MODAL); } - @SuppressWarnings({ "rawtypes", "unchecked" }) public void openSearchMenu(Event ev) { + openSearchMenu(); + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + private void openSearchMenu() { Map args = new HashMap(); args.put("menuItems", menuItems); openWindow("/gui/catalogos/searchMenu.zul", Labels.getLabel("lb.btnPesquisa.label"), args, MODAL); @@ -161,4 +149,35 @@ public class IndexController extends MyGenericForwardComposer { public void setMenuItems(HashMap menuItems) { this.menuItems = menuItems; } + public Toolbarbutton getToolBar() { + return toolBar; + } + + public void setToolBar(Toolbarbutton toolBar) { + this.toolBar = toolBar; + } + + public Toolbarbutton getToolBarUser() { + return toolBarUser; + } + + public void setToolBarUser(Toolbarbutton toolBarUser) { + this.toolBarUser = toolBarUser; + } + + public Usuario getUsuario() { + return usuario; + } + + public void setUsuario(Usuario usuario) { + this.usuario = usuario; + } + + public Button getToolBarSearch() { + return toolBarSearch; + } + + public void setToolBarSearch(Button toolBarSearch) { + this.toolBarSearch = toolBarSearch; + } } diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/BusquedaImpresionLayoutConfigController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/BusquedaImpresionLayoutConfigController.java new file mode 100644 index 000000000..515b8b6ae --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/BusquedaImpresionLayoutConfigController.java @@ -0,0 +1,135 @@ +package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos; + +import java.util.HashMap; +import java.util.Map; + +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.zk.ui.event.EventListener; +import org.zkoss.zul.Paging; +import org.zkoss.zul.Textbox; + +import com.rjconsultores.ventaboletos.entidad.ImpresionLayoutConfig; +import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; +import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; +import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject; +import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper; +import com.rjconsultores.ventaboletos.web.utilerias.render.RenderImpresionLayoutConfig; + +@SuppressWarnings("serial") +@Controller("busquedaImpresionLayoutConfigController") +@Scope("prototype") +public class BusquedaImpresionLayoutConfigController extends MyGenericForwardComposer { + + @Autowired + private transient PagedListWrapper plwImpresionLayoutConfig; + private MyListbox impresionLayoutConfigList; + private Paging pagingImpresionLayoutConfig; + private Textbox txtNome; + + @Override + public void doAfterCompose(Component comp) throws Exception { + super.doAfterCompose(comp); + + impresionLayoutConfigList.setItemRenderer(new RenderImpresionLayoutConfig()); + impresionLayoutConfigList.addEventListener("onDoubleClick", new EventListener() { + + @Override + public void onEvent(Event event) throws Exception { + ImpresionLayoutConfig entity = (ImpresionLayoutConfig) impresionLayoutConfigList.getSelected(); + verImpresionLayoutConfig(entity); + } + }); + + refreshLista(); + + txtNome.focus(); + } + + @SuppressWarnings({ "unchecked", "rawtypes" }) + private void verImpresionLayoutConfig(ImpresionLayoutConfig entity) { + if (entity == null) { + return; + } + + Map args = new HashMap(); + args.put("impresionLayoutConfig", entity); + args.put("impresionLayoutConfigList", impresionLayoutConfigList); + + openWindow("/gui/catalogos/editarImpresionLayoutConfig.zul", + Labels.getLabel("busquedaImpresionLayoutConfigController.window.title"), args, MODAL); + } + + private void refreshLista() { + HibernateSearchObject impresionLayoutConfigBusqueda = new HibernateSearchObject( + ImpresionLayoutConfig.class, pagingImpresionLayoutConfig.getPageSize()); + + impresionLayoutConfigBusqueda.addFilterLike("descricao", "%" + txtNome.getText().trim().concat("%")); + + impresionLayoutConfigBusqueda.addSortAsc("descricao"); + + impresionLayoutConfigBusqueda.addFilterEqual("activo", Boolean.TRUE); + + plwImpresionLayoutConfig.init(impresionLayoutConfigBusqueda, impresionLayoutConfigList, + pagingImpresionLayoutConfig); + + if (impresionLayoutConfigList.getData().length == 0) { + try { + Messagebox.show(Labels.getLabel("MSG.ningunRegistro"), + Labels.getLabel("busquedaImpresionLayoutConfigController.window.title"), Messagebox.OK, + Messagebox.INFORMATION); + } catch (InterruptedException ex) { + } + } + } + + public void onClick$btnPesquisa(Event ev) { + refreshLista(); + } + + public void onClick$btnRefresh(Event ev) { + refreshLista(); + } + + public void onClick$btnNovo(Event ev) { + verImpresionLayoutConfig(new ImpresionLayoutConfig()); + } + + public PagedListWrapper getPlwImpresionLayoutConfig() { + return plwImpresionLayoutConfig; + } + + public void setPlwImpresionLayoutConfig(PagedListWrapper plwImpresionLayoutConfig) { + this.plwImpresionLayoutConfig = plwImpresionLayoutConfig; + } + + public MyListbox getImpresionLayoutConfigList() { + return impresionLayoutConfigList; + } + + public void setImpresionLayoutConfigList(MyListbox impresionLayoutConfigList) { + this.impresionLayoutConfigList = impresionLayoutConfigList; + } + + public Paging getPagingImpresionLayoutConfig() { + return pagingImpresionLayoutConfig; + } + + public void setPagingImpresionLayoutConfig(Paging pagingImpresionLayoutConfig) { + this.pagingImpresionLayoutConfig = pagingImpresionLayoutConfig; + } + + public Textbox getTxtNome() { + return txtNome; + } + + public void setTxtNome(Textbox txtNome) { + this.txtNome = txtNome; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarEmpresaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarEmpresaController.java index cdd5fb047..4f42ae667 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarEmpresaController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarEmpresaController.java @@ -573,6 +573,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer { private Textbox txtClientIdAsistenciaViaje; private Textbox txtGrantTypeAsistenciaViaje; private Textbox txtClientSecretAsistenciaViaje; + private MyComboboxEstandar cmbTipoEventoExtrasAsistenciaViaje; private MyComboboxEstandar cmbTipoDePassagem; private MyComboboxEstandar cmbOrgaoConcedente; @@ -1787,6 +1788,13 @@ public class EditarEmpresaController extends MyGenericForwardComposer { txtClientIdAsistenciaViaje.setText(mapConfigAsistenciaDeViaje.get("clientId")); txtGrantTypeAsistenciaViaje.setText(mapConfigAsistenciaDeViaje.get("grantType")); txtClientSecretAsistenciaViaje.setText(mapConfigAsistenciaDeViaje.get("clientSecret")); + TipoEventoExtra tipoEventoExtra = mapConfigAsistenciaDeViaje.get("tipoEventoExtra") != null + ? tipoEventoExtraService + .obtenerID(Integer.valueOf(mapConfigAsistenciaDeViaje.get("tipoEventoExtra"))) + : null; + if (tipoEventoExtra != null) { + cmbTipoEventoExtrasAsistenciaViaje.setText(tipoEventoExtra.getDescTipoEvento()); + } } } @@ -1798,6 +1806,14 @@ public class EditarEmpresaController extends MyGenericForwardComposer { salvaValoresAsistenciaDeViaje("clientId", txtClientIdAsistenciaViaje.getValue(), mapConfiAsistenciaDeViaje); salvaValoresAsistenciaDeViaje("grantType", txtGrantTypeAsistenciaViaje.getValue(), mapConfiAsistenciaDeViaje); salvaValoresAsistenciaDeViaje("clientSecret", txtClientSecretAsistenciaViaje.getValue(), mapConfiAsistenciaDeViaje); + Comboitem selectedItem = cmbTipoEventoExtrasAsistenciaViaje.getSelectedItem(); + if (selectedItem != null) { + TipoEventoExtra tipoEventoExtra = (TipoEventoExtra) selectedItem.getValue(); + salvaValoresAsistenciaDeViaje("tipoEventoExtra", tipoEventoExtra.getTipoeventoextraId(), + mapConfiAsistenciaDeViaje); + } else { + salvaValoresAsistenciaDeViaje("tipoEventoExtra", null, mapConfiAsistenciaDeViaje); + } } private Map retornaValoresAsistenciaDeViaje() { diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarImpresionLayoutConfigController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarImpresionLayoutConfigController.java new file mode 100644 index 000000000..8c78dfee6 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarImpresionLayoutConfigController.java @@ -0,0 +1,234 @@ +package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos; + +import java.util.Arrays; +import java.util.Calendar; +import java.util.List; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Scope; +import org.springframework.stereotype.Controller; +import org.zkforge.ckez.CKeditor; +import org.zkoss.util.resource.Labels; +import org.zkoss.zhtml.Messagebox; +import org.zkoss.zk.ui.Component; +import org.zkoss.zk.ui.Executions; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zul.Borderlayout; +import org.zkoss.zul.Button; +import org.zkoss.zul.Comboitem; +import org.zkoss.zul.Vlayout; + +import com.rjconsultores.ventaboletos.entidad.ImpresionLayoutConfig; +import com.rjconsultores.ventaboletos.enums.EnumLinguagemImpresion; +import com.rjconsultores.ventaboletos.service.ImpresionLayoutConfigService; +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; + +@SuppressWarnings("serial") +@Controller("editarImpresionLayoutConfigController") +@Scope("prototype") +public class EditarImpresionLayoutConfigController extends MyGenericForwardComposer { + + @Autowired + private ImpresionLayoutConfigService impresionLayoutConfigService; + private ImpresionLayoutConfig impresionLayoutConfig; + private MyListbox impresionLayoutConfigList; + private Button btnApagar; + private MyTextbox txtNome; + private MyComboboxEstandar cmbLinguagemImpresion; + private CKeditor ckTexto; + private List lsEnumLinguagemImpresion; + private Vlayout layoutCkEditor; + private Borderlayout layoutTextZpl; + private static Logger log = LogManager.getLogger(EditarImpresionLayoutConfigController.class); + + @Override + public void doAfterCompose(Component comp) throws Exception { + + lsEnumLinguagemImpresion = Arrays.asList(EnumLinguagemImpresion.values()); + + super.doAfterCompose(comp); + + impresionLayoutConfig = (ImpresionLayoutConfig) Executions.getCurrent().getArg().get("impresionLayoutConfig"); + impresionLayoutConfigList = (MyListbox) Executions.getCurrent().getArg().get("impresionLayoutConfigList"); + + if (impresionLayoutConfig.getImpresionLayoutConfigId() == null) { + btnApagar.setVisible(Boolean.FALSE); + } else { + if (impresionLayoutConfig.getLinguagem() != null) { + mudaLayout(impresionLayoutConfig.getLinguagem()); + } + + } + + ckTexto.setValue(impresionLayoutConfig.getTexto()); + } + + public void onClick$btnSalvar(Event ev) throws InterruptedException { + txtNome.getValue(); + + try { + + Comboitem cbLinguagemImpresion = cmbLinguagemImpresion.getSelectedItem(); + impresionLayoutConfig.setLinguagem(null); + if (cbLinguagemImpresion != null) { + impresionLayoutConfig.setLinguagem((EnumLinguagemImpresion) cbLinguagemImpresion.getValue()); + } + + impresionLayoutConfig.setTexto(ckTexto.getValue()); + impresionLayoutConfig.setActivo(Boolean.TRUE); + impresionLayoutConfig.setFecmodif(Calendar.getInstance().getTime()); + impresionLayoutConfig.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); + + if (impresionLayoutConfig.getImpresionLayoutConfigId() == null) { + + List lsImpresionLayoutConfigo = impresionLayoutConfigService + .buscar(impresionLayoutConfig.getDescricao()); + + if (!lsImpresionLayoutConfigo.isEmpty()) { + Messagebox.show(Labels.getLabel("MSG.Registro.Existe"), + Labels.getLabel("editarImpresionLayoutConfigController.window.title"), Messagebox.OK, + Messagebox.EXCLAMATION); + return; + } + + impresionLayoutConfigService.suscribir(impresionLayoutConfig); + impresionLayoutConfigList.addItemNovo(impresionLayoutConfig); + } else { + impresionLayoutConfigService.actualizacion(impresionLayoutConfig); + impresionLayoutConfigList.updateItem(impresionLayoutConfig); + } + + Messagebox.show(Labels.getLabel("editarImpresionLayoutConfigController.MSG.suscribirOK"), + Labels.getLabel("editarImpresionLayoutConfigController.window.title"), Messagebox.OK, + Messagebox.INFORMATION); + + closeWindow(); + + } catch (Exception ex) { + log.error("editarImpresionLayoutConfigController: " + ex); + Messagebox.show(Labels.getLabel("MSG.Error"), + Labels.getLabel("editarImpresionLayoutConfigController.window.title"), Messagebox.OK, + Messagebox.ERROR); + } + } + + public void onClick$btnApagar(Event ev) throws InterruptedException { + + int resp = Messagebox.show(Labels.getLabel("editarImpresionLayoutConfigController.MSG.borrarPergunta"), + Labels.getLabel("editarImpresionLayoutConfigController.window.title"), Messagebox.YES | Messagebox.NO, + Messagebox.QUESTION); + + if (resp == Messagebox.YES) { + + impresionLayoutConfigService.borrar(impresionLayoutConfig); + + Messagebox.show(Labels.getLabel("editarImpresionLayoutConfigController.MSG.borrarOK"), + Labels.getLabel("editarImpresionLayoutConfigController.window.title"), Messagebox.OK, + Messagebox.INFORMATION); + + impresionLayoutConfigList.removeItem(impresionLayoutConfig); + + closeWindow(); + } + } + + public void onChange$cmbLinguagemImpresion(Event ev) { + Comboitem cbiLinguagemImpresion = cmbLinguagemImpresion.getSelectedItem(); + if (cbiLinguagemImpresion != null) { + mudaLayout(cbiLinguagemImpresion.getValue()); + } + } + + private void mudaLayout(Object object) { + + if (object != null) { + EnumLinguagemImpresion enumLinguagemImpresion = (EnumLinguagemImpresion) object; + + switch (enumLinguagemImpresion) { + case HTML: + layoutCkEditor.setVisible(true); + layoutTextZpl.setVisible(false); + break; + case ZPL: + layoutCkEditor.setVisible(false); + layoutTextZpl.setVisible(true); + break; + default: + break; + } + + } + + } + + public ImpresionLayoutConfigService getImpresionLayoutConfigService() { + return impresionLayoutConfigService; + } + + public void setImpresionLayoutConfigService(ImpresionLayoutConfigService impresionLayoutConfigService) { + this.impresionLayoutConfigService = impresionLayoutConfigService; + } + + public ImpresionLayoutConfig getImpresionLayoutConfig() { + return impresionLayoutConfig; + } + + public void setImpresionLayoutConfig(ImpresionLayoutConfig impresionLayoutConfig) { + this.impresionLayoutConfig = impresionLayoutConfig; + } + + public MyListbox getImpresionLayoutConfigList() { + return impresionLayoutConfigList; + } + + public void setImpresionLayoutConfigList(MyListbox impresionLayoutConfigList) { + this.impresionLayoutConfigList = impresionLayoutConfigList; + } + + public Button getBtnApagar() { + return btnApagar; + } + + public void setBtnApagar(Button btnApagar) { + this.btnApagar = btnApagar; + } + + public MyTextbox getTxtNome() { + return txtNome; + } + + public void setTxtNome(MyTextbox txtNome) { + this.txtNome = txtNome; + } + + public CKeditor getCkTexto() { + return ckTexto; + } + + public void setCkTexto(CKeditor ckTexto) { + this.ckTexto = ckTexto; + } + + public MyComboboxEstandar getCmbLinguagemImpresion() { + return cmbLinguagemImpresion; + } + + public void setCmbLinguagemImpresion(MyComboboxEstandar cmbLinguagemImpresion) { + this.cmbLinguagemImpresion = cmbLinguagemImpresion; + } + + public List getLsEnumLinguagemImpresion() { + return lsEnumLinguagemImpresion; + } + + public void setLsEnumLinguagemImpresion(List lsEnumLinguagemImpresion) { + this.lsEnumLinguagemImpresion = lsEnumLinguagemImpresion; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarPuntoVentaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarPuntoVentaController.java index f4bc1d0cd..b0ea9e2ec 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarPuntoVentaController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarPuntoVentaController.java @@ -470,6 +470,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { private Radio radIndVendeSeguroOpcEmbarcadaSi; private Radio radIndVendeSeguroTabelaEmbarcadaSi; private Radio radIndTaxaEmbarqueEmbarcadaSi; + private Radio radIndvendAsistenciaDeViajelSi; + private Radio radIndvendAsistenciaDeViajeNo; + private Radio radIndestanAsistenciaDeViajeSi; private Checkbox checkPtoVtaEmpresaIndTerceirizada; private Checkbox checkPtoVtaEmpresaIndBloqueada; private Checkbox checkPtoVtaEmpresaIndMostrarCaja; @@ -1824,6 +1827,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { pto.setIndTaxaEmbarqueEmbarcada(radIndTaxaEmbarqueEmbarcadaSi.isChecked()); pto.setIndVendeSeguroOpcEmbarcada(radIndVendeSeguroOpcEmbarcadaSi.isChecked()); pto.setIndVendeSeguroTabelaEmbarcada(radIndVendeSeguroTabelaEmbarcadaSi.isChecked()); + + pto.setIndVendeAsistenciaDeViaje(radIndvendAsistenciaDeViajelSi.isChecked()); + pto.setIndEstanAsistenciaDeViaje(radIndestanAsistenciaDeViajeSi.isChecked()); pto.setEmpresa(empresa); pto.setPuntoventaId(puntoVenta); @@ -4023,6 +4029,37 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { } } + public void onClick$radIndvendsegopcionalSi(Event event) { + if (radIndvendsegopcionalSi.isChecked()) { + radIndvendAsistenciaDeViajelSi.setDisabled(true); + radIndvendAsistenciaDeViajeNo.setDisabled(true); + } + } + + public void onClick$radIndvendsegopcionalNo(Event event) { + if (radIndvendsegopcionalNo.isChecked()) { + radIndvendAsistenciaDeViajelSi.setDisabled(false); + radIndvendAsistenciaDeViajeNo.setDisabled(false); + radIndvendAsistenciaDeViajeNo.setChecked(true); + } + } + + public void onClick$radIndvendAsistenciaDeViajelSi(Event event) { + if (radIndvendAsistenciaDeViajelSi.isChecked()) { + radIndvendsegopcionalSi.setDisabled(true); + radIndvendsegopcionalNo.setDisabled(true); + radIndvendsegopcionalNo.setChecked(true); + } + } + + public void onClick$radIndvendAsistenciaDeViajeNo(Event event) { + if (radIndvendAsistenciaDeViajeNo.isChecked()) { + radIndvendsegopcionalSi.setDisabled(false); + radIndvendsegopcionalNo.setDisabled(false); + radIndvendsegopcionalNo.setChecked(true); + } + } + public void onClick$btnAddChaveAntifraude(Event event) { try { if(verificarCamposAddChaveAntifraude()) { diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/ingreso/EditarTipoEventoExtraController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/ingreso/EditarTipoEventoExtraController.java index cbf9d8acd..af5818481 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/ingreso/EditarTipoEventoExtraController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/ingreso/EditarTipoEventoExtraController.java @@ -31,6 +31,7 @@ import org.zkoss.zul.Textbox; import com.rjconsultores.ventaboletos.constantes.Constantes; import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.FormaPago; +import com.rjconsultores.ventaboletos.entidad.ImpresionLayoutConfig; import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra; import com.rjconsultores.ventaboletos.entidad.TipoEventoExtraEmpresa; @@ -46,6 +47,7 @@ import com.rjconsultores.ventaboletos.service.TipoEventoExtraPtovtaService; import com.rjconsultores.ventaboletos.service.TipoEventoExtraService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; +import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxImpresionLayoutConfig; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; @@ -86,6 +88,7 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer { private Radio raTipo22; private MyComboboxEstandar cmbEmpresa; private MyComboboxPuntoVenta cmbPontoVenda; + private MyComboboxImpresionLayoutConfig cmbImpresionLayoutConfig; /*Forma de Pagamento*/ private List lsEmpresas; /*Forma de Pagamento*/ @@ -101,9 +104,6 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer { private Combobox cmbEmpresaFormaPago; private MyListbox formaPagoList; private List lsTipoEventoExtraEmpresa; - - - private static Logger log = LogManager.getLogger(EditarTipoEventoExtraController.class); @@ -139,6 +139,7 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer { btnApagar.setVisible(false); rowIndEnviaExcessoDeBagagemSefaz.setVisible(false); } + cmbImpresionLayoutConfig.setInitialValue(tipoEventoExtra.getImpresionLayoutConfig()); } else { rowIndEnviaExcessoDeBagagemSefaz.setVisible(false); btnApagar.setVisible(false); @@ -249,6 +250,12 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer { tipoEventoExtra.setCvetipoevento( (com.rjconsultores.ventaboletos.constantes.TipoEventoExtra) cbDescontoMonitrip.getValue()); } + + Comboitem cbImpresionLayoutConfig = cmbImpresionLayoutConfig.getSelectedItem(); + tipoEventoExtra.setImpresionLayoutConfig(null); + if (cbImpresionLayoutConfig != null) { + tipoEventoExtra.setImpresionLayoutConfig((ImpresionLayoutConfig) cbImpresionLayoutConfig.getValue()); + } try { tipoEventoExtra.setActivo(Boolean.TRUE); diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/BusquedaAsistenciaDeViajeEmpresaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/BusquedaAsistenciaDeViajeEmpresaController.java new file mode 100644 index 000000000..8735ce4c1 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/BusquedaAsistenciaDeViajeEmpresaController.java @@ -0,0 +1,100 @@ +package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas; + +import java.util.HashMap; +import java.util.Map; + +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.zk.ui.event.EventListener; +import org.zkoss.zul.Paging; + +import com.rjconsultores.ventaboletos.entidad.AsistenciaDeViajeEmpresa; +import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; +import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; +import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject; +import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper; +import com.rjconsultores.ventaboletos.web.utilerias.render.RenderAsistenciaDeViajeEmpresa; + +@Controller("busquedaAsistenciaDeViajeEmpresaController") +@Scope("prototype") +public class BusquedaAsistenciaDeViajeEmpresaController extends MyGenericForwardComposer { + + private static final long serialVersionUID = 1L; + + @Autowired + private transient PagedListWrapper plwAsistenciaDeViajeEmpresa; + + private MyListbox asistenciaDeViajeEmpresaList; + private Paging pagingAsistenciaDeViajeEmpresa; + + @Override + public void doAfterCompose(Component comp) throws Exception { + super.doAfterCompose(comp); + + asistenciaDeViajeEmpresaList.setItemRenderer(new RenderAsistenciaDeViajeEmpresa()); + asistenciaDeViajeEmpresaList.addEventListener("onDoubleClick", new EventListener() { + + @Override + public void onEvent(Event event) throws Exception { + AsistenciaDeViajeEmpresa entity = (AsistenciaDeViajeEmpresa) asistenciaDeViajeEmpresaList.getSelected(); + verAsistenciaDeViajeEmpresa(entity); + } + }); + + refreshLista(); + } + + @SuppressWarnings({ "unchecked", "rawtypes" }) + private void verAsistenciaDeViajeEmpresa(AsistenciaDeViajeEmpresa entity) { + if (entity == null) { + return; + } + + Map args = new HashMap(); + args.put("asistenciaDeViajeEmpresa", entity); + args.put("asistenciaDeViajeEmpresaList", asistenciaDeViajeEmpresaList); + + openWindow("/gui/tarifas/editarAsistenciaDeViajeEmpresa.zul", + Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.window.title"), args, MODAL); + } + + private void refreshLista() { + + HibernateSearchObject asistenciaDeViajeEmpresaBusqueda = new HibernateSearchObject( + AsistenciaDeViajeEmpresa.class, pagingAsistenciaDeViajeEmpresa.getPageSize()); + + asistenciaDeViajeEmpresaBusqueda.addFilterEqual("activo", Boolean.TRUE); + + asistenciaDeViajeEmpresaBusqueda.addSortAsc("empresa"); + + plwAsistenciaDeViajeEmpresa.init(asistenciaDeViajeEmpresaBusqueda, asistenciaDeViajeEmpresaList, + pagingAsistenciaDeViajeEmpresa); + + if (asistenciaDeViajeEmpresaList.getData().length == 0) { + try { + Messagebox.show(Labels.getLabel("MSG.ningunRegistro"), + Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.window.title"), Messagebox.OK, + Messagebox.INFORMATION); + } catch (InterruptedException ex) { + } + } + } + + public void onClick$btnPesquisa(Event ev) { + refreshLista(); + } + + public void onClick$btnRefresh(Event ev) { + refreshLista(); + } + + public void onClick$btnNovo(Event ev) { + verAsistenciaDeViajeEmpresa(new AsistenciaDeViajeEmpresa()); + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarAsistenciaDeViajeEmpresaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarAsistenciaDeViajeEmpresaController.java new file mode 100644 index 000000000..10a83885e --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarAsistenciaDeViajeEmpresaController.java @@ -0,0 +1,183 @@ +package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas; + +import java.math.BigDecimal; +import java.util.List; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.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.zhtml.Messagebox; +import org.zkoss.zk.ui.Component; +import org.zkoss.zk.ui.Executions; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zul.Button; + +import com.rjconsultores.ventaboletos.entidad.AsistenciaDeViajeEmpresa; +import com.rjconsultores.ventaboletos.entidad.Empresa; +import com.rjconsultores.ventaboletos.service.AsistenciaDeViajeEmpresaService; +import com.rjconsultores.ventaboletos.service.EmpresaService; +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.MyTextboxDecimal; + +@Controller("editarAsistenciaDeViajeEmpresaController") +@Scope("prototype") +public class EditarAsistenciaDeViajeEmpresaController extends MyGenericForwardComposer { + + private static final long serialVersionUID = 1L; + + @Autowired + private AsistenciaDeViajeEmpresaService asistenciaDeViajeEmpresaService; + @Autowired + private EmpresaService empresaService; + + private List lsEmpresa; + private MyListbox asistenciaDeViajeEmpresaList; + private MyComboboxEstandar cmbEmpresa; + private Button btnApagar; + private Button btnSalvar; + private MyTextboxDecimal txtTarifa; + private static Logger log = LogManager.getLogger(EditarAsistenciaDeViajeEmpresaController.class); + + private AsistenciaDeViajeEmpresa asistenciaDeViajeEmpresa; + + @Override + public void doAfterCompose(Component comp) throws Exception { + + lsEmpresa = empresaService.obtenerTodos(); + + super.doAfterCompose(comp); + + asistenciaDeViajeEmpresa = (AsistenciaDeViajeEmpresa) Executions.getCurrent().getArg() + .get("asistenciaDeViajeEmpresa"); + asistenciaDeViajeEmpresaList = (MyListbox) Executions.getCurrent().getArg().get("asistenciaDeViajeEmpresaList"); + + if (asistenciaDeViajeEmpresa.getAsistenciaDeViajeEmpresaId() == null) { + btnApagar.setVisible(Boolean.FALSE); + } else { + txtTarifa.setValue(asistenciaDeViajeEmpresa.getTarifa() != null ? asistenciaDeViajeEmpresa.getTarifa().toString() : ""); + } + } + + public void onClick$btnSalvar(Event ev) throws InterruptedException { + txtTarifa.getValue(); + try { + Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue(); + + asistenciaDeViajeEmpresa.setEmpresa(empresa); + asistenciaDeViajeEmpresa.setTarifa(new BigDecimal(txtTarifa.getText())); + + if (asistenciaDeViajeEmpresa.getAsistenciaDeViajeEmpresaId() == null) { + + if (asistenciaDeViajeEmpresaService.existe(empresa)) { + Messagebox.show(Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.MSG.existe"), + Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.window.title"), Messagebox.OK, + Messagebox.INFORMATION); + return; + } + + asistenciaDeViajeEmpresaService.suscribir(asistenciaDeViajeEmpresa); + asistenciaDeViajeEmpresaList.addItemNovo(asistenciaDeViajeEmpresa); + } else { + asistenciaDeViajeEmpresaService.actualizacion(asistenciaDeViajeEmpresa); + asistenciaDeViajeEmpresaList.updateItem(asistenciaDeViajeEmpresa); + } + + Messagebox.show(Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.MSG.suscribirOK"), + Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.window.title"), Messagebox.OK, + Messagebox.INFORMATION); + + closeWindow(); + + } catch (Exception ex) { + log.error(ex); + Messagebox.show(Labels.getLabel("MSG.Error"), + Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.window.title"), Messagebox.OK, + Messagebox.ERROR); + + } + } + + public void onClick$btnApagar(Event ev) { + try { + int resp = Messagebox.show(Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.MSG.borrarPergunta"), + Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.window.title"), + Messagebox.YES | Messagebox.NO, Messagebox.QUESTION); + + if (resp == Messagebox.YES) { + asistenciaDeViajeEmpresaService.borrar(asistenciaDeViajeEmpresa); + + Messagebox.show(Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.MSG.borrarOK"), + Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.window.title"), Messagebox.OK, + Messagebox.INFORMATION); + + asistenciaDeViajeEmpresaList.removeItem(asistenciaDeViajeEmpresa); + + closeWindow(); + } + } catch (Exception ex) { + log.error(ex); + } + } + + 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; + } + + public Button getBtnApagar() { + return btnApagar; + } + + public void setBtnApagar(Button btnApagar) { + this.btnApagar = btnApagar; + } + + public Button getBtnSalvar() { + return btnSalvar; + } + + public void setBtnSalvar(Button btnSalvar) { + this.btnSalvar = btnSalvar; + } + + public MyListbox getAsistenciaDeViajeEmpresaList() { + return asistenciaDeViajeEmpresaList; + } + + public void setAsistenciaDeViajeEmpresaList(MyListbox asistenciaDeViajeEmpresaList) { + this.asistenciaDeViajeEmpresaList = asistenciaDeViajeEmpresaList; + } + + public MyTextboxDecimal getTxtTarifa() { + return txtTarifa; + } + + public void setTxtTarifa(MyTextboxDecimal txtTarifa) { + this.txtTarifa = txtTarifa; + } + + public AsistenciaDeViajeEmpresa getAsistenciaDeViajeEmpresa() { + return asistenciaDeViajeEmpresa; + } + + public void setAsistenciaDeViajeEmpresa(AsistenciaDeViajeEmpresa asistenciaDeViajeEmpresa) { + this.asistenciaDeViajeEmpresa = asistenciaDeViajeEmpresa; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxImpresionLayoutConfig.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxImpresionLayoutConfig.java new file mode 100644 index 000000000..77e3be0ac --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxImpresionLayoutConfig.java @@ -0,0 +1,127 @@ + +package com.rjconsultores.ventaboletos.web.utilerias; + +import java.util.ArrayList; +import java.util.List; + +import org.zkoss.util.resource.Labels; +import org.zkoss.zk.ui.WrongValueException; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zk.ui.event.EventListener; +import org.zkoss.zk.ui.event.InputEvent; +import org.zkoss.zkplus.databind.BindingListModel; +import org.zkoss.zkplus.databind.BindingListModelList; +import org.zkoss.zkplus.spring.SpringUtil; +import org.zkoss.zul.Combobox; + +import com.rjconsultores.ventaboletos.entidad.ImpresionLayoutConfig; +import com.rjconsultores.ventaboletos.service.ImpresionLayoutConfigService; + +public class MyComboboxImpresionLayoutConfig extends Combobox { + + private ImpresionLayoutConfigService impresionLayoutConfigService; + private List lsImpresionLayoutConfig; + private ImpresionLayoutConfig initialValue; + private Integer indiceSelected = null; + + public MyComboboxImpresionLayoutConfig() { + super(); + + impresionLayoutConfigService = (ImpresionLayoutConfigService) SpringUtil + .getBean("impresionLayoutConfigService"); + lsImpresionLayoutConfig = new ArrayList(); + + this.setAutodrop(true); + this.setAutocomplete(true); + + this.addEventListener("onOK", new EventListener() { + + @Override + public void onEvent(Event event) throws Exception { + String strImpresionLayoutConfig = MyComboboxImpresionLayoutConfig.this.getText().toUpperCase(); + if (strImpresionLayoutConfig.length() < MyComboboxParada.minLength) { + return; + } + if (!strImpresionLayoutConfig.isEmpty()) { + lsImpresionLayoutConfig = impresionLayoutConfigService.buscarLike(strImpresionLayoutConfig); + + BindingListModel listModelImpresionLayoutConfig = new BindingListModelList(lsImpresionLayoutConfig, + true); + MyComboboxImpresionLayoutConfig.this.setModel(listModelImpresionLayoutConfig); + indiceSelected = null; + if (!lsImpresionLayoutConfig.isEmpty()) { + indiceSelected = 0; + } + MyComboboxImpresionLayoutConfig.this.open(); + } else { + lsImpresionLayoutConfig.clear(); + + BindingListModel listModelImpresionLayoutConfig = new BindingListModelList(lsImpresionLayoutConfig, + true); + MyComboboxImpresionLayoutConfig.this.setModel(listModelImpresionLayoutConfig); + } + } + }); + + this.addEventListener("onChanging", new EventListener() { + + @Override + public void onEvent(Event event) throws Exception { + InputEvent ev = (InputEvent) event; + String strImpresionLayoutConfig = ev.getValue(); + if (strImpresionLayoutConfig.length() < 2) { + lsImpresionLayoutConfig.clear(); + + BindingListModel listModelImpresionLayoutConfig = new BindingListModelList(lsImpresionLayoutConfig, + true); + MyComboboxImpresionLayoutConfig.this.setModel(listModelImpresionLayoutConfig); + + MyComboboxImpresionLayoutConfig.this.close(); + } + } + }); + } + + public ImpresionLayoutConfig getInitialValue() { + return initialValue; + } + + public void setInitialValue(ImpresionLayoutConfig initialValue) { + if (initialValue == null) { + return; + } + List ls = new ArrayList(); + ls.add(initialValue); + + this.setModel(new BindingListModelList(ls, false)); + } + + public void getValue(boolean checaBusqueda) throws WrongValueException { + if (checaBusqueda) { + ImpresionLayoutConfig impresionLayoutConfig = (ImpresionLayoutConfig) (this.getSelectedItem() == null ? null + : this.getSelectedItem().getValue()); + + if (impresionLayoutConfig == null) { + throw new WrongValueException(this, Labels.getLabel("MSG.Error.combobox.hacerBusqueda")); + } + } else { + super.getValue(); + } + } + + public T getSelecteObject(Class cType) { + if (this.getSelectedItem() != null) { + return cType.cast(this.getSelectedItem().getValue()); + } + return null; + } + + public Integer getIndiceSelected() { + return indiceSelected; + } + + public void setIndiceSelected(Integer indiceSelected) { + this.indiceSelected = indiceSelected; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxTipoEventoExtra.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxTipoEventoExtra.java new file mode 100644 index 000000000..22609135f --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxTipoEventoExtra.java @@ -0,0 +1,127 @@ + +package com.rjconsultores.ventaboletos.web.utilerias; + +import java.util.ArrayList; +import java.util.List; + +import org.zkoss.util.resource.Labels; +import org.zkoss.zk.ui.WrongValueException; +import org.zkoss.zk.ui.event.Event; +import org.zkoss.zk.ui.event.EventListener; +import org.zkoss.zk.ui.event.InputEvent; +import org.zkoss.zkplus.databind.BindingListModel; +import org.zkoss.zkplus.databind.BindingListModelList; +import org.zkoss.zkplus.spring.SpringUtil; +import org.zkoss.zul.Combobox; + +import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra; +import com.rjconsultores.ventaboletos.service.TipoEventoExtraService; + +public class MyComboboxTipoEventoExtra extends Combobox { + + private TipoEventoExtraService tipoEventoExtraService; + private List lsTipoEventoExtra; + private TipoEventoExtra initialValue; + private Integer indiceSelected = null; + + public MyComboboxTipoEventoExtra() { + super(); + + tipoEventoExtraService = (TipoEventoExtraService) SpringUtil + .getBean("tipoEventoExtraService"); + lsTipoEventoExtra = new ArrayList(); + + this.setAutodrop(true); + this.setAutocomplete(true); + + this.addEventListener("onOK", new EventListener() { + + @Override + public void onEvent(Event event) throws Exception { + String strTipoEventoExtra = MyComboboxTipoEventoExtra.this.getText().toUpperCase(); + if (strTipoEventoExtra.length() < MyComboboxParada.minLength) { + return; + } + if (!strTipoEventoExtra.isEmpty()) { + lsTipoEventoExtra = tipoEventoExtraService.buscarLike(strTipoEventoExtra); + + BindingListModel listModelTipoEventoExtra = new BindingListModelList(lsTipoEventoExtra, + true); + MyComboboxTipoEventoExtra.this.setModel(listModelTipoEventoExtra); + indiceSelected = null; + if (!lsTipoEventoExtra.isEmpty()) { + indiceSelected = 0; + } + MyComboboxTipoEventoExtra.this.open(); + } else { + lsTipoEventoExtra.clear(); + + BindingListModel listModelTipoEventoExtra = new BindingListModelList(lsTipoEventoExtra, + true); + MyComboboxTipoEventoExtra.this.setModel(listModelTipoEventoExtra); + } + } + }); + + this.addEventListener("onChanging", new EventListener() { + + @Override + public void onEvent(Event event) throws Exception { + InputEvent ev = (InputEvent) event; + String strTipoEventoExtra = ev.getValue(); + if (strTipoEventoExtra.length() < 2) { + lsTipoEventoExtra.clear(); + + BindingListModel listModelTipoEventoExtra = new BindingListModelList(lsTipoEventoExtra, + true); + MyComboboxTipoEventoExtra.this.setModel(listModelTipoEventoExtra); + + MyComboboxTipoEventoExtra.this.close(); + } + } + }); + } + + public TipoEventoExtra getInitialValue() { + return initialValue; + } + + public void setInitialValue(TipoEventoExtra initialValue) { + if (initialValue == null) { + return; + } + List ls = new ArrayList(); + ls.add(initialValue); + + this.setModel(new BindingListModelList(ls, false)); + } + + public void getValue(boolean checaBusqueda) throws WrongValueException { + if (checaBusqueda) { + TipoEventoExtra tipoEventoExtra = (TipoEventoExtra) (this.getSelectedItem() == null ? null + : this.getSelectedItem().getValue()); + + if (tipoEventoExtra == null) { + throw new WrongValueException(this, Labels.getLabel("MSG.Error.combobox.hacerBusqueda")); + } + } else { + super.getValue(); + } + } + + public T getSelecteObject(Class cType) { + if (this.getSelectedItem() != null) { + return cType.cast(this.getSelectedItem().getValue()); + } + return null; + } + + public Integer getIndiceSelected() { + return indiceSelected; + } + + public void setIndiceSelected(Integer indiceSelected) { + this.indiceSelected = indiceSelected; + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/catalogos/ItemMenuImpresionLayoutConfig.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/catalogos/ItemMenuImpresionLayoutConfig.java new file mode 100644 index 000000000..4539270de --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/catalogos/ItemMenuImpresionLayoutConfig.java @@ -0,0 +1,25 @@ +package com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos; + +import org.zkoss.util.resource.Labels; + +import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria; +import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema; + +public class ItemMenuImpresionLayoutConfig extends DefaultItemMenuSistema { + + public ItemMenuImpresionLayoutConfig() { + super("busquedaImpresionLayoutConfigController.window.title"); + } + + @Override + public String getClaveMenu() { + return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGOS.IMPRESIONLAYOUTCONFIG"; + } + + @Override + public void ejecutar() { + PantallaUtileria.openWindow("/gui/catalogos/busquedaImpresionLayoutConfig.zul", + Labels.getLabel("busquedaImpresionLayoutConfigController.window.title"), getArgs(), desktop); + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/tarifas/asistenciadeviaje/ItemMenuAsistenciaDeViajeEmpresa.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/tarifas/asistenciadeviaje/ItemMenuAsistenciaDeViajeEmpresa.java new file mode 100644 index 000000000..75aa4a869 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/tarifas/asistenciadeviaje/ItemMenuAsistenciaDeViajeEmpresa.java @@ -0,0 +1,25 @@ +package com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.asistenciadeviaje; + +import org.zkoss.util.resource.Labels; + +import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria; +import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema; + +public class ItemMenuAsistenciaDeViajeEmpresa extends DefaultItemMenuSistema { + + public ItemMenuAsistenciaDeViajeEmpresa() { + super("busquedaAsistenciaDeViajeEmpresaController.windowMenu.title"); + } + + @Override + public String getClaveMenu() { + return "COM.RJCONSULTORES.ADMINISTRACION.GUI.TARIFAS.MENU.ASISTENCIADEVIAGEMEMPRESA"; + } + + @Override + public void ejecutar() { + PantallaUtileria.openWindow("/gui/tarifas/busquedaAsistenciaDeViajeEmpresa.zul", + Labels.getLabel("busquedaAsistenciaDeViajeEmpresaController.window.title"), getArgs() ,desktop); + + } +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/tarifas/asistenciadeviaje/MenuAsistenciaDeViajeEmpresa.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/tarifas/asistenciadeviaje/MenuAsistenciaDeViajeEmpresa.java new file mode 100644 index 000000000..4af657f73 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/menu/item/tarifas/asistenciadeviaje/MenuAsistenciaDeViajeEmpresa.java @@ -0,0 +1,16 @@ +package com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.asistenciadeviaje; + +import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema; + +public class MenuAsistenciaDeViajeEmpresa extends DefaultItemMenuSistema { + + public MenuAsistenciaDeViajeEmpresa() { + super("busquedaAsistenciaDeViajeEmpresaController.window.title"); + } + + @Override + public String getClaveMenu() { + return "COM.RJCONSULTORES.ADMINISTRACION.GUI.TARIFAS"; + } + +} 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 c4ee44486..a65a60f56 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 @@ -33,6 +33,7 @@ catalogos.tipoConfComissao=com.rjconsultores.ventaboletos.web.utilerias.menu.ite catalogos.tipoInformativoComissao=com.rjconsultores.ventaboletos.web.utilerias.menu.item.comissao.ItemMenuTipoInformativoComissao catalogos.regionMetropolitana=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuRegionMetropolitana catalogos.contasMD=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuBusquedaContasMD +catalogos.impresionLayout=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuImpresionLayoutConfig gr=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.MenuGr gr.aidf=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuAidf gr.movimentacionBilhetes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.gr.ItemMenuMovimentacionBilhetes @@ -140,6 +141,8 @@ tarifas.segopcional.segVKM=com.rjconsultores.ventaboletos.web.utilerias.menu.ite tarifas.excepcionPeaje=com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales.ItemMenuExcepcionPeaje tarifas.redondeo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuRedondeo tarifas.cotacao=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.ItemMenuCotacao +tarifas.AsistenciaDeViaje=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.asistenciadeviaje.MenuAsistenciaDeViajeEmpresa +tarifas.AsistenciaDeViaje.tarifa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.asistenciadeviaje.ItemMenuAsistenciaDeViajeEmpresa pricing=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.MenuPricing pricing.pricingCtrl=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricingCtrl pricing.general=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pricing.ItemMenuPricing diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderAsistenciaDeViajeEmpresa.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderAsistenciaDeViajeEmpresa.java new file mode 100644 index 000000000..c2e4266a3 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderAsistenciaDeViajeEmpresa.java @@ -0,0 +1,23 @@ +package com.rjconsultores.ventaboletos.web.utilerias.render; + +import org.zkoss.zul.Listcell; +import org.zkoss.zul.Listitem; +import org.zkoss.zul.ListitemRenderer; + +import com.rjconsultores.ventaboletos.entidad.AsistenciaDeViajeEmpresa; + +public class RenderAsistenciaDeViajeEmpresa implements ListitemRenderer { + + public void render(Listitem lstm, Object o) throws Exception { + AsistenciaDeViajeEmpresa entity = (AsistenciaDeViajeEmpresa) o; + + Listcell lc = new Listcell(entity.getEmpresa().getNombempresa()); + lc.setParent(lstm); + + lc = new Listcell(entity.getTarifa().toString()); + lc.setParent(lstm); + + lstm.setAttribute("data", entity); + } + +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderImpresionLayoutConfig.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderImpresionLayoutConfig.java new file mode 100644 index 000000000..704f1cd3a --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderImpresionLayoutConfig.java @@ -0,0 +1,26 @@ + +package com.rjconsultores.ventaboletos.web.utilerias.render; + +import org.zkoss.zul.Listcell; +import org.zkoss.zul.Listitem; +import org.zkoss.zul.ListitemRenderer; + +import com.rjconsultores.ventaboletos.entidad.ImpresionLayoutConfig; + +public class RenderImpresionLayoutConfig implements ListitemRenderer { + + public void render(Listitem lstm, Object o) throws Exception { + ImpresionLayoutConfig impresionLayoutConfig = (ImpresionLayoutConfig) o; + + Listcell lc = new Listcell(impresionLayoutConfig.getImpresionLayoutConfigId().toString()); + lc.setParent(lstm); + + lc = new Listcell(impresionLayoutConfig.getDescricao()); + lc.setParent(lstm); + + lc = new Listcell(impresionLayoutConfig.getLinguagem().toString()); + lc.setParent(lstm); + + lstm.setAttribute("data", impresionLayoutConfig); + } +} diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderPtoVtaSeguro.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderPtoVtaSeguro.java index 86eec1b61..fc19eb80a 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderPtoVtaSeguro.java +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderPtoVtaSeguro.java @@ -48,6 +48,12 @@ public class RenderPtoVtaSeguro implements ListitemRenderer { lc = new Listcell(getValue(pto.getIndTaxaEmbarqueEmbarcada())); lc.setParent(lstm); + lc = new Listcell(getValue(pto.getIndVendeAsistenciaDeViaje())); + lc.setParent(lstm); + + lc = new Listcell(getValue(pto.getIndEstanAsistenciaDeViaje())); + lc.setParent(lstm); + lstm.setAttribute("data", pto); } diff --git a/src/java/spring-config.xml b/src/java/spring-config.xml index b6d7eec55..1179b4a88 100644 --- a/src/java/spring-config.xml +++ b/src/java/spring-config.xml @@ -466,7 +466,9 @@ com.rjconsultores.ventaboletos.entidad.EmpresaSicfeConfig com.rjconsultores.ventaboletos.entidad.EmpresaCrediBancoConfig com.rjconsultores.ventaboletos.entidad.EmpresaAsistenciaDeViajeConfig - com.rjconsultores.ventaboletos.entidad.RecuperarSenha + com.rjconsultores.ventaboletos.entidad.RecuperarSenha + com.rjconsultores.ventaboletos.entidad.AsistenciaDeViajeEmpresa + com.rjconsultores.ventaboletos.entidad.ImpresionLayoutConfig diff --git a/web/WEB-INF/i3-label_en.label b/web/WEB-INF/i3-label_en.label index 62af27021..14a5e7df6 100644 --- a/web/WEB-INF/i3-label_en.label +++ b/web/WEB-INF/i3-label_en.label @@ -6328,6 +6328,8 @@ editarPuntoVentaController.lblNumPuntoVenda = Número Agência editarPuntoVentaController.lbparada.value = Localidade editarPuntoVentaController.lhOrgaoConcedente.label = Orgão Concedente editarPuntoVentaController.merchantStoreAdyen.label = Merchant Store Adyen +editarPuntoVentaController.lbVendeAsistenciaDeViaje.value = Sells Medical Assistance +editarPuntoVentaController.lbEstanAsistenciaDeViaje.value = Default Medical Assistance # Editar o ponto da pantalla de Venda editarPuntoVentaController.msg.cpfTitularVazio = Informe o cpf ou limpe todos os campos do titular! editarPuntoVentaController.msg.informartipobloqueio.value = Favor informar um tipo de bloqueio/liberação. @@ -9888,3 +9890,33 @@ winMovimentacionBilhetesPuntoVenta.numSerie.label = Série winMovimentacionBilhetesPuntoVenta.origem.label = Origem winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag. winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Natureza + +busquedaAsistenciaDeViajeEmpresaController.window.title = Health care +busquedaAsistenciaDeViajeEmpresaController.windowMenu.title = Value Per Company +busquedaAsistenciaDeViajeEmpresaController.btnCerrar.tooltiptext = Close +busquedaAsistenciaDeViajeEmpresaController.btnNovo.tooltiptext = Include +busquedaAsistenciaDeViajeEmpresaController.btnRefresh.tooltiptext = Update +busquedaAsistenciaDeViajeEmpresaController.MSG.borrarOK = Medical Assistance successfully excluded. +busquedaAsistenciaDeViajeEmpresaController.MSG.suscribirOK = Successfully registered Medical Assistance Value +busquedaAsistenciaDeViajeEmpresaController.MSG.borrarPergunta = Do you want to delete Medical Assistance? +busquedaAsistenciaDeViajeEmpresaController.MSG.existe = There is already a registration with this Company +busquedaAsistenciaDeViajeEmpresaController.empresa.label = Company +busquedaAsistenciaDeViajeEmpresaController.valor.label = Value + +busquedaImpresionLayoutConfigController.window.title = Voucher Layout +busquedaImpresionLayoutConfigController.btnCerrar.tooltiptext = Close +busquedaImpresionLayoutConfigController.btnNovo.tooltiptext = Include +busquedaImpresionLayoutConfigController.btnPesquisa.label = Search +busquedaImpresionLayoutConfigController.btnRefresh.tooltiptext = Update +busquedaImpresionLayoutConfigController.lhDesc.label = Description +busquedaImpresionLayoutConfigController.lhId.label = ID +busquedaImpresionLayoutConfigController.txtNombre.label = Name + +editarImpresionLayoutConfigController.window.title = Edit Voucher Layout +editarImpresionLayoutConfigController.MSG.borrarOK = Layout Deleted Successfully. +editarImpresionLayoutConfigController.MSG.borrarPergunta = Delete Layout? +editarImpresionLayoutConfigController.MSG.suscribirOK = Layout Registered Successfully. +editarImpresionLayoutConfigController.btnApagar.tooltiptext = Eliminate +editarImpresionLayoutConfigController.btnFechar.tooltiptext = Close +editarImpresionLayoutConfigController.btnSalvar.tooltiptext = Salve +editarImpresionLayoutConfigController.cmbLinguagemImpresion = Language diff --git a/web/WEB-INF/i3-label_es_MX.label b/web/WEB-INF/i3-label_es_MX.label index b54a81441..1e1da7657 100644 --- a/web/WEB-INF/i3-label_es_MX.label +++ b/web/WEB-INF/i3-label_es_MX.label @@ -6411,6 +6411,8 @@ editarPuntoVentaController.lblpontoVendaNaoPresencial = Punto no presencial editarPuntoVentaController.lbparada.value = Parada editarPuntoVentaController.lhOrgaoConcedente.label = Orgão Concedente editarPuntoVentaController.merchantStoreAdyen.label = Merchant Store Adyen +editarPuntoVentaController.lbVendeAsistenciaDeViaje.value = Vende Asistencia Médica +editarPuntoVentaController.lbEstanAsistenciaDeViaje.value = Asistencia médica predeterminada editarPuntoVentaController.msg.cpfTitularVazio = Informe o cpf ou limpe todos os campos do titular! editarPuntoVentaController.msg.informartipobloqueio.value = Favor informar um tipo de bloqueio/liberação. editarPuntoVentaController.msg.naopodesersubordinadaehsubordinada = Este punto de venta no puede ser subordinado a <1>. <1> ya es subordinado a <2> @@ -10039,3 +10041,34 @@ winMovimentacionBilhetesPuntoVenta.numSerie.label = Série winMovimentacionBilhetesPuntoVenta.origem.label = Origen winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag. winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Naturaleza + +busquedaAsistenciaDeViajeEmpresaController.window.title = Asistencia médica +busquedaAsistenciaDeViajeEmpresaController.windowMenu.title = Valor por empresa +busquedaAsistenciaDeViajeEmpresaController.btnCerrar.tooltiptext = Cerrar +busquedaAsistenciaDeViajeEmpresaController.btnNovo.tooltiptext = Incluir +busquedaAsistenciaDeViajeEmpresaController.btnRefresh.tooltiptext = Actualizar +busquedaAsistenciaDeViajeEmpresaController.MSG.borrarOK = Asistencia Médica excluida con éxito. +busquedaAsistenciaDeViajeEmpresaController.MSG.suscribirOK = Valor de Asistencia Médica registrado exitosamente +busquedaAsistenciaDeViajeEmpresaController.MSG.borrarPergunta = ¿Quieres eliminar Asistencia Médica? +busquedaAsistenciaDeViajeEmpresaController.MSG.existe = Ya existe un registro con esta empresa. +busquedaAsistenciaDeViajeEmpresaController.empresa.label = Empresa +busquedaAsistenciaDeViajeEmpresaController.valor.label = Valor + +busquedaImpresionLayoutConfigController.window.title = Diseño del cupón +busquedaImpresionLayoutConfigController.btnCerrar.tooltiptext = Cerrar +busquedaImpresionLayoutConfigController.btnNovo.tooltiptext = Incluir +busquedaImpresionLayoutConfigController.btnPesquisa.label = Buscar +busquedaImpresionLayoutConfigController.btnRefresh.tooltiptext = Actualizar +busquedaImpresionLayoutConfigController.lhDesc.label = Descripción +busquedaImpresionLayoutConfigController.lhId.label = IDENTIFICACIÓN +busquedaImpresionLayoutConfigController.txtNombre.label = Nombre + +editarImpresionLayoutConfigController.window.title = Editar diseño de cupón +editarImpresionLayoutConfigController.MSG.borrarOK = Artículo eliminado con éxito. +editarImpresionLayoutConfigController.MSG.borrarPergunta = ¿Eliminar artículo? +editarImpresionLayoutConfigController.MSG.suscribirOK = Artículo registrado exitosamente. +editarImpresionLayoutConfigController.btnApagar.tooltiptext = Para eliminar +editarImpresionLayoutConfigController.btnFechar.tooltiptext = Cerrar +editarImpresionLayoutConfigController.btnSalvar.tooltiptext = Ahorrar +editarImpresionLayoutConfigController.cmbLinguagemImpresion = Idioma + diff --git a/web/WEB-INF/i3-label_fr_FR.label b/web/WEB-INF/i3-label_fr_FR.label index ce4bb30a3..c8b145394 100644 --- a/web/WEB-INF/i3-label_fr_FR.label +++ b/web/WEB-INF/i3-label_fr_FR.label @@ -6401,6 +6401,8 @@ editarPuntoVentaController.lblpontoVendaNaoPresencial = Point non face à face editarPuntoVentaController.lbparada.value = Localisation editarPuntoVentaController.lhOrgaoConcedente.label = Organisme subventionnaire editarPuntoVentaController.merchantStoreAdyen.label = Magasin marchand Adyen +editarPuntoVentaController.lbVendeAsistenciaDeViaje.value = Vend une assistance médicale +editarPuntoVentaController.lbEstanAsistenciaDeViaje.value = Assistance médicale par défaut # Editar o ponto da pantalla de Venda editarPuntoVentaController.msg.cpfTitularVazio = Saisissez le CPF ou effacez tous les champs du titulaire ! editarPuntoVentaController.msg.informartipobloqueio.value = Veuillez saisir un type de blocage/libération. @@ -10013,3 +10015,35 @@ winMovimentacionBilhetesPuntoVenta.numSerie.label = Série winMovimentacionBilhetesPuntoVenta.origem.label = Origine winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag. winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Nature + + +busquedaAsistenciaDeViajeEmpresaController.window.title = Soins de santé +busquedaAsistenciaDeViajeEmpresaController.windowMenu.title = Valeur par entreprise +busquedaAsistenciaDeViajeEmpresaController.btnCerrar.tooltiptext = Fermer +busquedaAsistenciaDeViajeEmpresaController.btnNovo.tooltiptext = Inclure +busquedaAsistenciaDeViajeEmpresaController.btnRefresh.tooltiptext = Mettre à jour +busquedaAsistenciaDeViajeEmpresaController.MSG.borrarOK = Assistance médicale exclue avec succès. +busquedaAsistenciaDeViajeEmpresaController.MSG.suscribirOK = Valeur d'assistance médicale enregistrée avec succès +busquedaAsistenciaDeViajeEmpresaController.MSG.borrarPergunta = Voulez-vous supprimer l’assistance médicale ? +busquedaAsistenciaDeViajeEmpresaController.MSG.existe = Il y a déjà une inscription auprès de cette société +busquedaAsistenciaDeViajeEmpresaController.empresa.label = Entreprise +busquedaAsistenciaDeViajeEmpresaController.valor.label = Valeur + +busquedaImpresionLayoutConfigController.window.title = Disposition du bon +busquedaImpresionLayoutConfigController.btnCerrar.tooltiptext = Fermer +busquedaImpresionLayoutConfigController.btnNovo.tooltiptext = Inclure +busquedaImpresionLayoutConfigController.btnPesquisa.label = Recherche +busquedaImpresionLayoutConfigController.btnRefresh.tooltiptext = Mise à jour +busquedaImpresionLayoutConfigController.lhDesc.label = Description +busquedaImpresionLayoutConfigController.lhId.label = IDENTIFIANT +busquedaImpresionLayoutConfigController.txtNombre.label = Nom + +editarImpresionLayoutConfigController.window.title = Modifier la présentation du bon +editarImpresionLayoutConfigController.MSG.borrarOK = Article supprimé avec succès. +editarImpresionLayoutConfigController.MSG.borrarPergunta = Supprimer l'article ? +editarImpresionLayoutConfigController.MSG.suscribirOK = Article enregistré avec succès. +editarImpresionLayoutConfigController.btnApagar.tooltiptext = Éliminer +editarImpresionLayoutConfigController.btnFechar.tooltiptext = Fermer +editarImpresionLayoutConfigController.btnSalvar.tooltiptext = Sauver +editarImpresionLayoutConfigController.cmbLinguagemImpresion = Langue + diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index c850aace8..004f5d0bb 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -6407,6 +6407,8 @@ editarPuntoVentaController.lblpontoVendaNaoPresencial = Ponto não presencial editarPuntoVentaController.lbparada.value = Localidade editarPuntoVentaController.lhOrgaoConcedente.label = Orgão Concedente editarPuntoVentaController.merchantStoreAdyen.label = Merchant Store Adyen +editarPuntoVentaController.lbVendeAsistenciaDeViaje.value = Vende Assistência Médica +editarPuntoVentaController.lbEstanAsistenciaDeViaje.value = Default Assistência Médica # Editar o ponto da pantalla de Venda editarPuntoVentaController.msg.cpfTitularVazio = Informe o cpf ou limpe todos os campos do titular! editarPuntoVentaController.msg.informartipobloqueio.value = Favor informar um tipo de bloqueio/liberação. @@ -10018,3 +10020,33 @@ winMovimentacionBilhetesPuntoVenta.numSerie.label = Série winMovimentacionBilhetesPuntoVenta.origem.label = Origem winMovimentacionBilhetesPuntoVenta.puntoventa.label = Ag. winMovimentacionBilhetesPuntoVenta.tipoMovimentacion.label = Natureza + +busquedaAsistenciaDeViajeEmpresaController.window.title = Assistência Médica +busquedaAsistenciaDeViajeEmpresaController.windowMenu.title = Valor Por Empresa +busquedaAsistenciaDeViajeEmpresaController.btnCerrar.tooltiptext = Fechar +busquedaAsistenciaDeViajeEmpresaController.btnNovo.tooltiptext = Incluir +busquedaAsistenciaDeViajeEmpresaController.btnRefresh.tooltiptext = Atualizar +busquedaAsistenciaDeViajeEmpresaController.MSG.borrarOK = Assistência Médica excluída com sucesso. +busquedaAsistenciaDeViajeEmpresaController.MSG.suscribirOK = Valor Assistência Médica registrada com sucesso +busquedaAsistenciaDeViajeEmpresaController.MSG.borrarPergunta = Deseja excluir Assistência Médica? +busquedaAsistenciaDeViajeEmpresaController.MSG.existe = Já existe um registro com essa Empresa +busquedaAsistenciaDeViajeEmpresaController.empresa.label = Empresa +busquedaAsistenciaDeViajeEmpresaController.valor.label = Valor + +busquedaImpresionLayoutConfigController.window.title = Layout Comprovantes +busquedaImpresionLayoutConfigController.btnCerrar.tooltiptext = Fechar +busquedaImpresionLayoutConfigController.btnNovo.tooltiptext = Incluir +busquedaImpresionLayoutConfigController.btnPesquisa.label = Pesquisa +busquedaImpresionLayoutConfigController.btnRefresh.tooltiptext = Atualização +busquedaImpresionLayoutConfigController.lhDesc.label = Descrição +busquedaImpresionLayoutConfigController.lhId.label = ID +busquedaImpresionLayoutConfigController.txtNombre.label = Nome + +editarImpresionLayoutConfigController.window.title = Editar Layout Comprovante +editarImpresionLayoutConfigController.MSG.borrarOK = Layout Excluido com Sucesso. +editarImpresionLayoutConfigController.MSG.borrarPergunta = Eliminar Layout? +editarImpresionLayoutConfigController.MSG.suscribirOK = Layout Registrado com Sucesso. +editarImpresionLayoutConfigController.btnApagar.tooltiptext = Eliminar +editarImpresionLayoutConfigController.btnFechar.tooltiptext = Fechar +editarImpresionLayoutConfigController.btnSalvar.tooltiptext = Salvar +editarImpresionLayoutConfigController.cmbLinguagemImpresion = Linguagem diff --git a/web/gui/catalogos/busquedaImpresionLayoutConfig.zul b/web/gui/catalogos/busquedaImpresionLayoutConfig.zul new file mode 100644 index 000000000..f24512d22 --- /dev/null +++ b/web/gui/catalogos/busquedaImpresionLayoutConfig.zul @@ -0,0 +1,56 @@ + + + + + + + + + +