sigesp 0.9.5-221123 → 0.9.6-2022-12-04
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 +41 -26
- 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/interfaces/Lugares.js +1 -1
- package/esm2015/lib/core/models/CFG/locations.model.js +12 -1
- package/esm2015/lib/sigesp.service.js +31 -27
- package/fesm2015/sigesp.js +41 -26
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Lugares.d.ts +2 -0
- package/lib/core/models/CFG/locations.model.d.ts +2 -0
- package/lib/sigesp.service.d.ts +20 -9
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -1789,11 +1789,16 @@ class MState extends MBasicModel {
|
|
|
1789
1789
|
this.countryCode = null;
|
|
1790
1790
|
this.name = null;
|
|
1791
1791
|
this.capital = null;
|
|
1792
|
+
this.nameCapital = '';
|
|
1792
1793
|
if (state) {
|
|
1793
1794
|
this.code = state.codest.trim();
|
|
1794
1795
|
this.countryCode = state.codpai.trim();
|
|
1795
1796
|
this.name = state.desest.trim();
|
|
1796
1797
|
this.capital = state.ciucapest.trim();
|
|
1798
|
+
this.nameCapital = state.desciu;
|
|
1799
|
+
}
|
|
1800
|
+
else {
|
|
1801
|
+
this.isNew = true;
|
|
1797
1802
|
}
|
|
1798
1803
|
}
|
|
1799
1804
|
dataInterface() {
|
|
@@ -1812,12 +1817,18 @@ class MMunicipality extends MBasicModel {
|
|
|
1812
1817
|
this.countryCode = null;
|
|
1813
1818
|
this.stateCode = null;
|
|
1814
1819
|
this.name = null;
|
|
1820
|
+
this.capital = '';
|
|
1821
|
+
this.nameCapital = '';
|
|
1815
1822
|
if (mun) {
|
|
1816
1823
|
this.code = mun.codmun.trim();
|
|
1817
1824
|
this.countryCode = mun.codpai.trim();
|
|
1818
1825
|
this.stateCode = mun.codest.trim();
|
|
1819
1826
|
this.name = mun.desmun.trim();
|
|
1820
1827
|
this.capital = mun.capmun.trim();
|
|
1828
|
+
this.nameCapital = mun.desciu.trim();
|
|
1829
|
+
}
|
|
1830
|
+
else {
|
|
1831
|
+
this.isNew = true;
|
|
1821
1832
|
}
|
|
1822
1833
|
}
|
|
1823
1834
|
dataInterface() {
|
|
@@ -5879,7 +5890,7 @@ class SigespService {
|
|
|
5879
5890
|
usuario: this.usuarioActivo.getInterface()
|
|
5880
5891
|
}
|
|
5881
5892
|
};
|
|
5882
|
-
return this.http.post(`${this.URL}/dao/cfg/
|
|
5893
|
+
return this.http.post(`${this.URL}/dao/cfg/comunidades_dao.php`, request).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.map(element => new MComunidad(element))));
|
|
5883
5894
|
}
|
|
5884
5895
|
/**
|
|
5885
5896
|
* @description Abre el dialog de las las monedas
|
|
@@ -5888,7 +5899,7 @@ class SigespService {
|
|
|
5888
5899
|
*/
|
|
5889
5900
|
openDialogMonedas() {
|
|
5890
5901
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5891
|
-
let coins = yield this.getMonedas().toPromise();
|
|
5902
|
+
let coins = yield this.getMonedas('todas').toPromise();
|
|
5892
5903
|
let dialogRef = this.dialog.open(CatalogoComponent, {
|
|
5893
5904
|
data: {
|
|
5894
5905
|
columns: ['codigo', 'denominacion', 'iso', 'simbolo'],
|
|
@@ -5906,16 +5917,13 @@ class SigespService {
|
|
|
5906
5917
|
* @description Obtiene las monedas
|
|
5907
5918
|
* @return Observable<MMoneda[]>
|
|
5908
5919
|
* @author Miguel Ramírez
|
|
5920
|
+
* actualizado 4-12-2022
|
|
5921
|
+
* @param tipo :string {'todas','uno','actual}
|
|
5922
|
+
* @param id : number
|
|
5923
|
+
* @returns
|
|
5909
5924
|
*/
|
|
5910
|
-
getMonedas() {
|
|
5911
|
-
|
|
5912
|
-
operacion: 'obtenerData',
|
|
5913
|
-
sigesp_conexion: {
|
|
5914
|
-
servidor: this.URL,
|
|
5915
|
-
usuario: this.usuarioActivo.getInterface()
|
|
5916
|
-
}
|
|
5917
|
-
};
|
|
5918
|
-
return this.http.post(`${this.URL}/dao/cfg/moneda_dao.php`, request).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.map(element => new MMoneda(element))));
|
|
5925
|
+
getMonedas(tipo, id) {
|
|
5926
|
+
return this.http.get(`${this.URL}/dao/cfg/monedas_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.map(element => new MMoneda(element))));
|
|
5919
5927
|
}
|
|
5920
5928
|
/**
|
|
5921
5929
|
* @description Abre el dialog de las las cuentas contables (Cuentas Institucionales)
|
|
@@ -6111,51 +6119,57 @@ class SigespService {
|
|
|
6111
6119
|
* @author Carlos Albornoz
|
|
6112
6120
|
* @modified 10-01-2022
|
|
6113
6121
|
* @param codigo: Codigo del pais
|
|
6122
|
+
|
|
6114
6123
|
*/
|
|
6115
6124
|
getCountries(codigo) {
|
|
6116
|
-
return this.http.get(`${this.URL}/dao/
|
|
6125
|
+
return this.http.get(`${this.URL}/dao/cfg/paises_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => res.data.map(e => new MCountry(e))));
|
|
6117
6126
|
}
|
|
6118
6127
|
/**
|
|
6119
6128
|
* @description Obtiene los estados
|
|
6120
6129
|
* @return Observable<MState>
|
|
6121
6130
|
* @author Carlos Albornoz
|
|
6122
|
-
* @modificado
|
|
6131
|
+
* @modificado 4-12-2022
|
|
6123
6132
|
* @param codigo: Codigo del pais
|
|
6124
6133
|
*/
|
|
6125
6134
|
getStates(codigo) {
|
|
6126
|
-
return this.http.get(`${this.URL}/dao/
|
|
6135
|
+
return this.http.get(`${this.URL}/dao/cfg/estados_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => res.data.map(e => new MState(e))));
|
|
6127
6136
|
}
|
|
6128
6137
|
/**
|
|
6129
6138
|
* @description Obtiene los municipios
|
|
6130
6139
|
* @return Observable<MMunicipality>
|
|
6131
6140
|
* @author Carlos Albornoz
|
|
6132
6141
|
* @modificado 10-01-2022
|
|
6133
|
-
* @param pais: Codigo del pais,
|
|
6134
|
-
|
|
6142
|
+
* @param pais: Codigo del pais ,
|
|
6143
|
+
* @param estado: Codigo del estado
|
|
6144
|
+
* @actualizado 4-12-2022
|
|
6135
6145
|
*/
|
|
6136
6146
|
getMunicipalities(pais, estado) {
|
|
6137
|
-
return this.http.get(`${this.URL}/dao/
|
|
6147
|
+
return this.http.get(`${this.URL}/dao/cfg/municipios_dao.php?pais=${pais}&estado=${estado}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => res.data.map(e => new MMunicipality(e))));
|
|
6138
6148
|
}
|
|
6139
6149
|
/**
|
|
6140
6150
|
* @description Obtiene las parroquias
|
|
6141
6151
|
* @return Observable<MParish>
|
|
6142
6152
|
* @author Carlos Albornoz
|
|
6143
6153
|
* @modificado 10-01-2022
|
|
6144
|
-
* @param
|
|
6154
|
+
* @param pais: Codigo del pais
|
|
6155
|
+
* @param estado: Codigo del estado
|
|
6156
|
+
* @param municipio:codigo Municipio
|
|
6157
|
+
* @actualizado 4-12-2022
|
|
6158
|
+
|
|
6145
6159
|
*/
|
|
6146
|
-
getParishes(
|
|
6147
|
-
return this.http.get(`${this.URL}/dao/
|
|
6160
|
+
getParishes(pais, estado, municipio) {
|
|
6161
|
+
return this.http.get(`${this.URL}/dao/cfg/parroquias_dao.php?pais=${pais}&estado=${estado}&municipio=${municipio}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => res.data.map(e => new MParish(e))));
|
|
6148
6162
|
}
|
|
6149
6163
|
/**
|
|
6150
6164
|
* @description Obtiene las ciudades
|
|
6151
6165
|
* @return Observable<MParish>
|
|
6152
6166
|
* @author Carlos Albornoz
|
|
6153
6167
|
* @modificado 10-01-2022
|
|
6154
|
-
* @param
|
|
6168
|
+
* @param pais: Codigo del pais
|
|
6155
6169
|
|
|
6156
6170
|
*/
|
|
6157
|
-
getCitys(
|
|
6158
|
-
return this.http.get(`${this.URL}/dao/
|
|
6171
|
+
getCitys(pais) {
|
|
6172
|
+
return this.http.get(`${this.URL}/dao/cfg/ciudades_dao.php?pais=${pais}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => res.data.map(e => new MCity(e))));
|
|
6159
6173
|
}
|
|
6160
6174
|
/**
|
|
6161
6175
|
* @description Obtiene los sistemas activas
|
|
@@ -6169,9 +6183,10 @@ class SigespService {
|
|
|
6169
6183
|
* @description Obtiene la moneda actual
|
|
6170
6184
|
* @return Observable<IResponse>
|
|
6171
6185
|
* @author Carlos Albornoz
|
|
6186
|
+
* @actualizado: 4-12-20222
|
|
6172
6187
|
*/
|
|
6173
6188
|
getCurrentCurrency() {
|
|
6174
|
-
return this.http.get(`${this.URL}/dao/
|
|
6189
|
+
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo={'actual'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
6175
6190
|
if (res.success) {
|
|
6176
6191
|
res.data = new MMonedaConfig(res.data);
|
|
6177
6192
|
}
|
|
@@ -6413,8 +6428,8 @@ class SigespService {
|
|
|
6413
6428
|
* @author Dimaly Crespo
|
|
6414
6429
|
*
|
|
6415
6430
|
*/
|
|
6416
|
-
getCompany() {
|
|
6417
|
-
return this.http.get(`${this.URL}/dao/cfg/empresas_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
6431
|
+
getCompany(tipo, id) {
|
|
6432
|
+
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) => {
|
|
6418
6433
|
if (res.success) {
|
|
6419
6434
|
res.data = res.data.map(e => new MEmpresa(e));
|
|
6420
6435
|
}
|