fixes bug#13611
dev:lucas qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@90364 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
8dc9af2690
commit
cfe256130b
|
@ -38,6 +38,7 @@ import com.rjconsultores.ventaboletos.entidad.Via;
|
|||
import com.rjconsultores.ventaboletos.service.TramoService;
|
||||
import com.rjconsultores.ventaboletos.service.TramoServicioService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.HoraSistema;
|
||||
import com.rjconsultores.ventaboletos.vo.esquemaoperacional.SecuenciaRutaTramoCoeficienteVO;
|
||||
|
||||
|
@ -285,7 +286,7 @@ public class GridRutaTramoCoeficiente extends Grid implements RowRenderer, Rende
|
|||
listComboVenda.add(comboItemNao.getValue());
|
||||
|
||||
if (secuenciaRutaTramoCoeficienteVO.getPermiteVenda() == null) {
|
||||
secuenciaRutaTramoCoeficienteVO.setPermiteVenda(!ApplicationProperties.getInstance().isGerarTrechoAutomaticoDefaultNao());
|
||||
secuenciaRutaTramoCoeficienteVO.setPermiteVenda(!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_GERAR_TRECHO_AUTOMATICO_DEFAULT_NAO.getDescricao()));
|
||||
}
|
||||
|
||||
listComboVenda.addSelection(BooleanUtils.isTrue(secuenciaRutaTramoCoeficienteVO.getPermiteVenda())
|
||||
|
|
|
@ -28,6 +28,7 @@ import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
|||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
|
@ -85,7 +86,7 @@ public class BusquedaCiudadController extends MyGenericForwardComposer {
|
|||
|
||||
refreshLista();
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
headerEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,182 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
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.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Custom;
|
||||
import com.rjconsultores.ventaboletos.enums.SistemaEnum;
|
||||
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.RenderCustom;
|
||||
import com.trg.search.Search;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Lucas
|
||||
*/
|
||||
@Controller("busquedaCustomController")
|
||||
@Scope("prototype")
|
||||
public class BusquedaCustomController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<Custom> plwCustom;
|
||||
private MyListbox customList;
|
||||
private Paging pagingCustom;
|
||||
private Textbox txtChave;
|
||||
private Combobox cmbSistema;
|
||||
private List<SistemaEnum> lsSistemaEnum;
|
||||
private Search customBusqueda;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
lsSistemaEnum = Arrays.asList(SistemaEnum.values());
|
||||
|
||||
customList.setItemRenderer(new RenderCustom());
|
||||
customList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
Custom a = (Custom) customList.getSelected();
|
||||
verCustom(a);
|
||||
}
|
||||
});
|
||||
|
||||
refreshLista();
|
||||
|
||||
txtChave.focus();
|
||||
}
|
||||
|
||||
private void verCustom(Custom a) {
|
||||
if (a == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("custom", a);
|
||||
args.put("customList", customList);
|
||||
|
||||
openWindow("/gui/catalogos/editarCustom.zul",
|
||||
Labels.getLabel("customController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<Custom> customBusqueda = new HibernateSearchObject<Custom>(Custom.class,
|
||||
pagingCustom.getPageSize());
|
||||
|
||||
customBusqueda.addFilterLike("chave",
|
||||
"%" + txtChave.getText().trim().concat("%"));
|
||||
|
||||
Comboitem cbiSistema = cmbSistema.getSelectedItem();
|
||||
if (cbiSistema != null) {
|
||||
SistemaEnum dab = (SistemaEnum) cbiSistema.getValue();
|
||||
customBusqueda.addFilterEqual("sistema", dab.getValor());
|
||||
}
|
||||
|
||||
customBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
customBusqueda.addSortAsc("valor");
|
||||
|
||||
plwCustom.init(customBusqueda, customList, pagingCustom);
|
||||
|
||||
if (customList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("customController.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) {
|
||||
verCustom(new Custom());
|
||||
}
|
||||
|
||||
public PagedListWrapper<Custom> getPlwCustom() {
|
||||
return plwCustom;
|
||||
}
|
||||
|
||||
public void setPlwCustom(PagedListWrapper<Custom> plwCustom) {
|
||||
this.plwCustom = plwCustom;
|
||||
}
|
||||
|
||||
public MyListbox getCustomList() {
|
||||
return customList;
|
||||
}
|
||||
|
||||
public void setCustomList(MyListbox customList) {
|
||||
this.customList = customList;
|
||||
}
|
||||
|
||||
public Paging getPagingCustom() {
|
||||
return pagingCustom;
|
||||
}
|
||||
|
||||
public void setPagingCustom(Paging pagingCustom) {
|
||||
this.pagingCustom = pagingCustom;
|
||||
}
|
||||
|
||||
public Textbox getTxtChave() {
|
||||
return txtChave;
|
||||
}
|
||||
|
||||
public void setTxtChave(Textbox txtChave) {
|
||||
this.txtChave = txtChave;
|
||||
}
|
||||
|
||||
public Combobox getCmbSistema() {
|
||||
return cmbSistema;
|
||||
}
|
||||
|
||||
public void setCmbSistema(Combobox cmbSistema) {
|
||||
this.cmbSistema = cmbSistema;
|
||||
}
|
||||
|
||||
public List<SistemaEnum> getLsSistemaEnum() {
|
||||
return lsSistemaEnum;
|
||||
}
|
||||
|
||||
public void setLsSistemaEnum(List<SistemaEnum> lsSistemaEnum) {
|
||||
this.lsSistemaEnum = lsSistemaEnum;
|
||||
}
|
||||
|
||||
public Search getCustomBusqueda() {
|
||||
return customBusqueda;
|
||||
}
|
||||
|
||||
public void setCustomBusqueda(Search customBusqueda) {
|
||||
this.customBusqueda = customBusqueda;
|
||||
}
|
||||
|
||||
}
|
|
@ -6,6 +6,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
|
@ -64,7 +65,7 @@ public class BusquedaEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
refreshLista();
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
headerEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ import com.rjconsultores.ventaboletos.entidad.Estado;
|
|||
import com.rjconsultores.ventaboletos.entidad.Pais;
|
||||
import com.rjconsultores.ventaboletos.service.PaisService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
|
@ -79,7 +80,7 @@ public class BusquedaEstadoController extends MyGenericForwardComposer {
|
|||
|
||||
refreshLista();
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
headerEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
|
@ -60,7 +61,7 @@ public class BusquedaFormaPagoController extends MyGenericForwardComposer {
|
|||
|
||||
refreshLista();
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
headerEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
|
@ -107,7 +108,7 @@ public class BusquedaMarcaController extends MyGenericForwardComposer {
|
|||
|
||||
refreshLista();
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
headerEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Moneda;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
|
@ -128,7 +129,7 @@ public class BusquedaMonedaController extends MyGenericForwardComposer {
|
|||
|
||||
refreshLista();
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
headerEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ import com.rjconsultores.ventaboletos.service.MonedaService;
|
|||
import com.rjconsultores.ventaboletos.service.NodoService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxCiudad;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||
|
@ -93,7 +94,7 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
|
|||
|
||||
public boolean isIntegracionTotvs() {
|
||||
integracionTotvs = false;
|
||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.INTEGRACION_TOTVS.getDescricao())) {
|
||||
integracionTotvs = true;
|
||||
}
|
||||
return integracionTotvs;
|
||||
|
|
|
@ -6,6 +6,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
|
@ -107,7 +108,7 @@ public class BusquedaTipoPuntoVentaController extends MyGenericForwardComposer {
|
|||
|
||||
refreshLista();
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
headerEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ import com.rjconsultores.ventaboletos.entidad.Estado;
|
|||
import com.rjconsultores.ventaboletos.service.CiudadService;
|
||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -81,7 +82,7 @@ public class EditarCiudadController extends MyGenericForwardComposer {
|
|||
btnApagar.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,209 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.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 org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.api.Comboitem;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Custom;
|
||||
import com.rjconsultores.ventaboletos.enums.SistemaEnum;
|
||||
import com.rjconsultores.ventaboletos.enums.TipoDescontoBPe;
|
||||
import com.rjconsultores.ventaboletos.service.CustomService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Lucas
|
||||
*/
|
||||
@Controller("editarCustomController")
|
||||
@Scope("prototype")
|
||||
public class EditarCustomController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private CustomService customService;
|
||||
private Custom custom;
|
||||
private MyListbox customList;
|
||||
private Button btnApagar;
|
||||
private Textbox txtChave;
|
||||
private Textbox txtValor;
|
||||
private Combobox cmbSistema;
|
||||
private List<SistemaEnum> lsSistemaEnum;
|
||||
|
||||
private static Logger log = Logger.getLogger(EditarCustomController.class);
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
custom = (Custom) Executions.getCurrent().getArg().get("custom");
|
||||
customList = (MyListbox) Executions.getCurrent().getArg().get("customList");
|
||||
|
||||
lsSistemaEnum = Arrays.asList(SistemaEnum.values());
|
||||
|
||||
if (custom.getCustomId() == null) {
|
||||
btnApagar.setVisible(Boolean.FALSE);
|
||||
}else{
|
||||
txtChave.setDisabled(Boolean.TRUE);
|
||||
cmbSistema.setDisabled(Boolean.TRUE);
|
||||
cmbSistema.setValue(SistemaEnum.getSistema(custom.getSistema()).toString());
|
||||
|
||||
}
|
||||
|
||||
txtValor.focus();
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
txtValor.getValue();
|
||||
|
||||
try {
|
||||
|
||||
Comboitem cbSistema = cmbSistema.getSelectedItem();
|
||||
if (cbSistema != null) {
|
||||
SistemaEnum sistemaEnum = (SistemaEnum) cbSistema.getValue();
|
||||
custom.setSistema(sistemaEnum.getValor());
|
||||
}
|
||||
custom.setActivo(Boolean.TRUE);
|
||||
custom.setFecmodif(Calendar.getInstance().getTime());
|
||||
custom.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
|
||||
Custom tempCustom = customService.buscar(custom.getChave());
|
||||
|
||||
if (custom.getCustomId() == null && tempCustom != null) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Registro.Existe"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
} else {
|
||||
if (custom.getCustomId() == null) {
|
||||
customService.suscribir(custom);
|
||||
customList.addItem(custom);
|
||||
} else {
|
||||
customService.actualizacion(custom);
|
||||
customList.updateItem(custom);
|
||||
}
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("customController.MSG.suscribirOK"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
log.error("", ex);
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("customController.MSG.borrarPergunta"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
||||
customService.borrar(custom);
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("customController.MSG.borrarOK"),
|
||||
Labels.getLabel("customController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
customList.removeItem(custom);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
}
|
||||
|
||||
public CustomService getCustomService() {
|
||||
return customService;
|
||||
}
|
||||
|
||||
public void setCustomService(CustomService customService) {
|
||||
this.customService = customService;
|
||||
}
|
||||
|
||||
public Custom getCustom() {
|
||||
return custom;
|
||||
}
|
||||
|
||||
public void setCustom(Custom custom) {
|
||||
this.custom = custom;
|
||||
}
|
||||
|
||||
public MyListbox getCustomList() {
|
||||
return customList;
|
||||
}
|
||||
|
||||
public void setCustomList(MyListbox customList) {
|
||||
this.customList = customList;
|
||||
}
|
||||
|
||||
public Button getBtnApagar() {
|
||||
return btnApagar;
|
||||
}
|
||||
|
||||
public void setBtnApagar(Button btnApagar) {
|
||||
this.btnApagar = btnApagar;
|
||||
}
|
||||
|
||||
public Textbox getTxtChave() {
|
||||
return txtChave;
|
||||
}
|
||||
|
||||
public void setTxtChave(Textbox txtChave) {
|
||||
this.txtChave = txtChave;
|
||||
}
|
||||
|
||||
public Textbox getTxtValor() {
|
||||
return txtValor;
|
||||
}
|
||||
|
||||
public void setTxtValor(Textbox txtValor) {
|
||||
this.txtValor = txtValor;
|
||||
}
|
||||
|
||||
public List<SistemaEnum> getLsSistemaEnum() {
|
||||
return lsSistemaEnum;
|
||||
}
|
||||
|
||||
public void setLsSistemaEnum(List<SistemaEnum> lsSistemaEnum) {
|
||||
this.lsSistemaEnum = lsSistemaEnum;
|
||||
}
|
||||
|
||||
public Combobox getCmbSistema() {
|
||||
return cmbSistema;
|
||||
}
|
||||
|
||||
public void setCmbSistema(Combobox cmbSistema) {
|
||||
this.cmbSistema = cmbSistema;
|
||||
}
|
||||
|
||||
}
|
|
@ -62,6 +62,7 @@ import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
|||
import com.rjconsultores.ventaboletos.service.InstiFinanceiraService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoEventoExtraService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.RegistroConDependenciaException;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
|
@ -380,7 +381,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ import com.rjconsultores.ventaboletos.entidad.Pais;
|
|||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.service.PaisService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.RegistroConDependenciaException;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -126,7 +127,7 @@ public class EditarEstadoController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ import com.rjconsultores.ventaboletos.enums.IndRestricaoFormaPago;
|
|||
import com.rjconsultores.ventaboletos.enums.TipoFormapago;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -138,7 +139,7 @@ public class EditarFormaPagoController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaService;
|
|||
import com.rjconsultores.ventaboletos.service.MarcaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
|
@ -130,7 +131,7 @@ public class EditarMarcaController extends MyGenericForwardComposer {
|
|||
btnApagar.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.zkoss.zul.Textbox;
|
|||
import com.rjconsultores.ventaboletos.entidad.Moneda;
|
||||
import com.rjconsultores.ventaboletos.service.MonedaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -102,7 +103,7 @@ public class EditarMonedaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -143,6 +143,7 @@ import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
|||
import com.rjconsultores.ventaboletos.service.UsuarioBancarioService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales.FechamentoParamptovtaListItemRenderer;
|
||||
|
@ -1807,7 +1808,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
if (ApplicationProperties.getInstance().validaContaCorrenteEmpesaPtoVta()){
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.VALIDA_CONTA_CORRENTE_EMPESA_PTOVTA.getDescricao(), "1")) {
|
||||
if (!validaCadastroFechamentoContaCorrente()) {
|
||||
exibeMsgErroFechCtaCorrente();
|
||||
return;
|
||||
|
@ -3417,7 +3418,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
|
||||
public boolean isIntegracionTotvs() {
|
||||
integracionTotvs = false;
|
||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.INTEGRACION_TOTVS.getDescricao())) {
|
||||
integracionTotvs = true;
|
||||
}
|
||||
return integracionTotvs;
|
||||
|
@ -3425,7 +3426,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
|
||||
public boolean isIntegracionAG() {
|
||||
integracionAG = false;
|
||||
if (ApplicationProperties.getInstance().integracionAG()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.INTEGRACION_AG.getDescricao())) {
|
||||
integracionAG = true;
|
||||
}
|
||||
return integracionAG;
|
||||
|
|
|
@ -12,6 +12,7 @@ import com.rjconsultores.ventaboletos.service.CategoriaTipoPtoVtaService;
|
|||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
|
@ -127,7 +128,7 @@ public class EditarTipoPuntoVentaController extends MyGenericForwardComposer {
|
|||
categoriaTipoPtoVtaList.setData(lsCategoriaTipoPtoVta);
|
||||
}
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ import com.rjconsultores.ventaboletos.relatorios.utilitarios.SaidaRelatorio;
|
|||
import com.rjconsultores.ventaboletos.service.CalculoComissaoService;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.vo.comissao.HistoricoComissao;
|
||||
|
@ -89,7 +90,7 @@ public class BusquedaCalculoComissaoController extends MyGenericForwardComposer
|
|||
super.doAfterCompose(comp);
|
||||
txtCompetencia.focus();
|
||||
aplicarMascara();
|
||||
rowTipoData.setVisible(ApplicationProperties.getInstance().isPermiteCalculoComissaoPeriodo());
|
||||
rowTipoData.setVisible(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_PERMITE_CALCULO_COMISSAO_PERIODO.getDescricao()));
|
||||
|
||||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
lsPuntoVenta = new ArrayList<PuntoVenta>();
|
||||
|
|
|
@ -35,6 +35,7 @@ import com.rjconsultores.ventaboletos.service.ParadaCodOrgaoConcedenteService;
|
|||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoParadaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.RegistroConDependenciaException;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxCiudad;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -109,7 +110,7 @@ public class EditarCatalogoDeParadaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
if (ApplicationProperties.getInstance().codAnttNaoObrigatorio()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.COD_ANTT_NAO_OBRIGATORIO.getDescricao())) {
|
||||
codAntt.setConstraint("");
|
||||
}
|
||||
|
||||
|
@ -261,7 +262,7 @@ public class EditarCatalogoDeParadaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
public boolean validaNome(){
|
||||
if (!ApplicationProperties.getInstance().validaEstadoNoNomeLocalidade()){
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.VALIDA_ESTADO_NO_NOME_LOCALIDADE.getDescricao())){
|
||||
return true;
|
||||
}
|
||||
boolean isValid = false;
|
||||
|
|
|
@ -34,6 +34,7 @@ import com.rjconsultores.ventaboletos.service.ConfRestricaoPtovtaService;
|
|||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
|
@ -114,7 +115,7 @@ public class EditarConfRestricaoCanalVentaController extends MyGenericForwardCom
|
|||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
if (!ApplicationProperties.getInstance().empresaObrigatoria()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
cmbEmpresa.setConstraint("no empty");
|
||||
}
|
||||
|
||||
|
|
|
@ -76,6 +76,7 @@ import com.rjconsultores.ventaboletos.service.RutaSecuenciaService;
|
|||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.service.TramoServicioService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -461,7 +462,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void exibirDivision() {
|
||||
if (ApplicationProperties.getInstance().exibirDivisionConfiguracionCorrida()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBIR_DIVISION_CONFIGURACION_CORRIDA.getDescricao())) {
|
||||
|
||||
lsDivision = divisionService.obtenerTodos();
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ import com.rjconsultores.ventaboletos.entidad.DiagramaAutobus;
|
|||
import com.rjconsultores.ventaboletos.service.CorridaService;
|
||||
import com.rjconsultores.ventaboletos.service.DiagramaAutobusService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.vo.layout.DiagramaPoltronas;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.LayoutDiagramaAutobus;
|
||||
|
@ -3268,7 +3269,7 @@ public class EditarDiagramaAutobusController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
public Boolean isAsientoMaior54() {
|
||||
return ApplicationProperties.getInstance().diagramaAutobusDosPestana();
|
||||
return ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.HABILITAR_PRICING_CATEGORIA.getDescricao());
|
||||
}
|
||||
|
||||
public Boolean isNotBarco() {
|
||||
|
|
|
@ -57,6 +57,7 @@ import com.rjconsultores.ventaboletos.service.TramoService;
|
|||
import com.rjconsultores.ventaboletos.service.ViaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.BigDecimalUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.LocaleUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
@ -206,7 +207,7 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
txtNome.focus();
|
||||
tabExcepcionesKm.setVisible(ApplicationProperties.getInstance().exhibirExcepcionesTramoKm());
|
||||
tabExcepcionesKm.setVisible(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXHIBIR_EXCEPCIONES_TRAMO_KM.getDescricao()));
|
||||
|
||||
tramoCoeficientesList.addEventListener("onDoubleClick", new EventListener() {
|
||||
@Override
|
||||
|
|
|
@ -44,6 +44,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaService;
|
|||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -156,9 +157,9 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
|
||||
cmbPuntoVenta.setConstraint("no empty");;
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBIR_PUNTO_VENTA_CADASTRO_AIDF.getDescricao())) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_PUNTOVENTA_CADASTRO_AIDF_OBRIGATORIO.getDescricao())) {
|
||||
cmbPuntoVenta.setConstraint("no empty");
|
||||
}
|
||||
rowPuntoVenta.setVisible(true);
|
||||
PuntoVenta puntoVenta = aidf.getPuntoVenta();
|
||||
|
@ -235,8 +236,8 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
|||
txtForminicial.getValue();
|
||||
txtFormfinal.getValue();
|
||||
txtDocFiscal.getValue();
|
||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBIR_PUNTO_VENTA_CADASTRO_AIDF.getDescricao())) {
|
||||
if(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_PUNTOVENTA_CADASTRO_AIDF_OBRIGATORIO.getDescricao())){
|
||||
cmbPuntoVenta.getValue();
|
||||
}
|
||||
}
|
||||
|
@ -262,8 +263,8 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
|||
if (aidf.getAidfEspecie() != null) {
|
||||
especieId = aidf.getAidfEspecie().getAidfespId();
|
||||
}
|
||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBIR_PUNTO_VENTA_CADASTRO_AIDF.getDescricao())) {
|
||||
if(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_PUNTOVENTA_CADASTRO_AIDF_OBRIGATORIO.getDescricao())){
|
||||
PuntoVenta puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
|
||||
aidf.setPuntoVenta(puntoVenta);
|
||||
if (!validarDocFiscalPorEstadoAgencia(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getForminicial(), aidf.getFormfinal(), aidf.getEstado(), aidf.getPuntoVenta())) {
|
||||
|
|
|
@ -12,6 +12,7 @@ import org.zkoss.zul.Textbox;
|
|||
import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||
import com.rjconsultores.ventaboletos.service.PricingService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MensagensUtils;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -50,7 +51,7 @@ public class CopiarPricingController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
Boolean clonou = pricingService.clonarPricing(pricing.getPricingId(), nombrePricing.getText(),
|
||||
ApplicationProperties.getInstance().usaPadraoPricingTipoPassagemPET());
|
||||
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.USA_PADRAO_PRICING_TIPO_PASSAGEM_PET.getDescricao()));
|
||||
|
||||
if (clonou) {
|
||||
closeWindow();
|
||||
|
|
|
@ -73,6 +73,7 @@ import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
|||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -453,7 +454,7 @@ public class EditarPricingController extends PricingController {
|
|||
});
|
||||
|
||||
// Tipo Pasajero - Categoria
|
||||
if (ApplicationProperties.getInstance().habilitarPricingCategoria()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.HABILITAR_PRICING_CATEGORIA.getDescricao())) {
|
||||
pricingCategoriaList.setDisabled(Boolean.FALSE);
|
||||
btnNovoCategoria.setDisabled(Boolean.FALSE);
|
||||
btnApagarCategoria.setDisabled(Boolean.FALSE);
|
||||
|
@ -2517,7 +2518,7 @@ public class EditarPricingController extends PricingController {
|
|||
}
|
||||
|
||||
public boolean isFormaPagoPricingInativo(){
|
||||
return ApplicationProperties.getInstance().isFormaPagoPricingInativo();
|
||||
return ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_FORMAPAGO_PRICING_INATIVO.getDescricao(), "1");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -56,6 +56,7 @@ import com.rjconsultores.ventaboletos.service.PricingEspecificoService;
|
|||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -1155,7 +1156,7 @@ public class EditarPricingEspecificoController extends PricingController {
|
|||
}
|
||||
|
||||
private void incluiCategoriasPadroesAntesCopiar() {
|
||||
if (ApplicationProperties.getInstance().usaPadraoPricingTipoPassagemPET()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.USA_PADRAO_PRICING_TIPO_PASSAGEM_PET.getDescricao())) {
|
||||
Categoria categoriaNormal = getCategoriaNormal();
|
||||
Categoria categoriaPET = getCategoriaPET();
|
||||
Boolean existeNormal = false;
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.springframework.stereotype.Controller;
|
|||
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
@Controller("pricingController")
|
||||
|
@ -19,7 +20,7 @@ public abstract class PricingController extends MyGenericForwardComposer {
|
|||
private CategoriaService categoriaService;
|
||||
|
||||
protected void incluirCategoriasPadroes() {
|
||||
if (ApplicationProperties.getInstance().usaPadraoPricingTipoPassagemPET()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.USA_PADRAO_PRICING_TIPO_PASSAGEM_PET.getDescricao())) {
|
||||
Categoria categoriaNormal = getCategoriaNormal();
|
||||
Categoria categoriaPET = getCategoriaPET();
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ import com.rjconsultores.ventaboletos.entidad.Empresa;
|
|||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -89,7 +90,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
|
|||
Connection con = dataSource.getConnection();
|
||||
String fileZip = BGMApplication.getInstance().executaExportacao(datInicial.getValue(), datFinal.getValue(),
|
||||
System.getProperty("jboss.server.log.dir") , empresaId, puntoVentaId, con,this.getPathExternoGravacaoArquivo(),
|
||||
ApplicationProperties.getInstance().isIncluiTipoPagamentoTurismoBGM());
|
||||
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()));
|
||||
|
||||
if(this.getPathExternoGravacaoArquivo() != null){
|
||||
Messagebox.show(Labels.getLabel("relatorioArquivoBGMController.arquivoGeradoNoServidor.value"),
|
||||
|
|
|
@ -48,6 +48,7 @@ import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioTaxasLinha
|
|||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.StringHelper;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
@ -128,7 +129,7 @@ public class RelatorioTaxasLinhaController extends MyGenericForwardComposer {
|
|||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
chkDownloadTxtVisible = ApplicationProperties.getInstance().relatorioTaxasLinhaTxtDownloadVisible();
|
||||
chkDownloadTxtVisible = ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.RELATORIO_TAXAS_LINHA_TXT_DOWNLOAD_VISIBLE.getDescricao());
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
cmbParadaOrigemCve.setItemRenderer(new ComboitemRenderer() {
|
||||
|
|
|
@ -46,6 +46,7 @@ import com.rjconsultores.ventaboletos.exception.BusinessException;
|
|||
import com.rjconsultores.ventaboletos.service.EstacionService;
|
||||
import com.rjconsultores.ventaboletos.service.EstacionSitefService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -225,14 +226,14 @@ public class EditarEstacionController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private EditarEstacionController validaHabilitacaoCamposRioCard(ApplicationProperties instance) {
|
||||
if (instance.integracionRioCard()) {
|
||||
if (instance.isCustomHabilitado(CustomEnum.INTEGRACION_RIOCARD.getDescricao())) {
|
||||
tabRioCard.setVisible(true);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private EditarEstacionController validaHabilitacaoCamposCartaoLiberCard(ApplicationProperties instance) {
|
||||
if (instance.utillizaCartaoLiberCard()) {
|
||||
if (instance.isCustomHabilitado(CustomEnum.UTILLIZA_CARTAO_LIBERCARD.getDescricao())) {
|
||||
lblLibercard.setVisible(true);
|
||||
chkUtilizaCartaoLibercard.setVisible(true);
|
||||
}
|
||||
|
@ -240,7 +241,7 @@ public class EditarEstacionController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void validaHabilitacaoLayoutInternacional(ApplicationProperties instance) {
|
||||
if (instance.isPermiteLayoutInternacional()) {
|
||||
if (instance.isCustomHabilitado(CustomEnum.IS_PERMITE_LAYOUT_INTERNACIONAL.getDescricao())) {
|
||||
lblNomeArquivoLayoutInternacional.setVisible(true);
|
||||
txtNomeArquivoLayoutInternacional.setVisible(true);
|
||||
colunmNomeArquivoLayoutIternacional.setVisible(true);
|
||||
|
@ -573,7 +574,7 @@ public class EditarEstacionController extends MyGenericForwardComposer {
|
|||
private boolean validarImpressoraJaCadastrada(final Integer empresaId, final String nomeImpresora) {
|
||||
boolean empresaExiste;
|
||||
|
||||
if(ApplicationProperties.getInstance().isPermiteVariasImpressorasMesmaEmpresa()) {
|
||||
if(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_PERMITE_VARIAS_IMPRESSORAS_MESMA_EMPRESA.getDescricao())) {
|
||||
empresaExiste = CollectionUtils.exists(estacionImpresoraList.getListData(),
|
||||
new PredicateMesmaEmpresaEImpressora(nomeImpresora, empresaId));
|
||||
} else {
|
||||
|
|
|
@ -54,6 +54,7 @@ import com.rjconsultores.ventaboletos.service.UsuarioService;
|
|||
import com.rjconsultores.ventaboletos.service.UsuarioSesionService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioUbicacionService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.vo.segurida.PerfilJerarquia;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MensagensUtils;
|
||||
|
@ -197,7 +198,7 @@ public class EditarUsuarioController extends MyGenericForwardComposer {
|
|||
txtConfirmSenha.setText(CONTRASENA_VACIA);
|
||||
}
|
||||
|
||||
if(ApplicationProperties.getInstance().exibirEstacaoCadastroUsuario()){
|
||||
if(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBIR_ESTACAO_CADASTRO_USUARIO.getDescricao())){
|
||||
txtDescMac.setVisible(true);
|
||||
lblDescMac.setVisible(true);
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ import com.rjconsultores.ventaboletos.service.TipoDomicilioService;
|
|||
import com.rjconsultores.ventaboletos.service.TipoIdentificacionService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoOcupacionService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
|
@ -241,7 +242,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
super.doAfterCompose(comp);
|
||||
lsLinhas = rutaService.obtenerTodos();
|
||||
lsEmpresas = empresaService.obtenerTodos();
|
||||
usaCPFComoFidelidade = ApplicationProperties.getInstance().usaCPFComoFidelidade();
|
||||
usaCPFComoFidelidade = ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.USA_CPF_COMO_FIDELIDADE.getDescricao());
|
||||
|
||||
if (usaCPFComoFidelidade) {
|
||||
txtNumFidelidade.setDisabled(true);
|
||||
|
@ -422,7 +423,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
clienteFidelidadeMyListBox.setItemRenderer(new RenderClienteFidelidade());
|
||||
if (ApplicationProperties.getInstance().podeEditarClienteFidelidade()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.PODE_EDITAR_CLIENTE_FIDELIDADE.getDescricao())) {
|
||||
clienteFidelidadeMyListBox.addEventListener("onDoubleClick",
|
||||
new EventListener() {
|
||||
@Override
|
||||
|
@ -447,7 +448,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
//Aplica na constraint do campo
|
||||
if (ApplicationProperties.getInstance().enderecoClienteObrigatorio()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.ENDERECO_CLIENTE_OBRIGATORIO.getDescricao(), "1")) {
|
||||
clienteEnderecoObrigatorio = "no empty";
|
||||
} else {
|
||||
clienteEnderecoObrigatorio = "";
|
||||
|
@ -474,7 +475,7 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
txtDireccionCalle.focus();
|
||||
if (cliente.getListClienteFidelidadActivos() != null
|
||||
&& !cliente.getListClienteFidelidadActivos().isEmpty()
|
||||
&& !ApplicationProperties.getInstance().podeEditarClienteFidelidade()) {
|
||||
&& !ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.PODE_EDITAR_CLIENTE_FIDELIDADE.getDescricao())) {
|
||||
desabilitarComponentes(Boolean.TRUE);
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarClienteController.msg.edicao.nao.permitida"),
|
||||
|
|
|
@ -21,6 +21,7 @@ import org.zkoss.zul.Textbox;
|
|||
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||
import com.rjconsultores.ventaboletos.entidad.SeguroKm;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
|
@ -77,7 +78,7 @@ public class BusquedaSeguroKmController extends MyGenericForwardComposer {
|
|||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
exibeTpp = ApplicationProperties.getInstance().exibeTpp();
|
||||
exibeTpp = ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao());
|
||||
|
||||
seguroKmList.setItemRenderer(new SeguroPorIntervalo());
|
||||
seguroKmList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
|
|
@ -49,6 +49,7 @@ import com.rjconsultores.ventaboletos.service.UsuarioService;
|
|||
import com.rjconsultores.ventaboletos.service.ViaService;
|
||||
import com.rjconsultores.ventaboletos.service.VigenciaTarifaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -337,7 +338,7 @@ public class BusquedaTarifaController extends MyGenericForwardComposer {
|
|||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
listheaderTPP.setVisible(ApplicationProperties.getInstance().exibeTpp());
|
||||
listheaderTPP.setVisible(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao()));
|
||||
this.cmbMarca.addEventListener("onChange", new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
|
|
|
@ -37,6 +37,7 @@ import com.rjconsultores.ventaboletos.service.MonedaService;
|
|||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.service.TarifaOficialService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -216,7 +217,7 @@ public class BusquedaTarifaOficialController extends MyGenericForwardComposer {
|
|||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
listheaderTPP.setVisible(ApplicationProperties.getInstance().exibeTpp());
|
||||
listheaderTPP.setVisible(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao()));
|
||||
|
||||
tarifaList.setItemRenderer(new RenderTarifaOficial());
|
||||
tarifaList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
|
|
@ -24,6 +24,7 @@ import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
|||
import com.rjconsultores.ventaboletos.service.TarifaOficialService;
|
||||
import com.rjconsultores.ventaboletos.service.VigenciaTarifaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
|
@ -63,7 +64,7 @@ public class CopiarTarifaOficialController extends MyGenericForwardComposer {
|
|||
lsEmpresa = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
lsOrgao = orgaoConcedenteService.obtenerTodosExceto(-1);
|
||||
super.doAfterCompose(comp);
|
||||
if (!ApplicationProperties.getInstance().exibeTpp()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao())) {
|
||||
exibeTPP.setVisible(false);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ import com.rjconsultores.ventaboletos.entidad.SeguroKm;
|
|||
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||
import com.rjconsultores.ventaboletos.service.SeguroKmService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -174,7 +175,7 @@ public class EditarSeguroKmController extends MyGenericForwardComposer {
|
|||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
exibeTpp = ApplicationProperties.getInstance().exibeTpp();
|
||||
exibeTpp = ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao());
|
||||
lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
|
|
@ -31,6 +31,7 @@ import com.rjconsultores.ventaboletos.service.RutaEmpresaService;
|
|||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.service.TarifaOficialService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -103,7 +104,7 @@ public class GenerarTarifaOrgaoController extends MyGenericForwardComposer {
|
|||
listSelectedRutas = new ArrayList<Ruta>();
|
||||
lsEmpresaSelected = new ArrayList<Empresa>();
|
||||
|
||||
if (!ApplicationProperties.getInstance().exibeTpp()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao())) {
|
||||
chkTipoSeguro.setVisible(false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,6 +74,7 @@ import com.rjconsultores.ventaboletos.service.TarifaService;
|
|||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.service.VigenciaTarifaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -323,7 +324,7 @@ public class ModificacionMasivaTarifasController extends MyGenericForwardCompose
|
|||
});
|
||||
|
||||
// Exibir botão para gerar tarifas automaticas
|
||||
btnGerarTarifas.setVisible(ApplicationProperties.getInstance().generarTarifasAutomatica());
|
||||
btnGerarTarifas.setVisible(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.GENERAR_TARIFAS_AUTOMATICA.getDescricao()));
|
||||
|
||||
// Abas desativadas no SCIA
|
||||
tabCategoria.setVisible(Boolean.FALSE);
|
||||
|
|
|
@ -74,6 +74,7 @@ import com.rjconsultores.ventaboletos.service.TarifaService;
|
|||
import com.rjconsultores.ventaboletos.service.TramoService;
|
||||
import com.rjconsultores.ventaboletos.service.VigenciaTarifaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
|
@ -920,7 +921,7 @@ public class TarifaEscalaContorller extends MyGenericForwardComposer {
|
|||
if (cbiClaseServicio != null) {
|
||||
ClaseServicio claseServicio = (ClaseServicio) cbiClaseServicio.getValue();
|
||||
|
||||
if (ApplicationProperties.getInstance().rutaConMasDeUnaClase()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.RUTA_CON_MAS_DE_UNA_CLASE.getDescricao())) {
|
||||
lsRutas = rutaService.obtenerTodos();
|
||||
} else {
|
||||
lsRutas = rutaService.buscarPorClaseServicio(claseServicio);
|
||||
|
|
|
@ -53,6 +53,7 @@ import com.rjconsultores.ventaboletos.service.RutaService;
|
|||
import com.rjconsultores.ventaboletos.service.TarifaService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioEmpresaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -421,7 +422,7 @@ public class TarifaOficialExcelController extends MyGenericForwardComposer {
|
|||
cell11.setCellValue("Seguro");
|
||||
cell11.setCellStyle(estilo);
|
||||
|
||||
if (ApplicationProperties.getInstance().exibeTpp()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao())) {
|
||||
HSSFCell cell12 = rowCabecalho.createCell(j++);
|
||||
cell12.setCellValue("TPP");
|
||||
cell12.setCellStyle(estilo);
|
||||
|
@ -473,7 +474,7 @@ public class TarifaOficialExcelController extends MyGenericForwardComposer {
|
|||
String ped;
|
||||
String otr;
|
||||
BigDecimal seguroTpp = null;
|
||||
if (ApplicationProperties.getInstance().exibeTpp()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao())) {
|
||||
tpp = obj[18] == null ? "0" : obj[18].toString();
|
||||
ped = obj[19] == null ? "0" : obj[19].toString();
|
||||
otr = obj[20] == null ? "0" : obj[20].toString();
|
||||
|
@ -490,7 +491,7 @@ public class TarifaOficialExcelController extends MyGenericForwardComposer {
|
|||
|
||||
row.createCell(11).setCellValue(taxa.setScale(2).doubleValue());
|
||||
row.createCell(12).setCellValue(seguro.setScale(2).doubleValue());
|
||||
if (ApplicationProperties.getInstance().exibeTpp()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao())) {
|
||||
row.createCell(13).setCellValue(seguroTpp.setScale(2).doubleValue());
|
||||
row.createCell(14).setCellValue(pedagio.setScale(2).doubleValue());
|
||||
row.createCell(15).setCellValue(outros.setScale(2).doubleValue());
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias;
|
||||
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
public class LayoutDiagramaAutobus {
|
||||
|
||||
|
@ -11,14 +12,14 @@ public class LayoutDiagramaAutobus {
|
|||
private static final String DIAGRAMA_TREM_2 = "gui/img/background_trem_2.png";
|
||||
|
||||
public static String getDiagramaAutobus1() {
|
||||
if(ApplicationProperties.getInstance().diagramaAutobusTrem()) {
|
||||
if(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.DIAGRAMA_AUTOBUS_TREM.getDescricao())) {
|
||||
return DIAGRAMA_TREM_1;
|
||||
}
|
||||
return DIAGRAMA_ONIBUS_1;
|
||||
}
|
||||
|
||||
public static String getDiagramaAutobus2() {
|
||||
if(ApplicationProperties.getInstance().diagramaAutobusTrem()) {
|
||||
if(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.DIAGRAMA_AUTOBUS_TREM.getDescricao())) {
|
||||
return DIAGRAMA_TREM_2;
|
||||
}
|
||||
return DIAGRAMA_ONIBUS_2;
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.zkoss.zk.ui.WebApp;
|
|||
import com.rjconsultores.ventaboletos.FlyWay;
|
||||
import com.rjconsultores.ventaboletos.entidad.Constante;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.web.gui.controladores.job.GeneracionConferenciaMovimentoJob;
|
||||
import com.rjconsultores.ventaboletos.web.gui.controladores.job.GeneracionCorridaJob;
|
||||
import com.rjconsultores.ventaboletos.web.gui.controladores.job.GeneracionRetencaoDiariaComissaoJob;
|
||||
|
@ -84,6 +85,7 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
|
|||
}
|
||||
|
||||
executeFlyway();
|
||||
customToDatabase();
|
||||
}
|
||||
|
||||
|
||||
|
@ -112,6 +114,12 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
|
|||
|
||||
log.info("Flyway executado.");
|
||||
}
|
||||
|
||||
private void customToDatabase() {
|
||||
|
||||
ApplicationProperties.getInstance().readConfigurationToDatabase();
|
||||
|
||||
}
|
||||
|
||||
private boolean ipBloqueadoGeracaoServico() {
|
||||
Constante constanteServidorException = getConstanteService().buscarPorNomeConstante("SERVIDOR_EXCEPCION_GENERACION_CORRIDA");
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuCustom extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuCustom() {
|
||||
super("indexController.mniCustom.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.CUSTOM";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/catalogos/busquedaCustom.zul", Labels.getLabel("customController.window.title"),
|
||||
getArgs() ,desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifasOficial;
|
||||
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
@ -16,7 +17,7 @@ import org.zkoss.util.resource.Labels;
|
|||
public class ItemMenuSeguroKm extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuSeguroKm() {
|
||||
super(ApplicationProperties.getInstance().exibeTpp() ? "busquedaSeguroKmController.window.title" : "busquedaSeguroKmController.semTpp.window.title");
|
||||
super(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao()) ? "busquedaSeguroKmController.window.title" : "busquedaSeguroKmController.semTpp.window.title");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -27,7 +28,7 @@ public class ItemMenuSeguroKm extends DefaultItemMenuSistema {
|
|||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/tarifas/busquedaSeguroKm.zul",
|
||||
Labels.getLabel(ApplicationProperties.getInstance().exibeTpp() ? "busquedaSeguroKmController.window.title" : "busquedaSeguroKmController.semTpp.window.title"), getArgs() ,desktop);
|
||||
Labels.getLabel(ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao()) ? "busquedaSeguroKmController.window.title" : "busquedaSeguroKmController.semTpp.window.title"), getArgs() ,desktop);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -246,6 +246,7 @@ seguridad.mensaje=com.rjconsultores.ventaboletos.web.utilerias.menu.item.segurid
|
|||
seguridad.auditoria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuAuditoria
|
||||
seguridad.integracaototvs=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuIntegracaoTotvs
|
||||
seguridad.painelecf=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuPainelECF
|
||||
seguridad.custom=com.rjconsultores.ventaboletos.web.utilerias.menu.item.seguridad.ItemMenuCustom
|
||||
pasajerofrecuente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.MenuPasajeroFrecuente
|
||||
pasajerofrecuente.cliente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuCliente
|
||||
pasajerofrecuente.importarClientes=com.rjconsultores.ventaboletos.web.utilerias.menu.item.pasajerofrecuente.ItemMenuImportarClientes
|
||||
|
|
|
@ -6,6 +6,8 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -44,7 +46,7 @@ public class RenderCiudad implements ListitemRenderer {
|
|||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
lc = new Listcell(ciudad.getEquivalenciaId() == null ? "-" : ciudad.getEquivalenciaId());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Custom;
|
||||
import com.rjconsultores.ventaboletos.enums.SistemaEnum;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Lucas
|
||||
*/
|
||||
public class RenderCustom implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
Custom custom = (Custom) o;
|
||||
|
||||
Listcell lc = new Listcell(custom.getCustomId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(SistemaEnum.getSistema(custom.getSistema()).toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(custom.getChave());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(custom.getValor());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", custom);
|
||||
}
|
||||
}
|
|
@ -6,6 +6,8 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
|
@ -49,7 +51,7 @@ public class RenderEmpresa implements ListitemRenderer {
|
|||
lc = new Listcell(empresa.getCnpj());
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
lc = new Listcell(empresa.getEquivalenciaId());
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ import org.zkoss.zul.ListitemRenderer;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -86,7 +87,7 @@ public class RenderEstado implements ListitemRenderer {
|
|||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EMPRESA_OBRIGATORIA.getDescricao())) {
|
||||
lc = new Listcell(estado.getEquivalenciaId());
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -31,7 +33,7 @@ public class RenderFormaPago implements ListitemRenderer {
|
|||
lc = new Listcell(formaPago.getTipoFormapago() != null ? formaPago.getTipoFormapago().getDescricao() : "");
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
lc = new Listcell(formaPago.getEquivalenciaId());
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -25,7 +27,7 @@ public class RenderMarca implements ListitemRenderer {
|
|||
lc = new Listcell(marca.getDescmarca());
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
lc = new Listcell(marca.getEquivalenciaId());
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Moneda;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -25,7 +27,7 @@ public class RenderMoneda implements ListitemRenderer {
|
|||
lc = new Listcell(moneda.getDescmoneda());
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
lc = new Listcell(moneda.getEquivalenciaId());
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ import org.zkoss.zul.ListitemRenderer;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Tarifa;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -49,7 +50,7 @@ public class RenderTarifa implements ListitemRenderer {
|
|||
lc = new Listcell(t.getImporteseguro() == null ? "" : df.format(t.getImporteseguro()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (ApplicationProperties.getInstance().exibeTpp()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao())) {
|
||||
lc = new Listcell(t.getImporteTPP() == null ? "" : df.format(t.getImporteTPP()));
|
||||
lc.setParent(lstm);
|
||||
} else {
|
||||
|
|
|
@ -12,6 +12,7 @@ import org.zkoss.zul.ListitemRenderer;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.TarifaOficial;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -48,7 +49,7 @@ public class RenderTarifaOficial implements ListitemRenderer {
|
|||
lc = new Listcell(t.getImporteseguro() == null ? "" : df.format(t.getImporteseguro()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (ApplicationProperties.getInstance().exibeTpp()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.EXIBE_TPP.getDescricao())) {
|
||||
lc = new Listcell(t.getImportetpp() == null ? "" : df.format(t.getImportetpp()));
|
||||
lc.setParent(lstm);
|
||||
} else {
|
||||
|
|
|
@ -6,6 +6,8 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -26,7 +28,7 @@ public class RenderTipoPuntoVenta implements ListitemRenderer {
|
|||
lc.setParent(lstm);
|
||||
|
||||
|
||||
if (ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||
if (ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.MOSTRAR_EQUIVALENCIA.getDescricao())) {
|
||||
lc = new Listcell(tipoPuntoVenta.getEquivalenciaId());
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
|
|
@ -121,6 +121,7 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.CuponSecretaria
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Curso</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Custom</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DetDiagramaAutobus
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DepositoBancario
|
||||
|
|
|
@ -368,6 +368,8 @@ indexController.mniConferenciaComissao.label=Conferencia de los movimientos
|
|||
indexController.mniAliquotaECF.label = Registro Aliquota ECF
|
||||
indexController.mniRetencaoDiariaComissao.label=Recalculo del Comisión
|
||||
|
||||
indexController.mniCustom.label = Customização Sistema
|
||||
|
||||
indexController.mniEscola.label = Escuela
|
||||
indexController.mniCurso.label = Curso
|
||||
indexController.mniPracaPedagio.label = Caseta peaje
|
||||
|
@ -7827,4 +7829,21 @@ relatorioGratuidadeARTESPController.lbDataFin.value = Fecha Final
|
|||
relatorioGratuidadeARTESPController.lbOrgao.value = Instituición concedente
|
||||
editarEmpresaController.usarAliasMapaViagemVenda.ajuda = En la pantalla de Venta o botón de Tarjeta de Viagem deve usar Alias para as Ubicaciones.
|
||||
|
||||
editarPtovtaAntifraudeController.window.title=Editar Chave Antifraude
|
||||
editarPtovtaAntifraudeController.window.title=Editar Chave Antifraude
|
||||
|
||||
# Custom
|
||||
customController.window.title = Customização Sistema
|
||||
customController.btnSalvar.tooltiptext = Guardar
|
||||
customController.id.value=ID
|
||||
customController.chave.value=Chave
|
||||
customController.sistema.value=Sistema
|
||||
customController.habilitado.value=Habilitado
|
||||
customController.valor.value=Valor
|
||||
customController.btnRefresh.tooltiptext = Atualização
|
||||
customController.btnNovo.tooltiptext = Incluir
|
||||
customController.btnCerrar.tooltiptext = Fechar
|
||||
customController.btnApagar.tooltiptext = Eliminar
|
||||
customController.btnSalvar.tooltiptext = Salvar
|
||||
customController.MSG.suscribirOK = Customização Registrada com Sucesso.
|
||||
customController.MSG.borrarPergunta = Eliminar customização?
|
||||
customController.MSG.borrarOK = Customização Excluida com Sucesso.
|
|
@ -379,6 +379,8 @@ indexController.mniItemDesconto.label=Item Desconto
|
|||
indexController.mniConferenciaComissao.label=Conferência de Movimento
|
||||
indexController.mniRetencaoDiariaComissao.label=Recálculo da Comissão
|
||||
|
||||
indexController.mniCustom.label = Customização Sistema
|
||||
|
||||
indexController.mniEscola.label = Escola
|
||||
indexController.mniCurso.label = Curso
|
||||
indexController.mniPracaPedagio.label = Praça Pedágio
|
||||
|
@ -8299,4 +8301,21 @@ relatorioGratuidadeARTESPController.lbOrgao.value = Orgão Concedente
|
|||
editarEmpresaController.usarAliasMapaViagemVenda.ajuda = Na tela de Venda o botão de Mapa de Viagem deve usar Alias para as Localidades.
|
||||
editarClienteController.MSG.validacaoCPFInvalido = CPF inválido
|
||||
|
||||
editarPtovtaAntifraudeController.window.title=Editar Chave Antifraude
|
||||
editarPtovtaAntifraudeController.window.title=Editar Chave Antifraude
|
||||
|
||||
# Custom
|
||||
customController.window.title = Customização Sistema
|
||||
customController.btnSalvar.tooltiptext = Guardar
|
||||
customController.id.value=ID
|
||||
customController.chave.value=Chave
|
||||
customController.sistema.value=Sistema
|
||||
customController.habilitado.value=Habilitado
|
||||
customController.valor.value=Valor
|
||||
customController.btnRefresh.tooltiptext = Atualização
|
||||
customController.btnNovo.tooltiptext = Incluir
|
||||
customController.btnCerrar.tooltiptext = Fechar
|
||||
customController.btnApagar.tooltiptext = Eliminar
|
||||
customController.btnSalvar.tooltiptext = Salvar
|
||||
customController.MSG.suscribirOK = Customização Registrada com Sucesso.
|
||||
customController.MSG.borrarPergunta = Eliminar customização?
|
||||
customController.MSG.borrarOK = Customização Excluida com Sucesso.
|
|
@ -0,0 +1,67 @@
|
|||
<?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="winBusquedaCustom"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaCustom" title="${c:l('customController.window.title')}"
|
||||
apply="${busquedaCustomController}" contentStyle="overflow:auto"
|
||||
height="500px" width="980px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('customController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('customController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaCustom.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('customController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('customController.chave.value')}"/>
|
||||
<textbox id="txtChave" width="500px" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('customController.sistema.value')}"/>
|
||||
<combobox id="cmbSistema"
|
||||
mold="rounded" buttonVisible="true" width="300px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winBusquedaCustom$composer.lsSistemaEnum}"
|
||||
/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('customController.btnPesquisa.label')}"/>
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingCustom" pageSize="20"/>
|
||||
<listbox id="customList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="85%">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhId" width="70px" image="/gui/img/builder.gif"
|
||||
label="${c:l('customController.id.value')}"
|
||||
sort="auto(customId)"/>
|
||||
<listheader id="lhSistema" width="115px" image="/gui/img/builder.gif"
|
||||
label="${c:l('customController.sistema.value')}"
|
||||
sort="auto(sistema)" align="left"/>
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('customController.chave.value')}"
|
||||
sort="auto(chave)"/>
|
||||
<listheader id="lhValor" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('customController.valor.value')}"
|
||||
sort="auto(valor)"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,54 @@
|
|||
<?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="winEditarCustom"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarCustom" border="normal"
|
||||
apply="${editarCustomController}"
|
||||
width="900px" height="500x" contentStyle="overflow:auto"
|
||||
title="${c:l('editarArticuloController.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('customController.btnApagar.tooltiptext')}"/>
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('customController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarCustom.detach()"
|
||||
tooltiptext="${c:l('customController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbSistema" value="${c:l('customController.sistema.value')}"/>
|
||||
<combobox id="cmbSistema"
|
||||
mold="rounded" buttonVisible="true" width="300px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarCustom$composer.lsSistemaEnum}"
|
||||
/>
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbChave" value="${c:l('customController.chave.value')}"/>
|
||||
<textbox id="txtChave" constraint="no empty" width="500px" maxlength="100"
|
||||
value="@{winEditarCustom$composer.custom.chave}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbValor" value="${c:l('customController.valor.value')}"/>
|
||||
<textbox id="txtValor" constraint="no empty" width="500px" maxlength="255"
|
||||
value="@{winEditarCustom$composer.custom.valor}"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue