From 53b360f9520b6602fb9b4dafc438bd48ec798793 Mon Sep 17 00:00:00 2001 From: hugoa Date: Tue, 14 May 2024 12:14:54 -0500 Subject: [PATCH] cambios finales --- .../src/java/xforce/bl/UsuariosBL.java | 1 + .../java/xforce/seguridad/DemoBeanLogin.java | 36 ++- ProyectoInventario-war/web/estados.xhtml | 2 +- ProyectoInventario-war/web/marcaLista.xhtml | 32 ++- ProyectoInventario-war/web/paises.xhtml | 2 +- .../web/productoLista.xhtml | 4 +- .../web/proveedorLista.xhtml | 9 +- ProyectoInventario-war/web/tipos.xhtml | 218 +++++++++--------- .../web/ubicacionLista.xhtml | 24 +- .../web/usuariosLista.xhtml | 42 +++- 10 files changed, 213 insertions(+), 157 deletions(-) diff --git a/ProyectoInventario-ejb/src/java/xforce/bl/UsuariosBL.java b/ProyectoInventario-ejb/src/java/xforce/bl/UsuariosBL.java index 2a9a5f8..e43a963 100644 --- a/ProyectoInventario-ejb/src/java/xforce/bl/UsuariosBL.java +++ b/ProyectoInventario-ejb/src/java/xforce/bl/UsuariosBL.java @@ -227,6 +227,7 @@ public class UsuariosBL implements UsuariosBLLocal { users.setEmail(usuarios.getEmail()); users.setTelefono(usuarios.getTelefono()); users.setContrasenia(usuarios.getContrasenia()); + users.setDomicilio(usuarios.getDomicilio()); users.setRolesId(usuarios.getRolesId()); users.setEstadosId(usuarios.getEstadosId()); diff --git a/ProyectoInventario-war/src/java/xforce/seguridad/DemoBeanLogin.java b/ProyectoInventario-war/src/java/xforce/seguridad/DemoBeanLogin.java index 04faaed..36cb418 100644 --- a/ProyectoInventario-war/src/java/xforce/seguridad/DemoBeanLogin.java +++ b/ProyectoInventario-war/src/java/xforce/seguridad/DemoBeanLogin.java @@ -176,13 +176,16 @@ public class DemoBeanLogin implements Serializable { switch (rol) { case "admin": - + permisos = true; + agregaciones = true; break; case "almacenista": - + permisos = true; + agregaciones = true; break; case "auxiliar": - + permisos = false; + agregaciones = false; break; default: permisos = false; @@ -194,13 +197,16 @@ public class DemoBeanLogin implements Serializable { switch (rol) { case "admin": - + permisos = true; + agregaciones = true; break; case "almacenista": - + permisos = false; + agregaciones = false; break; case "auxiliar": - + permisos = false; + agregaciones = false; break; default: permisos = false; @@ -212,13 +218,16 @@ public class DemoBeanLogin implements Serializable { switch (rol) { case "admin": - + permisos = true; + agregaciones = true; break; case "almacenista": - + permisos = true; + agregaciones = false; break; case "auxiliar": - + permisos = false; + agregaciones = false; break; default: permisos = false; @@ -230,13 +239,16 @@ public class DemoBeanLogin implements Serializable { switch (rol) { case "admin": - + permisos = true; + agregaciones = true; break; case "almacenista": - + permisos = true; + agregaciones = true; break; case "auxiliar": - + permisos = false; + agregaciones = false; break; default: permisos = false; diff --git a/ProyectoInventario-war/web/estados.xhtml b/ProyectoInventario-war/web/estados.xhtml index a5cee91..c98af93 100644 --- a/ProyectoInventario-war/web/estados.xhtml +++ b/ProyectoInventario-war/web/estados.xhtml @@ -38,7 +38,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/XHtml.xhtml to edit t - + diff --git a/ProyectoInventario-war/web/marcaLista.xhtml b/ProyectoInventario-war/web/marcaLista.xhtml index cd6d391..447361b 100644 --- a/ProyectoInventario-war/web/marcaLista.xhtml +++ b/ProyectoInventario-war/web/marcaLista.xhtml @@ -19,7 +19,7 @@ - +
@@ -37,15 +37,23 @@ icon="pi pi-globe" oncomplete="PF('pais').show()" update="paisDialog" - actionListener="#{demoBeanPaises.prepararNuevo()}"/> + actionListener="#{demoBeanPaises.prepararNuevo()}" + rendered="#{demoBeanLogin.agregaciones == true}"/> - - + actionListener="#{demoBeanEstados.prepararNuevo()}" + rendered="#{demoBeanLogin.agregaciones == true}"/> + + + @@ -55,14 +63,21 @@ - + - + + + + + @@ -121,7 +136,7 @@ - + @@ -135,6 +150,7 @@ + diff --git a/ProyectoInventario-war/web/paises.xhtml b/ProyectoInventario-war/web/paises.xhtml index 5386b88..5cc081d 100644 --- a/ProyectoInventario-war/web/paises.xhtml +++ b/ProyectoInventario-war/web/paises.xhtml @@ -38,7 +38,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/XHtml.xhtml to edit t - + diff --git a/ProyectoInventario-war/web/productoLista.xhtml b/ProyectoInventario-war/web/productoLista.xhtml index 97c5771..62db5ee 100644 --- a/ProyectoInventario-war/web/productoLista.xhtml +++ b/ProyectoInventario-war/web/productoLista.xhtml @@ -133,7 +133,7 @@ + placeholder="Buscar productos" />
@@ -167,7 +167,7 @@ - + diff --git a/ProyectoInventario-war/web/proveedorLista.xhtml b/ProyectoInventario-war/web/proveedorLista.xhtml index 5bd2c03..01c65fc 100644 --- a/ProyectoInventario-war/web/proveedorLista.xhtml +++ b/ProyectoInventario-war/web/proveedorLista.xhtml @@ -23,7 +23,7 @@ - +
@@ -129,8 +129,7 @@
+ placeholder="Buscar proveedores" />
@@ -163,9 +162,9 @@ - + - + diff --git a/ProyectoInventario-war/web/tipos.xhtml b/ProyectoInventario-war/web/tipos.xhtml index 8e3509f..223e0be 100644 --- a/ProyectoInventario-war/web/tipos.xhtml +++ b/ProyectoInventario-war/web/tipos.xhtml @@ -8,64 +8,60 @@ Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/XHtml.xhtml to edit t xmlns:p="http://primefaces.org/ui" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core"> - - + + - - - - - - - -
- - - - - - - - - - - -

- - - - - - - - - - - - - - - + + + + + + +
Tipos
+ +
+ + + + + + + + + + + + + + + + + + + + + + - + - + - - + +
Nuevo tipo
- +
- - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ProyectoInventario-war/web/ubicacionLista.xhtml b/ProyectoInventario-war/web/ubicacionLista.xhtml index 28d72c8..3ccd2b3 100644 --- a/ProyectoInventario-war/web/ubicacionLista.xhtml +++ b/ProyectoInventario-war/web/ubicacionLista.xhtml @@ -19,7 +19,7 @@ - +
@@ -131,30 +131,40 @@
+
+ + + placeholder="Buscar ubicacion" /> +
- - + - + + + + + + + + + - + diff --git a/ProyectoInventario-war/web/usuariosLista.xhtml b/ProyectoInventario-war/web/usuariosLista.xhtml index e00ffb9..7d78c37 100644 --- a/ProyectoInventario-war/web/usuariosLista.xhtml +++ b/ProyectoInventario-war/web/usuariosLista.xhtml @@ -19,7 +19,7 @@ - +
@@ -36,15 +36,23 @@ icon="pi pi-globe" oncomplete="PF('pais').show()" update="paisDialog" - actionListener="#{demoBeanPaises.prepararNuevo()}"/> + actionListener="#{demoBeanPaises.prepararNuevo()}" + rendered="#{demoBeanLogin.agregaciones == true}"/> - - + actionListener="#{demoBeanEstados.prepararNuevo()}" + rendered="#{demoBeanLogin.agregaciones == true}"/> + + + @@ -54,14 +62,21 @@ - + - + + + + +
@@ -81,7 +96,9 @@
- +
@@ -167,8 +184,13 @@ - - + + +