ActionMessages actionMessages = new ActionMessages();
addMessage(request, actionMessages, "error.no.student", studentNumber.toString());
return prepareRectifyMarkSheet(mapping, actionForm, request, response);
}
MarkSheet markSheet = rectifyBean.getMarkSheet();
EnrolmentEvaluation enrolmentEvaluation = markSheet.getEnrolmentEvaluationByStudent(student);
if (enrolmentEvaluation == null) {
ActionMessages actionMessages = new ActionMessages();
addMessage(request, actionMessages, "error.no.student.in.markSheet", studentNumber.toString());
return prepareRectifyMarkSheet(mapping, actionForm, request, response);
}
if (!enrolmentEvaluation.getEnrolmentEvaluationState().equals(EnrolmentEvaluationState.FINAL_OBJ)
&& !enrolmentEvaluation.getEnrolmentEvaluationState().equals(EnrolmentEvaluationState.RECTIFICATION_OBJ)) {
ActionMessages actionMessages = new ActionMessages();
addMessage(request, actionMessages, "error.markSheet.student.alreadyRectified", studentNumber.toString());
return prepareRectifyMarkSheet(mapping, actionForm, request, response);
}
return rectifyMarkSheetStepOne(mapping, actionForm, request, response, rectifyBean, enrolmentEvaluation);