sigesp 0.9.85-20231103 → 0.9.87-20231113

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.
@@ -6355,6 +6355,186 @@
6355
6355
  return MExchangeRate;
6356
6356
  }(MBasicModel));
6357
6357
 
6358
+ var MCargosAdicionales = /** @class */ (function () {
6359
+ //public estadoTipoPresupuesto: string = "E"
6360
+ function MCargosAdicionales(charge) {
6361
+ this.isNew = false;
6362
+ this.error = false;
6363
+ this.idEmpresa = 0;
6364
+ this.id = 0;
6365
+ this.codigo = "";
6366
+ this.denominacion = "";
6367
+ this.codigoEstruraPresupuestaria = '';
6368
+ this.porcentaje = 0;
6369
+ this.formula = "";
6370
+ this.tipo = 0;
6371
+ this.cuenta = "";
6372
+ this.idEp1 = 0;
6373
+ this.idEp2 = 0;
6374
+ this.idEp3 = 0;
6375
+ this.idEp4 = 0;
6376
+ this.idEp5 = 0;
6377
+ this.denominacionCuenta = '';
6378
+ if (charge) {
6379
+ this.idEmpresa = parseInt(charge.id_empresa);
6380
+ this.id = parseInt(charge.id_cargoadi);
6381
+ this.codigo = charge.codcar;
6382
+ this.denominacion = charge.dencar;
6383
+ this.codigoEstruraPresupuestaria = charge.codestpre;
6384
+ this.porcentaje = parseFloat(charge.porcar);
6385
+ this.formula = charge.formula;
6386
+ this.tipo = parseInt(charge.tipo);
6387
+ this.cuenta = charge.cuenta;
6388
+ this.idEp1 = +charge.id_ep1;
6389
+ this.idEp2 = +charge.id_ep2;
6390
+ this.idEp3 = +charge.id_ep3;
6391
+ this.idEp4 = +charge.id_ep4;
6392
+ this.idEp5 = +charge.id_ep5;
6393
+ this.denominacionCuenta = charge.dencuenta;
6394
+ }
6395
+ else {
6396
+ this.isNew = true;
6397
+ }
6398
+ }
6399
+ MCargosAdicionales.prototype.dataInterface = function () {
6400
+ return {
6401
+ id_empresa: this.idEmpresa.toString(),
6402
+ id_cargoadi: this.id.toString(),
6403
+ codcar: this.codigo,
6404
+ dencar: this.denominacion,
6405
+ codestpre: this.codigoEstruraPresupuestaria,
6406
+ porcar: this.porcentaje.toString(),
6407
+ formula: this.formula,
6408
+ tipo: this.tipo.toString(),
6409
+ cuenta: this.cuenta,
6410
+ id_ep1: this.idEp1.toString(),
6411
+ id_ep2: this.idEp2.toString(),
6412
+ id_ep3: this.idEp3.toString(),
6413
+ id_ep4: this.idEp4.toString(),
6414
+ id_ep5: this.idEp5.toString(),
6415
+ dencuenta: this.denominacionCuenta
6416
+ };
6417
+ };
6418
+ return MCargosAdicionales;
6419
+ }());
6420
+
6421
+ var MClient = /** @class */ (function () {
6422
+ function MClient(e) {
6423
+ var _this = this;
6424
+ this.idEmpresa = 0;
6425
+ this.idCliente = 0;
6426
+ this.idCategoria = 0;
6427
+ this.idVendedor = 0;
6428
+ this.estatusTipoCliente = 0;
6429
+ this.codigo = '';
6430
+ this.cedulaRifCliente = '';
6431
+ this.nombreCliente = '';
6432
+ this.direccionCliente = '';
6433
+ this.telefonoClientePrincipal = '';
6434
+ this.telefonoClienteSecundario = '';
6435
+ this.fechaRegistroCliente = '';
6436
+ this.emailCliente = '';
6437
+ this.estatusCliente = '';
6438
+ this.cedulaRepresentante = '';
6439
+ this.nombreRepresentante = '';
6440
+ this.emailRepresentante = '';
6441
+ this.comentario = '';
6442
+ this.codigoPais = '';
6443
+ this.codigoEstado = '';
6444
+ this.codigoMunicipio = '';
6445
+ this.codigoParroquia = '';
6446
+ this.codigoPostal = '';
6447
+ this.nompreApellidoContato = '';
6448
+ this.ubicacionContacto = '';
6449
+ this.telelefonoContacto = '';
6450
+ this.emailContacto = '';
6451
+ this.aplicarCuentaPorCobrar = 0;
6452
+ this.descripcionParroquia = '';
6453
+ this.descripcionMunicipio = '';
6454
+ this.descripcionEstado = '';
6455
+ this.descripcionPais = '';
6456
+ this.clienteEspecial = 0;
6457
+ this.limiteCredito = 0;
6458
+ this.denominacionEstataus = '';
6459
+ if (e) {
6460
+ this.idEmpresa = e.id_empresa;
6461
+ this.idCliente = e.id_cliente;
6462
+ this.idCategoria = e.id_categoria;
6463
+ this.idVendedor = e.id_vendedor;
6464
+ this.estatusTipoCliente = e.esttipcli;
6465
+ this.codigo = e.codigo;
6466
+ this.cedulaRifCliente = e.cedrifcli;
6467
+ this.nombreCliente = e.nomcli;
6468
+ this.direccionCliente = e.dircli;
6469
+ this.telefonoClientePrincipal = e.telclipri;
6470
+ this.telefonoClienteSecundario = e.telclisec;
6471
+ this.fechaRegistroCliente = e.fecregcli;
6472
+ this.emailCliente = e.emacli;
6473
+ this.estatusCliente = e.estcli;
6474
+ this.cedulaRepresentante = e.cedrep;
6475
+ this.nombreRepresentante = e.nomrep;
6476
+ this.emailRepresentante = e.emarep;
6477
+ this.comentario = e.comentario;
6478
+ this.codigoPais = e.codpai;
6479
+ this.codigoEstado = e.codest;
6480
+ this.codigoMunicipio = e.codmun;
6481
+ this.codigoParroquia = e.codpar;
6482
+ this.codigoPostal = e.codpos;
6483
+ this.nompreApellidoContato = e.nomapecon;
6484
+ this.ubicacionContacto = e.ubicon;
6485
+ this.telelefonoContacto = e.telcon;
6486
+ this.emailContacto = e.emacon;
6487
+ this.aplicarCuentaPorCobrar = e.aplicarcxc;
6488
+ this.descripcionParroquia = e.despar;
6489
+ this.descripcionMunicipio = e.desmun;
6490
+ this.descripcionEstado = e.desest;
6491
+ this.descripcionPais = e.despai;
6492
+ this.clienteEspecial = e.cliesp;
6493
+ this.limiteCredito = e.limitecredito;
6494
+ this.denominacionEstataus = EstatusCliente.find(function (e) { return e.value = _this.estatusCliente; }).denominacion;
6495
+ }
6496
+ }
6497
+ MClient.prototype.dataInterface = function () {
6498
+ return {
6499
+ id_empresa: this.idEmpresa,
6500
+ id_cliente: this.idCliente,
6501
+ id_categoria: this.idCategoria,
6502
+ id_vendedor: this.idVendedor,
6503
+ codigo: this.codigo,
6504
+ cedrifcli: this.cedulaRifCliente,
6505
+ nomcli: this.nombreCliente,
6506
+ dircli: this.direccionCliente,
6507
+ telclipri: this.telefonoClientePrincipal,
6508
+ telclisec: this.telefonoClienteSecundario,
6509
+ fecregcli: this.fechaRegistroCliente,
6510
+ emacli: this.emailCliente,
6511
+ estcli: this.estatusCliente,
6512
+ cedrep: this.cedulaRepresentante,
6513
+ nomrep: this.nombreCliente,
6514
+ emarep: this.emailRepresentante,
6515
+ comentario: this.comentario,
6516
+ codpai: this.codigoPais,
6517
+ codest: this.codigoEstado,
6518
+ codmun: this.codigoMunicipio,
6519
+ codpar: this.codigoParroquia,
6520
+ codpos: this.codigoPostal,
6521
+ nomapecon: this.nompreApellidoContato,
6522
+ ubicon: this.ubicacionContacto,
6523
+ telcon: this.telelefonoContacto,
6524
+ emacon: this.emailContacto,
6525
+ aplicarcxc: this.aplicarCuentaPorCobrar,
6526
+ despar: this.descripcionPais,
6527
+ desmun: this.descripcionMunicipio,
6528
+ desest: this.descripcionEstado,
6529
+ despai: this.descripcionPais,
6530
+ cliesp: this.clienteEspecial,
6531
+ limitecredito: this.limiteCredito,
6532
+ esttipcli: this.estatusTipoCliente,
6533
+ };
6534
+ };
6535
+ return MClient;
6536
+ }());
6537
+
6358
6538
  var SigespService = /** @class */ (function () {
6359
6539
  // public URL: string = "http://192.168.1.67/sigesp_php";
6360
6540
  // usuarioActivo: MUsuario = {
@@ -7031,8 +7211,27 @@
7031
7211
  }
7032
7212
  return false;
7033
7213
  };
