© 2018 Capita Business Services Ltd. All rights reserved.

Capita Education Software Solutions is a trading name of Capita Business Services Ltd. Our Registered office is 30 Berners Street, London, W1T 3LR and our registered number is 02299747. Further information about Capita plc can be found in our legal statement.

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;
        }
    }