sigesp 0.8.67-220127 → 0.8.68-220203
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/bundles/sigesp.umd.js +40 -6
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/Seguridad.js +1 -1
- package/esm2015/lib/core/models/SSS/userRights.model.js +25 -1
- package/esm2015/lib/sigesp.service.js +17 -7
- package/fesm2015/sigesp.js +40 -6
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Seguridad.d.ts +8 -0
- package/lib/core/models/SSS/userRights.model.d.ts +8 -0
- package/lib/sigesp.service.d.ts +12 -6
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -1274,6 +1274,14 @@ class MRights extends MBasicModel {
|
|
|
1274
1274
|
this.sendEmail = false;
|
|
1275
1275
|
this.print = false;
|
|
1276
1276
|
this.visible = false;
|
|
1277
|
+
this.aprobar = false;
|
|
1278
|
+
this.revaprobar = false;
|
|
1279
|
+
this.anular_sc = false;
|
|
1280
|
+
this.revanular_sc = false;
|
|
1281
|
+
this.contabilizar = false;
|
|
1282
|
+
this.revcontabilizar = false;
|
|
1283
|
+
this.anular_c = false;
|
|
1284
|
+
this.revanular_c = false;
|
|
1277
1285
|
this.children = [];
|
|
1278
1286
|
this.icon = '';
|
|
1279
1287
|
this.componentName = '';
|
|
@@ -1295,6 +1303,14 @@ class MRights extends MBasicModel {
|
|
|
1295
1303
|
this.sendEmail = right.enviar__correo_ == "1";
|
|
1296
1304
|
this.print = right.imprimir == "1";
|
|
1297
1305
|
this.visible = right.visible == "1";
|
|
1306
|
+
this.aprobar = right.aprobar == "1";
|
|
1307
|
+
this.revaprobar = right.revaprobar == "1";
|
|
1308
|
+
this.anular_sc = right.anular_sc == "1";
|
|
1309
|
+
this.revanular_sc = right.revanular_sc == "1";
|
|
1310
|
+
this.contabilizar = right.contabilizar == "1";
|
|
1311
|
+
this.revcontabilizar = right.revcontabilizar == "1";
|
|
1312
|
+
this.anular_c = right.anular_c == "1";
|
|
1313
|
+
this.revanular_c = right.revanular_c == "1";
|
|
1298
1314
|
this.children = right.children.map(e => new MRights(e));
|
|
1299
1315
|
this.icon = right.icono;
|
|
1300
1316
|
this.id = parseInt(right.id.toString());
|
|
@@ -1322,6 +1338,14 @@ class MRights extends MBasicModel {
|
|
|
1322
1338
|
imprimir: this.print ? "1" : "0",
|
|
1323
1339
|
insertar: this.insert ? "1" : "0",
|
|
1324
1340
|
visible: this.visible ? "1" : "0",
|
|
1341
|
+
aprobar: this.aprobar ? "1" : "0",
|
|
1342
|
+
revaprobar: this.revaprobar ? "1" : "0",
|
|
1343
|
+
anular_sc: this.anular_sc ? "1" : "0",
|
|
1344
|
+
revanular_sc: this.revanular_sc ? "1" : "0",
|
|
1345
|
+
contabilizar: this.contabilizar ? "1" : "0",
|
|
1346
|
+
revcontabilizar: this.revcontabilizar ? "1" : "0",
|
|
1347
|
+
anular_c: this.anular_c ? "1" : "0",
|
|
1348
|
+
revanular_c: this.revanular_c ? "1" : "0",
|
|
1325
1349
|
codusu: '---',
|
|
1326
1350
|
id_grupo: this.groupId,
|
|
1327
1351
|
id_usuario: this.userId,
|
|
@@ -5858,6 +5882,16 @@ class SigespService {
|
|
|
5858
5882
|
* @return Json data
|
|
5859
5883
|
* @author Ing. Wilmer Briceno
|
|
5860
5884
|
*/
|
|
5885
|
+
getPerfilNoComponent(id_usuario, sistema, nameComponent) {
|
|
5886
|
+
return this.http.get(`${this.URL}/dao/sss/derechos_usuario_dao.php?id_usuario=${id_usuario}&sistema=${sistema}&namecomponent=${nameComponent}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
5887
|
+
return res;
|
|
5888
|
+
}));
|
|
5889
|
+
}
|
|
5890
|
+
/**
|
|
5891
|
+
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
5892
|
+
* @return Json data
|
|
5893
|
+
* @author Ing. Wilmer Briceno
|
|
5894
|
+
*/
|
|
5861
5895
|
getJsonMenu(id_usuario, sistema) {
|
|
5862
5896
|
return this.http.get(`${this.URL}/dao/sss/menu_dao.php?id_usuario=${id_usuario}&sistema=${sistema}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
5863
5897
|
this.userMenu = res.data;
|
|
@@ -5912,12 +5946,12 @@ class SigespService {
|
|
|
5912
5946
|
* stringbinario : '1011' y posicion es 2, por tanto se tare 0 y es false que representa opcion consultar.
|
|
5913
5947
|
* Estructura string binario:
|
|
5914
5948
|
* Posición :
|
|
5915
|
-
* 0. Administrador 6. Descargar
|
|
5916
|
-
* 1. insertar 7. Ejecutar
|
|
5917
|
-
* 2. Actualizar 8. Enviar
|
|
5918
|
-
* 3. consultar 9. Imprimir
|
|
5919
|
-
* 4. Eliminar 10. Visible
|
|
5920
|
-
* 5. Anular
|
|
5949
|
+
* 0. Administrador 6. Descargar 12. Reversar aprobar 18. Reversar anular contabilizado
|
|
5950
|
+
* 1. insertar 7. Ejecutar 13. Anular.
|
|
5951
|
+
* 2. Actualizar 8. Enviar 14. reversar anular
|
|
5952
|
+
* 3. consultar 9. Imprimir 15. contabilizar
|
|
5953
|
+
* 4. Eliminar 10. Visible 16. reversar contabilizar
|
|
5954
|
+
* 5. Anular 11. Aprobar 17. anular contabilizado
|
|
5921
5955
|
*
|
|
5922
5956
|
* @author Ing. Wilmer Briceño
|
|
5923
5957
|
*/
|