Beispiel #1
0
        public List <StudentAssessment> AssessMe(StudentEnrollment student)
        {
            FeeService fs        = new FeeService();
            List <Fee> feeList   = new List <Fee>();
            Fee        FeeforAll = new Fee();

            feeList   = fs.GetAllFeesForGradeLevel(student.GradeLevel, student.SY);
            FeeforAll = fs.GetFeeForAll(student.SY);
            if (FeeforAll.Amount != null)
            {
                feeList.Add(FeeforAll);
            }
            foreach (Fee f in feeList)
            {
                StudentAssessmentBDO sabdo = new StudentAssessmentBDO()
                {
                    StudentSY  = student.StudentSY,
                    FeeID      = f.FeeID,
                    DiscountId = student.DiscountId
                };

                sal.AssessStudent(sabdo);
            }
            return(GetStudentAssessment(student.StudentId, student.SY));
        }
Beispiel #2
0
        public List <Fee> GetStudentFees(StudentEnrollment student)
        {
            FeeService fs      = new FeeService();
            List <Fee> feeList = new List <Fee>();

            //Changed
            feeList = fs.GetAllFeesForGradeLevel(student.GradeLevel, student.SY);
            feeList.Add(fs.GetFeeForAll(student.SY));
            foreach (Fee f in feeList)
            {
                StudentAssessmentBDO sabdo = new StudentAssessmentBDO()
                {
                    StudentSY  = student.StudentSY,
                    FeeID      = f.FeeID,
                    DiscountId = student.DiscountId
                };
            }
            return(feeList);
        }
Beispiel #3
0
 public List<Fee> GetStudentFees(StudentEnrollment student)
 {
     FeeService fs = new FeeService();
     List<Fee> feeList = new List<Fee>();
     //Changed
     feeList = fs.GetAllFeesForGradeLevel(student.GradeLevel, student.SY);
     feeList.Add(fs.GetFeeForAll(student.SY));
     foreach (Fee f in feeList)
     {
         StudentAssessmentBDO sabdo = new StudentAssessmentBDO()
         {
             StudentSY = student.StudentSY,
             FeeID = f.FeeID,
             DiscountId = student.DiscountId
         };
     }
     return feeList;
 }
Beispiel #4
0
        public List<StudentAssessment> AssessMe(StudentEnrollment student)
        {
            FeeService fs = new FeeService();
            List<Fee> feeList = new List<Fee>();
            Fee FeeforAll = new Fee();
            feeList = fs.GetAllFeesForGradeLevel(student.GradeLevel, student.SY);
            FeeforAll = fs.GetFeeForAll(student.SY);
            if (FeeforAll.Amount != null)
                feeList.Add(FeeforAll);
            foreach (Fee f in feeList)
            {
                StudentAssessmentBDO sabdo = new StudentAssessmentBDO()
                {
                    StudentSY = student.StudentSY,
                    FeeID = f.FeeID,
                    DiscountId = student.DiscountId
                };

                sal.AssessStudent(sabdo);
            }
            return GetStudentAssessment(student.StudentId, student.SY);
        }