Email css, faculty consolidated-table

This commit is contained in:
Harshitha Shetty
2025-01-29 02:52:43 +05:30
parent fbba4028cb
commit 2c1f7bec7b
4 changed files with 37 additions and 14 deletions

View File

@@ -183,10 +183,14 @@ export const sendEmail = async (formData) => {
export const createExcelBook = (teacherData, teacher) => {
const workbook = XLSX.utils.book_new();
// Extract academicYear and examPeriod from the first entry in the teacherData array
const { academicYear, examPeriod } = teacherData[0] || {};
// Define header information
const headerInfo = [
["Somaiya Vidyavihar University"],
["K. J. SOMAIYA COLLEGE OF ENGINEERING"],
[`Examination: ${examPeriod} ${academicYear}`],
[
"Appointment of Internal Examiners for Paper Setting / OR/PR/Assessment/Reassessment",
],
@@ -199,6 +203,7 @@ export const createExcelBook = (teacherData, teacher) => {
[
"Sr No",
"Semester",
"Program",
"Course Code",
"Course Name",
"Exam Type",
@@ -220,10 +225,11 @@ export const createExcelBook = (teacherData, teacher) => {
const dataRows = teacherData.map((row, index) => [
index + 1,
row.semester,
row.program,
row.courseCode,
row.courseName,
row.examType,
row.year,
Math.ceil(row.semester/2),
row.marks,
row.Name,
row.affiliation,