Merge pull request 'AL-5047' (!805) from AL-5047 into master
Reviewed-on: adm/VentaBoletosAdm#805 Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>master 1.163.3
commit
fcc7ef0e49
2
pom.xml
2
pom.xml
|
@ -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.163.2</version>
|
<version>1.163.3</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue