utn-cli 2.0.22 → 2.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -677,11 +677,11 @@ class Miscelaneo {
|
|
|
677
677
|
`SegundoApellido`", [await this.perfilGeneralId()]);
|
|
678
678
|
}
|
|
679
679
|
|
|
680
|
-
async rolPermisoIdDelMenuPadre() {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
680
|
+
// async rolPermisoIdDelMenuPadre() {
|
|
681
|
+
// const rolPermisoIdDelMenuPadre = await ejecutarConsultaSIGU("SELECT `RolPermisoId` FROM `SIGU`.`SIGU_RolesPermisos` WHERE\
|
|
682
|
+
// `PermisoId` = (SELECT `PermisoId` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = ?)", [this.MenuPadre]);
|
|
683
|
+
// return rolPermisoIdDelMenuPadre[0]['RolPermisoId'];
|
|
684
|
+
// }
|
|
685
685
|
|
|
686
686
|
async getUUID() {
|
|
687
687
|
const Identificador = await ejecutarConsultaSIGU("SELECT `Identificador` FROM `SIGU`.`SIGU_Repositorios` WHERE `Repositorio` = ?", [this.NombreDelRepositorioDelBackend]);
|
|
@@ -693,15 +693,15 @@ class Miscelaneo {
|
|
|
693
693
|
return PerfilGeneralId[0]['PerfilGeneralId'];
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
async rolIdDelModulo() {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
}
|
|
696
|
+
// async rolIdDelModulo() {
|
|
697
|
+
// const RolId = await ejecutarConsultaSIGU("SELECT `RolId` FROM `SIGU`.`SIGU_Roles` WHERE `Descripcion` = ?", [this.NombreDelRol]);
|
|
698
|
+
// return RolId[0]['RolId'];
|
|
699
|
+
// }
|
|
700
700
|
|
|
701
|
-
async permisoIdDelModulo() {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}
|
|
701
|
+
// async permisoIdDelModulo() {
|
|
702
|
+
// const PermisoId = await ejecutarConsultaSIGU("SELECT `PermisoId` FROM `SIGU`.`SIGU_Permisos` WHERE `Nombre` = ?", [this.NombreDelPermiso]);
|
|
703
|
+
// return PermisoId[0]['PermisoId'];
|
|
704
|
+
// }
|
|
705
705
|
|
|
706
706
|
async rolPermisoIdDelModulo() {
|
|
707
707
|
this.RolId = await this.rolIdDelModulo();
|
|
@@ -711,15 +711,15 @@ class Miscelaneo {
|
|
|
711
711
|
return RolPermisoId[0]['RolPermisoId'];
|
|
712
712
|
}
|
|
713
713
|
|
|
714
|
-
async idDelMenuPadre() {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
}
|
|
714
|
+
// async idDelMenuPadre() {
|
|
715
|
+
// const IdDelMenuPadre = await ejecutarConsultaSIGU("SELECT `MenuId` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = ?", [this.MenuPadre]);
|
|
716
|
+
// return IdDelMenuPadre[0]['MenuId'];
|
|
717
|
+
// }
|
|
718
718
|
|
|
719
|
-
async idDelMenuDelModulo() {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}
|
|
719
|
+
// async idDelMenuDelModulo() {
|
|
720
|
+
// const IdDelMenuDelModulo = await ejecutarConsultaSIGU("SELECT `MenuId` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = ?", [this.NombreCanonicoDelModulo]);
|
|
721
|
+
// return IdDelMenuDelModulo[0]['MenuId'];
|
|
722
|
+
// }
|
|
723
723
|
|
|
724
724
|
generarEnlace(Modulo) {
|
|
725
725
|
return ((process.env.ENV || 'local') === 'production' ? 'https' : 'http')
|
|
@@ -742,71 +742,71 @@ class Miscelaneo {
|
|
|
742
742
|
// Creación del enlace a acceso
|
|
743
743
|
this.EnlaceDeAcceso = this.generarEnlace('accesov2-frontend');
|
|
744
744
|
|
|
745
|
-
// Creación del Rol
|
|
746
|
-
const RolId = await ejecutarConsultaSIGU("SELECT (MAX(`RolId`) + 1) AS `RolId` FROM `SIGU`.`SIGU_Roles` WHERE `RolId` < 1000");
|
|
747
|
-
await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Roles` VALUES (?, ?, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)", [RolId[0]['RolId'], this.NombreDelRol]);
|
|
748
|
-
this.RolId = await this.rolIdDelModulo();
|
|
749
|
-
|
|
750
|
-
// Creación del Módulo
|
|
751
|
-
await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Modulos` VALUES (?, ?, ?, ?, ?, 1, ?, ?\
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
// Creación del Permiso
|
|
760
|
-
await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Permisos` VALUES (NULL, ?, ?, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
|
|
761
|
-
|
|
762
|
-
this.PermisoId = await this.permisoIdDelModulo();
|
|
745
|
+
// // Creación del Rol
|
|
746
|
+
// const RolId = await ejecutarConsultaSIGU("SELECT (MAX(`RolId`) + 1) AS `RolId` FROM `SIGU`.`SIGU_Roles` WHERE `RolId` < 1000");
|
|
747
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Roles` VALUES (?, ?, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)", [RolId[0]['RolId'], this.NombreDelRol]);
|
|
748
|
+
// this.RolId = await this.rolIdDelModulo();
|
|
749
|
+
|
|
750
|
+
// // Creación del Módulo
|
|
751
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Modulos` VALUES (?, ?, ?, ?, ?, 1, ?, ?\
|
|
752
|
+
// , (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = '111050570')\
|
|
753
|
+
// , (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = '111050570')\
|
|
754
|
+
// , (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = '111050570')\
|
|
755
|
+
// , ?, '1.0.0', NOW(4), 'ANS', '/', ?, '1', NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
|
|
756
|
+
// , [this.NombreDelModulo, this.DescripcionDelModulo, this.NombreCanonicoDelModulo, this.TipoDeCard, this.IconoDelModulo
|
|
757
|
+
// , this.ColorDelModulo, this.RolId, this.CorreoParaReportes, this.Repositorios]);
|
|
758
|
+
|
|
759
|
+
// // Creación del Permiso
|
|
760
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Permisos` VALUES (NULL, ?, ?, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
|
|
761
|
+
// , [this.NombreDelPermiso, this.DescripcionDelPermiso]);
|
|
762
|
+
// this.PermisoId = await this.permisoIdDelModulo();
|
|
763
|
+
|
|
764
|
+
// // Creación del Rol-Permiso
|
|
765
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_RolesPermisos` VALUES (NULL, ?, ?, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
|
|
766
|
+
// , [this.RolId, this.PermisoId]);
|
|
767
|
+
// this.RolPermisoId = await this.rolPermisoIdDelModulo();
|
|
768
|
+
|
|
769
|
+
// // Asignación del permiso a dvillalobos
|
|
770
|
+
// const perfilGeneralId = await this.perfilGeneralId();
|
|
771
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_RolesPersonas` VALUES (?, ?,\
|
|
772
|
+
// (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = '111050570'), NOW(4), USER())\
|
|
773
|
+
// ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
|
|
774
|
+
// , [this.RolPermisoId, perfilGeneralId]);
|
|
775
|
+
|
|
776
|
+
// // Creación de los menús
|
|
777
|
+
// this.IdDelMenuPadre = await this.idDelMenuPadre();
|
|
778
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Menu` VALUES (NULL, ?, ?, ?, 'Módulo', 'opciones', ?\
|
|
779
|
+
// , ?, ?, 0, 1, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
|
|
780
|
+
// , [this.PermisoId, this.NombreCanonicoDelModulo, this.DescripcionDelModulo, this.NombreCanonicoDelModulo, this.Enlace, this.IdDelMenuPadre]);
|
|
781
|
+
// this.IdDelMenuDelModulo = await this.idDelMenuDelModulo();
|
|
782
|
+
|
|
783
|
+
// let IdDelMenuAreas = await ejecutarConsultaSIGU("SELECT `MenuId` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = 'Menú principal de áreas'\
|
|
784
|
+
// AND `Padre` = ?", [this.IdDelMenuDelModulo]);
|
|
785
|
+
// if (IdDelMenuAreas.length === 0) {
|
|
786
|
+
// IdDelMenuAreas = await ejecutarConsultaSIGU("SELECT MAX(`MenuId`) + 1 AS `MenuId` FROM `SIGU`.`SIGU_Menu`");
|
|
787
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Menu` VALUES (?, ?, 'Menú principal de áreas', 'Regreso al menú principal de áreas', 'Opción Menú', 'inicio'\
|
|
788
|
+
// , NULL, '/modulos', ?, 0, 1, NOW(4), USER())"
|
|
789
|
+
// , [IdDelMenuAreas[0]['MenuId'], this.PermisoId, this.IdDelMenuDelModulo]);
|
|
790
|
+
// }
|
|
763
791
|
|
|
764
|
-
//
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
792
|
+
// let IdDelMenuRegreso1 = await ejecutarConsultaSIGU("SELECT `MenuId` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = CONCAT('Regreso a ', ?)\
|
|
793
|
+
// AND `Padre` = ?", [this.MenuPadre, this.IdDelMenuDelModulo]);
|
|
794
|
+
// if (IdDelMenuRegreso1.length === 0) {
|
|
795
|
+
// IdDelMenuRegreso1 = await ejecutarConsultaSIGU("SELECT MAX(`MenuId`) + 1 AS `MenuId` FROM `SIGU`.`SIGU_Menu`");
|
|
796
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Menu` VALUES (?, ?, CONCAT('Regreso a ', ?), CONCAT('Regreso a ', ?), 'Opción Menú', 'opciones'\
|
|
797
|
+
// , NULL, CONCAT('/modulos/', ?), ?, 0, 1, NOW(4), USER())"
|
|
798
|
+
// , [IdDelMenuRegreso1[0]['MenuId'], this.PermisoId, this.MenuPadre, this.MenuPadre, this.IdDelMenuPadre, this.IdDelMenuDelModulo]);
|
|
799
|
+
// }
|
|
768
800
|
|
|
769
|
-
//
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
//
|
|
777
|
-
|
|
778
|
-
await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Menu` VALUES (NULL, ?, ?, ?, 'Módulo', 'opciones', ?\
|
|
779
|
-
, ?, ?, 0, 1, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
|
|
780
|
-
, [this.PermisoId, this.NombreCanonicoDelModulo, this.DescripcionDelModulo, this.NombreCanonicoDelModulo, this.Enlace, this.IdDelMenuPadre]);
|
|
781
|
-
this.IdDelMenuDelModulo = await this.idDelMenuDelModulo();
|
|
782
|
-
|
|
783
|
-
let IdDelMenuAreas = await ejecutarConsultaSIGU("SELECT `MenuId` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = 'Menú principal de áreas'\
|
|
784
|
-
AND `Padre` = ?", [this.IdDelMenuDelModulo]);
|
|
785
|
-
if (IdDelMenuAreas.length === 0) {
|
|
786
|
-
IdDelMenuAreas = await ejecutarConsultaSIGU("SELECT MAX(`MenuId`) + 1 AS `MenuId` FROM `SIGU`.`SIGU_Menu`");
|
|
787
|
-
await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Menu` VALUES (?, ?, 'Menú principal de áreas', 'Regreso al menú principal de áreas', 'Opción Menú', 'inicio'\
|
|
788
|
-
, NULL, '/modulos', ?, 0, 1, NOW(4), USER())"
|
|
789
|
-
, [IdDelMenuAreas[0]['MenuId'], this.PermisoId, this.IdDelMenuDelModulo]);
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
let IdDelMenuRegreso1 = await ejecutarConsultaSIGU("SELECT `MenuId` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = CONCAT('Regreso a ', ?)\
|
|
793
|
-
AND `Padre` = ?", [this.MenuPadre, this.IdDelMenuDelModulo]);
|
|
794
|
-
if (IdDelMenuRegreso1.length === 0) {
|
|
795
|
-
IdDelMenuRegreso1 = await ejecutarConsultaSIGU("SELECT MAX(`MenuId`) + 1 AS `MenuId` FROM `SIGU`.`SIGU_Menu`");
|
|
796
|
-
await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Menu` VALUES (?, ?, CONCAT('Regreso a ', ?), CONCAT('Regreso a ', ?), 'Opción Menú', 'opciones'\
|
|
797
|
-
, NULL, CONCAT('/modulos/', ?), ?, 0, 1, NOW(4), USER())"
|
|
798
|
-
, [IdDelMenuRegreso1[0]['MenuId'], this.PermisoId, this.MenuPadre, this.MenuPadre, this.IdDelMenuPadre, this.IdDelMenuDelModulo]);
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
let IdDelMenuRegreso2 = await ejecutarConsultaSIGU("SELECT `MenuId` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = CONCAT('Regreso a ', ?)\
|
|
802
|
-
AND `Padre` = ?", [this.NombreCanonicoDelModulo, this.IdDelMenuDelModulo]);
|
|
803
|
-
if (IdDelMenuRegreso2.length === 0) {
|
|
804
|
-
IdDelMenuRegreso2 = await ejecutarConsultaSIGU("SELECT MAX(`MenuId`) + 1 AS `MenuId` FROM `SIGU`.`SIGU_Menu`");
|
|
805
|
-
await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Menu` VALUES (?, ?, CONCAT('Regreso a ', ?), CONCAT('Regreso a ', ?), 'Opción Menú', 'menus'\
|
|
806
|
-
, NULL, CONCAT('/enlace/', ?, '/', ?), ?, 0, 1, NOW(4), USER())"
|
|
807
|
-
, [IdDelMenuRegreso2[0]['MenuId'], this.PermisoId, this.NombreCanonicoDelModulo, this.NombreCanonicoDelModulo
|
|
808
|
-
, this.IdDelMenuDelModulo, Buffer.from(this.Enlace.split('//')[1]).toString('base64'), this.IdDelMenuDelModulo]);
|
|
809
|
-
}
|
|
801
|
+
// let IdDelMenuRegreso2 = await ejecutarConsultaSIGU("SELECT `MenuId` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = CONCAT('Regreso a ', ?)\
|
|
802
|
+
// AND `Padre` = ?", [this.NombreCanonicoDelModulo, this.IdDelMenuDelModulo]);
|
|
803
|
+
// if (IdDelMenuRegreso2.length === 0) {
|
|
804
|
+
// IdDelMenuRegreso2 = await ejecutarConsultaSIGU("SELECT MAX(`MenuId`) + 1 AS `MenuId` FROM `SIGU`.`SIGU_Menu`");
|
|
805
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_Menu` VALUES (?, ?, CONCAT('Regreso a ', ?), CONCAT('Regreso a ', ?), 'Opción Menú', 'menus'\
|
|
806
|
+
// , NULL, CONCAT('/enlace/', ?, '/', ?), ?, 0, 1, NOW(4), USER())"
|
|
807
|
+
// , [IdDelMenuRegreso2[0]['MenuId'], this.PermisoId, this.NombreCanonicoDelModulo, this.NombreCanonicoDelModulo
|
|
808
|
+
// , this.IdDelMenuDelModulo, Buffer.from(this.Enlace.split('//')[1]).toString('base64'), this.IdDelMenuDelModulo]);
|
|
809
|
+
// }
|
|
810
810
|
|
|
811
811
|
// Creación del UUID del módulo
|
|
812
812
|
const uuidTemporal = await ejecutarConsultaSIGU("SELECT UUID() AS `UUID`");
|
|
@@ -822,33 +822,33 @@ class Miscelaneo {
|
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
// Asginación inicial de permisos
|
|
826
|
-
if (this.UsuariosConAccesoInicial.length > 0) {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
}
|
|
825
|
+
// // Asginación inicial de permisos
|
|
826
|
+
// if (this.UsuariosConAccesoInicial.length > 0) {
|
|
827
|
+
// const rolPermisoIdDelPadre = await this.rolPermisoIdDelMenuPadre();
|
|
828
|
+
// this.UsuariosConAccesoInicial.forEach(async (dato) => {
|
|
829
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_RolesPersonas` VALUES (?, ?,\
|
|
830
|
+
// (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
|
|
831
|
+
// ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
|
|
832
|
+
// , [this.RolPermisoId, perfilGeneralId, dato]);
|
|
833
|
+
// await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_RolesPersonas` VALUES (?, ?,\
|
|
834
|
+
// (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
|
|
835
|
+
// ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
|
|
836
|
+
// , [rolPermisoIdDelPadre, perfilGeneralId, dato]);
|
|
837
|
+
// });
|
|
838
|
+
// }
|
|
839
839
|
|
|
840
|
-
// Impresión de la información de registro
|
|
841
|
-
console.log(new Date());
|
|
842
|
-
console.log(`Módulo registrado correctamente en SIGU. Módulo: ${this.NombreCanonicoDelModulo}`);
|
|
843
|
-
console.log(`Identificador de rol a utilizar (RolId): ${this.RolId}`);
|
|
844
|
-
console.log(`Identificador de permiso a utilizar (PermisoId): ${this.PermisoId}`);
|
|
845
|
-
console.log(`Identificador de Rol-Permiso a utilizar (RolPermisoId): ${this.RolPermisoId}`);
|
|
846
|
-
console.log(`Identificador del menú padre (MenuId del padre): ${this.IdDelMenuPadre}`);
|
|
847
|
-
console.log(`Identificador del menú (MenuId del módulo): ${this.IdDelMenuDelModulo}`);
|
|
848
|
-
// console.log(`Identificador del flujo de aprobación: ${await this.idDelFlujoDeAprobacion()}`);
|
|
849
|
-
console.log(`Enlace del módulo: ${this.Enlace}`);
|
|
850
|
-
this.creacionDeldirectorioParaElAlmacenamientoDeArchivos();
|
|
851
|
-
console.log(`Versión del núcleo: ${this.versionDelNucleo()}`);
|
|
840
|
+
// // Impresión de la información de registro
|
|
841
|
+
// console.log(new Date());
|
|
842
|
+
// console.log(`Módulo registrado correctamente en SIGU. Módulo: ${this.NombreCanonicoDelModulo}`);
|
|
843
|
+
// console.log(`Identificador de rol a utilizar (RolId): ${this.RolId}`);
|
|
844
|
+
// console.log(`Identificador de permiso a utilizar (PermisoId): ${this.PermisoId}`);
|
|
845
|
+
// console.log(`Identificador de Rol-Permiso a utilizar (RolPermisoId): ${this.RolPermisoId}`);
|
|
846
|
+
// console.log(`Identificador del menú padre (MenuId del padre): ${this.IdDelMenuPadre}`);
|
|
847
|
+
// console.log(`Identificador del menú (MenuId del módulo): ${this.IdDelMenuDelModulo}`);
|
|
848
|
+
// // console.log(`Identificador del flujo de aprobación: ${await this.idDelFlujoDeAprobacion()}`);
|
|
849
|
+
// console.log(`Enlace del módulo: ${this.Enlace}`);
|
|
850
|
+
// this.creacionDeldirectorioParaElAlmacenamientoDeArchivos();
|
|
851
|
+
// console.log(`Versión del núcleo: ${this.versionDelNucleo()}`);
|
|
852
852
|
|
|
853
853
|
// Creación de variables de entorno
|
|
854
854
|
process.env.SERVIDORSMTP = await this.servidorSMTP();
|
|
@@ -1916,12 +1916,12 @@ class Miscelaneo {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
1918
|
|
|
1919
|
-
async obtenerEnlaceDelModuloPadre() {
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
}
|
|
1919
|
+
// async obtenerEnlaceDelModuloPadre() {
|
|
1920
|
+
// const Ruta = await ejecutarConsultaSIGU("SELECT CONCAT('modulos/', `MenuId`) AS `Ruta` FROM `SIGU`.`SIGU_Menu`\
|
|
1921
|
+
// WHERE `MenuId` = (SELECT `Padre` FROM `SIGU`.`SIGU_Menu` WHERE `Nombre` = ?)"
|
|
1922
|
+
// , [this.NombreCanonicoDelModulo]);
|
|
1923
|
+
// return await this.obtenerEnlaceDePortal() + "/" + Ruta[0]['Ruta'];
|
|
1924
|
+
// }
|
|
1925
1925
|
|
|
1926
1926
|
async obtenerEnlaceDePortal() {
|
|
1927
1927
|
return this.EnlaceDePortal;
|