Commit f0ac2409 authored by Deep Dey's avatar Deep Dey

feat: add new sheets download feature

parent c90e2385
...@@ -123,6 +123,57 @@ public class AdmissionFormController { ...@@ -123,6 +123,57 @@ public class AdmissionFormController {
HttpStatus.OK); HttpStatus.OK);
} }
@GetMapping(
value = "/admission-form/set-admission-interview",
produces = MediaType.APPLICATION_JSON_VALUE
)
@ApiResponses(value = {
@ApiResponse(code = 200, message = "SUCCESS"),
@ApiResponse(code = 400, message = "FAILED"),
@ApiResponse(code = 500, message = "Exception Occurred")
})
@ApiOperation(value = "")
public Object setFinalAdmissionInterview(
HttpServletRequest request,
@RequestHeader("apikey") String apiKey,
@RequestParam(defaultValue = "") String formIds,
@RequestParam("admissionDate") String admissionDate,
@RequestParam("admissionTime") String admissionTime
) throws Exception {
List<Long> formIdList = Stream.of(formIds.split(","))
.map(Long::valueOf)
.toList();
if (formIdList.isEmpty()) {
throw new Exception("Provide formIds to schedule interview");
}
AtomicBoolean partiallyFailed = new AtomicBoolean(false);
formIdList.forEach(formId -> {
try {
if (!admissionFormDAOController
.updateAdmissionDateTime(formId, admissionDate, admissionTime)) {
partiallyFailed.set(true);
}
} catch (Exception e) {
partiallyFailed.set(true);
}
});
if (partiallyFailed.get()) {
throw new Exception("For Some of the forms failed to schedule admission");
}
return new ResponseEntity<>(
new GeneralResponse(
true,
AppConstants.RESPONSE_SUCCESS_STATUS_CODE,
"Admission Date and Time Set Successfully",
null
),
HttpStatus.OK);
}
@GetMapping( @GetMapping(
value = "/admission-form/get-all", value = "/admission-form/get-all",
produces = MediaType.APPLICATION_JSON_VALUE produces = MediaType.APPLICATION_JSON_VALUE
...@@ -149,7 +200,7 @@ public class AdmissionFormController { ...@@ -149,7 +200,7 @@ public class AdmissionFormController {
true, true,
AppConstants.RESPONSE_SUCCESS_STATUS_CODE, AppConstants.RESPONSE_SUCCESS_STATUS_CODE,
"Data Fetched Successfully", "Data Fetched Successfully",
this.admissionFormDAOController.getAdmissionFormDataList( this.admissionFormDAOController.getAdmissionFormDataPreviewList(
schoolName, schoolName,
className, className,
interactionDate, interactionDate,
......
...@@ -3,6 +3,7 @@ package com.example.LaMartin.admission.dao.controller; ...@@ -3,6 +3,7 @@ package com.example.LaMartin.admission.dao.controller;
import com.example.LaMartin.admission.dao.repository.AdmissionFormDataRepository; import com.example.LaMartin.admission.dao.repository.AdmissionFormDataRepository;
import com.example.LaMartin.admission.model.AdmissionFormData; import com.example.LaMartin.admission.model.AdmissionFormData;
import com.example.LaMartin.admission.pojo.AdmissionFormCount; import com.example.LaMartin.admission.pojo.AdmissionFormCount;
import com.example.LaMartin.admission.pojo.AdmissionFormDataPreview;
import com.example.LaMartin.common.service.EmailService; import com.example.LaMartin.common.service.EmailService;
import com.example.LaMartin.common.service.FileStorageService; import com.example.LaMartin.common.service.FileStorageService;
import com.example.LaMartin.common.service.PdfService; import com.example.LaMartin.common.service.PdfService;
...@@ -97,6 +98,22 @@ public class AdmissionFormDAOController { ...@@ -97,6 +98,22 @@ public class AdmissionFormDAOController {
); );
} }
public List<AdmissionFormDataPreview> getAdmissionFormDataPreviewList(
String schoolName,
String className,
String interactionDate,
String interactionTime,
String correspondenceEmail
) {
return admissionFormDataRepository.getAdmissionFormDataListPreview(
schoolName,
className,
interactionDate,
interactionTime,
correspondenceEmail
);
}
public List<AdmissionFormData> getAdmissionFormDataListByIds(List<Long> idList) { public List<AdmissionFormData> getAdmissionFormDataListByIds(List<Long> idList) {
return admissionFormDataRepository.getAdmissionFormDataListByIds(idList); return admissionFormDataRepository.getAdmissionFormDataListByIds(idList);
} }
...@@ -127,6 +144,33 @@ public class AdmissionFormDAOController { ...@@ -127,6 +144,33 @@ public class AdmissionFormDAOController {
return updated; return updated;
} }
public boolean updateAdmissionDateTime(
Long id,
String interactionDate,
String interactionTime
) throws Exception {
boolean updated = admissionFormDataRepository
.updateAdmissionDateTime(id, interactionDate, interactionTime);
if (updated) {
AdmissionFormData data = this.admissionFormDataRepository.getAdmissionFormDataById(id);
String emailBody = this.templateService
.generateAdmissionConfirmationFormTemplate(data);
ByteArrayInputStream pdfStream = pdfService.convertHtmlToPdf(emailBody);
this.emailService.sendHtmlEmail(
data.getFatherEmail(),
"ADMISSION APPOINTMENT | " + data.getSchool().toUpperCase(),
emailBody,
pdfStream
);
}
return updated;
}
public AdmissionFormCount getAdmissionFormCount() { public AdmissionFormCount getAdmissionFormCount() {
return admissionFormDataRepository.getAdmissionFormCount(); return admissionFormDataRepository.getAdmissionFormCount();
} }
......
...@@ -5,6 +5,7 @@ import com.example.LaMartin.admission.mapper.AdmissionFormMapper; ...@@ -5,6 +5,7 @@ import com.example.LaMartin.admission.mapper.AdmissionFormMapper;
import com.example.LaMartin.admission.mapper.AdmissionFormPreviewMapper; import com.example.LaMartin.admission.mapper.AdmissionFormPreviewMapper;
import com.example.LaMartin.admission.model.AdmissionFormData; import com.example.LaMartin.admission.model.AdmissionFormData;
import com.example.LaMartin.admission.pojo.AdmissionFormCount; import com.example.LaMartin.admission.pojo.AdmissionFormCount;
import com.example.LaMartin.admission.pojo.AdmissionFormDataPreview;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -157,7 +158,7 @@ public class AdmissionFormDataRepository { ...@@ -157,7 +158,7 @@ public class AdmissionFormDataRepository {
} }
} }
public List<AdmissionFormData> getAdmissionFormDataList( public List<AdmissionFormDataPreview> getAdmissionFormDataListPreview(
String schoolName, String schoolName,
String className, String className,
String interactionDate, String interactionDate,
...@@ -203,6 +204,52 @@ public class AdmissionFormDataRepository { ...@@ -203,6 +204,52 @@ public class AdmissionFormDataRepository {
.query(sql.toString(), parameters, new AdmissionFormPreviewMapper()); .query(sql.toString(), parameters, new AdmissionFormPreviewMapper());
} }
public List<AdmissionFormData> getAdmissionFormDataList(
String schoolName,
String className,
String interactionDate,
String interactionTime,
String correspondenceEmail
) {
StringBuilder sql = new StringBuilder(
"""
SELECT afd.*,
CASE
WHEN email_count > 1 THEN true
ELSE false
END AS is_duplicate
FROM admission_form_data afd
JOIN (SELECT father_email,
COUNT(*) AS email_count
FROM admission_form_data
GROUP BY father_email) email_counts
ON afd.father_email = email_counts.father_email WHERE 1 = 1""");
MapSqlParameterSource parameters = new MapSqlParameterSource();
if (schoolName != null && !schoolName.isEmpty()) {
sql.append(" AND afd.school = :schoolName");
parameters.addValue("schoolName", schoolName);
}
if (className != null && !className.isEmpty()) {
sql.append(" AND afd.admission_class = :className");
parameters.addValue("className", className);
}
if (interactionDate != null && !interactionDate.isEmpty()) {
sql.append(" AND afd.interaction_date = :interactionDate");
parameters.addValue("interactionDate", interactionDate);
}
if (interactionTime != null && !interactionTime.isEmpty()) {
sql.append(" AND afd.interaction_time = :interactionTime");
parameters.addValue("interactionTime", interactionTime);
}
if (correspondenceEmail != null && !correspondenceEmail.isEmpty()) {
sql.append(" AND afd.father_email = :correspondenceEmail");
parameters.addValue("correspondenceEmail", correspondenceEmail);
}
return namedParameterJdbcTemplate
.query(sql.toString(), parameters, new AdmissionFormMapper());
}
public List<AdmissionFormData> getAdmissionFormDataListByIds(List<Long> ids) { public List<AdmissionFormData> getAdmissionFormDataListByIds(List<Long> ids) {
String sql = "SELECT *, false as is_duplicate FROM admission_form_data WHERE id IN (:ids)"; String sql = "SELECT *, false as is_duplicate FROM admission_form_data WHERE id IN (:ids)";
...@@ -249,6 +296,22 @@ public class AdmissionFormDataRepository { ...@@ -249,6 +296,22 @@ public class AdmissionFormDataRepository {
return rowsAffected > 0; return rowsAffected > 0;
} }
public boolean updateAdmissionDateTime(
Long admissionFormId,
String admissionDate,
String admissionTime
) {
String sql = "UPDATE admission_form_data SET admission_date = :admissionDate, admission_time = :admissionTime WHERE id = :admissionFormId";
MapSqlParameterSource params =
new MapSqlParameterSource()
.addValue("admissionDate", admissionDate)
.addValue("admissionTime", admissionTime)
.addValue("admissionFormId", admissionFormId);
int rowsAffected = namedParameterJdbcTemplate.update(sql, params);
return rowsAffected > 0;
}
public AdmissionFormCount getAdmissionFormCount() { public AdmissionFormCount getAdmissionFormCount() {
String sql = """ String sql = """
SELECT SELECT
......
...@@ -66,6 +66,9 @@ public class AdmissionFormMapper implements RowMapper<AdmissionFormData> { ...@@ -66,6 +66,9 @@ public class AdmissionFormMapper implements RowMapper<AdmissionFormData> {
formData.setInteractionDate(RowMapperUtil.getString(rs, "interaction_date")); formData.setInteractionDate(RowMapperUtil.getString(rs, "interaction_date"));
formData.setInteractionTime(RowMapperUtil.getString(rs, "interaction_time")); formData.setInteractionTime(RowMapperUtil.getString(rs, "interaction_time"));
formData.setAdmissionDate(RowMapperUtil.getString(rs, "admission_date"));
formData.setAdmissionTime(RowMapperUtil.getString(rs, "admission_time"));
// newly added fields // newly added fields
formData.setStaffDepartment(RowMapperUtil.getString(rs, "staff_department")); formData.setStaffDepartment(RowMapperUtil.getString(rs, "staff_department"));
formData.setStaffCategory(RowMapperUtil.getString(rs, "staff_category")); formData.setStaffCategory(RowMapperUtil.getString(rs, "staff_category"));
......
package com.example.LaMartin.admission.mapper; package com.example.LaMartin.admission.mapper;
import com.example.LaMartin.admission.model.AdmissionFormData; import com.example.LaMartin.admission.model.AdmissionFormData;
import com.example.LaMartin.admission.pojo.AdmissionFormDataPreview;
import com.example.LaMartin.common.utils.RowMapperUtil; import com.example.LaMartin.common.utils.RowMapperUtil;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.RowMapper;
...@@ -10,20 +11,22 @@ import java.sql.ResultSet; ...@@ -10,20 +11,22 @@ import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
@Component @Component
public class AdmissionFormPreviewMapper implements RowMapper<AdmissionFormData> { public class AdmissionFormPreviewMapper implements RowMapper<AdmissionFormDataPreview> {
@Override @Override
public AdmissionFormData mapRow(@NotNull ResultSet rs, int rowNum) throws SQLException { public AdmissionFormDataPreview mapRow(@NotNull ResultSet rs, int rowNum) throws SQLException {
AdmissionFormData formData = new AdmissionFormData(); AdmissionFormDataPreview formData = new AdmissionFormDataPreview();
formData.setId(rs.getLong("id"));
formData.setFullName(RowMapperUtil.getString(rs, "full_name")); formData.setFullName(RowMapperUtil.getString(rs, "full_name"));
formData.setFatherName(RowMapperUtil.getString(rs, "father_name")); formData.setFatherName(RowMapperUtil.getString(rs, "father_name"));
formData.setFatherEmail(RowMapperUtil.getString(rs, "father_email")); formData.setFatherEmail(RowMapperUtil.getString(rs, "father_email"));
formData.setMotherName(RowMapperUtil.getString(rs, "mother_name")); formData.setMotherName(RowMapperUtil.getString(rs, "mother_name"));
formData.setInteractionDate(RowMapperUtil.getString(rs, "interaction_date")); formData.setInteractionDate(RowMapperUtil.getString(rs, "interaction_date"));
formData.setInteractionTime(RowMapperUtil.getString(rs, "interaction_time")); formData.setInteractionTime(RowMapperUtil.getString(rs, "interaction_time"));
formData.setAdmissionDate(RowMapperUtil.getString(rs, "admission_date"));
formData.setAdmissionTime(RowMapperUtil.getString(rs, "admission_time"));
return formData; return formData;
} }
......
...@@ -102,6 +102,8 @@ public class AdmissionFormData { ...@@ -102,6 +102,8 @@ public class AdmissionFormData {
private String motherImageName; private String motherImageName;
private String interactionDate; private String interactionDate;
private String interactionTime; private String interactionTime;
private String admissionDate;
private String admissionTime;
private boolean duplicateFatherEmail; private boolean duplicateFatherEmail;
} }
package com.example.LaMartin.admission.pojo;
import lombok.*;
import org.springframework.web.multipart.MultipartFile;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@Getter
@Setter
public class AdmissionFormDataPreview {
private Long id;
private String fullName;
private String fatherName;
private String fatherEmail;
private String motherName;
private String interactionDate;
private String interactionTime;
private String admissionDate;
private String admissionTime;
}
...@@ -11,6 +11,8 @@ import org.thymeleaf.context.Context; ...@@ -11,6 +11,8 @@ import org.thymeleaf.context.Context;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
@Service @Service
...@@ -27,17 +29,23 @@ public class TemplateService { ...@@ -27,17 +29,23 @@ public class TemplateService {
return templateEngine.process("AdmissionFormListTemplate", context); return templateEngine.process("AdmissionFormListTemplate", context);
} }
public String generateAdmissionConfirmationFormTemplate(@NotNull AdmissionFormData admissionFormData) {
LocalDate date = LocalDate.parse(admissionFormData.getAdmissionDate());
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
admissionFormData.setInteractionDate(date.format(formatter));
String givenYear = admissionFormData.getAdmissionDate().substring(0, 4);
Context context = new Context();
context.setVariable("admissionFormList", List.of(admissionFormData));
context.setVariable("serverPath", settings.getStaticServerPath());
context.setVariable("currentDate", LocalDate.now().format(formatter));
context.setVariable("givenYear", Integer.parseInt(givenYear));
return templateEngine.process("AdmissionConfirmationFormListTemplate", context);
}
public String generateAdmissionConfirmationFormListTemplate(List<AdmissionFormData> admissionFormDataList) { public String generateAdmissionConfirmationFormListTemplate(List<AdmissionFormData> admissionFormDataList) {
// for (AdmissionFormData admissionFormData: admissionFormDataList)
// {
// String originalDate = "2024-07-04";
// LocalDate date = LocalDate.parse(admissionFormData.getInteractionDate());
// DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
// admissionFormData.setInteractionDate(date.format(formatter));
// }
Context context = new Context(); Context context = new Context();
context.setVariable("admissionFormList", admissionFormDataList); context.setVariable("admissionFormList", admissionFormDataList);
context.setVariable("serverPath", settings.getStaticServerPath()); context.setVariable("serverPath", settings.getStaticServerPath());
...@@ -46,7 +54,6 @@ public class TemplateService { ...@@ -46,7 +54,6 @@ public class TemplateService {
} }
public String generateAdmissionInterviewTemplate(@NotNull AdmissionFormData admissionFormData) { public String generateAdmissionInterviewTemplate(@NotNull AdmissionFormData admissionFormData) {
String originalDate = "2024-07-04"; // Example date string
LocalDate date = LocalDate.parse(admissionFormData.getInteractionDate()); LocalDate date = LocalDate.parse(admissionFormData.getInteractionDate());
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy"); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
admissionFormData.setInteractionDate(date.format(formatter)); admissionFormData.setInteractionDate(date.format(formatter));
......
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
<title>Intimation for Admission</title>
<style>
* {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
font-size: 12px;
}
body {
margin: 0px 20px;
}
.header,
.content,
.footer {
text-align: center;
position: relative;
width: 100%;
}
.content {
text-align: justify;
}
.left,
.center,
.right {
display: inline-block;
}
.left{
position: absolute;
left: 0;
}
.right{
position: absolute;
right: 0;
}
.middle{
margin: 0 auto;
text-align: center;
}
.header img {
height: 80px;
}
.content {
margin-top: 10px;
}
.content p {
margin: 5px 0;
}
.content b {
font-weight: bold;
}
.account-details,
.fee-details {
width: 100%;
margin-top: 20px;
border-collapse: collapse;
}
.account-details td,
.fee-details td,
.fee-details th {
border: 1px solid black;
padding: 5px;
text-align: left;
}
.fee-details th {
text-align: center;
}
.signature {
margin-top: 40px;
text-align: left;
}
.signature img{
width: 18%;
height: 18%;
}
</style>
</head>
<body>
<div class="container" th:each="admissionForm : ${admissionFormList}">
<div class="header">
<div class="left">
<h4>Supriyo Dhar, HRM, MBA, LLB<br />Secretary</h4>
</div>
<div class="center">
<img th:src="@{${serverPath + 'static/la-martin-logo.png'}}" alt="Logo" height="80px"/>
<!-- <img src="la-martin-logo copy.png" alt="Logo" height="80px" /> -->
</div>
<div class="right">
<h2>La Martiniere</h2>
</div>
</div>
<div class="content">
<div class="left">
<p><b>To,</b><br />
<b th:text="${admissionForm.fatherName}">Pratik Shrivastava</b>
</p>
</div>
<div class="right">
<p><b th:text="${admissionForm.interactionDate}">17/07/2024</b></p>
</div>
<br/>
<br/>
<br/>
<div class="middle">
<strong>Sub: <u>Intimation for Admission</u></strong>
</div>
<p>Dear Parent/s,</p>
<br />
<p>We are pleased to inform you that your son <b th:text="${admissionForm.fullName}"></b> has been
granted admission to <b th:text="${admissionForm.admissionClass}"></b> for the year
2024-2025.</p>
<p>Please contact the <b>Principal's office of La Martiniere for Boys, 11 Dr. U.N. Brahmachari Street,
Kolkata 700 017</b>, in person, along with a printout of this letter on <b>05/04/2024 at 10:00am</b>
for necessary formalities.</p>
<p>Parents willing to pay the full year fee may do so, or pay quarterly by way of Pay Order favouring <b>“La
Martiniere Calcutta”</b> or bank transfer, at the time of admission.</p>
<p>For the <b>1<sup>st</sup> Quarter (April to June 2024)</b>, parents are to pay <b>Rs. 1,69,500/- (Rupees
One Lacs Sixty Nine Thousand Five Hundred only)</b> towards Tuition Fees, Session Fees,
Infrastructure Development Fees, Admission Fees, Building Development Fees and Security Deposit
(refundable). The amount may be transferred directly to the following account.</p>
<br />
<p><b><u>Penalty of Rs.5000/- will be levied if fees not paid on the due date.</u></b></p>
<table class="account-details">
<tr>
<td>Account Name</td>
<td>: La Martiniere, Calcutta</td>
</tr>
<tr>
<td>Account Number</td>
<td>: 031201001229</td>
</tr>
<tr>
<td>Bank Name</td>
<td>: ICICI Bank, Gorky Terrace</td>
</tr>
<tr>
<td>Account Type</td>
<td>: Savings</td>
</tr>
<tr>
<td>RTGS/NEFT/IFS Code</td>
<td>: ICIC0000312</td>
</tr>
</table>
<br />
<p>Please email the enclosed format to <b>lmcao@rediffmail.com</b> for confirmation of your payment and also
bring a hard copy while visiting Principal’s Office.</p>
<table class="fee-details">
<tr>
<th>Quarters</th>
<th>Amount</th>
<th>Date of Payment</th>
</tr>
<tr>
<td>1<sup>st</sup> Quarter (April to June 2024)</td>
<td>Rs. 1,69,500.00</td>
<td>On the date of admission</td>
</tr>
<tr>
<td>2<sup>nd</sup> Quarter (July to Sept. 2024)</td>
<td>Rs. 1,24,500.00</td>
<td>1<sup>st</sup> to 5<sup>th</sup> July, 2024</td>
</tr>
<tr>
<td>3<sup>rd</sup> Quarter (Oct to Dec. 2024)</td>
<td>Rs. 1,24,500.00</td>
<td>1<sup>st</sup> to 5<sup>th</sup> Oct. 2024</td>
</tr>
<tr>
<td>4<sup>th</sup> Quarter (Jan to March 2025)</td>
<td>Rs. 1,24,500.00</td>
<td>6<sup>th</sup> to 11<sup>th</sup> Jan 2025</td>
</tr>
<tr>
<td><b>Total</b></td>
<td colspan="2"><b>Rs 5,43,000.00</b></td>
</tr>
</table>
<div class="signature">
<p>Yours faithfully,</p>
<!-- <img th:src="@{${serverPath + 'static/signature.png'}}" alt="Logo" height="80px" /> -->
<img src="signature.png" alt="Logo" height="80px" />
<p><b>SUPRIYO DHAR</b><br />Secretary<br />La Martiniere, Kolkata</p>
</div>
<div class="footer">
<div class="left">
<p>11 Dr. U.N. Brahmachari Street<br />Kolkata - 700 017 (INDIA)</p>
</div>
<div class="center">
<p>+91-33-4040-6600/01<br />22890112(D)</p>
</div>
<div class="right">
<p>secretary@lamartiniere.co<br />lamartiniere.co</p>
</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
<title>Intimation for Admission</title>
<style>
* {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
font-size: 12px;
}
body {
margin: 0px 20px;
}
.header,
.content,
.footer {
text-align: center;
position: relative;
width: 100%;
}
.content {
text-align: justify;
}
.left,
.center,
.right {
display: inline-block;
}
.left {
position: absolute;
left: 0;
}
.right {
position: absolute;
right: 0;
}
.middle {
margin: 0 auto;
text-align: center;
}
.header img {
height: 80px;
}
.content {
margin-top: 10px;
}
.content p {
margin: 5px 0;
}
.content b {
font-weight: bold;
}
.account-details,
.fee-details {
width: 100%;
margin-top: 20px;
border-collapse: collapse;
}
.account-details td,
.fee-details td,
.fee-details th {
border: 1px solid black;
padding: 5px;
text-align: left;
}
.fee-details th {
text-align: center;
}
.signature {
margin-top: 40px;
text-align: left;
}
.signature img {
width: 18%;
height: 18%;
}
.page-break { page-break-after: always; }
</style>
</head>
<body>
<div class="container" th:each="admissionForm : ${admissionFormList}">
<div class="header">
<div class="left">
<h4>Supriyo Dhar, HRM, MBA, LLB<br />Secretary</h4>
</div>
<div class="center">
<img th:src="@{${serverPath + 'static/la-martin-logo.png'}}" alt="Logo" height="110px" />
</div>
<div class="right">
<h2>La Martiniere</h2>
</div>
</div>
<div class="content page-break">
<div class="left">
<p><b>To,</b><br />
<b th:text="${admissionForm.fatherName}">Pratik Shrivastava</b>
<span th:if="${admissionForm.motherName != null}">
/ <b th:text="${admissionForm.motherName}"></b>
</span>
</p>
</div>
<div class="right">
<p><b th:text="${currentDate}">17/07/2024</b></p>
</div>
<br />
<br />
<br />
<div class="middle">
<strong>Sub: <u>Intimation for Admission</u></strong>
</div>
<p>Dear Parent/s,</p>
<br />
<p>
We are pleased to inform you that your
<span th:if="${admissionForm.school == 'La Martiniere for Boys'}">
<span>son </span>
</span>
<span th:if="${admissionForm.school == 'La Martiniere for Girls'}">
<span>daughter </span>
</span>
<b th:text="${admissionForm.fullName}"></b>
has been
granted admission to <b th:text="${admissionForm.admissionClass}"></b> for the year <span th:text="(${givenYear + 1}) + ' - ' + (${givenYear + 2})"></span>.
</p>
<p>Please contact the <strong>Principal's office of <span th:text="${admissionForm.school}"></span></strong>, in person, along with a printout of this letter on <b><span th:text="${admissionForm.admissionDate}"></span> at <span th:text="${admissionForm.admissionTime}"></span></b> for necessary formalities.</p>
<p>Parents willing to pay the full year fee may do so, or pay quarterly by way of Pay Order favouring <b>“La
Martiniere Calcutta”</b> or bank transfer, at the time of admission.</p>
<p>For the <b>1<sup>st</sup> Quarter (April to June <span th:text="(${givenYear + 1})"></span>)</b>, parents are to pay <b>Rs. 1,69,500/- (Rupees
One Lacs Sixty Nine Thousand Five Hundred only)</b> towards Tuition Fees, Session Fees,
Infrastructure Development Fees, Admission Fees, Building Development Fees and Security Deposit
(refundable). The amount may be transferred directly to the following account.</p>
<br />
<p><b><u>Penalty of Rs.5000/- will be levied if fees not paid on the due date.</u></b></p>
<table class="account-details">
<tr>
<td>Account Name</td>
<td>: La Martiniere, Calcutta</td>
</tr>
<tr>
<td>Account Number</td>
<td>: 031201001229</td>
</tr>
<tr>
<td>Bank Name</td>
<td>: ICICI Bank, Gorky Terrace</td>
</tr>
<tr>
<td>Account Type</td>
<td>: Savings</td>
</tr>
<tr>
<td>RTGS/NEFT/IFS Code</td>
<td>: ICIC0000312</td>
</tr>
</table>
<br />
<p>Please email the enclosed format to <b>lmcao@rediffmail.com</b> for confirmation of your payment and also bring a hard copy while visiting Principal’s Office.</p>
<table class="fee-details">
<tr>
<th>Quarters</th>
<th>Amount</th>
<th>Date of Payment</th>
</tr>
<tr>
<td>1<sup>st</sup> Quarter (April to June <span th:text="(${givenYear + 1})"></span>)</td>
<td>Rs. 1,69,500.00</td>
<td>On the date of admission</td>
</tr>
<tr>
<td>2<sup>nd</sup> Quarter (July to Sept. <span th:text="(${givenYear + 1})"></span>)</td>
<td>Rs. 1,24,500.00</td>
<td>1<sup>st</sup> to 5<sup>th</sup> July, <span th:text="(${givenYear + 1})"></span></td>
</tr>
<tr>
<td>3<sup>rd</sup> Quarter (Oct to Dec. <span th:text="(${givenYear + 1})"></span>)</td>
<td>Rs. 1,24,500.00</td>
<td>1<sup>st</sup> to 5<sup>th</sup> Oct. <span th:text="(${givenYear + 1})"></span></td>
</tr>
<tr>
<td>4<sup>th</sup> Quarter (Jan to March <span th:text="(${givenYear + 2})"></span>)</td>
<td>Rs. 1,24,500.00</td>
<td>6<sup>th</sup> to 11<sup>th</sup> Jan <span th:text="(${givenYear + 2})"></span></td>
</tr>
<tr>
<td><b>Total</b></td>
<td colspan="2"><b>Rs 5,43,000.00</b></td>
</tr>
</table>
<div class="signature">
<p>Yours faithfully,</p>
<img th:src="@{${serverPath + 'static/signature.png'}}" width="80px" />
<p><b>SUPRIYO DHAR</b><br />Secretary<br />La Martiniere, Kolkata</p>
</div>
<div class="footer" style="margin-top: 10px;">
<div class="left">
<p>11 Dr. U.N. Brahmachari Street<br />Kolkata - 700 017 (INDIA)</p>
</div>
<div class="center">
<p>+91-33-4040-6600/01<br />22890112(D)</p>
</div>
<div class="right">
<p>secretary@lamartiniere.co<br />lamartiniere.co</p>
</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
<td th:text="${admissionForm.fatherReligion}"></td> <td th:text="${admissionForm.fatherReligion}"></td>
</tr> </tr>
<tr> <tr>
<td>Father's Ddenomination</td> <td>Father's Denomination</td>
<td th:text="${admissionForm.fatherDenomination} ?: 'N/A'"></td> <td th:text="${admissionForm.fatherDenomination} ?: 'N/A'"></td>
</tr> </tr>
<tr> <tr>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
<tr> <tr>
<td>Mother's Name</td> <td>Mother's Name</td>
<td th:text="${admissionForm.motherName}"></td> <td th:text="${admissionForm.motherName} ?: 'N/A'"></td>
</tr> </tr>
<tr> <tr>
<td>Mother's Contact Number</td> <td>Mother's Contact Number</td>
...@@ -260,14 +260,14 @@ ...@@ -260,14 +260,14 @@
</tr> </tr>
<tr> <tr>
<td>Mother's Nationality</td> <td>Mother's Nationality</td>
<td th:text="${admissionForm.motherNationality}"></td> <td th:text="${admissionForm.motherNationality} ?: 'N/A'"></td>
</tr> </tr>
<tr> <tr>
<td>Mother's Religion</td> <td>Mother's Religion</td>
<td th:text="${admissionForm.motherReligion}"></td> <td th:text="${admissionForm.motherReligion} ?: 'N/A'"></td>
</tr> </tr>
<tr> <tr>
<td>Mother's Ddenomination</td> <td>Mother's Denomination</td>
<td th:text="${admissionForm.motherDenomination} ?: 'N/A'"></td> <td th:text="${admissionForm.motherDenomination} ?: 'N/A'"></td>
</tr> </tr>
<tr> <tr>
...@@ -276,15 +276,15 @@ ...@@ -276,15 +276,15 @@
</tr> </tr>
<tr> <tr>
<td>Mother's Mother Tongue</td> <td>Mother's Mother Tongue</td>
<td th:text="${admissionForm.motherMotherTongue}"></td> <td th:text="${admissionForm.motherMotherTongue} ?: 'N/A'"></td>
</tr> </tr>
<tr> <tr>
<td>Mother's Community</td> <td>Mother's Community</td>
<td th:text="${admissionForm.motherCommunity}"></td> <td th:text="${admissionForm.motherCommunity} ?: 'N/A'"></td>
</tr> </tr>
<tr> <tr>
<td>Mother's School Info</td> <td>Mother's School Info</td>
<td th:text="${admissionForm.motherSchoolInfo}"></td> <td th:text="${admissionForm.motherSchoolInfo} ?: 'N/A'"></td>
</tr> </tr>
<tr> <tr>
<td>Mother's College Info</td> <td>Mother's College Info</td>
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<body> <body>
<div class="container"> <div class="container">
<div class="header"> <div class="header">
<img th:src="@{${serverPath + 'static/la-martin-logo.webp'}}" alt="Proof of Delivery" height="80px"> <img th:src="@{${serverPath + 'static/la-martin-logo.png'}}" alt="Proof of Delivery" height="80px">
<h2 style="text-transform: capitalize;" th:text="${admissionForm.school}"></h2> <h2 style="text-transform: capitalize;" th:text="${admissionForm.school}"></h2>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment