Merge pull request 'AL-4280' (!566) from AL-4280 into master
Reviewed-on: adm/VentaBoletosAdm#566 Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>master 1.93.0
commit
6253810935
6
pom.xml
6
pom.xml
|
@ -4,12 +4,12 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.92.3</version>
|
||||
<version>1.93.0</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
<modelWeb.version>1.68.1</modelWeb.version>
|
||||
<flyway.version>1.51.0</flyway.version>
|
||||
<modelWeb.version>1.69.0</modelWeb.version>
|
||||
<flyway.version>1.52.0</flyway.version>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
|
||||
|
|
|
@ -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<String, ItemMenuSistema> 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<String, ItemMenuSistema> 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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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<ImpresionLayoutConfig> 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<ImpresionLayoutConfig> impresionLayoutConfigBusqueda = new HibernateSearchObject<ImpresionLayoutConfig>(
|
||||
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<ImpresionLayoutConfig> getPlwImpresionLayoutConfig() {
|
||||
return plwImpresionLayoutConfig;
|
||||
}
|
||||
|
||||
public void setPlwImpresionLayoutConfig(PagedListWrapper<ImpresionLayoutConfig> 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;
|
||||
}
|
||||
|
||||
}
|
|
@ -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<String, String> retornaValoresAsistenciaDeViaje() {
|
||||
|
|
|
@ -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<EnumLinguagemImpresion> 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<ImpresionLayoutConfig> 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<EnumLinguagemImpresion> getLsEnumLinguagemImpresion() {
|
||||
return lsEnumLinguagemImpresion;
|
||||
}
|
||||
|
||||
public void setLsEnumLinguagemImpresion(List<EnumLinguagemImpresion> lsEnumLinguagemImpresion) {
|
||||
this.lsEnumLinguagemImpresion = lsEnumLinguagemImpresion;
|
||||
}
|
||||
|
||||
}
|
|
@ -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()) {
|
||||
|
|
|
@ -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<Empresa> lsEmpresas;
|
||||
/*Forma de Pagamento*/
|
||||
|
@ -101,9 +104,6 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer {
|
|||
private Combobox cmbEmpresaFormaPago;
|
||||
private MyListbox formaPagoList;
|
||||
private List<TipoEventoExtraEmpresa> 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);
|
||||
|
|
|
@ -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<AsistenciaDeViajeEmpresa> 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<AsistenciaDeViajeEmpresa> asistenciaDeViajeEmpresaBusqueda = new HibernateSearchObject<AsistenciaDeViajeEmpresa>(
|
||||
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());
|
||||
}
|
||||
|
||||
}
|
|
@ -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<Empresa> 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<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
}
|
||||
|
||||
public void setLsEmpresa(List<Empresa> 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;
|
||||
}
|
||||
|
||||
}
|
|
@ -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<ImpresionLayoutConfig> lsImpresionLayoutConfig;
|
||||
private ImpresionLayoutConfig initialValue;
|
||||
private Integer indiceSelected = null;
|
||||
|
||||
public MyComboboxImpresionLayoutConfig() {
|
||||
super();
|
||||
|
||||
impresionLayoutConfigService = (ImpresionLayoutConfigService) SpringUtil
|
||||
.getBean("impresionLayoutConfigService");
|
||||
lsImpresionLayoutConfig = new ArrayList<ImpresionLayoutConfig>();
|
||||
|
||||
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<ImpresionLayoutConfig> ls = new ArrayList<ImpresionLayoutConfig>();
|
||||
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> T getSelecteObject(Class<T> 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;
|
||||
}
|
||||
|
||||
}
|
|
@ -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<TipoEventoExtra> lsTipoEventoExtra;
|
||||
private TipoEventoExtra initialValue;
|
||||
private Integer indiceSelected = null;
|
||||
|
||||
public MyComboboxTipoEventoExtra() {
|
||||
super();
|
||||
|
||||
tipoEventoExtraService = (TipoEventoExtraService) SpringUtil
|
||||
.getBean("tipoEventoExtraService");
|
||||
lsTipoEventoExtra = new ArrayList<TipoEventoExtra>();
|
||||
|
||||
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<TipoEventoExtra> ls = new ArrayList<TipoEventoExtra>();
|
||||
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> T getSelecteObject(Class<T> 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;
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
|
@ -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";
|
||||
}
|
||||
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
@ -466,7 +466,9 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaSicfeConfig</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaCrediBancoConfig</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaAsistenciaDeViajeConfig</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RecuperarSenha</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RecuperarSenha</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AsistenciaDeViajeEmpresa</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ImpresionLayoutConfig</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaImpresionLayoutConfig"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaImpresionLayoutConfig" title="${c:l('busquedaImpresionLayoutConfigController.window.title')}"
|
||||
apply="${busquedaImpresionLayoutConfigController}" contentStyle="overflow:auto"
|
||||
height="450px" width="670px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaImpresionLayoutConfigController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaImpresionLayoutConfigController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaImpresionLayoutConfig.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaImpresionLayoutConfigController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('busquedaImpresionLayoutConfigController.txtNombre.label')}"/>
|
||||
<textbox id="txtNome" width="300px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaImpresionLayoutConfigController.btnPesquisa.label')}"/>
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingImpresionLayoutConfig" pageSize="10"/>
|
||||
<listbox id="impresionLayoutConfigList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="60%">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhId" width="70px" image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaImpresionLayoutConfigController.lhId.label')}"
|
||||
sort="auto(impresionLayoutConfigId)"/>
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaImpresionLayoutConfigController.lhDesc.label')}"
|
||||
sort="auto(descricao)"/>
|
||||
<listheader id="lhLinguagem" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarImpresionLayoutConfigController.cmbLinguagemImpresion')}"
|
||||
sort="auto(linguagem)"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -2817,6 +2817,15 @@
|
|||
<column width="75%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.comissaoTipoEventoExtra.label')}" />
|
||||
<combobox
|
||||
id="cmbTipoEventoExtrasAsistenciaViaje"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="50%"
|
||||
model="@{winEditarEmpresa$composer.lsTipoEventoExtras}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblURL.value')}" />
|
||||
<textbox id="txtURLAsistenciaViaje" width="80%" maxlength="255" />
|
||||
|
|
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarImpresionLayoutConfig"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarImpresionLayoutConfig" border="normal"
|
||||
apply="${editarImpresionLayoutConfigController}"
|
||||
height="400px" width="1000px" sizable="true" contentStyle="overflow:auto"
|
||||
title="${c:l('editarImpresionLayoutConfigController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarImpresionLayoutConfigController.btnApagar.tooltiptext')}"/>
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarImpresionLayoutConfigController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarImpresionLayoutConfig.detach()"
|
||||
tooltiptext="${c:l('editarImpresionLayoutConfigController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbNome" value="${c:l('busquedaImpresionLayoutConfigController.txtNombre.label')}"/>
|
||||
<textbox id="txtNome" multiline="true" constraint="no empty" width="100%"
|
||||
value="@{winEditarImpresionLayoutConfig$composer.impresionLayoutConfig.descricao}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarImpresionLayoutConfigController.cmbLinguagemImpresion')}" />
|
||||
<combobox id="cmbLinguagemImpresion"
|
||||
mold="rounded" buttonVisible="true" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarImpresionLayoutConfig$composer.lsEnumLinguagemImpresion}"
|
||||
selectedItem="@{winEditarImpresionLayoutConfig$composer.impresionLayoutConfig.linguagem}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<vlayout id="layoutCkEditor" width="100%" visible="false" >
|
||||
|
||||
<ckeditor id="ckTexto"
|
||||
value="@{winEditarImpresionLayoutConfig$composer.impresionLayoutConfig.texto}"
|
||||
width="100%">
|
||||
</ckeditor>
|
||||
|
||||
</vlayout>
|
||||
|
||||
<borderlayout id="layoutTextZpl" height="450px" visible="false">
|
||||
|
||||
<center border="0">
|
||||
<borderlayout>
|
||||
<west size="60%" border="0" splittable="true">
|
||||
<div vflex="1">
|
||||
<textbox id="txtTexto" tabbable="true" multiline="true" width="100%" height="600px"
|
||||
value="@{winEditarImpresionLayoutConfig$composer.impresionLayoutConfig.texto}" />
|
||||
</div>
|
||||
</west>
|
||||
<center>
|
||||
|
||||
<vlayout>
|
||||
<button label="Redesenhar"/>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.permitirTecladoAlfaNumerico.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</vlayout>
|
||||
|
||||
|
||||
</center>
|
||||
<east title="Variaveis" size="20%" collapsible="true" open="false">
|
||||
<div vflex="1">
|
||||
</div>
|
||||
</east>
|
||||
</borderlayout>
|
||||
</center>
|
||||
</borderlayout>
|
||||
|
||||
</window>
|
||||
</zk>
|
|
@ -1398,6 +1398,7 @@
|
|||
<textbox id="importeInicial"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
precision="7" scale="2" constraint="no empty" />
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
|
@ -1901,6 +1902,27 @@
|
|||
</radiogroup>
|
||||
</row>
|
||||
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.lbVendeAsistenciaDeViaje.value')}" />
|
||||
<radiogroup Id="indvendAsistenciaDeViaje">
|
||||
<radio id="radIndvendAsistenciaDeViajelSi"
|
||||
label="${c:l('MSG.SI')}" checked="false" />
|
||||
<radio id="radIndvendAsistenciaDeViajeNo" checked="true"
|
||||
label="${c:l('MSG.NO')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.lbEstanAsistenciaDeViaje.value')}" />
|
||||
<radiogroup Id="indestanAsistenciaDeViaje">
|
||||
<radio id="radIndestanAsistenciaDeViajeSi"
|
||||
label="${c:l('MSG.SI')}" />
|
||||
<radio id="radIndestanAsistenciaDeViajeNo" checked="true"
|
||||
label="${c:l('MSG.NO')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
@ -1920,44 +1942,66 @@
|
|||
<listhead sizable="true">
|
||||
<listheader id="lhPtoVtaSeguroEmpresa"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
||||
<listheader id="lhPtoVtaSeguroVende"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}" />
|
||||
<listheader id="lhPtoVtaSeguroEstan"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}" />
|
||||
<listheader id="lhPtoVtaSeguroVendeTabela"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.lbVendeSegTabela.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.lbVendeSegTabela.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.lbVendeSegTabela.value')}" />
|
||||
<listheader id="lhPtoVtaSeguroEstanTabela"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.lbEstanSegTabela.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.lbEstanSegTabela.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.lbEstanSegTabela.value')}" />
|
||||
<listheader id="lhIndEstanTasaEmbarque"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndEstanTasaEmbarque.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndEstanTasaEmbarque.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.label.lbIndEstanTasaEmbarque.value')}" />
|
||||
<listheader id="lhIndPermisoTasaEmbarque"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndPermisoTasaEmbarque.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndPermisoTasaEmbarque.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.label.lbIndPermisoTasaEmbarque.value')}" />
|
||||
<listheader
|
||||
id="lhIndPermisoTasaEmbarqueVtaMan" image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaManual.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaManual.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaManual.value')}" />
|
||||
<listheader
|
||||
id="lhIndPermisoTasaEmbarqueVtaAgencia"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaAgencia.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaAgencia.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaAgencia.value')}" />
|
||||
<listheader
|
||||
id="lhIndVendeSeguroOpcEmbarcada"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndVendeSeguroOpcEmbarcada.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.label.lbIndVendeSeguroOpcEmbarcada.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.label.lbIndVendeSeguroOpcEmbarcada.value')}" />
|
||||
<listheader
|
||||
id="lhIndVendeSeguroTabelaEmbarcada"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.label.lbindVendeSeguroTabelaEmbarcada.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.label.lbindVendeSeguroTabelaEmbarcada.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.label.lbindVendeSeguroTabelaEmbarcada.value')}" />
|
||||
<listheader
|
||||
id="lhIndTaxaEmbarqueEmbarcada"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.label.lbindTaxaEmbarqueEmbarcada.value')}" />
|
||||
label="${c:l('editarPuntoVentaController.label.lbindTaxaEmbarqueEmbarcada.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.label.lbindTaxaEmbarqueEmbarcada.value')}" />
|
||||
<listheader
|
||||
id="lhIndVendeAsistenciaDeViaje"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.lbVendeAsistenciaDeViaje.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.lbVendeAsistenciaDeViaje.value')}" />
|
||||
<listheader
|
||||
id="lhIndEstanAsistenciaDeViaje"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarPuntoVentaController.lbEstanAsistenciaDeViaje.value')}"
|
||||
tooltiptext="${c:l('editarPuntoVentaController.lbEstanAsistenciaDeViaje.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
|
|
|
@ -63,6 +63,14 @@
|
|||
width="100%" mold="rounded" buttonVisible="true"
|
||||
model="@{winEditarTipoEventoExtra$composer.lsEventoExtrasConstantes}"
|
||||
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.cvetipoevento}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaImpresionLayoutConfigController.window.title')}" />
|
||||
<combobox id="cmbImpresionLayoutConfig"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxImpresionLayoutConfig"
|
||||
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impresionLayoutConfig}"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
</row>
|
||||
<row id="rowIndEnviaExcessoDeBagagemSefaz">
|
||||
<label
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaAsistenciaDeViajeEmpresa"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaAsistenciaDeViajeEmpresa" title="${c:l('busquedaAsistenciaDeViajeEmpresaController.window.title')}"
|
||||
apply="${busquedaAsistenciaDeViajeEmpresaController}" contentStyle="overflow:auto"
|
||||
height="450px" width="500px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaAsistenciaDeViajeEmpresaController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaAsistenciaDeViajeEmpresaController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaAsistenciaDeViajeEmpresa.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaAsistenciaDeViajeEmpresaController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingAsistenciaDeViajeEmpresa" pageSize="15"/>
|
||||
<listbox id="asistenciaDeViajeEmpresaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaAsistenciaDeViajeEmpresaController.empresa.label')}"
|
||||
sort="auto(empresa)"/>
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaAsistenciaDeViajeEmpresaController.valor.label')}"
|
||||
sort="auto(tarifa)"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarAsistenciaDeViajeEmpresa"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarAsistenciaDeViajeEmpresa" border="normal"
|
||||
apply="${editarAsistenciaDeViajeEmpresaController}"
|
||||
width="550px" height="125px" contentStyle="overflow:auto"
|
||||
title="${c:l('editarAsistenciaDeViajeEmpresaController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaAsistenciaDeViajeEmpresaController.btnApagar.tooltiptext')}"/>
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaAsistenciaDeViajeEmpresaController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarAsistenciaDeViajeEmpresa.detach()"
|
||||
tooltiptext="${c:l('busquedaAsistenciaDeViajeEmpresaController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('busquedaAsistenciaDeViajeEmpresaController.empresa.label')}"/>
|
||||
<combobox id="cmbEmpresa" constraint="no empty"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarAsistenciaDeViajeEmpresa$composer.lsEmpresa}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
selectedItem="@{winEditarAsistenciaDeViajeEmpresa$composer.asistenciaDeViajeEmpresa.empresa}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('busquedaAsistenciaDeViajeEmpresaController.valor.label')}"/>
|
||||
<textbox id="txtTarifa"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
constraint="no zero, no negative, /([0-9]+(\,[0-9][0-9]?)?)?/ " precision="10" scale="2" width="50%" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
</zk>
|
|
@ -36,6 +36,7 @@
|
|||
<toolbarbutton id="toolBarLogout" tooltiptext="${c:l('indexController.toolBar.tooltiptext')}"
|
||||
image="/gui/img/logout.png" href="/j_spring_security_logout"/>
|
||||
<toolbarbutton id="toolBarUser" image="/gui/img/user24.png"/>
|
||||
<button id="toolBarSearch" tooltiptext="${c:l('lb.btnPesquisa.label')}" image="/gui/img/find.png"/>
|
||||
</toolbar>
|
||||
</south>
|
||||
</borderlayout>
|
||||
|
|
Loading…
Reference in New Issue