sigesp 0.9.57-20230905 → 0.9.59-20230906

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.
@@ -3434,8 +3434,8 @@
3434
3434
 
3435
3435
  var MEmpresa = /** @class */ (function (_super) {
3436
3436
  __extends(MEmpresa, _super);
3437
- function MEmpresa() {
3438
- var _this = _super.apply(this, __spread(arguments)) || this;
3437
+ function MEmpresa(e) {
3438
+ var _this = _super.call(this) || this;
3439
3439
  _this.idEmpresa = 0;
3440
3440
  _this.rif = '';
3441
3441
  _this.nit = '';
@@ -3481,6 +3481,56 @@
3481
3481
  _this.codigoFuenteFinanciamintoMostrar = '';
3482
3482
  _this.codigoCentroCosto = '';
3483
3483
  _this.estructuraPresupuestaria = '';
3484
+ if (e) {
3485
+ _this.idEmpresa = +e.id_empresa;
3486
+ _this.rif = e.rifemp;
3487
+ _this.nit = e.nitemp;
3488
+ _this.nombre = e.nomemp;
3489
+ _this.titulo = e.titemp;
3490
+ _this.direccion = e.diremp;
3491
+ _this.telefono = e.telemp;
3492
+ _this.fax = e.faxemp;
3493
+ _this.email = e.emaemp;
3494
+ _this.paginaWeb = e.webemp;
3495
+ _this.CIIU = e.ciiuemp;
3496
+ _this.numeroLicencia = e.numlic;
3497
+ _this.codigoPostal = e.codpos;
3498
+ _this.codigoPais = e.codpai;
3499
+ _this.codigoEstado = e.codest;
3500
+ _this.codigoMunicipio = e.codmun;
3501
+ _this.codigoParroquia = e.codpar;
3502
+ _this.codigoComunidad = e.codmun;
3503
+ _this.codigoMoneda = e.codmon;
3504
+ _this.nombreRepresentanteLegal = e.nomrepleg;
3505
+ _this.cedulaRepresentanteLegal = e.cedrepleg;
3506
+ _this.telefonoRepresentanteLegal = e.telrepleg;
3507
+ _this.carreraRepresentanteLegal = e.carrepleg;
3508
+ _this.telefonoOficinaRepresentanteLegal = e.telrepleg;
3509
+ _this.periodoFiscal = e.perfiscal;
3510
+ _this.numeroSeguroSocial = e.nroivss;
3511
+ _this.estatusPresupuesto = e.presupuesto == '1';
3512
+ _this.descripcionPais = e.despai;
3513
+ _this.descripcionEstado = e.desest;
3514
+ _this.descripcionMunicipio = e.desmun;
3515
+ _this.descripcionParroquia = e.despar;
3516
+ _this.descripcionComunidad = e.descom;
3517
+ _this.cuentaDiferencialCambiario = e.cuenta_diferencial;
3518
+ _this.idEP1 = +e.id_ep1;
3519
+ _this.idEP2 = +e.id_ep2;
3520
+ _this.idEP3 = +e.id_ep3;
3521
+ _this.idEP4 = +e.id_ep4;
3522
+ _this.idEP5 = +e.id_ep5;
3523
+ _this.codigoFuenteFinanciaminto = +e.codfuefin;
3524
+ _this.idUnidadAdministrativa = +e.id_uniadm;
3525
+ _this.denominacionUnidadAdministrativa = e.denuniadm;
3526
+ _this.codigoUnidadAdministrativa = e.coduniadm;
3527
+ _this.codigoFuenteFinanciamintoMostrar = e.codigoftefin;
3528
+ _this.codigoCentroCosto = e.codcencos;
3529
+ _this.estructuraPresupuestaria = e.estpre;
3530
+ }
3531
+ else {
3532
+ _this.isNew = true;
3533
+ }
3484
3534
  return _this;
3485
3535
  }
3486
3536
  MEmpresa.prototype.dataInterface = function () {
@@ -6063,21 +6113,29 @@
6063
6113
  return MTipoDepositos;
6064
6114
  }(MBasicModel));
6065
6115
 
6066
- var MComunidad = /** @class */ (function () {
6116
+ var MComunidad = /** @class */ (function (_super) {
6117
+ __extends(MComunidad, _super);
6067
6118
  function MComunidad(comunidad) {
6068
- this.codestado = comunidad.codestado;
6069
- this.codigo = comunidad.codigo;
6070
- this.codmunicipio = comunidad.codmunicipio;
6071
- this.codparroquia = comunidad.codparroquia;
6072
- this.comunidad = comunidad.comunidad;
6073
- this.estado = comunidad.estado;
6074
- this.municipio = comunidad.municipio;
6075
- this.pais = comunidad.pais;
6076
- this.parroquia = comunidad.parroquia;
6077
- this.prefijo = comunidad.prefijo;
6119
+ var _this = _super.call(this) || this;
6120
+ if (comunidad) {
6121
+ _this.codestado = comunidad.codestado;
6122
+ _this.codigo = comunidad.codigo;
6123
+ _this.codmunicipio = comunidad.codmunicipio;
6124
+ _this.codparroquia = comunidad.codparroquia;
6125
+ _this.comunidad = comunidad.comunidad;
6126
+ _this.estado = comunidad.estado;
6127
+ _this.municipio = comunidad.municipio;
6128
+ _this.pais = comunidad.pais;
6129
+ _this.parroquia = comunidad.parroquia;
6130
+ _this.prefijo = comunidad.prefijo;
6131
+ }
6132
+ else {
6133
+ _this.isNew = true;
6134
+ }
6135
+ return _this;
6078
6136
  }
6079
6137
  return MComunidad;
6080
- }());
6138
+ }(MBasicModel));
6081
6139
 
6082
6140
  var MExchangeRate = /** @class */ (function (_super) {
6083
6141
  __extends(MExchangeRate, _super);
@@ -7655,9 +7713,9 @@
7655
7713
  *
7656
7714
  */
7657
7715
  SigespService.prototype.getCompany = function (tipo, id) {
7658
- return this.http.get(this.URL + "/dao/cfg/empresas_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
7716
+ return this.http.get(this.URL + "/dao/cfg/empresas_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
7659
7717
  if (res.success) {
7660
- res.data = res.data.map(function (e) { return new MEmpresa(); });
7718
+ res.data = res.data.map(function (e) { return new MEmpresa(e); });
7661
7719
  }
7662
7720
  return res;
7663
7721
  }));