cloud-ide-core 2.0.87 → 2.0.89

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.
@@ -9,7 +9,7 @@ import { Router, ActivatedRoute } from '@angular/router';
9
9
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
10
10
  import { BehaviorSubject, throwError, Observable, Subject, takeUntil, debounceTime, distinctUntilChanged } from 'rxjs';
11
11
  import { tap, catchError, map } from 'rxjs/operators';
12
- import { coreRoutesUrl, generateStringFromObject, cidePath, hostManagerRoutesUrl, MDesignationInsertUpdatePayload, generateObjectFromString, userRoutesUrl, AuthUserMstGetByIdPayload, customEncrypt, customDecrypt, AuthUserMstListPayload, academicsRoutesUrl } from 'cloud-ide-lms-model';
12
+ import { coreRoutesUrl, generateStringFromObject, cidePath, hostManagerRoutesUrl, MDesignationInsertUpdatePayload, MDesignation, MGradeLevel, generateObjectFromString, userRoutesUrl, AuthUserMstGetByIdPayload, customEncrypt, customDecrypt, AuthUserMstListPayload, academicsRoutesUrl } from 'cloud-ide-lms-model';
13
13
  import * as i1 from '@angular/common/http';
14
14
  import { HttpClient } from '@angular/common/http';
15
15
  import { NotificationService, CideEleDataGridComponent, CideEleButtonComponent, CideInputComponent, CideSelectComponent, CideTextareaComponent, CideIconComponent, CideEleDropdownComponent, ConfirmationService, CideEleGlobalNotificationsComponent, CideEleConfirmationModalComponent, CideEleJsonEditorComponent, CideEleFileInputComponent, CideEleFileImageDirective, CideFormFieldErrorComponent, CideEleFileManagerService, CideEleTabComponent, CideEleFloatingFeaturesService, CideEleToastNotificationComponent } from 'cloud-ide-element';
@@ -3958,12 +3958,20 @@ class CideCoreDesignationListComponent {
3958
3958
  console.log('🚀 CideCoreDesignationListComponent.loadDesignations() called');
3959
3959
  this.loading.set(true);
3960
3960
  this.error.set(null);
3961
- const requestBody = {
3961
+ const activeEntityId = this.appState.getActiveEntityId();
3962
+ if (!activeEntityId) {
3963
+ console.error('❌ No active entity ID found');
3964
+ this.error.set('No active entity selected');
3965
+ this.loading.set(false);
3966
+ return;
3967
+ }
3968
+ const requestBody = new MDesignation({
3962
3969
  total: this.totalItems(),
3963
3970
  pageIndex: this.currentPage(),
3964
3971
  pageSize: this.pageSize(),
3965
- query: this.searchTerm()
3966
- };
3972
+ query: this.searchTerm(),
3973
+ desg_entity_id_syen: activeEntityId
3974
+ });
3967
3975
  console.log('📋 Request body:', requestBody);
3968
3976
  if (!this.designationService) {
3969
3977
  console.error('❌ DesignationService is not available');
@@ -4046,10 +4054,16 @@ class CideCoreDesignationListComponent {
4046
4054
  console.error('❌ GradeLevelService is not available');
4047
4055
  return;
4048
4056
  }
4049
- const requestBody = {
4057
+ const activeEntityId = this.appState.getActiveEntityId();
4058
+ if (!activeEntityId) {
4059
+ console.error('❌ No active entity ID found for grade levels');
4060
+ return;
4061
+ }
4062
+ const requestBody = new MGradeLevel({
4050
4063
  pageIndex: 1,
4051
- pageSize: 100 // Load all grade levels for dropdown
4052
- };
4064
+ pageSize: 100, // Load all grade levels for dropdown
4065
+ sydsgl_entity_id_syen: activeEntityId
4066
+ });
4053
4067
  this.gradeLevelService.getGradeLevelList(requestBody)
4054
4068
  .pipe(takeUntilDestroyed(this.destroyRef))
4055
4069
  .subscribe({
@@ -5324,12 +5338,20 @@ class CideCoreGradeLevelListComponent {
5324
5338
  console.log('🚀 CideCoreGradeLevelListComponent.loadGradeLevels() called');
5325
5339
  this.loading.set(true);
5326
5340
  this.error.set(null);
5327
- const requestBody = {
5341
+ const activeEntityId = this.appState.getActiveEntityId();
5342
+ if (!activeEntityId) {
5343
+ console.error('❌ No active entity ID found');
5344
+ this.error.set('No active entity selected');
5345
+ this.loading.set(false);
5346
+ return;
5347
+ }
5348
+ const requestBody = new MGradeLevel({
5328
5349
  total: this.totalItems(),
5329
5350
  pageIndex: this.currentPage(),
5330
5351
  pageSize: this.pageSize(),
5331
- query: this.searchTerm()
5332
- };
5352
+ query: this.searchTerm(),
5353
+ sydsgl_entity_id_syen: activeEntityId
5354
+ });
5333
5355
  console.log('📋 Request body:', requestBody);
5334
5356
  if (!this.gradeLevelService) {
5335
5357
  console.error('❌ GradeLevelService is not available');