1 ; ConfiguraciĆ³n de la base de datos.
7 obtener_datos_sistema = " SELECT s.id_sistema as id_sistema, s.nombre_sistema as nombre_sistema, s.desc_sistema as desc_sistema, s.fecha_inicio as fecha_inicio, s.fecha_fin as fecha_fin, s.fecha_implementacion as fecha_implementacion, s.contacto as contacto, s.responsable as responsable FROM samurai.sistema as s "
8 obtener_datos_sistema2 = " WHERE s.id_sistema = ? "
9 obtener_datos_sistema3 = " WHERE s.estado = 1"
10 obtener_permisos = " SELECT ps.id_permiso, ps.observaciones, p.desc_permiso FROM samurai.perm_sist as ps, samurai.permiso as p WHERE ps.id_sistema = ? AND ps.id_permiso = p.id_permiso"
11 obtener_permisos2 = " ORDER BY p.id_permiso"
12 obtener_permisos3 = " AND ps.id_permiso = ?"
13 obtener_permisos4 = " AND ps.observaciones = ?"
14 obtener_max_id_sistemas = " SELECT IFNULL(max(id_sistema), 1) as id_sistema FROM samurai.sistema"
15 borrar_permisos = " DELETE FROM samurai.perm_sist WHERE id_sistema = ? "
16 borrar_permisos2 = " AND observaciones = ?"
17 borrar_permisos3 = " AND id_permiso = ?"