sigesp 0.9.49-20230719 → 0.9.50-20230809
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 +9 -54
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/models/CFG/Empresa.model.js +3 -51
- package/esm2015/lib/sigesp.service.js +8 -4
- package/fesm2015/sigesp.js +9 -53
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/models/CFG/Empresa.model.d.ts +0 -1
- package/lib/sigesp.service.d.ts +1 -1
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -2951,8 +2951,8 @@ class MServiceCharge extends MBasicModel {
|
|
|
2951
2951
|
}
|
|
2952
2952
|
|
|
2953
2953
|
class MEmpresa extends MBasicModel {
|
|
2954
|
-
constructor(
|
|
2955
|
-
super();
|
|
2954
|
+
constructor() {
|
|
2955
|
+
super(...arguments);
|
|
2956
2956
|
this.idEmpresa = 0;
|
|
2957
2957
|
this.rif = '';
|
|
2958
2958
|
this.nit = '';
|
|
@@ -2998,54 +2998,6 @@ class MEmpresa extends MBasicModel {
|
|
|
2998
2998
|
this.codigoFuenteFinanciamintoMostrar = '';
|
|
2999
2999
|
this.codigoCentroCosto = '';
|
|
3000
3000
|
this.estructuraPresupuestaria = '';
|
|
3001
|
-
if (emp) {
|
|
3002
|
-
this.idEmpresa = parseInt(emp.id_empresa);
|
|
3003
|
-
this.rif = emp.rifemp;
|
|
3004
|
-
this.nit = emp.nitemp;
|
|
3005
|
-
this.nombre = emp.nomemp;
|
|
3006
|
-
this.titulo = emp.titemp;
|
|
3007
|
-
this.direccion = emp.diremp;
|
|
3008
|
-
this.telefono = emp.telemp;
|
|
3009
|
-
this.fax = emp.faxemp;
|
|
3010
|
-
this.email = emp.emaemp;
|
|
3011
|
-
this.paginaWeb = emp.webemp;
|
|
3012
|
-
this.CIIU = emp.ciiuemp;
|
|
3013
|
-
this.numeroLicencia = emp.numlic;
|
|
3014
|
-
this.codigoPostal = emp.codpos;
|
|
3015
|
-
this.codigoPais = emp.codpai;
|
|
3016
|
-
this.codigoEstado = emp.codest;
|
|
3017
|
-
this.codigoMunicipio = emp.codmun;
|
|
3018
|
-
this.codigoParroquia = emp.codpar;
|
|
3019
|
-
this.codigoComunidad = emp.codcom;
|
|
3020
|
-
this.codigoMoneda = emp.codmon;
|
|
3021
|
-
this.nombreRepresentanteLegal = emp.nomrepleg;
|
|
3022
|
-
this.cedulaRepresentanteLegal = emp.cedrepleg;
|
|
3023
|
-
this.telefonoRepresentanteLegal = emp.telrepleg;
|
|
3024
|
-
this.carreraRepresentanteLegal = emp.carrepleg;
|
|
3025
|
-
this.telefonoOficinaRepresentanteLegal = emp.telofirep;
|
|
3026
|
-
this.periodoFiscal = emp.perfiscal;
|
|
3027
|
-
this.numeroSeguroSocial = emp.nroivss;
|
|
3028
|
-
this.estatusPresupuesto = emp.presupuesto == '1' ? true : false;
|
|
3029
|
-
this.descripcionPais = emp.despai;
|
|
3030
|
-
this.descripcionEstado = emp.desest;
|
|
3031
|
-
this.descripcionMunicipio = emp.desmun;
|
|
3032
|
-
this.descripcionParroquia = emp.despar;
|
|
3033
|
-
this.descripcionComunidad = emp.descom;
|
|
3034
|
-
this.cuentaDiferencialCambiario;
|
|
3035
|
-
this.cuentaDiferencialCambiario = emp.cuenta_diferencial;
|
|
3036
|
-
this.idEP1 = +emp.id_ep1;
|
|
3037
|
-
this.idEP2 = +emp.id_ep2;
|
|
3038
|
-
this.idEP3 = +emp.id_ep3;
|
|
3039
|
-
this.idEP4 = +emp.id_ep4;
|
|
3040
|
-
this.idEP5 = +emp.id_ep5;
|
|
3041
|
-
this.codigoFuenteFinanciaminto = +emp.codfuefin;
|
|
3042
|
-
this.idUnidadAdministrativa = +emp.id_uniadm;
|
|
3043
|
-
this.denominacionUnidadAdministrativa = emp.denuniadm;
|
|
3044
|
-
this.codigoUnidadAdministrativa = emp.coduniadm;
|
|
3045
|
-
this.codigoFuenteFinanciamintoMostrar = emp.codigoftefin;
|
|
3046
|
-
this.codigoCentroCosto = emp.codcencos;
|
|
3047
|
-
this.estructuraPresupuestaria = emp.estpre;
|
|
3048
|
-
}
|
|
3049
3001
|
}
|
|
3050
3002
|
dataInterface() {
|
|
3051
3003
|
return {
|
|
@@ -7023,7 +6975,7 @@ class SigespService {
|
|
|
7023
6975
|
getCompany(tipo, id) {
|
|
7024
6976
|
return this.http.get(`${this.URL}/dao/cfg/empresas_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7025
6977
|
if (res.success) {
|
|
7026
|
-
res.data = res.data.map(e => new MEmpresa(
|
|
6978
|
+
res.data = res.data.map(e => new MEmpresa());
|
|
7027
6979
|
}
|
|
7028
6980
|
return res;
|
|
7029
6981
|
}));
|
|
@@ -7319,12 +7271,16 @@ class SigespService {
|
|
|
7319
7271
|
* @description obtiene el personal segun filtro
|
|
7320
7272
|
* @return Observable<IResponse>
|
|
7321
7273
|
* @date 15-11-2021
|
|
7322
|
-
* @param tipo: valores ['catalogo','default','nomina']
|
|
7274
|
+
* @param tipo: valores ['catalogo','default','nomina','responsables']
|
|
7323
7275
|
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
7324
7276
|
*/
|
|
7325
7277
|
getPersonal(tipo, dato) {
|
|
7278
|
+
let cadena = '';
|
|
7279
|
+
if (dato) {
|
|
7280
|
+
cadena = "cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}";
|
|
7281
|
+
}
|
|
7326
7282
|
return this.http.get(`${this.URL}/dao/sno/personal_dao.php?
|
|
7327
|
-
tipo=${tipo}&
|
|
7283
|
+
tipo=${tipo}&cadena`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7328
7284
|
if (res.success) {
|
|
7329
7285
|
res.data = res.data.map(e => new MPersonal(e));
|
|
7330
7286
|
}
|