sigesp 0.9.12-20221217 → 0.9.13-20221217

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.
Files changed (34) hide show
  1. package/bundles/sigesp.umd.js +311 -36
  2. package/bundles/sigesp.umd.js.map +1 -1
  3. package/bundles/sigesp.umd.min.js +2 -2
  4. package/bundles/sigesp.umd.min.js.map +1 -1
  5. package/esm2015/lib/core/interfaces/CentroCosto.js +1 -1
  6. package/esm2015/lib/core/interfaces/Configuracion.js +1 -1
  7. package/esm2015/lib/core/interfaces/UsuarioPrefijo.js +1 -1
  8. package/esm2015/lib/core/models/CFG/MPrefijo.model.js +61 -0
  9. package/esm2015/lib/core/models/CFG/Procede.model.js +31 -0
  10. package/esm2015/lib/core/models/CFG/TasaCambio.model.js +34 -0
  11. package/esm2015/lib/core/models/CFG/userPrefix.model.js +43 -0
  12. package/esm2015/lib/core/models/SCG/centroCosto.model.js +50 -6
  13. package/esm2015/lib/core/models/SSS/sistema.js +21 -6
  14. package/esm2015/lib/sigesp.service.js +51 -4
  15. package/esm2015/public-api.js +6 -3
  16. package/esm2015/sigesp.js +1 -1
  17. package/fesm2015/sigesp.js +277 -25
  18. package/fesm2015/sigesp.js.map +1 -1
  19. package/lib/core/interfaces/CentroCosto.d.ts +8 -1
  20. package/lib/core/interfaces/Configuracion.d.ts +32 -0
  21. package/lib/core/interfaces/UsuarioPrefijo.d.ts +8 -5
  22. package/lib/core/models/CFG/MPrefijo.model.d.ts +21 -0
  23. package/lib/core/models/CFG/Procede.model.d.ts +11 -0
  24. package/lib/core/models/CFG/TasaCambio.model.d.ts +12 -0
  25. package/lib/core/models/CFG/userPrefix.model.d.ts +15 -0
  26. package/lib/core/models/SCG/centroCosto.model.d.ts +13 -1
  27. package/lib/core/models/SSS/sistema.d.ts +4 -2
  28. package/lib/sigesp.service.d.ts +30 -2
  29. package/package.json +1 -1
  30. package/public-api.d.ts +8 -4
  31. package/sigesp.d.ts +10 -11
  32. package/sigesp.metadata.json +1 -1
  33. package/esm2015/lib/core/models/SSS/userPrefix.model.js +0 -15
  34. package/lib/core/models/SSS/userPrefix.model.d.ts +0 -11
@@ -326,6 +326,113 @@
326
326
  return MBasicModel;
327
327
  }());
328
328
 
