Skip to content

Commit db60961

Browse files
Merge remote-tracking branch 'origin/master'
2 parents ee03c88 + 5f5f54c commit db60961

20 files changed

+87
-5
lines changed

backend/src/components/sdc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,18 @@ function getFileDetails(reportType, mincode) {
672672
'ALL_STUDENT_ERRORS_WARNS_DIS_CSV': { filename: `AllDistrictStudentsWithErrorsWarns_${mincode}.csv`, contentType: 'text/csv' },
673673
'ALL_STUDENT_DIS_CSV': { filename: `AllDistrictStudents_${mincode}.csv`, contentType: 'text/csv' },
674674
'ALL_STUDENT_SCHOOL_CSV': { filename: `AllSchoolStudents_${mincode}.csv`, contentType: 'text/csv' },
675+
'ALL_STUDENT_FRENCH_DIS_CSV': { filename: `AllDistrictFrenchProgramStudents_${mincode}.csv`, contentType: 'text/csv' },
676+
'ALL_STUDENT_CAREER_DIS_CSV': { filename: `AllDistrictCareerProgramStudents_${mincode}.csv`, contentType: 'text/csv' },
677+
'ALL_STUDENT_INDIGENOUS_DIS_CSV': { filename: `AllDistrictIndigenousAndSupportProgramStudents_${mincode}.csv`, contentType: 'text/csv' },
678+
'ALL_STUDENT_INCLUSIVE_DIS_CSV': { filename: `AllDistrictInclusiveEducationProgramStudents_${mincode}.csv`, contentType: 'text/csv' },
679+
'ALL_STUDENT_ELL_DIS_CSV': { filename: `AllDistrictEnglishLanguageLearningProgramStudents_${mincode}.csv`, contentType: 'text/csv' },
680+
'ALL_STUDENT_REFUGEE_DIS_CSV': { filename: `AllDistrictRefugeeStudents_${mincode}.csv`, contentType: 'text/csv' },
681+
'ALL_STUDENT_FRENCH_SCHOOL_CSV': { filename: `AllSchoolFrenchStudents_${mincode}.csv`, contentType: 'text/csv' },
682+
'ALL_STUDENT_CAREER_SCHOOL_CSV': { filename: `AllSchoolCareerStudents_${mincode}.csv`, contentType: 'text/csv' },
683+
'ALL_STUDENT_INDIGENOUS_SCHOOL_CSV': { filename: `AllSchoolIndigenousAndSupportProgramStudents_${mincode}.csv`, contentType: 'text/csv' },
684+
'ALL_STUDENT_INCLUSIVE_SCHOOL_CSV': { filename: `AllSchoolInclusiveEducationProgramStudents_${mincode}.csv`, contentType: 'text/csv' },
685+
'ALL_STUDENT_ELL_SCHOOL_CSV': { filename: `AllSchoolEnglishLanguageLearningProgramStudents_${mincode}.csv`, contentType: 'text/csv' },
686+
'ALL_STUDENT_REFUGEE_SCHOOL_CSV': { filename: `AllSchoolRefugeeStudents_${mincode}.csv`, contentType: 'text/csv' },
675687
'ELL_HEADCOUNT': { filename: `ELLHeadcount_School_${mincode}.pdf`, contentType: 'application/pdf' },
676688
'DIS_ELL_HEADCOUNT': { filename: `ELLHeadcount_District_${mincode}.pdf`, contentType: 'application/pdf' },
677689
'DIS_ELL_HEADCOUNT_PER_SCHOOL': { filename: `ELLHeadcountPerSchool_District_${mincode}.pdf`, contentType: 'application/pdf' },

backend/src/util/constants.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,21 @@ const reportTypeValues = [
215215
['career_dis', 'DIS_CAREER_HEADCOUNT'],
216216
['career-per-school_dis', 'DIS_CAREER_HEADCOUNT_PER_SCHOOL'],
217217
['csv_school', 'ALL_STUDENT_SCHOOL_CSV'],
218-
['csv_dis', 'ALL_STUDENT_DIS_CSV'],
219218
['csv_school_errors_warns', 'ALL_STUDENT_ERRORS_WARNS_SCHOOL_CSV'],
219+
['csv_school_french', 'ALL_STUDENT_FRENCH_SCHOOL_CSV'],
220+
['csv_school_career', 'ALL_STUDENT_CAREER_SCHOOL_CSV'],
221+
['csv_school_indigenous', 'ALL_STUDENT_INDIGENOUS_SCHOOL_CSV'],
222+
['csv_school_inclusive', 'ALL_STUDENT_INCLUSIVE_SCHOOL_CSV'],
223+
['csv_school_ell', 'ALL_STUDENT_ELL_SCHOOL_CSV'],
224+
['csv_school_refugee', 'ALL_STUDENT_REFUGEE_SCHOOL_CSV'],
225+
['csv_dis', 'ALL_STUDENT_DIS_CSV'],
220226
['csv_dis_errors_warns', 'ALL_STUDENT_ERRORS_WARNS_DIS_CSV'],
227+
['csv_dis_french', 'ALL_STUDENT_FRENCH_DIS_CSV'],
228+
['csv_dis_career', 'ALL_STUDENT_CAREER_DIS_CSV'],
229+
['csv_dis_indigenous', 'ALL_STUDENT_INDIGENOUS_DIS_CSV'],
230+
['csv_dis_inclusive', 'ALL_STUDENT_INCLUSIVE_DIS_CSV'],
231+
['csv_dis_ell', 'ALL_STUDENT_ELL_DIS_CSV'],
232+
['csv_dis_refugee', 'ALL_STUDENT_REFUGEE_DIS_CSV'],
221233
['zero-fte-summary_dis','DIS_ZERO_FTE_SUMMARY']
222234
];
223235
const REPORT_TYPE_CODE_MAP = Object.freeze(new Map(reportTypeValues));

frontend/src/components/sdcCollection/sdcDistrictCollection/stepThreeVerifyData/AllStudentsComponent.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
:config="config"
3232
:district="district"
3333
:show-export-btn="true"
34+
:export-type="'all-students'"
3435
:is-final-sign-off="isFinalSignOff"
3536
:is-collection-active="isCollectionActive"
3637
/>

frontend/src/components/sdcCollection/sdcDistrictCollection/stepThreeVerifyData/CareerProgramsComponent.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<DetailComponent
3131
:config="config"
3232
:district="district"
33+
:show-export-btn="true"
34+
:export-type="'csv_dis_career'"
3335
:is-final-sign-off="isFinalSignOff"
3436
:is-collection-active="isCollectionActive"
3537
/>

frontend/src/components/sdcCollection/sdcDistrictCollection/stepThreeVerifyData/DetailComponent.vue

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class="mr-2 mb-1"
2525
prepend-icon="mdi-tray-arrow-down"
2626
variant="elevated"
27-
@click="showExportDialog = true"
27+
@click="handleExportClick"
2828
/>
2929
<v-btn
3030
id="filters"
@@ -128,7 +128,11 @@
128128
<script>
129129
import alertMixin from '../../../../mixins/alertMixin';
130130
import CustomTable from '../../common/SDCCustomTable.vue';
131-
import {downloadStudentOnlyReportURL,downloadStudentErrorsReportURL} from '../../../../utils/common';
131+
import {
132+
downloadStudentOnlyReportURL,
133+
downloadStudentErrorsReportURL,
134+
downloadStudentProgramReportURL
135+
} from '../../../../utils/common';
132136
import ApiService from '../../../../common/apiService';
133137
import {ApiRoutes} from '../../../../utils/constants';
134138
import {cloneDeep, isEmpty, omitBy} from 'lodash';
@@ -161,6 +165,11 @@ export default {
161165
type: Boolean,
162166
default: false
163167
},
168+
exportType: {
169+
type: String,
170+
required: false,
171+
default: 'all-students'
172+
},
164173
isFinalSignOff: {
165174
type: Boolean,
166175
required: false
@@ -216,13 +225,25 @@ export default {
216225
});
217226
},
218227
methods: {
228+
handleExportClick() {
229+
if (this.exportType === 'all-students') {
230+
this.showExportDialog = true;
231+
} else {
232+
this.downloadStudentProgramReport();
233+
}
234+
},
219235
closeAndLoadStudents() {
220236
this.editStudentSheet = !this.editStudentSheet;
221237
if (this.reloadStudentsFlag === true) {
222238
this.loadStudents();
223239
}
224240
this.reloadStudentsFlag = false;
225241
},
242+
downloadStudentProgramReport(){
243+
const routeData = this.$router.resolve({path: downloadStudentProgramReportURL(this.$route, this.exportType)});
244+
window.open(routeData.href, '_blank');
245+
this.showExportDialog = false;
246+
},
226247
downloadStudentReport(){
227248
const routeData = this.$router.resolve({path: downloadStudentOnlyReportURL(this.$route)});
228249
window.open(routeData.href, '_blank');

frontend/src/components/sdcCollection/sdcDistrictCollection/stepThreeVerifyData/EnglishLangComponent.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<DetailComponent
3131
:config="config"
3232
:district="district"
33+
:show-export-btn="true"
34+
:export-type="'csv_dis_ell'"
3335
:is-final-sign-off="isFinalSignOff"
3436
:is-collection-active="isCollectionActive"
3537
/>

frontend/src/components/sdcCollection/sdcDistrictCollection/stepThreeVerifyData/FrenchProgramsComponent.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<DetailComponent
3131
:config="config"
3232
:district="district"
33+
:show-export-btn="true"
34+
:export-type="'csv_dis_french'"
3335
:is-final-sign-off="isFinalSignOff"
3436
:is-collection-active="isCollectionActive"
3537
/>

frontend/src/components/sdcCollection/sdcDistrictCollection/stepThreeVerifyData/IndSupportProgramsComponent.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<DetailComponent
3131
:config="config"
3232
:district="district"
33+
:show-export-btn="true"
34+
:export-type="'csv_dis_indigenous'"
3335
:is-final-sign-off="isFinalSignOff"
3436
:is-collection-active="isCollectionActive"
3537
/>

frontend/src/components/sdcCollection/sdcDistrictCollection/stepThreeVerifyData/RefugeeComponent.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
<DetailComponent
3131
:config="config"
3232
:district="district"
33+
:show-export-btn="true"
34+
:export-type="'csv_dis_refugee'"
3335
:is-final-sign-off="isFinalSignOff"
3436
:is-collection-active="isCollectionActive"
3537
/>

frontend/src/components/sdcCollection/sdcDistrictCollection/stepThreeVerifyData/SpecialEduComponent.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
<DetailComponent
3232
:config="config"
3333
:district="district"
34+
:show-export-btn="true"
35+
:export-type="'csv_dis_inclusive'"
3436
:is-final-sign-off="isFinalSignOff"
3537
:is-collection-active="isCollectionActive"
3638
/>

0 commit comments

Comments
 (0)