public bool UpdateStudentBalance(string studentSy, string studentID, float assessmentfee) { string message = ""; StudentService ss = new StudentService(); Student stu = new Student(); stu = ss.GetStudent(studentID, ref message); stu.RunningBalance = stu.RunningBalance + assessmentfee; return(ss.UpdateStudent(ref stu, ref message)); }
private bool chkStudentID() { Student student = new Student(); string msg = string.Empty; IStudentService studentService = new StudentService(); student = studentService.GetStudent(txtIDNumber.Text, ref msg); if (student.StudentId != null) { return true; } else return false; }
private void txtStudentId_Leave(object sender, EventArgs e) { Student student = new Student(); string msg = string.Empty; IStudentService studentService = new StudentService(); if (txtStudentId.Text == string.Empty) txtStudentId.Text = szStudentID; student = studentService.GetStudent(txtStudentId.Text, ref msg); if (student.StudentId != null) { MessageBox.Show("Student ID already exist!"); txtStudentId.Text = szStudentID; txtStudentId.Focus(); return; } }
public Student GetStudent(string StudentId, ref string message) { StudentService ss = new StudentService(); return(ss.GetStudent(StudentId, ref message)); }
public Student GetStudent(string StudentId, ref string message) { StudentService ss = new StudentService(); return ss.GetStudent(StudentId, ref message); }
public bool UpdateStudentBalance(string studentSy, string studentID, float assessmentfee) { string message = ""; StudentService ss = new StudentService(); Student stu = new Student(); stu = ss.GetStudent(studentID, ref message); stu.RunningBalance = stu.RunningBalance + assessmentfee; return ss.UpdateStudent(ref stu, ref message); }