public bool UpdateStudent(ref Student student, ref string message) { StudentService ss = new StudentService(); return ss.UpdateStudent(ref student, ref message); }
public void TranslatEnrolBDOToEnrol(StudentEnrollmentBDO seb, StudentEnrollment se) { StudentService ss = new StudentService(); Student stu = new Student(); ss.TranslateStudentBDOToStudentDTO(seb.Student, stu); se.StudentSY = seb.StudentSY; se.StudentId = seb.StudentId; se.SY = seb.SY; se.GradeLevel = seb.GradeLevel; se.GradeSectionCode = seb.GradeSectionCode; se.Dismissed = seb.Dismissed; se.Stat = seb.Stat; se.DiscountId = (int)seb.DiscountId; se.StudentName = stu.LastName + ", " + stu.FirstName + " " + stu.MiddleName; se.StudentEnrollmentsID = seb.StudentEnrollmentsID; se.student = stu; }
public Student StudentInfoWithRank(string IDnum, string gradelevel, string gender) { StudentService ss = new StudentService(); return ss.StudentInfoWithRank(IDnum, gradelevel,gender); }
public Student GetStudent(string StudentId, ref string message) { StudentService ss = new StudentService(); return ss.GetStudent(StudentId, ref message); }
public Boolean EnrolStudent(StudentEnrollment studentEnr) { GradeSectionLogic gsl = new GradeSectionLogic(); StudentService ss = new StudentService(); StudentEnrollmentBDO studentBDO = new StudentEnrollmentBDO(); string message = string.Empty; List<GradeSectionBDO> sections = new List<GradeSectionBDO>(); string grade = studentEnr.GradeLevel; sections = (gsl.GetAllSectionsofGrade(grade)); int div = studentEnr.Rank / 20; div++; int index = sections.FindIndex(item => item.Class == div); studentEnr.GradeSectionCode = sections[index].GradeSectionCode; TranslatEnrolToEnrolBDO(studentEnr, studentBDO); if (sel.RegisterStudent(studentBDO, ref message)) { string section = String.Empty; studentBDO.GradeSectionCode = studentEnr.GradeSectionCode; index = sections.FindIndex(item => item.GradeSectionCode == studentEnr.GradeSectionCode); section = sections[index].Section; ss.UpdateStudent(studentEnr.StudentId, studentEnr.GradeLevel, studentEnr.Rank, section); ControlStudentCharacters(studentBDO); return true; } else return false; }
public bool EnrolIrregStudent(StudentEnrollment studentEnr) { GradeSectionLogic gsl = new GradeSectionLogic(); StudentService ss = new StudentService(); StudentEnrollmentBDO studentBDO = new StudentEnrollmentBDO(); TranslatEnrolToEnrolBDO(studentEnr, studentBDO); string message = string.Empty; if (sel.RegisterStudent(studentBDO, ref message)) { string section = String.Empty; int gsc = (int)studentEnr.GradeSectionCode; section = gsl.GetSection(gsc); ss.UpdateStudent(studentEnr.StudentId,studentEnr.GradeLevel,studentEnr.Rank,section); ControlStudentCharacters(studentBDO); return true; } else return false; }