7214
+ /**
7215
+ * @description Acepta solo numero, delete y backspace
7216
+ * @param event Evento del teclado
7217
+ * @return boolean
7218
+ * @author Dimaly Crespo
7219
+ */
7034
7220
  SigespService.prototype.onlyNumbers2 = function (event) {
7035
- if (!isNaN(+event.key) || event.keyCode == 32 || event.keyCode == 8 || event.keyCode == 46) {
7221
+ if (!isNaN(+event.key) || event.keyCode == 8 || event.keyCode == 46) {
7222
+ return true;
7223
+ }
7224
+ return false;
7225
+ };
7226
+ /**
7227
+ * @description Acepta solo numero,guiones, parentesis,espacios
7228
+ * @param event Evento del teclado
7229
+ * @return boolean
7230
+ * @author Dimaly Crespo
7231
+ */
7232
+ SigespService.prototype.typeNumbersHyphen = function (event) {
7233
+ if (!isNaN(+event.key) || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46
7234
+ || event.keyCode == 58 || event.keyCode == 57 || event.keyCode == 189) {
7036
7235
  return true;
7037
7236
  }
7038
7237
  return false;
@@ -7047,7 +7246,7 @@
7047
7246
  SigespService.prototype.typeName = function (event) {
7048
7247
  if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
7049
7248
  || (event.key >= 'á' && event.key <= 'ú') || event.key >= 'ü' || event.key >= 'Ü' || event.key == "'" || event.keyCode == 32
7050
- || event.key == "." || event.key == ",") {
7249
+ || event.key == "." || event.key == "," || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46) {
7051
7250
  return true;
7052
7251
  }
7053
7252
  return false;
@@ -7064,7 +7263,8 @@
7064
7263
  || (event.key >= 'á' && event.key <= 'ú') || event.key == 'ü' || event.key == 'Ü' || event.key == "'" || isNaN(+event.key)
7065
7264
  || event.key == "." || event.key == "," || event.key == "&" || event.key == "_" || event.key == "-" || event.key == "#"
7066
7265
  || event.key == "º" || event.key == "$" || event.key == "(" || event.key == ")" || event.key == "%" || event.key == ' '
7067
- || event.key == ':' || event.key == '/' || event.keyCode == 8364 || event.keyCode == 165 || event.keyCode == 163) {
7266
+ || event.key == ':' || event.key == '/' || event.keyCode == 8364 || event.keyCode == 165 || event.keyCode == 163
7267
+ || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46) {
7068
7268
  return true;
7069
7269
  }
7070
7270
  return false;
@@ -7077,7 +7277,7 @@
7077
7277
  */
7078
7278
  SigespService.prototype.typeCode = function (event) {
7079
7279
  if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
7080
- || isNaN(+event.key) || event.key == "." || event.key == "_" || event.key == "-") {
7280
+ || isNaN(+event.key) || event.key == "." || event.key == "_" || event.key == "-" || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46) {
7081
7281
  return true;
7082
7282
  }
7083
7283
  return false;
@@ -8443,7 +8643,7 @@
8443
8643
  var body = [];
8444
8644
  sno.forEach(function (e) { body.push(e.dataInteface()); });
8445
8645
  return this.http.post(this.URL + "/dao/sno/seguridad_dao.php?", body, { headers: this.getHttpHeaders() })
8446
- .pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res; }));
8646
+ .pipe(operators.map(function (res) { return res; }));
8447
8647
  };