329
+ var MUsuarioPrefijo = /** @class */ (function (_super) {
330
+ __extends(MUsuarioPrefijo, _super);
331
+ function MUsuarioPrefijo(e) {
332
+ var _this = _super.call(this) || this;
333
+ _this.idEmpresa = 0;
334
+ _this.id = 0;
335
+ _this.idUsuario = 0;
336
+ _this.idDtPrefijo = 0;
337
+ _this.prefijo = '';
338
+ _this.procede = '';
339
+ _this.codigoSistema = '';
340
+ _this.codigoUsuario = '';
341
+ _this.estatusActivo = true;
342
+ if (e) {
343
+ _this.idEmpresa = +e.id_empresa;
344
+ _this.id = +e.id;
345
+ _this.idUsuario = +e.id_usuario;
346
+ _this.idDtPrefijo = +e.id_dt_prefijo;
347
+ _this.prefijo = e.prefijo;
348
+ _this.procede = e.procede;
349
+ _this.codigoSistema = e.codsis;
350
+ _this.codigoUsuario = e.codusu;
351
+ _this.estatusActivo = e.estact == '1';
352
+ }
353
+ else {
354
+ _this.isNew = true;
355
+ }
356
+ return _this;
357
+ }
358
+ MUsuarioPrefijo.prototype.dataInterface = function () {
359
+ return {
360
+ id_empresa: this.idEmpresa.toString(),
361
+ id: this.id.toString(),
362
+ id_usuario: this.idUsuario.toString(),
363
+ id_dt_prefijo: this.idDtPrefijo.toString(),
364
+ prefijo: this.prefijo,
365
+ procede: this.procede,
366
+ codsis: this.codigoSistema,
367
+ codusu: this.codigoUsuario,
368
+ estact: this.estatusActivo ? '1' : '0',
369
+ };
370
+ };
371
+ return MUsuarioPrefijo;
372
+ }(MBasicModel));
373
+
374
+ var MPrefijo = /** @class */ (function (_super) {
375
+ __extends(MPrefijo, _super);
376
+ function MPrefijo(e) {
377
+ var _this = _super.call(this) || this;
378
+ _this.idEmpresa = 0;
379
+ _this.id = 0;
380
+ _this.prefijo = '';
381
+ _this.procede = '';
382
+ _this.codsis = '';
383
+ _this.numeroInicial = 0;
384
+ _this.numeroFinal = 0;
385
+ _this.maximaLogitud = 0;
386
+ _this.numeroActual = 0;
387
+ _this.estatusActivo = true;
388
+ _this.estatusInicializarComprobanteSCG = false;
389
+ _this.estatusPrefijoGeneral = false;
390
+ _this.estatusPrefijoFecha = false;
391
+ _this.usuarios = [];
392
+ if (e) {
393
+ _this.idEmpresa = +e.id_empresa;
394
+ _this.id = +e.id;
395
+ _this.prefijo = e.prefijo;
396
+ _this.procede = e.procede;
397
+ _this.codsis = e.codsis;
398
+ _this.numeroInicial = +e.nro_inicial;
399
+ _this.numeroFinal = +e.nro_final;
400
+ _this.maximaLogitud = +e.maxlen;
401
+ _this.numeroActual = +e.nro_actual;
402
+ _this.estatusActivo = e.estact == '1';
403
+ _this.estatusInicializarComprobanteSCG = e.estcompscg == '1';
404
+ _this.estatusPrefijoGeneral = e.estpregral == '1';
405
+ _this.estatusPrefijoFecha = e.estprefec == '1';
406
+ if (_this.usuarios) {
407
+ _this.usuarios = e.usuarios.map(function (e) { return new MUsuarioPrefijo(e); });
408
+ }
409
+ }
410
+ else {
411
+ _this.isNew = true;
412
+ }
413
+ return _this;
414
+ }
415
+ MPrefijo.prototype.dataInterface = function () {
416
+ return {
417
+ id_empresa: this.idEmpresa.toString(),
418
+ id: this.id.toString(),
419
+ prefijo: this.prefijo,
420
+ procede: this.procede,
421
+ codsis: this.codsis,
422
+ nro_inicial: this.numeroInicial.toString(),
423
+ nro_final: this.numeroFinal.toString(),
424
+ maxlen: this.maximaLogitud.toString(),
425
+ nro_actual: this.numeroActual.toString(),
426
+ estact: this.estatusActivo ? '1' : '0',
427
+ estcompscg: this.estatusInicializarComprobanteSCG ? '1' : '0',
428
+ estpregral: this.estatusPrefijoGeneral ? '1' : '0',
429
+ estprefec: this.estatusPrefijoFecha ? '1' : '0',
430
+ usuarios: this.usuarios.map(function (e) { return e.dataInterface(); }),
431
+ };
432
+ };
433
+ return MPrefijo;
434
+ }(MBasicModel));
435
+
329
436
  var MEnterprise = /** @class */ (function (_super) {
330
437
  __extends(MEnterprise, _super);
331
438
  function MEnterprise(e) {
@@ -870,23 +977,6 @@
870
977
  return MProveedor;
871
978
  }());
872
979
 
873
- var MUsuarioPrefijo = /** @class */ (function (_super) {
874
- __extends(MUsuarioPrefijo, _super);
875
- function MUsuarioPrefijo(prefijo) {
876
- var _this = _super.call(this) || this;
877
- if (prefijo) {
878
- _this.codsis = prefijo.codsis;
879
- _this.codusu = prefijo.codusu;
880
- _this.id = prefijo.id;
881
- _this.id_empresa = prefijo.id_empresa;
882
- _this.prefijo = prefijo.prefijo;
883
- _this.procede = prefijo.procede;
884
- }
885
- return _this;
886
- }
887
- return MUsuarioPrefijo;
888
- }(MBasicModel));
889
-
890
980
  var CatalogoComponent = /** @class */ (function () {
891
981
  function CatalogoComponent(dialogRef, dialogData) {
892
982
  this.dialogRef = dialogRef;
@@ -1511,18 +1601,66 @@
1511
1601
  return MAllStructure;
1512
1602
  }());
1513
1603
 
1514
- var MCentroCosto = /** @class */ (function () {
1604
+ var MCentroCosto = /** @class */ (function (_super) {
1605
+ __extends(MCentroCosto, _super);
1515
1606
  function MCentroCosto(centroCosto) {
1516
- this.idEmpresa = 0;
1517
- this.idEnterprise = 0;
1518
- this.idEmpresa = +centroCosto.id_empresa;
1519
- this.idEnterprise = +centroCosto.id_enterprise;
1520
- this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
1521
- this.denominacion = centroCosto.denominacion;
1607
+ var _this = _super.call(this) || this;
1608
+ _this.idEmpresa = 0;
1609
+ _this.idEnterprise = 0;
1610
+ if (centroCosto) {
1611
+ _this.idEmpresa = +centroCosto.id_empresa;
1612
+ _this.idEnterprise = +centroCosto.id_enterprise;
1613
+ _this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
1614
+ _this.denominacion = centroCosto.denominacion;
1615
+ }
1616
+ else {
1617
+ _this.isNew = true;
1618
+ }
1619
+ return _this;
1522
1620
  }
1523
1621
  ;
1622
+ MCentroCosto.prototype.dataInterface = function () {
1623
+ return {
1624
+ id_empresa: this.idEmpresa.toString(),
1625
+ id_enterprise: this.idEnterprise.toString(),
1626
+ codcencos: this.centro,
1627
+ denominacion: this.denominacion,
1628
+ };
1629
+ };
1524
1630
  return MCentroCosto;
1525
- }());
1631
+ }(MBasicModel));
1632
+ var MUsuarioCentroCosto = /** @class */ (function (_super) {
1633
+ __extends(MUsuarioCentroCosto, _super);
1634
+ function MUsuarioCentroCosto(e) {
1635
+ var _this = _super.call(this) || this;
1636
+ _this.idEmpresa = 0;
1637
+ _this.idEnterprise = 0;
1638
+ _this.codigoCentroCosto = '';
1639
+ _this.usuario = '';
1640
+ _this.idDtCentro = 0;
1641
+ if (e) {
1642
+ _this.idEmpresa = +e.id_empresa;
1643
+ _this.idEnterprise = +e.id_enterprise;
1644
+ _this.codigoCentroCosto = e.codcencos;
1645
+ _this.usuario = e.codusu;
1646
+ _this.usuario = e.codusu;
1647
+ }
1648
+ else {
1649
+ _this.isNew = true;
1650
+ }
1651
+ return _this;
1652
+ }
1653
+ MUsuarioCentroCosto.prototype.dataInterface = function () {
1654
+ return {
1655
+ id_empresa: this.idEmpresa.toString(),
1656
+ id_enterprise: this.idEnterprise.toString(),
1657
+ codcencos: this.codigoCentroCosto,
1658
+ codusu: this.usuario,
1659
+ id_dt_cencos: this.idDtCentro.toString(),
1660
+ };
1661
+ };
1662
+ return MUsuarioCentroCosto;
1663
+ }(MBasicModel));
1526
1664
 
1527
1665
  var MFuenteFinanciamiento = /** @class */ (function () {
1528
1666
  function MFuenteFinanciamiento(fuente) {
@@ -1877,20 +2015,36 @@
1877
2015
  return MUserDetail;
1878
2016
  }(MBasicModel));
1879
2017
 
1880
- var MSistema = /** @class */ (function () {
2018
+ var MSistema = /** @class */ (function (_super) {
2019
+ __extends(MSistema, _super);
1881
2020
  function MSistema(sis) {
1882
- this.nombre = null;
1883
- this.codigo = null;
1884
- this.estado = null;
1885
- this.usuarios = [];
1886
- this.eliminados = [];
1887
- this.nombre = sis.nomsis;
1888
- this.codigo = sis.codsis;
1889
- this.estado = sis.estsis;
1890
- this.usuarios = sis.usuarios.map(function (e) { return new MUserDetail(e); });
2021
+ var _this = _super.call(this) || this;
2022
+ _this.nombre = null;
2023
+ _this.codigo = null;
2024
+ _this.estado = null;
2025
+ _this.usuarios = [];
2026
+ _this.eliminados = [];
2027
+ if (sis) {
2028
+ _this.nombre = sis.nomsis;
2029
+ _this.codigo = sis.codsis;
2030
+ _this.estado = sis.estsis;
2031
+ _this.usuarios = sis.usuarios.map(function (e) { return new MUserDetail(e); });
2032
+ }
2033
+ else {
2034
+ _this.isNew = true;
2035
+ }
2036
+ return _this;
1891
2037
  }
2038
+ MSistema.prototype.dataInterface = function () {
2039
+ return {
2040
+ codsis: this.nombre,
2041
+ nomsis: this.codigo,
2042
+ estsis: this.estado,
2043
+ usuarios: this.usuarios.map(function (e) { return e.turnToInterface(); }),
2044
+ };
2045
+ };
1892
2046
  return MSistema;
1893
- }());
2047
+ }(MBasicModel));
1894
2048
 
1895
2049
  var MComprobantePresupuestarioEgresos = /** @class */ (function () {
1896
2050
  function MComprobantePresupuestarioEgresos(comprobante) {
@@ -5768,6 +5922,42 @@
5768
5922
  return MComunidad;
5769
5923
  }());
5770
5924
 
5925
+ var MExchangeRate = /** @class */ (function (_super) {
5926
+ __extends(MExchangeRate, _super);
5927
+ function MExchangeRate(e) {
5928
+ var _this = _super.call(this) || this;
5929
+ _this.codigoMoneda = 0;
5930
+ _this.fechaDesde = '1900-01-01';
5931
+ _this.horaCambioTasa = '';
5932
+ _this.fechaHasta = '1900-01-01';
5933
+ _this.montoTasa = 0;
5934
+ _this.denominacionMoneda = '';
5935
+ if (e) {
5936
+ _this.codigoMoneda = +e.codmon;
5937
+ _this.fechaDesde = e.fectasdes;
5938
+ _this.horaCambioTasa = e.horcamtas;
5939
+ _this.fechaHasta = e.fectashas;
5940
+ _this.montoTasa = +e.montascam;
5941
+ _this.denominacionMoneda = e.denmon;
5942
+ }
5943
+ else {
5944
+ _this.isNew = true;
5945
+ }
5946
+ return _this;
5947
+ }
5948
+ MExchangeRate.prototype.dataInterface = function () {
5949
+ return {
5950
+ codmon: this.codigoMoneda.toString(),
5951
+ fectasdes: this.fechaDesde,
5952
+ horcamtas: this.horaCambioTasa,
5953
+ fectashas: this.fechaHasta,
5954
+ montascam: this.montoTasa.toString(),
5955
+ denmon: this.denominacionMoneda,
5956
+ };
5957
+ };
5958
+ return MExchangeRate;
5959
+ }(MBasicModel));
5960
+
5771
5961
  var SigespService = /** @class */ (function () {
5772
5962
  // public URL: string = "http://192.168.1.67/sigesp_php";
5773
5963
  // usuarioActivo: MUsuario = {
@@ -6282,6 +6472,14 @@
6282
6472
  return res;
6283
6473
  }));
6284
6474
  };
6475
+ SigespService.prototype.getUserCostCenters = function (codigo) {
6476
+ return this.http.get(this.URL + "/dao/scg/control_numero_usuario_dao.php?codigo=" + codigo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6477
+ if (res.success) {
6478
+ res.data = res.data.map(function (element) { return new MUsuarioCentroCosto(element); });
6479
+ }
6480
+ return res;
6481
+ }));
6482
+ };
6285
6483
  /**
6286
6484
  * @description Abre el dialog de checkks
6287
6485
  * @param columns Columnas que va a tener la tabla
@@ -6652,6 +6850,16 @@
6652
6850
  SigespService.prototype.getMonedas = function (tipo, id) {
6653
6851
  return this.http.get(this.URL + "/dao/cfg/monedas_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) { return resp.map(function (element) { return new MMoneda(element); }); }));
6654
6852
  };
6853
+ /**
6854
+ * @Description: Obtiene la tasa de cambio
6855
+ * @param tipo string
6856
+ * @param id codigo moneda
6857
+ * @returns array/null
6858
+ */
6859
+ SigespService.prototype.getCurrencyExchangeRate = function (tipo, id) {
6860
+ if (tipo === void 0) { tipo = null; }
6861
+ return this.http.get(this.URL + "/dao/cfg/sigesp_tasacambio_moneda.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) { return resp.map(function (element) { return new MExchangeRate(element); }); }));
6862
+ };
6655
6863
  /**
6656
6864
  * @description Abre el dialog de las las cuentas contables (Cuentas Institucionales)
6657
6865
  * @return Promise<McuentaInstitucional>
@@ -6940,12 +7148,25 @@
6940
7148
  * @author Carlos Albornoz
6941
7149
  * @modificado 10-01-2022
6942
7150
  * @param pais: Codigo del pais
7151
+ * @param estado: Codigo del estado
7152
+
6943
7153
 
6944
7154
  */
6945
7155
  SigespService.prototype.getCity = function (pais, estado) {
6946
7156
  return this.http.get(this.URL + "/dao/cfg/ciudades_dao.php?pais=" + pais + "&estado=" + estado, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MCity(e); }); }));
