Fixes bug#AL-4549

master
Fernando Abimael Alvarez Uc 2024-08-07 15:29:32 -06:00
parent 73c7e4ef8f
commit b6f9b29be4
1 changed files with 7 additions and 3 deletions

View File

@ -53,6 +53,7 @@ import org.zkoss.zul.Paging;
import com.rjconsultores.ventaboletos.entidad.Articulo; import com.rjconsultores.ventaboletos.entidad.Articulo;
import com.rjconsultores.ventaboletos.entidad.Ciudad; import com.rjconsultores.ventaboletos.entidad.Ciudad;
import com.rjconsultores.ventaboletos.entidad.Constante;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso; import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos; import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
@ -86,6 +87,9 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
@Autowired @Autowired
SolicitudExpresosService solicitudExpresosService; SolicitudExpresosService solicitudExpresosService;
@Autowired
ConstanteService constanteService;
SolicitudExpreso expreso; SolicitudExpreso expreso;
TrayectosExpresos trayecto; TrayectosExpresos trayecto;
@ -262,10 +266,10 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
this.closeWindow(); this.closeWindow();
} }
public String valorConstante(String constante) { public String valorConstante(String nombreConstante) {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService"); Constante constante = constanteService.buscarPorNomeConstante(nombreConstante);
return constanteService.buscarPorNomeConstante(constante) != null ? constanteService.buscarPorNomeConstante(constante).getValorconstante() : null ; return constante != null ? constante.getValorconstante() : null ;
} }
public SolicitudExpreso getExpreso() { public SolicitudExpreso getExpreso() {