sigesp 0.9.84-20231102 → 0.9.86-20231105

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.
@@ -779,6 +779,12 @@
779
779
  { value: "3", denominacion: 'Preaviso 104' },
780
780
  { value: "4", denominacion: 'Preaviso 107' },
781
781
  ];
782
+ var EstatusCliente = [
783
+ { value: "A", denominacion: 'Activo' },
784
+ { value: "B", denominacion: 'Bloqueado' },
785
+ { value: "S", denominacion: 'Suspendido' },
786
+ { value: "E", denominacion: 'No Activo' },
787
+ ];
782
788
  var Orden = [
783
789
  { value: "1", denominacion: 'Código del Personal' },
784
790
  { value: "2", denominacion: 'Apellido del Personal' },
@@ -1438,28 +1444,29 @@
1438
1444
  _this.cuenta = '';
1439
1445
  _this.cueproacu = '';
1440
1446
  _this.denominacion = '';
1441
- _this.enero = '';
1442
- _this.febrero = '';
1443
- _this.marzo = '';
1444
- _this.abril = '';
1445
- _this.mayo = '';
1446
- _this.junio = '';
1447
- _this.julio = '';
1448
- _this.agosto = '';
1449
- _this.septiembre = '';
1450
- _this.octubre = '';
1451
- _this.noviembre = '';
1452
- _this.diciembre = '';
1453
- _this.asignado = '';
1447
+ _this.enero = '0';
1448
+ _this.febrero = '0';
1449
+ _this.marzo = '0';
1450
+ _this.abril = '0';
1451
+ _this.mayo = '0';
1452
+ _this.junio = '0';
1453
+ _this.julio = '0';
1454
+ _this.agosto = '0';
1455
+ _this.septiembre = '0';
1456
+ _this.octubre = '0';
1457
+ _this.noviembre = '0';
1458
+ _this.diciembre = '0';
1459
+ _this.asignado = '0';
1454
1460
  _this.distribuir = '';
1455
- _this.status = '';
1456
- _this.idEmpresa = '';
1457
- _this.nivel = '';
1461
+ _this.status = '0';
1462
+ _this.idEmpresa = '0';
1463
+ _this.nivel = '0';
1458
1464
  _this.referencia = '';
1459
1465
  _this.denominacionCuentaProvisionAcumulada = '';
1460
1466
  _this.denominacionCuentaReferencia = '';
1461
1467
  _this.denominacionEstatus = '';
1462
1468
  _this.isNew = false;
1469
+ _this.idDtCuenta = 0;
1463
1470
  if (institucional) {
1464
1471
  _this.cuenta = institucional.sc_cuenta;
1465
1472
  _this.cueproacu = institucional.cueproacu;
@@ -1485,6 +1492,7 @@
1485
1492
  _this.denominacionCuentaProvisionAcumulada = institucional.dencueproacu;
1486
1493
  _this.denominacionCuentaReferencia = institucional.denctareferecia;
1487
1494
  institucional.estatus == 'C' ? _this.denominacionEstatus = 'Movimiento' : _this.denominacionEstatus = 'Totalizadora';
1495
+ _this.idDtCuenta = +institucional.id_dt_cuenta;
1488
1496
  }
1489
1497
  else {
1490
1498
  _this.isNew = true;
@@ -1514,6 +1522,7 @@
1514
1522
  estatus: this.status,
1515
1523
  id_empresa: this.idEmpresa,
1516
1524
  nivel: this.nivel,
1525
+ id_dt_cuenta: this.idDtCuenta.toString(),
1517
1526
  };
1518
1527
  };
1519
1528
  return MCuentaInstitucional;
@@ -7022,8 +7031,27 @@
7022
7031
  }
7023
7032
  return false;
7024
7033
  };
