iptdevs-design-system 3.1.327 → 3.1.329
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-one/cod-form-step-one.component.mjs +16 -3
- package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +5 -1
- package/fesm2015/iptdevs-design-system.mjs +20 -2
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +19 -2
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-one/cod-form-step-one.component.d.ts +1 -0
- package/lib/core/services/attendance-service/attendance.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3182,14 +3182,16 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3182
3182
|
this.isDisabledSel = false;
|
|
3183
3183
|
}
|
|
3184
3184
|
if (this.isDisabledSel) {
|
|
3185
|
+
console.log('entreaqui1', this.dataPreviusCodData);
|
|
3185
3186
|
this.disableFormControls();
|
|
3186
3187
|
}
|
|
3187
3188
|
// Forzar detección de cambios
|
|
3188
3189
|
this.cdRef.detectChanges();
|
|
3189
3190
|
}
|
|
3190
|
-
else if (this.dataPreviusCodData != null && this.
|
|
3191
|
-
console.log('llegue
|
|
3191
|
+
else if (changes['dataPreviusCodData'] && this.dataPreviusCodData != null && !this.isEditCod && this.dataPreviusCodData.cod_renovation && this.courseSelectRenovation) {
|
|
3192
|
+
console.log('llegue aqui2');
|
|
3192
3193
|
console.log(this.courseSelectRenovation);
|
|
3194
|
+
this.setDataCodRenovationSelect();
|
|
3193
3195
|
}
|
|
3194
3196
|
}
|
|
3195
3197
|
disableFormControls() {
|
|
@@ -3235,6 +3237,17 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3235
3237
|
this.codFormStepOne.controls['availible_courses'].setValue(this.dataPreviusCodData.course.code);
|
|
3236
3238
|
this.codFormStepOne.controls['course_modality'].setValue(this.dataPreviusCodData.course.course_modality);
|
|
3237
3239
|
}
|
|
3240
|
+
setDataCodRenovationSelect() {
|
|
3241
|
+
this.getAgreementByPlan(this.courseSelectRenovation.course_type?.academic_plan.code);
|
|
3242
|
+
this.getCourseType(this.courseSelectRenovation.course_type?.academic_plan.code);
|
|
3243
|
+
this.codFormStepOne.controls['academic_plan'].setValue(this.courseSelectRenovation.course_type?.academic_plan.code);
|
|
3244
|
+
this.codFormStepOne.controls['course_type'].setValue(this.courseSelectRenovation.course_type?.code);
|
|
3245
|
+
this.codFormStepOne.controls['agreement_by_category'].setValue(this.courseSelectRenovation.agreement?.code);
|
|
3246
|
+
this.codFormStepOne.controls['english_level'].setValue(this.courseSelectRenovation.english_level?.code);
|
|
3247
|
+
this.codFormStepOne.controls['availible_courses'].setValue(this.courseSelectRenovation?.code);
|
|
3248
|
+
this.codFormStepOne.controls['course_modality'].setValue(this.courseSelectRenovation.course_modality?.code);
|
|
3249
|
+
this.getAvailibleCourses();
|
|
3250
|
+
}
|
|
3238
3251
|
startLocalStorageWork() {
|
|
3239
3252
|
this.controls.forEach(control => {
|
|
3240
3253
|
let localStorageValue = this.readAndWriteLS(1, control.name);
|
|
@@ -5852,6 +5865,10 @@ class AttendanceService extends IPTGeneralService {
|
|
|
5852
5865
|
this.generateRequestParams(params);
|
|
5853
5866
|
return this.http.post(serviceUrl, this.httpOptions);
|
|
5854
5867
|
}
|
|
5868
|
+
obtainAttendancesStustudentByCourse(courseCode) {
|
|
5869
|
+
let serviceUrl = `${this.SERVICE_URL}obtain/attendances/students/by/course/${courseCode}`;
|
|
5870
|
+
return this.http.get(serviceUrl);
|
|
5871
|
+
}
|
|
5855
5872
|
}
|
|
5856
5873
|
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 });
|
|
5857
5874
|
AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: AttendanceService, providedIn: 'root' });
|