6947
7157
  };
6948
7158
  /**
7159
+ * @description Obtiene las ciudades
7160
+ * @return Observable<MParish>
7161
+ * @author Dimaly Crespo
7162
+ * @modificado 10-01-2022
7163
+ * @param pais: Codigo del pais
7164
+
7165
+ */
7166
+ SigespService.prototype.getCommunities = function (pais, estado, municipio, parroquia) {
7167
+ return this.http.get(this.URL + "/dao/cfg/comunidades_dao.php?pais=" + pais + "&estado=" + estado + "&municipio=" + municipio + "&parroquia=" + parroquia, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MCommunity(e); }); }));
7168
+ };
7169
+ /**
6949
7170
  * @description Obtiene los sistemas activas
6950
7171
  * @return Observable<MSistema>
6951
7172
  * @author Carlos Albornoz
@@ -7052,6 +7273,23 @@
7052
7273
  return res;
7053
7274
  }));
7054
7275
  };
7276
+ /**
7277
+ * @description Obtiene los pefijo
7278
+ * @param procede De que módulo procede
7279
+ * @param codsis Código del sistema
7280
+ * @return Observable<MUsuarioPrefijo[]>
7281
+ * @author DimalyCrespo 17-12-2022
7282
+ */
7283
+ SigespService.prototype.getPrefix = function (filter, code) {
7284
+ if (filter === void 0) { filter = null; }
7285
+ if (code === void 0) { code = null; }
7286
+ return this.http.get(this.URL + "/dao/cfg/control_numero_dao.php" + (filter ? "?filter=" + filter + "&code=" + code : ''), { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
7287
+ if (res.success) {
7288
+ res.data = res.data.map(function (e) { return new MPrefijo(e); });
7289
+ }
7290
+ return res;
7291
+ }));
7292
+ };
7055
7293
  /**
7056
7294
  * @description Abre el dialog para buscar los proveedores
7057
7295
  * @return Promise<MProveedor>
@@ -8120,6 +8358,39 @@
8120
8358
  },] }
8121
8359
  ];
8122
8360
 
8361
+ var MProcedencia = /** @class */ (function (_super) {
8362
+ __extends(MProcedencia, _super);
8363
+ function MProcedencia(e) {
8364
+ var _this = _super.call(this) || this;
8365
+ _this.procede = '';
8366
+ _this.codigoSistema = '';
8367
+ _this.operacion = '';
8368
+ _this.descripcion = '';
8369
+ _this.estatus = 1;
8370
+ if (e) {
8371
+ _this.procede = e.procede;
8372
+ _this.codigoSistema = e.codsis;
8373
+ _this.operacion = e.opeproc;
8374
+ _this.descripcion = e.desproc;
8375
+ _this.estatus = +e.estdel;
8376
+ }
8377
+ else {
8378
+ _this.isNew = true;
8379
+ }
8380
+ return _this;
8381
+ }
8382
+ MProcedencia.prototype.dataInterface = function () {
8383
+ return {
8384
+ procede: this.procede,
8385
+ codsis: this.codigoSistema,
8386
+ opeproc: this.operacion,
8387
+ desproc: this.descripcion,
8388
+ estdel: this.estatus.toString(),
8389
+ };
8390
+ };
8391
+ return MProcedencia;
8392
+ }(MBasicModel));
8393
+
8123
8394
  var MAccountMarriage = /** @class */ (function () {
8124
8395
  function MAccountMarriage(marriage) {
8125
8396
  this.idEmpresa = null;
@@ -13947,6 +14218,7 @@
13947
14218
  exports.MEstructuraPresupuestariaTwo = MEstructuraPresupuestariaTwo;
13948
14219
  exports.MEstudiosConcursantes = MEstudiosConcursantes;
13949
14220
  exports.MEstudiosRealizados = MEstudiosRealizados;
14221
+ exports.MExchangeRate = MExchangeRate;
13950
14222
  exports.MExperienciaLaboral = MExperienciaLaboral;
13951
14223
  exports.MFamiliaConcursante = MFamiliaConcursante;
13952
14224
  exports.MFamiliares = MFamiliares;
@@ -13984,6 +14256,7 @@
13984
14256
  exports.MPlanHorario = MPlanHorario;
13985
14257
  exports.MPlanUnicoCuenta = MPlanUnicoCuenta;
13986
14258
  exports.MPlantillasConstancia = MPlantillasConstancia;
14259
+ exports.MPrefijo = MPrefijo;
13987
14260
  exports.MPrestacionesAntiguedad = MPrestacionesAntiguedad;
13988
14261
  exports.MPrestamo = MPrestamo;
13989
14262
  exports.MPrestamoAmortizacion = MPrestamoAmortizacion;
@@ -13992,6 +14265,7 @@
13992
14265
  exports.MPrevioEvaluacionDt = MPrevioEvaluacionDt;
13993
14266
  exports.MPrimaGrados = MPrimaGrados;
13994
14267
  exports.MPrimasConcepto = MPrimasConcepto;
14268
+ exports.MProcedencia = MProcedencia;
13995
14269
  exports.MProveedor = MProveedor;
13996
14270
  exports.MProviderBankAccount = MProviderBankAccount;
13997
14271
  exports.MProviderBeneficiary = MProviderBeneficiary;
@@ -14032,6 +14306,7 @@
14032
14306
  exports.MUserDetail = MUserDetail;
14033
14307
  exports.MUserPermit = MUserPermit;
14034
14308
  exports.MUsuario = MUsuario;
14309
+ exports.MUsuarioCentroCosto = MUsuarioCentroCosto;
14035
14310
  exports.MUsuarioPrefijo = MUsuarioPrefijo;
14036
14311
  exports.MVacacionesPersonal = MVacacionesPersonal;
14037
14312
  exports.Meses = Meses;