iptdevs-design-system 2.7.73 → 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.
@@ -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();
@@ -3048,7 +3057,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
3048
3057
  }
3049
3058
  });
3050
3059
  }
3051
- getParameters() {
3060
+ getParameters(codeCity) {
3052
3061
  this.parameterService.getCardTypes('col').subscribe((response) => {
3053
3062
  this.idTypes = response.data;
3054
3063
  });
@@ -3064,16 +3073,24 @@ class CodFormStepTwoComponent extends CodFormSteps {
3064
3073
  this.parameterService.getCivilStatus().subscribe((response) => {
3065
3074
  this.civilStatus = response.data;
3066
3075
  });
3067
- this.parameterService.getGenders().pipe(map((response) => response.data))
3068
- .subscribe((genders) => {
3069
- genders.forEach(gender => {
3070
- let genderItem = {
3071
- code: gender.code,
3072
- name: gender.name_spanish
3073
- };
3074
- this.genders.push(genderItem);
3075
- });
3076
+ this.parameterService.getGenders().subscribe((response) => {
3077
+ this.genders = response.data;
3078
+ });
3079
+ this.parameterService.getConuntryStateByCity(codeCity).subscribe((response) => {
3080
+ this.genders = response.data;
3076
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
+ // })
3077
3094
  }
3078
3095
  sendForm() {
3079
3096
  this.codFormStepTwo.markAllAsTouched();