8448
8648
  /**
8449
8649
  * @description Obtiene los tipos de depositos *
@@ -8455,13 +8655,29 @@
8455
8655
  * @date 23-11-2022
8456
8656
  */
8457
8657
  SigespService.prototype.getDepositType = function (procede, idArticulo, idUsuario) {
8458
- return this.http.get(this.URL + "/dao/siv/catalogo_parametrizado_dao.php?get=" + procede + "&id=" + idArticulo + "&i=" + idUsuario, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
8658
+ return this.http.get(this.URL + "/dao/siv/catalogo_parametrizado_dao.php?get=" + procede + "&id=" + idArticulo + "&i=" + idUsuario, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
8459
8659
  if (res.success) {
8460
8660
  res.data = res.data.map(function (e) { return new MTipoDepositos(e); });
8461
8661
  }
8462
8662
  return res;
8463
8663
  }));
8464
8664
  };
8665
+ /**
8666
+ * @description Obtiene Cargos Adicionales *
8667
+ * @param tipo : one,default
8668
+ * @param id : id del cargo
8669
+ * @returns
8670
+ * @author Dimaly Crespo
8671
+ * @date 13-11-2022
8672
+ */
8673
+ SigespService.prototype.getCargosAdicionales = function (tipo, id) {
8674
+ return this.http.get(this.URL + "/dao/stb/cargos_adicionales_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
8675
+ if (res.success) {
8676
+ res.data = res.data.map(function (e) { return new MCargosAdicionales(e); });
8677
+ }
8678
+ return res;
8679
+ }));
8680
+ };
8465
8681
  return SigespService;
