iptdevs-design-system 3.2.193 → 3.2.195

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.
@@ -1043,6 +1043,11 @@ class UserService extends IPTGeneralService {
1043
1043
  this.generateRequestParams(params);
1044
1044
  return this.http.post(serviceUrl, this.httpOptions);
1045
1045
  }
1046
+ getNumberOfUsersByRoleAndLocation(params) {
1047
+ let serviceUrl = this.SERVICE_URL + 'get/number/of/users/by/role/and/location';
1048
+ this.generateRequestParams(params);
1049
+ return this.http.post(serviceUrl, this.httpOptions);
1050
+ }
1046
1051
  }
1047
1052
  UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: UserService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1048
1053
  UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: UserService, providedIn: 'root' });
@@ -5418,7 +5423,7 @@ class CodFormStepOneComponent extends CodFormSteps {
5418
5423
  this.codFormStepOne.controls['english_level'].setValue(null);
5419
5424
  this.codFormStepOne.controls['availible_courses'].setValue(null);
5420
5425
  this.codFormStepOne.controls['course_modality'].setValue(null);
5421
- this.codFormStepOne.controls['campus'].setValue(null);
5426
+ this.codFormStepOne.controls['campus'].setValue(this.userCampus);
5422
5427
  }
5423
5428
  // Eventos de los selects
5424
5429
  selectAcademicPlan(academic_plan) {
@@ -5427,8 +5432,9 @@ class CodFormStepOneComponent extends CodFormSteps {
5427
5432
  // this.codFormStepOne.controls['agreement_by_category'].setValue(null);
5428
5433
  // this.codFormStepOne.controls['school_name'].setValue(null);
5429
5434
  // this.codFormStepOne.controls['course_type'].setValue(null);
5435
+ const campus = this.codFormStepOne.controls['campus'].value ? parseInt(this.codFormStepOne.controls['campus'].value) : this.campus;
5430
5436
  this.getCourseType(parseInt(academic_plan));
5431
- //this.getAgreementByPlan(parseInt(academic_plan));
5437
+ this.getAgreementByPlan(parseInt(academic_plan), campus);
5432
5438
  }
5433
5439
  else {
5434
5440
  this.codFormStepOne.controls['academic_plan'].setValue(null);