コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: PaymentDetails.cs プロジェクト: RazenRyne/eSAR
 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;
 }
コード例 #3
0
ファイル: frmStudentDetails.cs プロジェクト: RazenRyne/eSAR
        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;
            }
        }
コード例 #4
0
        public Student GetStudent(string StudentId, ref string message)
        {
            StudentService ss = new StudentService();

            return(ss.GetStudent(StudentId, ref message));
        }
コード例 #5
0
ファイル: RegistrationService.cs プロジェクト: RazenRyne/eSAR
 public Student GetStudent(string StudentId, ref string message)
 {
     StudentService ss = new StudentService();
     return ss.GetStudent(StudentId, ref message);
 }
コード例 #6
0
ファイル: RegistrationService.cs プロジェクト: RazenRyne/eSAR
 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);
 }