public string GetLeadText() { if (!ReviewChecked) { return("View your data before requesting amendments or confirming data."); } if (!DataConfirmed) { return("You can now request amendments or confirm data."); } var checkingWindow = CheckingWindow.ToString(); if (checkingWindow.StartsWith("KS2")) { return ($"You have confirmed your Key stage 2 data on {ConfirmationDate:dd/MM/yyyy}. You can continue to request further amendments until the end of the checking exercise window."); } if (checkingWindow.StartsWith("KS4")) { return ($"You have confirmed your Key stage 4 data on {ConfirmationDate:dd/MM/yyyy}. You can continue to request further amendments until the end of the checking exercise window."); } return ($"You have confirmed your data. You can continue to request further amendments until the end of the checking exercise window."); }
private School Get(Expression <Func <EstablishmentDTO, bool> > predicate, CheckingWindow checkingWindow) { var collectionName = $"{checkingWindow.ToString().ToLower()}_establishments_{_allocationYear}"; var establishmentDtos = _documentRepository .Get <EstablishmentDTO>(collectionName) .Where(predicate) .ToList(); if (establishmentDtos.Any()) { return(GetEstablishment(establishmentDtos.First())); } return(null); }
public string GetReviewedRowText() { var checkingWindow = CheckingWindow.ToString(); if (checkingWindow.StartsWith("KS2")) { return ($"You have confirmed your Key stage 2 data on {ConfirmationDate:dd/MM/yyyy}. You can continue to request further amendments until the end of the checking exercise window."); } if (checkingWindow.StartsWith("KS4")) { return ($"You have confirmed your Key stage 4 data on {ConfirmationDate:dd/MM/yyyy}. You can continue to request further amendments until the end of the checking exercise window."); } return ($"You have confirmed your 16 to 18 data on {ConfirmationDate:dd/MM/yyyy}. You can continue to request further amendments until the end of the checking exercise window."); }
public static Keystage ToKeyStage(this CheckingWindow checkingWindow) { var checkingWindowString = checkingWindow.ToString(); if (checkingWindowString.ToLower().StartsWith("ks2")) { return(Keystage.KS2); } if (checkingWindowString.ToLower().StartsWith("ks4")) { return(Keystage.KS4); } if (checkingWindowString.ToLower().StartsWith("ks5")) { return(Keystage.KS5); } return(Keystage.Unknown); }
private Dictionary <string, string> GetMeasures(MeasureType measureType) { if (CheckingWindow.ToString().StartsWith("KS4")) { switch (measureType) { case MeasureType.Headline: return(new Dictionary <string, string> { { "P8MEA", "Progress 8 measure after adjustment for extreme scores" }, { "ATT8SCR", "Average Attainment 8 score per pupil" }, { "PTEBACC_95", "Percentage of pupils achieving the English Baccalaureate with 9-5 passes" } }); case MeasureType.Additional: return(new Dictionary <string, string> { { "EBACCAPS", "Average EBacc APS score per pupil" }, { "PTEBACC", "Percentage of pupils achieving the English Baccalaureate with 9-4 passes" } }); case MeasureType.Cohort: default: return(new Dictionary <string, string> { { "TPUP", "Number of pupils at the end of key stage 4" }, { "P8PUP", "Number of pupils included in Progress 8 measure" }, { "SENSE4", "Number of pupils at the end of key stage 4 with special educational needs (SEN) with a statement or Education, health and care (EHC) plan" } }); } } if (CheckingWindow.ToString().StartsWith("KS5")) { switch (measureType) { case MeasureType.Headline: return(new Dictionary <string, string> { { "TALLPPE_ALEV_1618", "A level average result point score" }, { "TALLPPE_ACAD_1618", "Academic exam average result point score" }, { "TALLPPE_AGEN", "Applied general exam average result point score" } }); case MeasureType.Additional: return(new Dictionary <string, string> { { "PROGEX_E", "English progress score" }, { "PROGEX_M", "Maths progress score" } }); case MeasureType.Cohort: default: return(new Dictionary <string, string> { { "TALLPUP_ALEV_1618", "Number of students with an A level exam entry" }, { "TALLPUP_ACAD_1618", "Number of students with an academic exam entry" }, { "TALLPUP_AGEN", "Number of students with an applied general exam entry" } }); } } return(null); }
private string GetCollection(CheckingWindow checkingWindow) { return($"{checkingWindow.ToString().ToLower()}_pupils_{_allocationYear}"); }