public List <String> BuildFullKeyList(String fullkey) { List <String> keylist = new List <string>(); fullkey = FullKeyUtils.GetMaskedFullkey(fullkey, globals.OrgLevel); if ((globals.CompareTo.Key == CompareToKeys.Years) || (globals.CompareTo.Key == CompareToKeys.Current)) { //When comparing to Prior Years or Current School Data, keylist.Add(fullkey); } else if (globals.CompareTo.Key == CompareToKeys.OrgLevel) { //always add the State fullkey to the list. keylist.Add(FullKeyUtils.StateFullKey(fullkey)); if (globals.OrgLevel.Key != OrgLevelKeys.State) { //org level is District or School keylist.Add(FullKeyUtils.DistrictFullKey(fullkey)); } if (globals.OrgLevel.Key == OrgLevelKeys.School) { //org level is school keylist.Add(FullKeyUtils.SchoolFullKey(fullkey)); } } return(keylist); }