7034
+ /**
7035
+ * @description Acepta solo numero, delete y backspace
7036
+ * @param event Evento del teclado
7037
+ * @return boolean
7038
+ * @author Dimaly Crespo
7039
+ */
7025
7040
  SigespService.prototype.onlyNumbers2 = function (event) {
7026
- if (!isNaN(+event.key) || event.keyCode == 32 || event.keyCode == 8 || event.keyCode == 46) {
7041
+ if (!isNaN(+event.key) || event.keyCode == 8 || event.keyCode == 46) {
7042
+ return true;
7043
+ }
7044
+ return false;
7045
+ };
7046
+ /**
7047
+ * @description Acepta solo numero,guiones, parentesis,espacios
7048
+ * @param event Evento del teclado
7049
+ * @return boolean
7050
+ * @author Dimaly Crespo
7051
+ */
7052
+ SigespService.prototype.typeNumbersHyphen = function (event) {
7053
+ if (!isNaN(+event.key) || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46
7054
+ || event.keyCode == 58 || event.keyCode == 57 || event.keyCode == 189) {
7027
7055
  return true;
7028
7056
  }
7029
7057
  return false;
@@ -7038,7 +7066,7 @@
7038
7066
  SigespService.prototype.typeName = function (event) {
7039
7067
  if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
7040
7068
  || (event.key >= 'á' && event.key <= 'ú') || event.key >= 'ü' || event.key >= 'Ü' || event.key == "'" || event.keyCode == 32
7041
- || event.key == "." || event.key == ",") {
7069
+ || event.key == "." || event.key == "," || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46) {
7042
7070
  return true;
7043
7071
  }
7044
7072
  return false;
@@ -7055,7 +7083,8 @@
7055
7083
  || (event.key >= 'á' && event.key <= 'ú') || event.key == 'ü' || event.key == 'Ü' || event.key == "'" || isNaN(+event.key)
7056
7084
  || event.key == "." || event.key == "," || event.key == "&" || event.key == "_" || event.key == "-" || event.key == "#"
7057
7085
  || event.key == "º" || event.key == "$" || event.key == "(" || event.key == ")" || event.key == "%" || event.key == ' '
7058
- || event.key == ':' || event.key == '/' || event.keyCode == 8364 || event.keyCode == 165 || event.keyCode == 163) {
7086
+ || event.key == ':' || event.key == '/' || event.keyCode == 8364 || event.keyCode == 165 || event.keyCode == 163
7087
+ || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46) {
7059
7088
  return true;
7060
7089
  }
7061
7090
  return false;
@@ -7068,7 +7097,7 @@
7068
7097
  */
7069
7098
  SigespService.prototype.typeCode = function (event) {
7070
7099
  if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
7071
- || isNaN(+event.key) || event.key == "." || event.key == "_" || event.key == "-") {
7100
+ || isNaN(+event.key) || event.key == "." || event.key == "_" || event.key == "-" || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46) {
7072
7101
  return true;
7073
7102
  }
7074
7103
  return false;
@@ -8047,6 +8076,25 @@
8047
8076
  return res;
8048
8077
  }));
8049
8078
  };
8079
+ /**
8080
+ * @description Obtiene los clientes
8081
+ * @return Observable<IResponse>
8082
+ * @author Dimaly Crespo
8083
+ * @tipo [basico,codigo,cedula]
8084
+ *
8085
+ */
8086
+ SigespService.prototype.getCliente = function (tipo, id, codigo, cedula) {
8087
+ if (tipo === void 0) { tipo = 'default'; }
8088
+ if (id === void 0) { id = 0; }
8089
+ if (codigo === void 0) { codigo = ''; }
8090
+ if (cedula === void 0) { cedula = ''; }
8091
+ return this.http.get(this.URL + "/dao/sfv/client_dao.php?tipo=" + tipo + "&id=" + id + "&codigo=" + codigo + "&cedrifcli=" + cedula, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
8092
+ if (res.success) {
8093
+ res.data = res.data.map(function (e) { return new MClient(e); });
8094
+ }
8095
+ return res;
8096
+ }));
8097
+ };
8050
8098
  /**
8051
8099
  * @description Valida si la fecha esta dentro del periodo fiscal y el mes esta abierto o cerrado
8052
8100
  * @return Observable<IResponse>
@@ -8867,10 +8915,16 @@
8867
8915
  _this.idEmpresa = null;
8868
8916
  _this.cuentaContable = null;
8869
8917
  _this.cuentaInstitucional = null;
8918
+ _this.idDt = 0;
8919
+ _this.isNew = false;
8870
8920
  if (marriage) {
8871
8921
  _this.idEmpresa = parseInt(marriage.id_empresa);
8872
8922
  _this.cuentaContable = parseInt(marriage.sig_cuenta);
8873
8923
  _this.cuentaInstitucional = parseInt(marriage.sc_cuenta);
8924
+ _this.idDt = +marriage.id_dt_cuenta;
8925
+ }
8926
+ else {
8927
+ _this.isNew;
8874
8928
  }
8875
8929
  return _this;
8876
8930
  }
@@ -8879,6 +8933,7 @@
8879
8933
  id_empresa: this.idEmpresa.toString(),
8880
8934
  sc_cuenta: this.cuentaContable.toString(),
8881
8935
  sig_cuenta: this.cuentaInstitucional.toString(),
8936
+ id_dt_cuenta: this.idDt.toString(),
8882
8937
  };
8883
8938
  };
8884
8939
  return MAccountMarriage;
@@ -9037,6 +9092,123 @@
9037
9092
  return MClauseModality;
9038
9093
  }(MBasicModel));
9039
9094
 
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
+
9040
9212
  var MGroup = /** @class */ (function (_super) {
9041
9213
  __extends(MGroup, _super);
9042
9214
  function MGroup(group) {
@@ -14714,6 +14886,7 @@
14714
14886
  exports.Destino = Destino;
14715
14887
  exports.EstadoCivil = EstadoCivil;
14716
14888
  exports.Estatus = Estatus;
14889
+ exports.EstatusCliente = EstatusCliente;
14717
14890
  exports.EstatusEstudio = EstatusEstudio;
14718
14891
  exports.EstatusPersonal = EstatusPersonal;
14719
14892
  exports.EstatusPersonalNomina = EstatusPersonalNomina;
@@ -14750,6 +14923,7 @@
14750
14923
  exports.MClasification = MClasification;
14751
14924
  exports.MClause = MClause;
14752
14925
  exports.MClauseModality = MClauseModality;
14926
+ exports.MClient = MClient;
14753
14927
  exports.MCodigoUnicoRac = MCodigoUnicoRac;
14754
14928
  exports.MCommunity = MCommunity;
14755
14929
  exports.MComponent = MComponent;