8466
8682
  }());
8467
8683
  SigespService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SigespService_Factory() { return new SigespService(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(i2__namespace.MatDialog), i0__namespace.ɵɵinject(i3__namespace.ToastrService)); }, token: SigespService, providedIn: "root" });
@@ -9072,123 +9288,6 @@
9072
9288
  return MClauseModality;
9073
9289
  }(MBasicModel));
9074
9290
 
9075
- var MClient = /** @class */ (function () {
9076
- function MClient(e) {
9077
- var _this = this;
9078
- this.idEmpresa = 0;
9079
- this.idCliente = 0;
9080
- this.idCategoria = 0;
9081
- this.idVendedor = 0;
9082
- this.estatusTipoCliente = 0;
9083
- this.codigo = '';
9084
- this.cedulaRifCliente = '';
9085
- this.nombreCliente = '';
9086
- this.direccionCliente = '';
9087
- this.telefonoClientePrincipal = '';
9088
- this.telefonoClienteSecundario = '';
9089
- this.fechaRegistroCliente = '';
9090
- this.emailCliente = '';
9091
- this.estatusCliente = '';
9092
- this.cedulaRepresentante = '';
9093
- this.nombreRepresentante = '';
9094
- this.emailRepresentante = '';
9095
- this.comentario = '';
9096
- this.codigoPais = '';
9097
- this.codigoEstado = '';
9098
- this.codigoMunicipio = '';
9099
- this.codigoParroquia = '';
9100
- this.codigoPostal = '';
9101
- this.nompreApellidoContato = '';
9102
- this.ubicacionContacto = '';
9103
- this.telelefonoContacto = '';
9104
- this.emailContacto = '';
9105
- this.aplicarCuentaPorCobrar = 0;
9106
- this.descripcionParroquia = '';
9107
- this.descripcionMunicipio = '';
9108
- this.descripcionEstado = '';
9109
- this.descripcionPais = '';
9110
- this.clienteEspecial = 0;
9111
- this.limiteCredito = 0;
9112
- this.denominacionEstataus = '';
9113
- if (e) {
9114
- this.idEmpresa = e.id_empresa;
9115
- this.idCliente = e.id_cliente;
9116
- this.idCategoria = e.id_categoria;
9117
- this.idVendedor = e.id_vendedor;
9118
- this.estatusTipoCliente = e.esttipcli;
9119
- this.codigo = e.codigo;
9120
- this.cedulaRifCliente = e.cedrifcli;
9121
- this.nombreCliente = e.nomcli;
9122
- this.direccionCliente = e.dircli;
9123
- this.telefonoClientePrincipal = e.telclipri;
9124
- this.telefonoClienteSecundario = e.telclisec;
9125
- this.fechaRegistroCliente = e.fecregcli;
9126
- this.emailCliente = e.emacli;
9127
- this.estatusCliente = e.estcli;
9128
- this.cedulaRepresentante = e.cedrep;
9129
- this.nombreRepresentante = e.nomrep;
9130
- this.emailRepresentante = e.emarep;
9131
- this.comentario = e.comentario;
9132
- this.codigoPais = e.codpai;
9133
- this.codigoEstado = e.codest;
9134
- this.codigoMunicipio = e.codmun;
9135
- this.codigoParroquia = e.codpar;
9136
- this.codigoPostal = e.codpos;
9137
- this.nompreApellidoContato = e.nomapecon;
9138
- this.ubicacionContacto = e.ubicon;
9139
- this.telelefonoContacto = e.telcon;
9140
- this.emailContacto = e.emacon;
9141
- this.aplicarCuentaPorCobrar = e.aplicarcxc;
9142
- this.descripcionParroquia = e.despar;
9143
- this.descripcionMunicipio = e.desmun;
9144
- this.descripcionEstado = e.desest;
9145
- this.descripcionPais = e.despai;
9146
- this.clienteEspecial = e.cliesp;
9147
- this.limiteCredito = e.limitecredito;
9148
- this.denominacionEstataus = EstatusCliente.find(function (e) { return e.value = _this.estatusCliente; }).denominacion;
9149
- }
9150
- }
9151
- MClient.prototype.dataInterface = function () {
9152
- return {
9153
- id_empresa: this.idEmpresa,
9154
- id_cliente: this.idCliente,
9155
- id_categoria: this.idCategoria,
9156
- id_vendedor: this.idVendedor,
9157
- codigo: this.codigo,
9158
- cedrifcli: this.cedulaRifCliente,
9159
- nomcli: this.nombreCliente,
9160
- dircli: this.direccionCliente,
9161
- telclipri: this.telefonoClientePrincipal,
9162
- telclisec: this.telefonoClienteSecundario,
9163
- fecregcli: this.fechaRegistroCliente,
9164
- emacli: this.emailCliente,
9165
- estcli: this.estatusCliente,
9166
- cedrep: this.cedulaRepresentante,
9167
- nomrep: this.nombreCliente,
9168
- emarep: this.emailRepresentante,
9169
- comentario: this.comentario,
9170
- codpai: this.codigoPais,
9171
- codest: this.codigoEstado,
9172
- codmun: this.codigoMunicipio,
9173
- codpar: this.codigoParroquia,
9174
- codpos: this.codigoPostal,
9175
- nomapecon: this.nompreApellidoContato,
9176
- ubicon: this.ubicacionContacto,
9177
- telcon: this.telelefonoContacto,
9178
- emacon: this.emailContacto,
9179
- aplicarcxc: this.aplicarCuentaPorCobrar,
9180
- despar: this.descripcionPais,
9181
- desmun: this.descripcionMunicipio,
9182
- desest: this.descripcionEstado,
9183
- despai: this.descripcionPais,
9184
- cliesp: this.clienteEspecial,
9185
- limitecredito: this.limiteCredito,
9186
- esttipcli: this.estatusTipoCliente,
9187
- };
9188
- };
9189
- return MClient;
9190
- }());
9191
-
9192
9291
  var MGroup = /** @class */ (function (_super) {
9193
9292
  __extends(MGroup, _super);
9194
9293
  function MGroup(group) {
@@ -14895,6 +14994,7 @@
14895
14994
  exports.MCargaMasiva = MCargaMasiva;
14896
14995
  exports.MCargo = MCargo;
14897
14996
  exports.MCargoEstructuraOrganizativa = MCargoEstructuraOrganizativa;
14997
+ exports.MCargosAdicionales = MCargosAdicionales;
14898
14998
  exports.MCargosNominas = MCargosNominas;
14899
14999
  exports.MCargosPersonal = MCargosPersonal;
14900
15000
  exports.MCentroCosto = MCentroCosto;