iptdevs-design-system 2.7.72 → 2.7.74
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/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +20 -15
- package/esm2020/lib/core/models/cod/cod-rq.model.mjs +1 -1
- package/esm2020/lib/core/services/commercial-service/comercial.service.mjs +6 -1
- package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +5 -1
- package/fesm2015/iptdevs-design-system.mjs +28 -13
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +28 -13
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.d.ts +1 -1
- package/lib/core/models/cod/cod-rq.model.d.ts +109 -0
- package/lib/core/services/commercial-service/comercial.service.d.ts +2 -1
- package/lib/core/services/parameters-service/parameters.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1377,6 +1377,10 @@ class ParameterService extends IPTGeneralService {
|
|
|
1377
1377
|
let serviceUrl = this.SERVICE_URL + 'get/all/classroom/by/modality/' + codeModality;
|
|
1378
1378
|
return this.http.get(serviceUrl);
|
|
1379
1379
|
}
|
|
1380
|
+
getConuntryStateByCity(code) {
|
|
1381
|
+
let serviceUrl = this.SERVICE_URL + 'get/country/state/by/city/' + code;
|
|
1382
|
+
return this.http.get(serviceUrl);
|
|
1383
|
+
}
|
|
1380
1384
|
}
|
|
1381
1385
|
ParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1382
1386
|
ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
|
|
@@ -2384,6 +2388,11 @@ class CommercialService extends IPTGeneralService {
|
|
|
2384
2388
|
this.generateRequestParams(params);
|
|
2385
2389
|
return this.http.post(serviceUrl, this.httpOptions);
|
|
2386
2390
|
}
|
|
2391
|
+
getFullDataCodByStudent(params) {
|
|
2392
|
+
let serviceUrl = this.SERVICE_URL + 'post/obtain/full/data/cod/by/student';
|
|
2393
|
+
this.generateRequestParams(params);
|
|
2394
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2395
|
+
}
|
|
2387
2396
|
}
|
|
2388
2397
|
CommercialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CommercialService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2389
2398
|
CommercialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CommercialService, providedIn: 'root' });
|
|
@@ -2947,7 +2956,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
2947
2956
|
}
|
|
2948
2957
|
ngOnInit() {
|
|
2949
2958
|
console.log(this.adicinfoData);
|
|
2950
|
-
this.getParameters();
|
|
2959
|
+
this.getParameters(10);
|
|
2951
2960
|
this.initForm();
|
|
2952
2961
|
this.startLocalStorageWork();
|
|
2953
2962
|
this.validateErrors();
|
|
@@ -2965,9 +2974,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
2965
2974
|
// this.codFormStepTwo.controls['city'].setValue(this.initialData.student.city);
|
|
2966
2975
|
this.codFormStepTwo.controls['gender'].setValue(this.initialData.student.gender);
|
|
2967
2976
|
// this.codFormStepTwo.controls['grade'].setValue(this.adicinfoData.grade);
|
|
2968
|
-
console.log(this.adicinfoData.grade);
|
|
2969
2977
|
// this.codFormStepTwo.controls['student_occupation'].setValue(this.adicinfoData.occupation);
|
|
2970
|
-
console.log(this.adicinfoData.occupation);
|
|
2971
2978
|
this.codFormStepTwo.controls['nickname'].setValue(this.initialData.student.nick_name);
|
|
2972
2979
|
this.codFormStepTwo.controls['student_phone_indicative'].setValue(this.initialData.student.phone_indicative);
|
|
2973
2980
|
this.codFormStepTwo.controls['student_phone_number'].setValue(this.initialData.student.phone_number);
|
|
@@ -3050,7 +3057,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
3050
3057
|
}
|
|
3051
3058
|
});
|
|
3052
3059
|
}
|
|
3053
|
-
getParameters() {
|
|
3060
|
+
getParameters(codeCity) {
|
|
3054
3061
|
this.parameterService.getCardTypes('col').subscribe((response) => {
|
|
3055
3062
|
this.idTypes = response.data;
|
|
3056
3063
|
});
|
|
@@ -3066,16 +3073,24 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
3066
3073
|
this.parameterService.getCivilStatus().subscribe((response) => {
|
|
3067
3074
|
this.civilStatus = response.data;
|
|
3068
3075
|
});
|
|
3069
|
-
this.parameterService.getGenders().
|
|
3070
|
-
.
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
name: gender.name_spanish
|
|
3075
|
-
};
|
|
3076
|
-
this.genders.push(genderItem);
|
|
3077
|
-
});
|
|
3076
|
+
this.parameterService.getGenders().subscribe((response) => {
|
|
3077
|
+
this.genders = response.data;
|
|
3078
|
+
});
|
|
3079
|
+
this.parameterService.getConuntryStateByCity(codeCity).subscribe((response) => {
|
|
3080
|
+
this.genders = response.data;
|
|
3078
3081
|
});
|
|
3082
|
+
// this.parameterService.getGenders().pipe(
|
|
3083
|
+
// map((response: any) => response.data)
|
|
3084
|
+
// )
|
|
3085
|
+
// .subscribe((genders: any[]) => {
|
|
3086
|
+
// genders.forEach(gender => {
|
|
3087
|
+
// let genderItem = {
|
|
3088
|
+
// code: gender.code,
|
|
3089
|
+
// name: gender.name_spanish
|
|
3090
|
+
// }
|
|
3091
|
+
// this.genders.push(genderItem)
|
|
3092
|
+
// })
|
|
3093
|
+
// })
|
|
3079
3094
|
}
|
|
3080
3095
|
sendForm() {
|
|
3081
3096
|
this.codFormStepTwo.markAllAsTouched();
|