sigesp 0.9.86-20231105 → 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 = {
@@ -8463,7 +8643,7 @@
8463
8643
  var body = [];
8464
8644
  sno.forEach(function (e) { body.push(e.dataInteface()); });
8465
8645
  return this.http.post(this.URL + "/dao/sno/seguridad_dao.php?", body, { headers: this.getHttpHeaders() })
8466
- .pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res; }));
8646
+ .pipe(operators.map(function (res) { return res; }));
8467
8647
  };
8468
8648
  /**
8469
8649
  * @description Obtiene los tipos de depositos *
@@ -8475,13 +8655,29 @@
8475
8655
  * @date 23-11-2022
8476
8656
  */
8477
8657
  SigespService.prototype.getDepositType = function (procede, idArticulo, idUsuario) {
8478
- 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) {
8479
8659
  if (res.success) {
8480
8660
  res.data = res.data.map(function (e) { return new MTipoDepositos(e); });
8481
8661
  }
8482
8662
  return res;
8483
8663
  }));
8484
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
+ };
8485
8681
  return SigespService;
8486
8682
  }());
8487
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" });
@@ -9092,123 +9288,6 @@
9092
9288
  return MClauseModality;
9093
9289
  }(MBasicModel));
9094
9290
 
9095
- var MClient = /** @class */ (function () {
9096
- function MClient(e) {
9097
- var _this = this;
9098
- this.idEmpresa = 0;
9099
- this.idCliente = 0;
9100
- this.idCategoria = 0;
9101
- this.idVendedor = 0;
9102
- this.estatusTipoCliente = 0;
9103
- this.codigo = '';
9104
- this.cedulaRifCliente = '';
9105
- this.nombreCliente = '';
9106
- this.direccionCliente = '';
9107
- this.telefonoClientePrincipal = '';
9108
- this.telefonoClienteSecundario = '';
9109
- this.fechaRegistroCliente = '';
9110
- this.emailCliente = '';
9111
- this.estatusCliente = '';
9112
- this.cedulaRepresentante = '';
9113
- this.nombreRepresentante = '';
9114
- this.emailRepresentante = '';
9115
- this.comentario = '';
9116
- this.codigoPais = '';
9117
- this.codigoEstado = '';
9118
- this.codigoMunicipio = '';
9119
- this.codigoParroquia = '';
9120
- this.codigoPostal = '';
9121
- this.nompreApellidoContato = '';
9122
- this.ubicacionContacto = '';
9123
- this.telelefonoContacto = '';
9124
- this.emailContacto = '';
9125
- this.aplicarCuentaPorCobrar = 0;
9126
- this.descripcionParroquia = '';
9127
- this.descripcionMunicipio = '';
9128
- this.descripcionEstado = '';
9129
- this.descripcionPais = '';
9130
- this.clienteEspecial = 0;
9131
- this.limiteCredito = 0;
9132
- this.denominacionEstataus = '';
9133
- if (e) {
9134
- this.idEmpresa = e.id_empresa;
9135
- this.idCliente = e.id_cliente;
9136
- this.idCategoria = e.id_categoria;
9137
- this.idVendedor = e.id_vendedor;
9138
- this.estatusTipoCliente = e.esttipcli;
9139
- this.codigo = e.codigo;
9140
- this.cedulaRifCliente = e.cedrifcli;
9141
- this.nombreCliente = e.nomcli;
9142
- this.direccionCliente = e.dircli;
9143
- this.telefonoClientePrincipal = e.telclipri;
9144
- this.telefonoClienteSecundario = e.telclisec;
9145
- this.fechaRegistroCliente = e.fecregcli;
9146
- this.emailCliente = e.emacli;
9147
- this.estatusCliente = e.estcli;
9148
- this.cedulaRepresentante = e.cedrep;
9149
- this.nombreRepresentante = e.nomrep;
9150
- this.emailRepresentante = e.emarep;
9151
- this.comentario = e.comentario;
9152
- this.codigoPais = e.codpai;
9153
- this.codigoEstado = e.codest;
9154
- this.codigoMunicipio = e.codmun;
9155
- this.codigoParroquia = e.codpar;
9156
- this.codigoPostal = e.codpos;
9157
- this.nompreApellidoContato = e.nomapecon;
9158
- this.ubicacionContacto = e.ubicon;
9159
- this.telelefonoContacto = e.telcon;
9160
- this.emailContacto = e.emacon;
9161
- this.aplicarCuentaPorCobrar = e.aplicarcxc;
9162
- this.descripcionParroquia = e.despar;
9163
- this.descripcionMunicipio = e.desmun;
9164
- this.descripcionEstado = e.desest;
9165
- this.descripcionPais = e.despai;
9166
- this.clienteEspecial = e.cliesp;
9167
- this.limiteCredito = e.limitecredito;
9168
- this.denominacionEstataus = EstatusCliente.find(function (e) { return e.value = _this.estatusCliente; }).denominacion;
9169
- }
9170
- }
9171
- MClient.prototype.dataInterface = function () {
9172
- return {
9173
- id_empresa: this.idEmpresa,
9174
- id_cliente: this.idCliente,
9175
- id_categoria: this.idCategoria,
9176
- id_vendedor: this.idVendedor,
9177
- codigo: this.codigo,
9178
- cedrifcli: this.cedulaRifCliente,
9179
- nomcli: this.nombreCliente,
9180
- dircli: this.direccionCliente,
9181
- telclipri: this.telefonoClientePrincipal,
9182
- telclisec: this.telefonoClienteSecundario,
9183
- fecregcli: this.fechaRegistroCliente,
9184
- emacli: this.emailCliente,
9185
- estcli: this.estatusCliente,
9186
- cedrep: this.cedulaRepresentante,
9187
- nomrep: this.nombreCliente,
9188
- emarep: this.emailRepresentante,
9189
- comentario: this.comentario,
9190
- codpai: this.codigoPais,
9191
- codest: this.codigoEstado,
9192
- codmun: this.codigoMunicipio,
9193
- codpar: this.codigoParroquia,
9194
- codpos: this.codigoPostal,
9195
- nomapecon: this.nompreApellidoContato,
9196
- ubicon: this.ubicacionContacto,
9197
- telcon: this.telelefonoContacto,
9198
- emacon: this.emailContacto,
9199
- aplicarcxc: this.aplicarCuentaPorCobrar,
9200
- despar: this.descripcionPais,
9201
- desmun: this.descripcionMunicipio,
9202
- desest: this.descripcionEstado,
9203
- despai: this.descripcionPais,
9204
- cliesp: this.clienteEspecial,
9205
- limitecredito: this.limiteCredito,
9206
- esttipcli: this.estatusTipoCliente,
9207
- };
9208
- };
9209
- return MClient;
9210
- }());
9211
-
9212
9291
  var MGroup = /** @class */ (function (_super) {
9213
9292
  __extends(MGroup, _super);
9214
9293
  function MGroup(group) {
@@ -14915,6 +14994,7 @@
14915
14994
  exports.MCargaMasiva = MCargaMasiva;
14916
14995
  exports.MCargo = MCargo;
14917
14996
  exports.MCargoEstructuraOrganizativa = MCargoEstructuraOrganizativa;
14997
+ exports.MCargosAdicionales = MCargosAdicionales;
14918
14998
  exports.MCargosNominas = MCargosNominas;
14919
14999
  exports.MCargosPersonal = MCargosPersonal;
14920
15000
  exports.MCentroCosto = MCentroCosto;