X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/2a767add127bcb217dcc2ce2ca242f703b5022a0..346c91ca894a5f231f481f0eed740208a7573e34:/lib/SAMURAI/Usuario/consultas.ini?ds=inline diff --git a/lib/SAMURAI/Usuario/consultas.ini b/lib/SAMURAI/Usuario/consultas.ini index 14ec9ed..c21cc12 100644 --- a/lib/SAMURAI/Usuario/consultas.ini +++ b/lib/SAMURAI/Usuario/consultas.ini @@ -3,12 +3,15 @@ -obtener_datos_usuario = " SELECT login, nrodoc, nombre FROM samurai.usuario " +obtener_datos_usuario = " SELECT login FROM samurai.perfil_sist_usuario " +obtener_datos_usuario2 = " SELECT DISTINCT login FROM samurai.perfil_sist_usuario WHERE id_sistema = ? " obtener_datos_usuario3 = " WHERE login = ? " obtener_datos_usuario4 = " ORDER BY login" -obtener_datos_usuario2 = " SELECT DISTINCT u.login as login FROM samurai.usuario as u, samurai.perfil_sist_usuario as psu WHERE u.login = psu.login AND id_sistema = ? " + obtener_perfiles_usuario = " SELECT id_perfil FROM samurai.perfil_sist_usuario WHERE login = ? AND id_sistema = ?" -verificar_login = " SELECT count(*) as cuenta FROM samurai.usuario WHERE login = ?" verificar_login2 = " SELECT login FROM samurai.perfil_sist_usuario WHERE login = ? AND id_sistema = ?" borrar = " DELETE FROM samurai.perfil_sist_usuario WHERE login = ? AND id_sistema = ?" + +obtener_informacion = " SELECT psu.login AS login, psu.id_sistema AS id_sistema, sist.nombre_sistema AS nombre_sistema, psu.id_perfil AS id_perfil, perf.desc_perfil AS desc_perfil, pps.id_permiso AS id_permiso, perm.desc_permiso AS desc_permiso, pps.observaciones AS observaciones FROM samurai.permiso AS perm, samurai.perfil AS perf, samurai.sistema AS sist, samurai.perfil_sist_usuario AS psu, samurai.perm_perfil_sist AS pps WHERE psu.id_perfil = pps.id_perfil AND psu.id_sistema = pps.id_sistema AND psu.id_sistema = sist.id_sistema AND psu.id_perfil = perf.id_perfil AND pps.id_permiso = perm.id_permiso AND psu.login = ? ORDER BY sist.nombre_sistema, perf.desc_perfil, perm.desc_permiso" +