fixes bug #AL-4474
parent
c917f78cbe
commit
9968991111
6
pom.xml
6
pom.xml
|
@ -4,12 +4,12 @@
|
||||||
<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.79.5</version>
|
<version>1.80.0</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<modelWeb.version>1.59.0</modelWeb.version>
|
<modelWeb.version>1.60.0</modelWeb.version>
|
||||||
<flyway.version>1.45.1</flyway.version>
|
<flyway.version>1.45.2</flyway.version>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -143,6 +143,7 @@ import com.rjconsultores.ventaboletos.service.InstiFinanceiraService;
|
||||||
import com.rjconsultores.ventaboletos.service.MonedaService;
|
import com.rjconsultores.ventaboletos.service.MonedaService;
|
||||||
import com.rjconsultores.ventaboletos.service.NodoService;
|
import com.rjconsultores.ventaboletos.service.NodoService;
|
||||||
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.PerfilFuncionService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtoVtaCheckinService;
|
import com.rjconsultores.ventaboletos.service.PtoVtaCheckinService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtoVtaSeguroService;
|
import com.rjconsultores.ventaboletos.service.PtoVtaSeguroService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService;
|
import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService;
|
||||||
|
@ -221,6 +222,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
public static final String TITULO = "editarPuntoVentaController.window.title";
|
public static final String TITULO = "editarPuntoVentaController.window.title";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private PuntoVentaService puntoVentaService;
|
private PuntoVentaService puntoVentaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -276,6 +278,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
@Autowired
|
@Autowired
|
||||||
private OrgaoConcedenteService orgaoConcedenteService;
|
private OrgaoConcedenteService orgaoConcedenteService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private PerfilFuncionService perfilFuncionService;
|
||||||
|
|
||||||
private PuntoVenta puntoVenta;
|
private PuntoVenta puntoVenta;
|
||||||
private Textbox txtCP;
|
private Textbox txtCP;
|
||||||
private MyListbox categoriaList;
|
private MyListbox categoriaList;
|
||||||
|
@ -534,6 +539,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private Tab tabAnrifraude;
|
private Tab tabAnrifraude;
|
||||||
private Tab tabExcecaoMultaCancelamento;
|
private Tab tabExcecaoMultaCancelamento;
|
||||||
private Tab tabHistorico;
|
private Tab tabHistorico;
|
||||||
|
private Tab tabRecollecion;
|
||||||
private Paging pagingHistoricoFormaPago;
|
private Paging pagingHistoricoFormaPago;
|
||||||
private Paging pagingFormaPago;
|
private Paging pagingFormaPago;
|
||||||
private Textbox txtLatitudeLongitude;
|
private Textbox txtLatitudeLongitude;
|
||||||
|
@ -592,7 +598,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private Checkbox checkIndBloqueioDescontoAPI;
|
private Checkbox checkIndBloqueioDescontoAPI;
|
||||||
private Checkbox checkIndBloqueioDescontoWEB;
|
private Checkbox checkIndBloqueioDescontoWEB;
|
||||||
private Checkbox checkIndTaxaConvenienciaOrgaoConcedente;
|
private Checkbox checkIndTaxaConvenienciaOrgaoConcedente;
|
||||||
|
|
||||||
private final String constanteIndMotivoBloqueio= "IND_MOTIVO_BLOQUEIO";
|
private final String constanteIndMotivoBloqueio= "IND_MOTIVO_BLOQUEIO";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -1197,6 +1202,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
tabAnrifraude.setVisible(false);
|
tabAnrifraude.setVisible(false);
|
||||||
tabExcecaoMultaCancelamento.setVisible(false);
|
tabExcecaoMultaCancelamento.setVisible(false);
|
||||||
tabHistorico.setVisible(false);
|
tabHistorico.setVisible(false);
|
||||||
|
tabRecollecion.setVisible(isPerfilFuncionRecollecion());
|
||||||
//Campos
|
//Campos
|
||||||
txtNome.setDisabled(true);
|
txtNome.setDisabled(true);
|
||||||
txtIdEquivalencia.setDisabled(true);
|
txtIdEquivalencia.setDisabled(true);
|
||||||
|
@ -1264,6 +1270,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public boolean isPerfilFuncionRecollecion() {
|
||||||
|
return perfilFuncionService.usuarioPossuiPermissaoFuncionalidade(UsuarioLogado.getUsuarioLogado().getUsuarioId(), ConstantesFuncionSistema.FUNCION_RECOLECCION);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private List<Empresa> obterEmpresasUsuarioLogadoComOpcaoTodas() {
|
private List<Empresa> obterEmpresasUsuarioLogadoComOpcaoTodas() {
|
||||||
List<Empresa> listaEmpresas = new ArrayList<Empresa>();
|
List<Empresa> listaEmpresas = new ArrayList<Empresa>();
|
||||||
|
|
Loading…
Reference in New Issue