catchup-library-web 2.2.21 → 2.2.23
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/dist/index.js +252 -210
- package/dist/index.mjs +252 -210
- package/package.json +1 -1
- package/src/utilization/ManagementUtilization.ts +355 -293
package/dist/index.mjs
CHANGED
|
@@ -7698,76 +7698,88 @@ var retrieveCurrencyTypeOptionList = () => {
|
|
|
7698
7698
|
var retrieveBrandDTOByUserProfileOptionList = (userProfile) => {
|
|
7699
7699
|
const brandDTOOptionList = [];
|
|
7700
7700
|
if (userProfile) {
|
|
7701
|
-
|
|
7702
|
-
const
|
|
7703
|
-
|
|
7704
|
-
(
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7701
|
+
if (userProfile.branchDTOList) {
|
|
7702
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
7703
|
+
const currentBrand = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
7704
|
+
if (brandDTOOptionList.findIndex(
|
|
7705
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7706
|
+
) === -1) {
|
|
7707
|
+
brandDTOOptionList.push({
|
|
7708
|
+
value: currentBrand.id,
|
|
7709
|
+
fullValue: currentBrand,
|
|
7710
|
+
text: currentBrand.name
|
|
7711
|
+
});
|
|
7712
|
+
}
|
|
7711
7713
|
}
|
|
7712
7714
|
}
|
|
7713
|
-
|
|
7714
|
-
const
|
|
7715
|
-
|
|
7716
|
-
(
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7715
|
+
if (userProfile.gradeDTOList) {
|
|
7716
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
7717
|
+
const currentBrand = gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
7718
|
+
if (brandDTOOptionList.findIndex(
|
|
7719
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7720
|
+
) === -1) {
|
|
7721
|
+
brandDTOOptionList.push({
|
|
7722
|
+
value: currentBrand.id,
|
|
7723
|
+
fullValue: currentBrand,
|
|
7724
|
+
text: currentBrand.name
|
|
7725
|
+
});
|
|
7726
|
+
}
|
|
7723
7727
|
}
|
|
7724
7728
|
}
|
|
7725
|
-
|
|
7726
|
-
const
|
|
7727
|
-
|
|
7728
|
-
(
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7729
|
+
if (userProfile.seasonDTOList) {
|
|
7730
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
7731
|
+
const currentBrand = seasonDTO.institutionDTO.campusDTO.brandDTO;
|
|
7732
|
+
if (brandDTOOptionList.findIndex(
|
|
7733
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7734
|
+
) === -1) {
|
|
7735
|
+
brandDTOOptionList.push({
|
|
7736
|
+
value: currentBrand.id,
|
|
7737
|
+
fullValue: currentBrand,
|
|
7738
|
+
text: currentBrand.name
|
|
7739
|
+
});
|
|
7740
|
+
}
|
|
7735
7741
|
}
|
|
7736
7742
|
}
|
|
7737
|
-
|
|
7738
|
-
const
|
|
7739
|
-
|
|
7740
|
-
(
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7743
|
+
if (userProfile.institutionDTOList) {
|
|
7744
|
+
for (const institutionDTO of userProfile.institutionDTOList) {
|
|
7745
|
+
const currentBrand = institutionDTO.campusDTO.brandDTO;
|
|
7746
|
+
if (brandDTOOptionList.findIndex(
|
|
7747
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7748
|
+
) === -1) {
|
|
7749
|
+
brandDTOOptionList.push({
|
|
7750
|
+
value: currentBrand.id,
|
|
7751
|
+
fullValue: currentBrand,
|
|
7752
|
+
text: currentBrand.name
|
|
7753
|
+
});
|
|
7754
|
+
}
|
|
7747
7755
|
}
|
|
7748
7756
|
}
|
|
7749
|
-
|
|
7750
|
-
const
|
|
7751
|
-
|
|
7752
|
-
(
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7757
|
+
if (userProfile.campusDTOList) {
|
|
7758
|
+
for (const campusDTO of userProfile.campusDTOList) {
|
|
7759
|
+
const currentBrand = campusDTO.brandDTO;
|
|
7760
|
+
if (brandDTOOptionList.findIndex(
|
|
7761
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7762
|
+
) === -1) {
|
|
7763
|
+
brandDTOOptionList.push({
|
|
7764
|
+
value: currentBrand.id,
|
|
7765
|
+
fullValue: currentBrand,
|
|
7766
|
+
text: currentBrand.name
|
|
7767
|
+
});
|
|
7768
|
+
}
|
|
7759
7769
|
}
|
|
7760
7770
|
}
|
|
7761
|
-
|
|
7762
|
-
const
|
|
7763
|
-
|
|
7764
|
-
(
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
+
if (userProfile.brandDTOList) {
|
|
7772
|
+
for (const brandDTO of userProfile.brandDTOList) {
|
|
7773
|
+
const currentBrand = brandDTO;
|
|
7774
|
+
if (brandDTOOptionList.findIndex(
|
|
7775
|
+
(brandDTOOption) => brandDTOOption.value === currentBrand.id
|
|
7776
|
+
) === -1) {
|
|
7777
|
+
brandDTOOptionList.push({
|
|
7778
|
+
value: currentBrand.id,
|
|
7779
|
+
fullValue: currentBrand,
|
|
7780
|
+
text: currentBrand.name
|
|
7781
|
+
});
|
|
7782
|
+
}
|
|
7771
7783
|
}
|
|
7772
7784
|
}
|
|
7773
7785
|
}
|
|
@@ -7822,64 +7834,74 @@ var retrieveCampusDTOByUserProfileOptionList = (userProfile, selectedBrandId) =>
|
|
|
7822
7834
|
const campusDTOOptionList = [];
|
|
7823
7835
|
if (userProfile) {
|
|
7824
7836
|
if (selectedBrandId) {
|
|
7825
|
-
|
|
7826
|
-
const
|
|
7827
|
-
|
|
7828
|
-
(
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7837
|
+
if (userProfile.branchDTOList) {
|
|
7838
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
7839
|
+
const currentCampus = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO;
|
|
7840
|
+
if (campusDTOOptionList.findIndex(
|
|
7841
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7842
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7843
|
+
campusDTOOptionList.push({
|
|
7844
|
+
value: currentCampus.id,
|
|
7845
|
+
fullValue: currentCampus,
|
|
7846
|
+
text: currentCampus.name
|
|
7847
|
+
});
|
|
7848
|
+
}
|
|
7835
7849
|
}
|
|
7836
7850
|
}
|
|
7837
|
-
|
|
7838
|
-
const
|
|
7839
|
-
|
|
7840
|
-
(
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7851
|
+
if (userProfile.gradeDTOList) {
|
|
7852
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
7853
|
+
const currentCampus = gradeDTO.seasonDTO.institutionDTO.campusDTO;
|
|
7854
|
+
if (campusDTOOptionList.findIndex(
|
|
7855
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7856
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7857
|
+
campusDTOOptionList.push({
|
|
7858
|
+
value: currentCampus.id,
|
|
7859
|
+
fullValue: currentCampus,
|
|
7860
|
+
text: currentCampus.name
|
|
7861
|
+
});
|
|
7862
|
+
}
|
|
7847
7863
|
}
|
|
7848
7864
|
}
|
|
7849
|
-
|
|
7850
|
-
const
|
|
7851
|
-
|
|
7852
|
-
(
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7865
|
+
if (userProfile.seasonDTOList) {
|
|
7866
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
7867
|
+
const currentCampus = seasonDTO.institutionDTO.campusDTO;
|
|
7868
|
+
if (campusDTOOptionList.findIndex(
|
|
7869
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7870
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7871
|
+
campusDTOOptionList.push({
|
|
7872
|
+
value: currentCampus.id,
|
|
7873
|
+
fullValue: currentCampus,
|
|
7874
|
+
text: currentCampus.name
|
|
7875
|
+
});
|
|
7876
|
+
}
|
|
7859
7877
|
}
|
|
7860
7878
|
}
|
|
7861
|
-
|
|
7862
|
-
const
|
|
7863
|
-
|
|
7864
|
-
(
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7879
|
+
if (userProfile.institutionDTOList) {
|
|
7880
|
+
for (const institutionDTO of userProfile.institutionDTOList) {
|
|
7881
|
+
const currentCampus = institutionDTO.campusDTO;
|
|
7882
|
+
if (campusDTOOptionList.findIndex(
|
|
7883
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7884
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7885
|
+
campusDTOOptionList.push({
|
|
7886
|
+
value: currentCampus.id,
|
|
7887
|
+
fullValue: currentCampus,
|
|
7888
|
+
text: currentCampus.name
|
|
7889
|
+
});
|
|
7890
|
+
}
|
|
7871
7891
|
}
|
|
7872
7892
|
}
|
|
7873
|
-
|
|
7874
|
-
const
|
|
7875
|
-
|
|
7876
|
-
(
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7893
|
+
if (userProfile.campusDTOList) {
|
|
7894
|
+
for (const campusDTO of userProfile.campusDTOList) {
|
|
7895
|
+
const currentCampus = campusDTO;
|
|
7896
|
+
if (campusDTOOptionList.findIndex(
|
|
7897
|
+
(campusDTOOption) => campusDTOOption.value === currentCampus.id
|
|
7898
|
+
) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
|
|
7899
|
+
campusDTOOptionList.push({
|
|
7900
|
+
value: currentCampus.id,
|
|
7901
|
+
fullValue: currentCampus,
|
|
7902
|
+
text: currentCampus.name
|
|
7903
|
+
});
|
|
7904
|
+
}
|
|
7883
7905
|
}
|
|
7884
7906
|
}
|
|
7885
7907
|
return campusDTOOptionList;
|
|
@@ -7891,52 +7913,60 @@ var retrieveInstitutionDTOByUserProfileOptionList = (userProfile, selectedBrandI
|
|
|
7891
7913
|
const institutionDTOOptionList = [];
|
|
7892
7914
|
if (userProfile) {
|
|
7893
7915
|
if (selectedCampusId) {
|
|
7894
|
-
|
|
7895
|
-
const
|
|
7896
|
-
|
|
7897
|
-
(
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7916
|
+
if (userProfile.branchDTOList) {
|
|
7917
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
7918
|
+
const currentInstitution = branchDTO.gradeDTO.seasonDTO.institutionDTO;
|
|
7919
|
+
if (institutionDTOOptionList.findIndex(
|
|
7920
|
+
(institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
|
|
7921
|
+
) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
|
|
7922
|
+
institutionDTOOptionList.push({
|
|
7923
|
+
value: currentInstitution.id,
|
|
7924
|
+
fullValue: currentInstitution,
|
|
7925
|
+
text: currentInstitution.name
|
|
7926
|
+
});
|
|
7927
|
+
}
|
|
7904
7928
|
}
|
|
7905
7929
|
}
|
|
7906
|
-
|
|
7907
|
-
const
|
|
7908
|
-
|
|
7909
|
-
(
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7930
|
+
if (userProfile.gradeDTOList) {
|
|
7931
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
7932
|
+
const currentInstitution = gradeDTO.seasonDTO.institutionDTO;
|
|
7933
|
+
if (institutionDTOOptionList.findIndex(
|
|
7934
|
+
(institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
|
|
7935
|
+
) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
|
|
7936
|
+
institutionDTOOptionList.push({
|
|
7937
|
+
value: currentInstitution.id,
|
|
7938
|
+
fullValue: currentInstitution,
|
|
7939
|
+
text: currentInstitution.name
|
|
7940
|
+
});
|
|
7941
|
+
}
|
|
7916
7942
|
}
|
|
7917
7943
|
}
|
|
7918
|
-
|
|
7919
|
-
const
|
|
7920
|
-
|
|
7921
|
-
(
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7944
|
+
if (userProfile.seasonDTOList) {
|
|
7945
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
7946
|
+
const currentInstitution = seasonDTO.institutionDTO;
|
|
7947
|
+
if (institutionDTOOptionList.findIndex(
|
|
7948
|
+
(institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
|
|
7949
|
+
) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
|
|
7950
|
+
institutionDTOOptionList.push({
|
|
7951
|
+
value: currentInstitution.id,
|
|
7952
|
+
fullValue: currentInstitution,
|
|
7953
|
+
text: currentInstitution.name
|
|
7954
|
+
});
|
|
7955
|
+
}
|
|
7928
7956
|
}
|
|
7929
7957
|
}
|
|
7930
|
-
|
|
7931
|
-
const
|
|
7932
|
-
|
|
7933
|
-
(
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7958
|
+
if (userProfile.institutionDTOList) {
|
|
7959
|
+
for (const institutionDTO of userProfile.institutionDTOList) {
|
|
7960
|
+
const currentInstitution = institutionDTO;
|
|
7961
|
+
if (institutionDTOOptionList.findIndex(
|
|
7962
|
+
(institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
|
|
7963
|
+
) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
|
|
7964
|
+
institutionDTOOptionList.push({
|
|
7965
|
+
value: currentInstitution.id,
|
|
7966
|
+
fullValue: currentInstitution,
|
|
7967
|
+
text: currentInstitution.name
|
|
7968
|
+
});
|
|
7969
|
+
}
|
|
7940
7970
|
}
|
|
7941
7971
|
}
|
|
7942
7972
|
}
|
|
@@ -7947,40 +7977,46 @@ var retrieveSeasonDTOByUserProfileOptionList = (userProfile, selectedBrandId, se
|
|
|
7947
7977
|
const seasonDTOOptionList = [];
|
|
7948
7978
|
if (userProfile) {
|
|
7949
7979
|
if (selectedInstitutionId) {
|
|
7950
|
-
|
|
7951
|
-
const
|
|
7952
|
-
|
|
7953
|
-
(
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7980
|
+
if (userProfile.branchDTOList) {
|
|
7981
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
7982
|
+
const currentSeason = branchDTO.gradeDTO.seasonDTO;
|
|
7983
|
+
if (seasonDTOOptionList.findIndex(
|
|
7984
|
+
(seasonDTOOption) => seasonDTOOption.value === currentSeason.id
|
|
7985
|
+
) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
|
|
7986
|
+
seasonDTOOptionList.push({
|
|
7987
|
+
value: currentSeason.id,
|
|
7988
|
+
fullValue: currentSeason,
|
|
7989
|
+
text: currentSeason.name
|
|
7990
|
+
});
|
|
7991
|
+
}
|
|
7960
7992
|
}
|
|
7961
7993
|
}
|
|
7962
|
-
|
|
7963
|
-
const
|
|
7964
|
-
|
|
7965
|
-
(
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7994
|
+
if (userProfile.gradeDTOList) {
|
|
7995
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
7996
|
+
const currentSeason = gradeDTO.seasonDTO;
|
|
7997
|
+
if (seasonDTOOptionList.findIndex(
|
|
7998
|
+
(seasonDTOOption) => seasonDTOOption.value === currentSeason.id
|
|
7999
|
+
) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
|
|
8000
|
+
seasonDTOOptionList.push({
|
|
8001
|
+
value: currentSeason.id,
|
|
8002
|
+
fullValue: currentSeason,
|
|
8003
|
+
text: currentSeason.name
|
|
8004
|
+
});
|
|
8005
|
+
}
|
|
7972
8006
|
}
|
|
7973
8007
|
}
|
|
7974
|
-
|
|
7975
|
-
const
|
|
7976
|
-
|
|
7977
|
-
(
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
8008
|
+
if (userProfile.seasonDTOList) {
|
|
8009
|
+
for (const seasonDTO of userProfile.seasonDTOList) {
|
|
8010
|
+
const currentSeason = seasonDTO;
|
|
8011
|
+
if (seasonDTOOptionList.findIndex(
|
|
8012
|
+
(seasonDTOOption) => seasonDTOOption.value === currentSeason.id
|
|
8013
|
+
) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
|
|
8014
|
+
seasonDTOOptionList.push({
|
|
8015
|
+
value: currentSeason.id,
|
|
8016
|
+
fullValue: currentSeason,
|
|
8017
|
+
text: currentSeason.name
|
|
8018
|
+
});
|
|
8019
|
+
}
|
|
7984
8020
|
}
|
|
7985
8021
|
}
|
|
7986
8022
|
}
|
|
@@ -7991,28 +8027,32 @@ var retrieveGradeDTOByUserProfileOptionList = (userProfile, selectedBrandId, sel
|
|
|
7991
8027
|
const gradeDTOOptionList = [];
|
|
7992
8028
|
if (userProfile) {
|
|
7993
8029
|
if (selectedSeasonId) {
|
|
7994
|
-
|
|
7995
|
-
const
|
|
7996
|
-
|
|
7997
|
-
(
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8030
|
+
if (userProfile.branchDTOList) {
|
|
8031
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
8032
|
+
const currentGrade = branchDTO.gradeDTO;
|
|
8033
|
+
if (gradeDTOOptionList.findIndex(
|
|
8034
|
+
(gradeDTOOption) => gradeDTOOption.value === currentGrade.id
|
|
8035
|
+
) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
|
|
8036
|
+
gradeDTOOptionList.push({
|
|
8037
|
+
value: currentGrade.id,
|
|
8038
|
+
fullValue: currentGrade,
|
|
8039
|
+
text: currentGrade.name
|
|
8040
|
+
});
|
|
8041
|
+
}
|
|
8004
8042
|
}
|
|
8005
8043
|
}
|
|
8006
|
-
|
|
8007
|
-
const
|
|
8008
|
-
|
|
8009
|
-
(
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8044
|
+
if (userProfile.gradeDTOList) {
|
|
8045
|
+
for (const gradeDTO of userProfile.gradeDTOList) {
|
|
8046
|
+
const currentGrade = gradeDTO;
|
|
8047
|
+
if (gradeDTOOptionList.findIndex(
|
|
8048
|
+
(gradeDTOOption) => gradeDTOOption.value === currentGrade.id
|
|
8049
|
+
) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
|
|
8050
|
+
gradeDTOOptionList.push({
|
|
8051
|
+
value: currentGrade.id,
|
|
8052
|
+
fullValue: currentGrade,
|
|
8053
|
+
text: currentGrade.name
|
|
8054
|
+
});
|
|
8055
|
+
}
|
|
8016
8056
|
}
|
|
8017
8057
|
}
|
|
8018
8058
|
}
|
|
@@ -8023,16 +8063,18 @@ var retrieveBranchDTOByUserProfileOptionList = (userProfile, selectedBrandId, se
|
|
|
8023
8063
|
const branchDTOOptionList = [];
|
|
8024
8064
|
if (userProfile) {
|
|
8025
8065
|
if (selectedGradeId) {
|
|
8026
|
-
|
|
8027
|
-
const
|
|
8028
|
-
|
|
8029
|
-
(
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8066
|
+
if (userProfile.branchDTOList) {
|
|
8067
|
+
for (const branchDTO of userProfile.branchDTOList) {
|
|
8068
|
+
const currentBranch = branchDTO;
|
|
8069
|
+
if (branchDTOOptionList.findIndex(
|
|
8070
|
+
(branchDTOOption) => branchDTOOption.value === currentBranch.id
|
|
8071
|
+
) === -1 && currentBranch.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentBranch.gradeDTO.id === parseFloat(selectedGradeId)) {
|
|
8072
|
+
branchDTOOptionList.push({
|
|
8073
|
+
value: currentBranch.id,
|
|
8074
|
+
fullValue: currentBranch,
|
|
8075
|
+
text: currentBranch.name
|
|
8076
|
+
});
|
|
8077
|
+
}
|
|
8036
8078
|
}
|
|
8037
8079
|
}
|
|
8038
8080
|
}
|