sigesp 1.1.24-20241113 → 1.1.26-20241119
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/esm2020/lib/core/interfaces/Seguridad.mjs +1 -1
- package/esm2020/lib/core/models/SSS/userDetail.model.mjs +7 -1
- package/esm2020/lib/sigesp.service.mjs +19 -19
- package/fesm2015/sigesp.mjs +24 -18
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +24 -18
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/Seguridad.d.ts +2 -0
- package/lib/core/models/SSS/userDetail.model.d.ts +2 -0
- package/lib/sigesp.service.d.ts +9 -9
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -2384,6 +2384,8 @@ class MUserDetail extends MBasicModel {
|
|
|
2384
2384
|
this.telephone = '';
|
|
2385
2385
|
this.admin = false;
|
|
2386
2386
|
this.rights = [];
|
|
2387
|
+
this.ultcon = '';
|
|
2388
|
+
this.id_personal = 0;
|
|
2387
2389
|
if (user) {
|
|
2388
2390
|
this.idCompany = parseInt(user.id_empresa);
|
|
2389
2391
|
this.idEnterprise = parseInt(user.id_enterprise);
|
|
@@ -2403,6 +2405,8 @@ class MUserDetail extends MBasicModel {
|
|
|
2403
2405
|
this.password = user.pwdusu;
|
|
2404
2406
|
this.telephone = user.telusu;
|
|
2405
2407
|
this.admin = user.usuadm == "1";
|
|
2408
|
+
this.ultcon = user.ultcon;
|
|
2409
|
+
this.id_personal = +user.id_personal;
|
|
2406
2410
|
this.rights = user.derechos ? user.derechos.map(e => new MRights(e)) : [];
|
|
2407
2411
|
}
|
|
2408
2412
|
else {
|
|
@@ -2429,6 +2433,8 @@ class MUserDetail extends MBasicModel {
|
|
|
2429
2433
|
pwdusu: this.password,
|
|
2430
2434
|
telusu: this.telephone,
|
|
2431
2435
|
usuadm: this.admin ? '1' : '2',
|
|
2436
|
+
ultcon: this.ultcon,
|
|
2437
|
+
id_personal: this.id_personal.toString(),
|
|
2432
2438
|
derechos: this.rights.map(e => e.interface())
|
|
2433
2439
|
};
|
|
2434
2440
|
}
|
|
@@ -7751,16 +7757,16 @@ class SigespService {
|
|
|
7751
7757
|
return res;
|
|
7752
7758
|
}));
|
|
7753
7759
|
}
|
|
7754
|
-
getCharges() {
|
|
7755
|
-
return this.http.get(`${this.URL}/dao/stb/cargos_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7760
|
+
getCharges(idEnterprise) {
|
|
7761
|
+
return this.http.get(`${this.URL}/dao/stb/cargos_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7756
7762
|
if (res.success) {
|
|
7757
7763
|
res.data = res.data.map(e => new MCargo(e));
|
|
7758
7764
|
}
|
|
7759
7765
|
return res;
|
|
7760
7766
|
}));
|
|
7761
7767
|
}
|
|
7762
|
-
getDeductions() {
|
|
7763
|
-
return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7768
|
+
getDeductions(idEnterprise) {
|
|
7769
|
+
return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7764
7770
|
if (res.success) {
|
|
7765
7771
|
res.data = res.data.map(e => new MDeduction(e));
|
|
7766
7772
|
}
|
|
@@ -7787,8 +7793,8 @@ class SigespService {
|
|
|
7787
7793
|
* @author Dimaly Crespo
|
|
7788
7794
|
* @date 20-07-2021
|
|
7789
7795
|
*/
|
|
7790
|
-
getTiposDocumetos() {
|
|
7791
|
-
return this.http.get(`${this.URL}/dao/cxp/tipo_documento_dao.php?operacion=${'buscar'}&
|
|
7796
|
+
getTiposDocumetos(idEnterprise) {
|
|
7797
|
+
return this.http.get(`${this.URL}/dao/cxp/tipo_documento_dao.php?operacion=${'buscar'}&i=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7792
7798
|
if (res.success) {
|
|
7793
7799
|
res.data = res.data.map(e => new MTipoDocumentoCXP(e));
|
|
7794
7800
|
}
|
|
@@ -7821,8 +7827,8 @@ class SigespService {
|
|
|
7821
7827
|
* @author Dimaly Crespo
|
|
7822
7828
|
* @date 20-07-2021
|
|
7823
7829
|
*/
|
|
7824
|
-
getConceptosCxP() {
|
|
7825
|
-
return this.http.get(`${this.URL}/dao/cxp/concepto_dao.php?operacion=${'buscar'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7830
|
+
getConceptosCxP(idEnterprise) {
|
|
7831
|
+
return this.http.get(`${this.URL}/dao/cxp/concepto_dao.php?operacion=${'buscar'}&i=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7826
7832
|
if (res.success) {
|
|
7827
7833
|
res.data = res.data.map(e => new MConceptosCXP(e));
|
|
7828
7834
|
}
|
|
@@ -7835,8 +7841,8 @@ class SigespService {
|
|
|
7835
7841
|
* @author Dimaly Crespo
|
|
7836
7842
|
* @date 26-07-2021
|
|
7837
7843
|
*/
|
|
7838
|
-
getConceptosRetencion() {
|
|
7839
|
-
return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?code=${
|
|
7844
|
+
getConceptosRetencion(tipo, idTipoDeduccion) {
|
|
7845
|
+
return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?tipo=${tipo}&code=${idTipoDeduccion}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7840
7846
|
if (res.success) {
|
|
7841
7847
|
res.data = res.data.map(e => new MConceptoRetencion(e));
|
|
7842
7848
|
}
|
|
@@ -7848,8 +7854,8 @@ class SigespService {
|
|
|
7848
7854
|
* @return Observable<IResponse>
|
|
7849
7855
|
* @author Dimaly Crespo
|
|
7850
7856
|
*/
|
|
7851
|
-
obtenerConfiguracionSNO() {
|
|
7852
|
-
return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7857
|
+
obtenerConfiguracionSNO(idEnterprise) {
|
|
7858
|
+
return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7853
7859
|
if (res.success) {
|
|
7854
7860
|
if (res.data.length > 0) {
|
|
7855
7861
|
res.data = res.data.map(e => new MConfiguracionSNO(e));
|
|
@@ -7870,8 +7876,8 @@ class SigespService {
|
|
|
7870
7876
|
* @actualizado 26-05-2024
|
|
7871
7877
|
*
|
|
7872
7878
|
*/
|
|
7873
|
-
getNomina(tipo, id, act) {
|
|
7874
|
-
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7879
|
+
getNomina(tipo, idEnterprise, id, act) {
|
|
7880
|
+
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7875
7881
|
if (res.success) {
|
|
7876
7882
|
res.data = res.data.map(e => new MDefinicionNomina(e));
|
|
7877
7883
|
}
|
|
@@ -7897,8 +7903,8 @@ class SigespService {
|
|
|
7897
7903
|
* @return Observable<IResponse>
|
|
7898
7904
|
* @author Dimaly Crespo
|
|
7899
7905
|
*/
|
|
7900
|
-
getPersonalSRH(tipo, id) {
|
|
7901
|
-
return this.http.get(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7906
|
+
getPersonalSRH(tipo, idEnterprise, id) {
|
|
7907
|
+
return this.http.get(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7902
7908
|
if (res.success) {
|
|
7903
7909
|
res.data = res.data.map(e => new MPersonal(e));
|
|
7904
7910
|
}
|
|
@@ -7910,8 +7916,8 @@ class SigespService {
|
|
|
7910
7916
|
* @return Observable<IResponse>
|
|
7911
7917
|
* @author Dimaly Crespo
|
|
7912
7918
|
*/
|
|
7913
|
-
getAgenciaBanco(tipo, id) {
|
|
7914
|
-
return this.http.get(`${this.URL}/dao/scb/agencia_dao.php?code=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7919
|
+
getAgenciaBanco(tipo, idEnterprise, id) {
|
|
7920
|
+
return this.http.get(`${this.URL}/dao/scb/agencia_dao.php?code=${tipo}&id=${id}e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7915
7921
|
if (res.success) {
|
|
7916
7922
|
res.data = res.data.map(e => new MAgenciaBanco(e));
|
|
7917
7923
|
}
|