sigesp 0.8.64-220121 → 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.
@@ -141,10 +141,10 @@ class MPersonalNomina extends MBasicModel {
141
141
  this.horaAdicional2 = 0;
142
142
  this.estatusMPPPE = false;
143
143
  this.montoSaldoGrado = 0;
144
- this.salarioPersonal = 0;
145
144
  this.apellidoPersonal = '';
146
145
  this.denominacionEstatus = '';
147
146
  this.nombreCompleto = '';
147
+ this.nominaRac = 0;
148
148
  if (e) {
149
149
  this.idEmpresa = parseInt(e.id_empresa);
150
150
  this.idPersonalNomina = parseInt(e.id_personalnomina);
@@ -219,13 +219,18 @@ class MPersonalNomina extends MBasicModel {
219
219
  this.horaAdicional2 = parseFloat(e.horadi2);
220
220
  this.estatusMPPPE = e.estmpppe == '1' ? true : false;
221
221
  this.montoSaldoGrado = parseFloat(e.monsalgra);
222
- this.montoSaldoGrado = parseFloat(e.monsalgra);
223
222
  this.denominacionEstatus = e.staper == '1' ? 'ACTIVO' :
224
223
  this.denominacionEstatus = e.staper == '2' ? 'VACACIONES' :
225
224
  this.denominacionEstatus = e.staper == '3' ? 'EGRESADO' : 'SUSPENDIDO';
226
225
  this.apellidoPersonal = e.apeper;
227
226
  this.nombreCompleto = this.nombrePersonal + ' ' + this.apellidoPersonal;
228
- if (this.idTabulador > 0) {
227
+ this.nominaRac = parseInt(e.racnom);
228
+ if (this.nominaRac == 0) {
229
+ this.idTabulador = 0;
230
+ this.codigoPaso = '0';
231
+ this.codigoGrado = '0';
232
+ }
233
+ if (this.idTabulador > 0 && this.nominaRac == 1) {
229
234
  this.sueldoPersonal = this.montoSaldoGrado;
230
235
  }
231
236
  if (this.idAgencia > 0) {
@@ -244,8 +249,13 @@ class MPersonalNomina extends MBasicModel {
244
249
  }
245
250
  }
246
251
  dataInterface() {
247
- if (this.idTabulador > 0) {
248
- this.sueldoPersonal = this.salarioPersonal;
252
+ if (this.idTabulador > 0 && this.nominaRac == 1) {
253
+ this.sueldoPersonal = this.montoSaldoGrado;
254
+ }
255
+ else {
256
+ this.idTabulador = 0;
257
+ this.codigoPaso = '0';
258
+ this.codigoGrado = '0';
249
259
  }
250
260
  return {
251
261
  id_empresa: this.idEmpresa.toString(),
@@ -413,6 +423,7 @@ class MUsuario {
413
423
  this.id = parseInt(user.id_usuario);
414
424
  this.interface = user;
415
425
  this.nomina = parseInt(user.nomina);
426
+ this.periodo = parseInt(user.periodo);
416
427
  }
417
428
  getInterface() {
418
429
  return this.interface;
@@ -1263,6 +1274,14 @@ class MRights extends MBasicModel {
1263
1274
  this.sendEmail = false;
1264
1275
  this.print = false;
1265
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;
1266
1285
  this.children = [];
1267
1286
  this.icon = '';
1268
1287
  this.componentName = '';
@@ -1284,6 +1303,14 @@ class MRights extends MBasicModel {
1284
1303
  this.sendEmail = right.enviar__correo_ == "1";
1285
1304
  this.print = right.imprimir == "1";
1286
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";
1287
1314
  this.children = right.children.map(e => new MRights(e));
1288
1315
  this.icon = right.icono;
1289
1316
  this.id = parseInt(right.id.toString());
@@ -1311,6 +1338,14 @@ class MRights extends MBasicModel {
1311
1338
  imprimir: this.print ? "1" : "0",
1312
1339
  insertar: this.insert ? "1" : "0",
1313
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",
1314
1349
  codusu: '---',
1315
1350
  id_grupo: this.groupId,
1316
1351
  id_usuario: this.userId,
@@ -3109,7 +3144,7 @@ class MPeriodoNomina extends MBasicModel {
3109
3144
  else if (this.calculado && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 1) {
3110
3145
  return 'Aporte Contabilizado';
3111
3146
  }
3112
- else if (!this.calculado && !this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
3147
+ else if (!this.calculado && this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
3113
3148
  return 'Pre-Calculada';
3114
3149
  }
3115
3150
  }
@@ -5847,6 +5882,16 @@ class SigespService {
5847
5882
  * @return Json data
5848
5883
  * @author Ing. Wilmer Briceno
5849
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
+ */
5850
5895
  getJsonMenu(id_usuario, sistema) {
5851
5896
  return this.http.get(`${this.URL}/dao/sss/menu_dao.php?id_usuario=${id_usuario}&sistema=${sistema}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
5852
5897
  this.userMenu = res.data;
@@ -5901,12 +5946,12 @@ class SigespService {
5901
5946
  * stringbinario : '1011' y posicion es 2, por tanto se tare 0 y es false que representa opcion consultar.
5902
5947
  * Estructura string binario:
5903
5948
  * Posición :
5904
- * 0. Administrador 6. Descargar
5905
- * 1. insertar 7. Ejecutar
5906
- * 2. Actualizar 8. Enviar
5907
- * 3. consultar 9. Imprimir
5908
- * 4. Eliminar 10. Visible
5909
- * 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
5910
5955
  *
5911
5956
  * @author Ing. Wilmer Briceño
5912
5957
  */