fixes bug#AL-4874

master
Aristides dos Reis Júnior 2024-08-29 11:50:50 -03:00
parent 5a019425d1
commit 98816b10c2
2 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId> <artifactId>ventaboletosadm</artifactId>
<version>1.131.6</version> <version>1.131.7</version>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>

View File

@ -27,6 +27,7 @@ import com.rjconsultores.ventaboletos.dao.ConstanteDAO;
import com.rjconsultores.ventaboletos.entidad.Parada; import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.PrecioVentaja; import com.rjconsultores.ventaboletos.entidad.PrecioVentaja;
import com.rjconsultores.ventaboletos.entidad.Ruta; import com.rjconsultores.ventaboletos.entidad.Ruta;
import com.rjconsultores.ventaboletos.service.ConstanteService;
import com.rjconsultores.ventaboletos.service.CorridaService; import com.rjconsultores.ventaboletos.service.CorridaService;
import com.rjconsultores.ventaboletos.service.ParadaService; import com.rjconsultores.ventaboletos.service.ParadaService;
import com.rjconsultores.ventaboletos.service.RutaService; import com.rjconsultores.ventaboletos.service.RutaService;
@ -63,6 +64,9 @@ public class BusquedaPrecioVentajaController extends MyGenericForwardComposer {
@Autowired @Autowired
private ParadaService paradaService; private ParadaService paradaService;
@Autowired
private ConstanteService constanteService;
private MyListbox precioVentajaList; private MyListbox precioVentajaList;
@ -109,7 +113,7 @@ public class BusquedaPrecioVentajaController extends MyGenericForwardComposer {
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp); super.doAfterCompose(comp);
itxCorrida.setMaxlength(Boolean.valueOf(constanteDAO.buscarPorNomeConstante(Constantes.NUM_VIAJE_9_DIGITOS).getValorconstante()) ? 9 : 7); itxCorrida.setMaxlength(Boolean.valueOf(constanteService.buscarValorConstantePorNomeConstanteBoolean(Constantes.NUM_VIAJE_9_DIGITOS) ) ? 9 : 7);
lsRuta = rutaService.obtenerTodos(); lsRuta = rutaService.obtenerTodos();
cmbRuta.setItemRenderer(new MyComboRutaRenderer()); cmbRuta.setItemRenderer(new MyComboRutaRenderer());