sigesp 0.9.12-20221217 → 0.9.14-20221218
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 +346 -52
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +2 -2
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/CentroCosto.js +1 -1
- package/esm2015/lib/core/interfaces/Configuracion.js +1 -1
- package/esm2015/lib/core/interfaces/Moneda.js +1 -1
- package/esm2015/lib/core/interfaces/UsuarioPrefijo.js +1 -1
- package/esm2015/lib/core/models/CFG/MPrefijo.model.js +61 -0
- package/esm2015/lib/core/models/CFG/Procede.model.js +31 -0
- package/esm2015/lib/core/models/CFG/TasaCambio.model.js +37 -0
- package/esm2015/lib/core/models/CFG/moneda.model.js +42 -0
- package/esm2015/lib/core/models/CFG/userPrefix.model.js +43 -0
- package/esm2015/lib/core/models/SCG/centroCosto.model.js +50 -6
- package/esm2015/lib/core/models/SPG/configurationSPG.model.js +2 -2
- package/esm2015/lib/core/models/SSS/sistema.js +21 -6
- package/esm2015/lib/sigesp.service.js +52 -5
- package/esm2015/lib/validation.service.js +1 -1
- package/esm2015/public-api.js +7 -4
- package/esm2015/sigesp.js +1 -1
- package/fesm2015/sigesp.js +308 -39
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/CentroCosto.d.ts +8 -1
- package/lib/core/interfaces/Configuracion.d.ts +33 -0
- package/lib/core/interfaces/UsuarioPrefijo.d.ts +8 -5
- package/lib/core/models/CFG/MPrefijo.model.d.ts +21 -0
- package/lib/core/models/CFG/Procede.model.d.ts +11 -0
- package/lib/core/models/CFG/TasaCambio.model.d.ts +13 -0
- package/lib/core/models/{STB → CFG}/moneda.model.d.ts +4 -2
- package/lib/core/models/CFG/userPrefix.model.d.ts +15 -0
- package/lib/core/models/SCG/centroCosto.model.d.ts +13 -1
- package/lib/core/models/SPG/configurationSPG.model.d.ts +1 -1
- package/lib/core/models/SSS/sistema.d.ts +4 -2
- package/lib/sigesp.service.d.ts +31 -3
- package/lib/validation.service.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +9 -5
- package/sigesp.d.ts +10 -11
- package/sigesp.metadata.json +1 -1
- package/esm2015/lib/core/models/SSS/userPrefix.model.js +0 -15
- package/esm2015/lib/core/models/STB/moneda.model.js +0 -27
- package/lib/core/models/SSS/userPrefix.model.d.ts +0 -11
package/bundles/sigesp.umd.js
CHANGED
|
@@ -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;
|
|
@@ -991,25 +1081,41 @@
|
|
|
991
1081
|
}
|
|
992
1082
|
return MMoneda;
|
|
993
1083
|
}());
|
|
994
|
-
var MMonedaConfig = /** @class */ (function () {
|
|
1084
|
+
var MMonedaConfig = /** @class */ (function (_super) {
|
|
1085
|
+
__extends(MMonedaConfig, _super);
|
|
995
1086
|
function MMonedaConfig(moneda) {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1087
|
+
var _this = _super.call(this) || this;
|
|
1088
|
+
_this.codigo = null;
|
|
1089
|
+
_this.denominacion = '';
|
|
1090
|
+
_this.codigoIso = '';
|
|
1091
|
+
_this.simbolo = '';
|
|
1092
|
+
_this.separadorDecimal = '';
|
|
1093
|
+
_this.separadorMiles = '';
|
|
1094
|
+
_this.decimales = 0;
|
|
1095
|
+
if (moneda) {
|
|
1096
|
+
_this.codigo = moneda.codmon;
|
|
1097
|
+
_this.denominacion = moneda.denmon;
|
|
1098
|
+
_this.codigoIso = moneda.codiso;
|
|
1099
|
+
_this.separadorDecimal = moneda.separadordec;
|
|
1100
|
+
_this.separadorMiles = moneda.separadormil;
|
|
1101
|
+
_this.simbolo = moneda.simmon;
|
|
1102
|
+
_this.decimales = parseInt(moneda.decimal);
|
|
1103
|
+
}
|
|
1104
|
+
return _this;
|
|
1010
1105
|
}
|
|
1106
|
+
MMonedaConfig.prototype.dataInterface = function () {
|
|
1107
|
+
return {
|
|
1108
|
+
codmon: this.codigo,
|
|
1109
|
+
denmon: this.denominacion,
|
|
1110
|
+
codiso: this.codigoIso,
|
|
1111
|
+
simmon: this.simbolo,
|
|
1112
|
+
separadordec: this.separadorDecimal,
|
|
1113
|
+
separadormil: this.separadorMiles,
|
|
1114
|
+
decimal: this.decimales.toString()
|
|
1115
|
+
};
|
|
1116
|
+
};
|
|
1011
1117
|
return MMonedaConfig;
|
|
1012
|
-
}());
|
|
1118
|
+
}(MBasicModel));
|
|
1013
1119
|
|
|
1014
1120
|
var MUnidadTributaria = /** @class */ (function () {
|
|
1015
1121
|
function MUnidadTributaria(unidad) {
|
|
@@ -1511,18 +1617,66 @@
|
|
|
1511
1617
|
return MAllStructure;
|
|
1512
1618
|
}());
|
|
1513
1619
|
|
|
1514
|
-
var MCentroCosto = /** @class */ (function () {
|
|
1620
|
+
var MCentroCosto = /** @class */ (function (_super) {
|
|
1621
|
+
__extends(MCentroCosto, _super);
|
|
1515
1622
|
function MCentroCosto(centroCosto) {
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1623
|
+
var _this = _super.call(this) || this;
|
|
1624
|
+
_this.idEmpresa = 0;
|
|
1625
|
+
_this.idEnterprise = 0;
|
|
1626
|
+
if (centroCosto) {
|
|
1627
|
+
_this.idEmpresa = +centroCosto.id_empresa;
|
|
1628
|
+
_this.idEnterprise = +centroCosto.id_enterprise;
|
|
1629
|
+
_this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
|
|
1630
|
+
_this.denominacion = centroCosto.denominacion;
|
|
1631
|
+
}
|
|
1632
|
+
else {
|
|
1633
|
+
_this.isNew = true;
|
|
1634
|
+
}
|
|
1635
|
+
return _this;
|
|
1522
1636
|
}
|
|
1523
1637
|
;
|
|
1638
|
+
MCentroCosto.prototype.dataInterface = function () {
|
|
1639
|
+
return {
|
|
1640
|
+
id_empresa: this.idEmpresa.toString(),
|
|
1641
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
1642
|
+
codcencos: this.centro,
|
|
1643
|
+
denominacion: this.denominacion,
|
|
1644
|
+
};
|
|
1645
|
+
};
|
|
1524
1646
|
return MCentroCosto;
|
|
1525
|
-
}());
|
|
1647
|
+
}(MBasicModel));
|
|
1648
|
+
var MUsuarioCentroCosto = /** @class */ (function (_super) {
|
|
1649
|
+
__extends(MUsuarioCentroCosto, _super);
|
|
1650
|
+
function MUsuarioCentroCosto(e) {
|
|
1651
|
+
var _this = _super.call(this) || this;
|
|
1652
|
+
_this.idEmpresa = 0;
|
|
1653
|
+
_this.idEnterprise = 0;
|
|
1654
|
+
_this.codigoCentroCosto = '';
|
|
1655
|
+
_this.usuario = '';
|
|
1656
|
+
_this.idDtCentro = 0;
|
|
1657
|
+
if (e) {
|
|
1658
|
+
_this.idEmpresa = +e.id_empresa;
|
|
1659
|
+
_this.idEnterprise = +e.id_enterprise;
|
|
1660
|
+
_this.codigoCentroCosto = e.codcencos;
|
|
1661
|
+
_this.usuario = e.codusu;
|
|
1662
|
+
_this.usuario = e.codusu;
|
|
1663
|
+
}
|
|
1664
|
+
else {
|
|
1665
|
+
_this.isNew = true;
|
|
1666
|
+
}
|
|
1667
|
+
return _this;
|
|
1668
|
+
}
|
|
1669
|
+
MUsuarioCentroCosto.prototype.dataInterface = function () {
|
|
1670
|
+
return {
|
|
1671
|
+
id_empresa: this.idEmpresa.toString(),
|
|
1672
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
1673
|
+
codcencos: this.codigoCentroCosto,
|
|
1674
|
+
codusu: this.usuario,
|
|
1675
|
+
id_dt_cencos: this.idDtCentro.toString(),
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
return MUsuarioCentroCosto;
|
|
1679
|
+
}(MBasicModel));
|
|
1526
1680
|
|
|
1527
1681
|
var MFuenteFinanciamiento = /** @class */ (function () {
|
|
1528
1682
|
function MFuenteFinanciamiento(fuente) {
|
|
@@ -1877,20 +2031,36 @@
|
|
|
1877
2031
|
return MUserDetail;
|
|
1878
2032
|
}(MBasicModel));
|
|
1879
2033
|
|
|
1880
|
-
var MSistema = /** @class */ (function () {
|
|
2034
|
+
var MSistema = /** @class */ (function (_super) {
|
|
2035
|
+
__extends(MSistema, _super);
|
|
1881
2036
|
function MSistema(sis) {
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
2037
|
+
var _this = _super.call(this) || this;
|
|
2038
|
+
_this.nombre = null;
|
|
2039
|
+
_this.codigo = null;
|
|
2040
|
+
_this.estado = null;
|
|
2041
|
+
_this.usuarios = [];
|
|
2042
|
+
_this.eliminados = [];
|
|
2043
|
+
if (sis) {
|
|
2044
|
+
_this.nombre = sis.nomsis;
|
|
2045
|
+
_this.codigo = sis.codsis;
|
|
2046
|
+
_this.estado = sis.estsis;
|
|
2047
|
+
_this.usuarios = sis.usuarios.map(function (e) { return new MUserDetail(e); });
|
|
2048
|
+
}
|
|
2049
|
+
else {
|
|
2050
|
+
_this.isNew = true;
|
|
2051
|
+
}
|
|
2052
|
+
return _this;
|
|
1891
2053
|
}
|
|
2054
|
+
MSistema.prototype.dataInterface = function () {
|
|
2055
|
+
return {
|
|
2056
|
+
codsis: this.nombre,
|
|
2057
|
+
nomsis: this.codigo,
|
|
2058
|
+
estsis: this.estado,
|
|
2059
|
+
usuarios: this.usuarios.map(function (e) { return e.turnToInterface(); }),
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
1892
2062
|
return MSistema;
|
|
1893
|
-
}());
|
|
2063
|
+
}(MBasicModel));
|
|
1894
2064
|
|
|
1895
2065
|
var MComprobantePresupuestarioEgresos = /** @class */ (function () {
|
|
1896
2066
|
function MComprobantePresupuestarioEgresos(comprobante) {
|
|
@@ -5768,6 +5938,45 @@
|
|
|
5768
5938
|
return MComunidad;
|
|
5769
5939
|
}());
|
|
5770
5940
|
|
|
5941
|
+
var MExchangeRate = /** @class */ (function (_super) {
|
|
5942
|
+
__extends(MExchangeRate, _super);
|
|
5943
|
+
function MExchangeRate(e) {
|
|
5944
|
+
var _this = _super.call(this) || this;
|
|
5945
|
+
_this.codigoMoneda = 0;
|
|
5946
|
+
_this.fechaDesde = '1900-01-01';
|
|
5947
|
+
_this.horaCambioTasa = '';
|
|
5948
|
+
_this.fechaHasta = '1900-01-01';
|
|
5949
|
+
_this.montoTasa = 0;
|
|
5950
|
+
_this.denominacionMoneda = '';
|
|
5951
|
+
_this.idTasaCambio = 0;
|
|
5952
|
+
if (e) {
|
|
5953
|
+
_this.idTasaCambio = +e.id_tascam;
|
|
5954
|
+
_this.codigoMoneda = +e.codmon;
|
|
5955
|
+
_this.fechaDesde = e.fectasdes;
|
|
5956
|
+
_this.horaCambioTasa = e.horcamtas;
|
|
5957
|
+
_this.fechaHasta = e.fectashas;
|
|
5958
|
+
_this.montoTasa = +e.montascam;
|
|
5959
|
+
_this.denominacionMoneda = e.denmon;
|
|
5960
|
+
}
|
|
5961
|
+
else {
|
|
5962
|
+
_this.isNew = true;
|
|
5963
|
+
}
|
|
5964
|
+
return _this;
|
|
5965
|
+
}
|
|
5966
|
+
MExchangeRate.prototype.dataInterface = function () {
|
|
5967
|
+
return {
|
|
5968
|
+
id_tascam: this.idTasaCambio.toString(),
|
|
5969
|
+
codmon: this.codigoMoneda.toString(),
|
|
5970
|
+
fectasdes: this.fechaDesde,
|
|
5971
|
+
horcamtas: this.horaCambioTasa,
|
|
5972
|
+
fectashas: this.fechaHasta,
|
|
5973
|
+
montascam: this.montoTasa.toString(),
|
|
5974
|
+
denmon: this.denominacionMoneda,
|
|
5975
|
+
};
|
|
5976
|
+
};
|
|
5977
|
+
return MExchangeRate;
|
|
5978
|
+
}(MBasicModel));
|
|
5979
|
+
|
|
5771
5980
|
var SigespService = /** @class */ (function () {
|
|
5772
5981
|
// public URL: string = "http://192.168.1.67/sigesp_php";
|
|
5773
5982
|
// usuarioActivo: MUsuario = {
|
|
@@ -6282,6 +6491,14 @@
|
|
|
6282
6491
|
return res;
|
|
6283
6492
|
}));
|
|
6284
6493
|
};
|
|
6494
|
+
SigespService.prototype.getUserCostCenters = function (codigo) {
|
|
6495
|
+
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) {
|
|
6496
|
+
if (res.success) {
|
|
6497
|
+
res.data = res.data.map(function (element) { return new MUsuarioCentroCosto(element); });
|
|
6498
|
+
}
|
|
6499
|
+
return res;
|
|
6500
|
+
}));
|
|
6501
|
+
};
|
|
6285
6502
|
/**
|
|
6286
6503
|
* @description Abre el dialog de checkks
|
|
6287
6504
|
* @param columns Columnas que va a tener la tabla
|
|
@@ -6652,6 +6869,16 @@
|
|
|
6652
6869
|
SigespService.prototype.getMonedas = function (tipo, id) {
|
|
6653
6870
|
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
6871
|
};
|
|
6872
|
+
/**
|
|
6873
|
+
* @Description: Obtiene la tasa de cambio
|
|
6874
|
+
* @param tipo string
|
|
6875
|
+
* @param id codigo moneda
|
|
6876
|
+
* @returns array/null
|
|
6877
|
+
*/
|
|
6878
|
+
SigespService.prototype.getCurrencyExchangeRate = function (tipo, id) {
|
|
6879
|
+
if (tipo === void 0) { tipo = null; }
|
|
6880
|
+
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); }); }));
|
|
6881
|
+
};
|
|
6655
6882
|
/**
|
|
6656
6883
|
* @description Abre el dialog de las las cuentas contables (Cuentas Institucionales)
|
|
6657
6884
|
* @return Promise<McuentaInstitucional>
|
|
@@ -6940,12 +7167,25 @@
|
|
|
6940
7167
|
* @author Carlos Albornoz
|
|
6941
7168
|
* @modificado 10-01-2022
|
|
6942
7169
|
* @param pais: Codigo del pais
|
|
7170
|
+
* @param estado: Codigo del estado
|
|
7171
|
+
|
|
6943
7172
|
|
|
6944
7173
|
*/
|
|
6945
7174
|
SigespService.prototype.getCity = function (pais, estado) {
|
|
6946
7175
|
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
7176
|
};
|
|
6948
7177
|
/**
|
|
7178
|
+
* @description Obtiene las ciudades
|
|
7179
|
+
* @return Observable<MParish>
|
|
7180
|
+
* @author Dimaly Crespo
|
|
7181
|
+
* @modificado 10-01-2022
|
|
7182
|
+
* @param pais: Codigo del pais
|
|
7183
|
+
|
|
7184
|
+
*/
|
|
7185
|
+
SigespService.prototype.getCommunities = function (pais, estado, municipio, parroquia) {
|
|
7186
|
+
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); }); }));
|
|
7187
|
+
};
|
|
7188
|
+
/**
|
|
6949
7189
|
* @description Obtiene los sistemas activas
|
|
6950
7190
|
* @return Observable<MSistema>
|
|
6951
7191
|
* @author Carlos Albornoz
|
|
@@ -7052,6 +7292,23 @@
|
|
|
7052
7292
|
return res;
|
|
7053
7293
|
}));
|
|
7054
7294
|
};
|
|
7295
|
+
/**
|
|
7296
|
+
* @description Obtiene los pefijo
|
|
7297
|
+
* @param procede De que módulo procede
|
|
7298
|
+
* @param codsis Código del sistema
|
|
7299
|
+
* @return Observable<MUsuarioPrefijo[]>
|
|
7300
|
+
* @author DimalyCrespo 17-12-2022
|
|
7301
|
+
*/
|
|
7302
|
+
SigespService.prototype.getPrefix = function (filter, code) {
|
|
7303
|
+
if (filter === void 0) { filter = null; }
|
|
7304
|
+
if (code === void 0) { code = null; }
|
|
7305
|
+
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) {
|
|
7306
|
+
if (res.success) {
|
|
7307
|
+
res.data = res.data.map(function (e) { return new MPrefijo(e); });
|
|
7308
|
+
}
|
|
7309
|
+
return res;
|
|
7310
|
+
}));
|
|
7311
|
+
};
|
|
7055
7312
|
/**
|
|
7056
7313
|
* @description Abre el dialog para buscar los proveedores
|
|
7057
7314
|
* @return Promise<MProveedor>
|
|
@@ -8120,6 +8377,39 @@
|
|
|
8120
8377
|
},] }
|
|
8121
8378
|
];
|
|
8122
8379
|
|
|
8380
|
+
var MProcedencia = /** @class */ (function (_super) {
|
|
8381
|
+
__extends(MProcedencia, _super);
|
|
8382
|
+
function MProcedencia(e) {
|
|
8383
|
+
var _this = _super.call(this) || this;
|
|
8384
|
+
_this.procede = '';
|
|
8385
|
+
_this.codigoSistema = '';
|
|
8386
|
+
_this.operacion = '';
|
|
8387
|
+
_this.descripcion = '';
|
|
8388
|
+
_this.estatus = 1;
|
|
8389
|
+
if (e) {
|
|
8390
|
+
_this.procede = e.procede;
|
|
8391
|
+
_this.codigoSistema = e.codsis;
|
|
8392
|
+
_this.operacion = e.opeproc;
|
|
8393
|
+
_this.descripcion = e.desproc;
|
|
8394
|
+
_this.estatus = +e.estdel;
|
|
8395
|
+
}
|
|
8396
|
+
else {
|
|
8397
|
+
_this.isNew = true;
|
|
8398
|
+
}
|
|
8399
|
+
return _this;
|
|
8400
|
+
}
|
|
8401
|
+
MProcedencia.prototype.dataInterface = function () {
|
|
8402
|
+
return {
|
|
8403
|
+
procede: this.procede,
|
|
8404
|
+
codsis: this.codigoSistema,
|
|
8405
|
+
opeproc: this.operacion,
|
|
8406
|
+
desproc: this.descripcion,
|
|
8407
|
+
estdel: this.estatus.toString(),
|
|
8408
|
+
};
|
|
8409
|
+
};
|
|
8410
|
+
return MProcedencia;
|
|
8411
|
+
}(MBasicModel));
|
|
8412
|
+
|
|
8123
8413
|
var MAccountMarriage = /** @class */ (function () {
|
|
8124
8414
|
function MAccountMarriage(marriage) {
|
|
8125
8415
|
this.idEmpresa = null;
|
|
@@ -13947,6 +14237,7 @@
|
|
|
13947
14237
|
exports.MEstructuraPresupuestariaTwo = MEstructuraPresupuestariaTwo;
|
|
13948
14238
|
exports.MEstudiosConcursantes = MEstudiosConcursantes;
|
|
13949
14239
|
exports.MEstudiosRealizados = MEstudiosRealizados;
|
|
14240
|
+
exports.MExchangeRate = MExchangeRate;
|
|
13950
14241
|
exports.MExperienciaLaboral = MExperienciaLaboral;
|
|
13951
14242
|
exports.MFamiliaConcursante = MFamiliaConcursante;
|
|
13952
14243
|
exports.MFamiliares = MFamiliares;
|
|
@@ -13984,6 +14275,7 @@
|
|
|
13984
14275
|
exports.MPlanHorario = MPlanHorario;
|
|
13985
14276
|
exports.MPlanUnicoCuenta = MPlanUnicoCuenta;
|
|
13986
14277
|
exports.MPlantillasConstancia = MPlantillasConstancia;
|
|
14278
|
+
exports.MPrefijo = MPrefijo;
|
|
13987
14279
|
exports.MPrestacionesAntiguedad = MPrestacionesAntiguedad;
|
|
13988
14280
|
exports.MPrestamo = MPrestamo;
|
|
13989
14281
|
exports.MPrestamoAmortizacion = MPrestamoAmortizacion;
|
|
@@ -13992,6 +14284,7 @@
|
|
|
13992
14284
|
exports.MPrevioEvaluacionDt = MPrevioEvaluacionDt;
|
|
13993
14285
|
exports.MPrimaGrados = MPrimaGrados;
|
|
13994
14286
|
exports.MPrimasConcepto = MPrimasConcepto;
|
|
14287
|
+
exports.MProcedencia = MProcedencia;
|
|
13995
14288
|
exports.MProveedor = MProveedor;
|
|
13996
14289
|
exports.MProviderBankAccount = MProviderBankAccount;
|
|
13997
14290
|
exports.MProviderBeneficiary = MProviderBeneficiary;
|
|
@@ -14032,6 +14325,7 @@
|
|
|
14032
14325
|
exports.MUserDetail = MUserDetail;
|
|
14033
14326
|
exports.MUserPermit = MUserPermit;
|
|
14034
14327
|
exports.MUsuario = MUsuario;
|
|
14328
|
+
exports.MUsuarioCentroCosto = MUsuarioCentroCosto;
|
|
14035
14329
|
exports.MUsuarioPrefijo = MUsuarioPrefijo;
|
|
14036
14330
|
exports.MVacacionesPersonal = MVacacionesPersonal;
|
|
14037
14331
|
exports.Meses = Meses;
|