Esempio n. 1
0
 public static StudentStandardizedTestStats Create(StudentDetailsInfo student, decimal?gradeAvg, ShortStudentAbsenceInfo absences, int?infractions,
                                                   IList <StandardizedTestStatsViewData> standardizedTestStats)
 {
     return(new StudentStandardizedTestStats
     {
         Student = StudentDetailsViewData.Create(student, gradeAvg, absences, infractions),
         StandardizedTestsStats = standardizedTestStats
     });
 }
Esempio n. 2
0
 public static StudentDetailsViewData Create(StudentDetailsInfo student, decimal?gradeAvg, ShortStudentAbsenceInfo absences, int?infractions)
 {
     return(new StudentDetailsViewData
     {
         Id = student.Id,
         DisplayName = student.DisplayName(),
         FullName = student.FullName(),
         FirstName = student.FirstName,
         LastName = student.LastName,
         Gender = student.Gender,
         Role = RoleViewData.Create(CoreRoles.STUDENT_ROLE),
         IsHispanic = student.IsHispanic,
         Ethnicity = student.Ethnicity != null?EthnicityViewData.Create(student.Ethnicity) : null,
                         Absences = absences != null?decimal.Round(absences.NumberOfAbsences) : (decimal?)null,
                                        Discipline = infractions ?? 0,
                                        GradeAvg = gradeAvg.HasValue ? decimal.Round(gradeAvg.Value, 2) : (decimal?)null,
                                        IsIEPActive = student.IsIEPActive,
                                        IsRetainedFromPrevSchoolYear = false,
                                        TotalOfDaysEnrolled = absences?.NumberOfDaysEnrolled
     });
 }