SIMS 7 - Funding and Monitoring
Funding and Monitoring Data can be accessed as follows
Data available
public class FAMDetail
{
public int id { get; set; }
public int? PersonId { get; set; }
public string name { get; set; }
/// <summary>
/// Learner Funding and Monitoring(FAM) Type
/// </summary>
public string Type { get; set; }
/// <summary>
/// Learner Funding and Monitoring(FAM) Code
/// </summary>
public string Code { get; set; }
/// <summary>
/// Learner Funding and Monitoring(FAM) Hours
/// </summary>
public string Hours { get; set; }
}
How to get it
public class dFamType : dLookup { }
public class dFamCode : dLookup { }
public class FAM
{
public static List<FAMDetail> FAMGet()
{
EditStudentFundingAndMonitoring esfm = new EditStudentFundingAndMonitoring();
esfm.LoadStudents(2023);
List<FAMDetail> details = new List<FAMDetail>();
foreach (StudentFAM s in esfm.StudFAMs.Value)
{
FAMDetail f = new FAMDetail();
f.id = s.ID;
f.PersonId = s.personIdAttribute.Value;
f.name = s.Name;
f.Type = s.FamTypeAttribute.Value;
f.Code = "?"; // Not clear from the picture
f.Hours = s.TotalHours.ToString(); // Check that this is the number needed.
details.Add(f);
}
return details;
}
}