iptdevs-design-system 3.1.375 → 3.1.377

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.
@@ -3183,11 +3183,6 @@ class CodFormStepOneComponent extends CodFormSteps {
3183
3183
  Nota: la clase CodFormSteps() se encarga de toda la lógica de LS con los pasos del formulario del COD
3184
3184
  */
3185
3185
  ngOnChanges(changes) {
3186
- console.log("initialData", this.initialData);
3187
- console.log("dataPreviusCodData", this.dataPreviusCodData);
3188
- console.log("courseSelectRenovation", this.courseSelectRenovation);
3189
- console.log("isEditCod", this.isEditCod);
3190
- console.log("isRenovation", this.isRenovation);
3191
3186
  this.getParameters();
3192
3187
  this.initForm();
3193
3188
  this.startLocalStorageWork();
@@ -3200,14 +3195,12 @@ class CodFormStepOneComponent extends CodFormSteps {
3200
3195
  this.cdRef.detectChanges();
3201
3196
  }
3202
3197
  else {
3203
- console.log("llegue aqui por alguna razon del la condicion");
3204
3198
  this.codFormStepOne.controls['academic_plan'].setValue(null);
3205
3199
  this.codFormStepOne.controls['course_type'].setValue(null);
3206
3200
  this.codFormStepOne.controls['agreement_by_category'].setValue(null);
3207
3201
  this.codFormStepOne.controls['english_level'].setValue(null);
3208
3202
  this.codFormStepOne.controls['availible_courses'].setValue(null);
3209
3203
  this.codFormStepOne.controls['course_modality'].setValue(null);
3210
- // this.cdRef.detectChanges();
3211
3204
  }
3212
3205
  if (changes['dataPreviusCodData'] && this.dataPreviusCodData != null && this.isEditCod && this.isRenovation === false) {
3213
3206
  this.processData(this.dataPreviusCodData);
@@ -3217,29 +3210,15 @@ class CodFormStepOneComponent extends CodFormSteps {
3217
3210
  else {
3218
3211
  this.isDisabledSel = false;
3219
3212
  }
3220
- // if (this.isDisabledSel) {
3221
- // this.disableFormControls();
3222
- // }
3223
- // Forzar detección de cambios
3224
3213
  this.cdRef.detectChanges();
3225
3214
  }
3226
3215
  else if (changes['dataPreviusCodData'] && this.dataPreviusCodData != null && !this.isEditCod && this.courseSelectRenovation && this.isRenovation === true) {
3227
3216
  this.setDataCodRenovationSelect();
3228
3217
  this.isDisabledSel = true;
3229
- // this.disableFormControls();
3230
3218
  this.cdRef.detectChanges();
3231
3219
  }
3232
3220
  }
3233
- // private disableFormControls() {
3234
- // this.codFormStepOne.controls['academic_plan'].disable();
3235
- // this.codFormStepOne.controls['course_type'].disable();
3236
- // this.codFormStepOne.controls['agreement_by_category'].disable();
3237
- // this.codFormStepOne.controls['english_level'].disable();
3238
- // this.codFormStepOne.controls['availible_courses'].disable();
3239
- // this.codFormStepOne.controls['course_modality'].disable();
3240
- // }
3241
3221
  processData(data) {
3242
- console.log("llegue aqui en processData");
3243
3222
  const { codFormStepOne } = this;
3244
3223
  this.getAgreementByPlan(data.course_type?.academic_plan.code);
3245
3224
  this.getCourseType(data.course_type?.academic_plan.code);
@@ -3249,11 +3228,9 @@ class CodFormStepOneComponent extends CodFormSteps {
3249
3228
  codFormStepOne.controls['academic_plan'].setValue(data.course_type?.academic_plan.code);
3250
3229
  this.getAvailibleCourses();
3251
3230
  if (this.isEditCod) {
3252
- console.log("llegue aqui setDataFromEditCodHistory");
3253
3231
  this.setDataFromEditCodHistory();
3254
3232
  }
3255
3233
  else if (!this.isEditCod && this.initialData != null) {
3256
- console.log("llegue aqui2");
3257
3234
  this.setDataFromUserHistory();
3258
3235
  }
3259
3236
  }
@@ -4787,7 +4764,6 @@ class CodFormComponent {
4787
4764
  this.userRole = this.baseService.getUserRole();
4788
4765
  }
4789
4766
  ngOnChanges(changes) {
4790
- console.log(this.courseSelect);
4791
4767
  if (changes['editCod'] && this.dataFromPreviusCodData) {
4792
4768
  if (this.editCod) {
4793
4769
  if (!this.dataFromPreviusCodData.edit_course_payment) {
@@ -4964,7 +4940,6 @@ class CodFormComponent {
4964
4940
  this.okCreatedCOD.emit(true);
4965
4941
  }
4966
4942
  else if (response.message.code === 3) {
4967
- console.log(response.data);
4968
4943
  let alertHtml = `
4969
4944
  <div class="my-custom-alert">
4970
4945
  <h2>Warning!</h2>
@@ -5977,6 +5952,10 @@ class AttendanceService extends IPTGeneralService {
5977
5952
  let serviceUrl = `${this.SERVICE_URL}obtain/course/event/by/code/${code}`;
5978
5953
  return this.http.get(serviceUrl);
5979
5954
  }
5955
+ obtainFullDataAttendanceByCode(code) {
5956
+ let serviceUrl = `${this.SERVICE_URL}obtain/full/data/attendance/by/code/${code}`;
5957
+ return this.http.get(serviceUrl);
5958
+ }
5980
5959
  }
5981
5960
  AttendanceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: AttendanceService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
5982
5961
  AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: AttendanceService, providedIn: 'root' });