예제 #1
0
 protected StudentProfileViewData(Student student, IList <StudentCustomAlertDetail> customAlerts,
                                  IList <StudentHealthCondition> healthConditions, IList <StudentHealthFormInfo> studentHealthForms) : base(student)
 {
     if (healthConditions != null)
     {
         HealthConditions = StudentHealthConditionViewData.Create(healthConditions);
     }
     if (customAlerts != null)
     {
         StudentCustomAlertDetails = StudentCustomAlertDetailViewData.Create(customAlerts);
     }
     HasNotVerifiedHealthForm = studentHealthForms.Count > 0 && studentHealthForms.Any(x => !x.VerifiedDate.HasValue);
 }
예제 #2
0
 public static StudentAlertDetailsViewData Create(Student student, IList <StudentHealthCondition> healthConditions,
                                                  IList <StudentCustomAlertDetail> customAlerts)
 {
     return(new StudentAlertDetailsViewData
     {
         HealthConditions = StudentHealthConditionViewData.Create(healthConditions),
         StudentCustomAlertDetails = StudentCustomAlertDetailViewData.Create(customAlerts),
         IsAllowedInetAccess = student.IsAllowedInetAccess,
         SpecialInstructions = student.SpecialInstructions,
         HasMedicalAlert = student.HasMedicalAlert,
         SpEdStatus = student.SpEdStatus,
         IsIEPActive = student.IsIEPActive
     });
 }