erro combo não selecionado

master
Gleimar Botelho Baleeiro 2024-10-28 17:07:01 -03:00
parent 3081b3f0a1
commit 98fad8ab0e
2 changed files with 10 additions and 2 deletions

View File

@ -10,6 +10,8 @@ import java.util.Map;
import javax.sql.DataSource; import javax.sql.DataSource;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope; import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -38,6 +40,7 @@ import com.rjconsultores.ventaboletos.service.AidfService;
import com.rjconsultores.ventaboletos.service.DetAbastoBoletoService; import com.rjconsultores.ventaboletos.service.DetAbastoBoletoService;
import com.rjconsultores.ventaboletos.service.EstadoService; import com.rjconsultores.ventaboletos.service.EstadoService;
import com.rjconsultores.ventaboletos.service.MovimentacionBilhetesService; import com.rjconsultores.ventaboletos.service.MovimentacionBilhetesService;
import com.rjconsultores.ventaboletos.service.impl.CorridaServiceImpl;
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties; import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
import com.rjconsultores.ventaboletos.utilerias.CustomEnum; import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
@ -50,6 +53,8 @@ public class MovimentacionBilhetesController extends MyGenericForwardComposer {
private static final String TITULO = "movimentacionBilhetesController.window.title"; private static final String TITULO = "movimentacionBilhetesController.window.title";
private static final long serialVersionUID = -5047032264890781980L; private static final long serialVersionUID = -5047032264890781980L;
private static final Logger log = LogManager.getLogger(MovimentacionBilhetesController.class);
@Autowired @Autowired
private MovimentacionBilhetesService movimentacionBilhetesService; private MovimentacionBilhetesService movimentacionBilhetesService;
@ -111,6 +116,7 @@ public class MovimentacionBilhetesController extends MyGenericForwardComposer {
cmbAidf.getValue(); cmbAidf.getValue();
cmbPuntoVentaDestino.getValue(); cmbPuntoVentaDestino.getValue();
cmbPuntoVentaOrigem.getValue(); cmbPuntoVentaOrigem.getValue();
cmbTipoMovimentacion.getValue();
try{ try{
@ -215,7 +221,9 @@ public class MovimentacionBilhetesController extends MyGenericForwardComposer {
be.getMessage(), be.getMessage(),
Labels.getLabel(TITULO), Labels.getLabel(TITULO),
Messagebox.OK, Messagebox.ERROR); Messagebox.OK, Messagebox.ERROR);
} catch (Exception ex) { } catch (Exception ex) {
log.error(String.format("Erro salvar movimentacao. %s",TITULO),ex);
Messagebox.show( Messagebox.show(
Labels.getLabel("MSG.Error"), Labels.getLabel("MSG.Error"),
Labels.getLabel(TITULO), Labels.getLabel(TITULO),

View File

@ -39,7 +39,7 @@
value="${c:l('winMovimentacionBilhetes.tipoMovimentacion.label')}" /> value="${c:l('winMovimentacionBilhetes.tipoMovimentacion.label')}" />
<combobox id="cmbTipoMovimentacion" <combobox id="cmbTipoMovimentacion"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
width="90%" mold="rounded" buttonVisible="true" width="90%" mold="rounded" buttonVisible="true" constraint="no empty"
model="@{winMovimentacionBilhetes$composer.lsTipoMovimentacion}"/> model="@{winMovimentacionBilhetes$composer.lsTipoMovimentacion}"/>
</row> </row>