예제 #1
0
        protected override void OnInitComplete(EventArgs e)
        {
            GlobalValues.TrendStartYear = 1997;
            GlobalValues.CurrentYear    = 2010;

            //Disable CourseType, Other
            if (GlobalValues.CourseTypeID.Key == CourseTypeIDKeys.Other)
            {
                GlobalValues.CourseTypeID.Value = (String)GlobalValues.GetParamDefault(GlobalValues.CourseTypeID.Name);
            }

            //Disable School Level
            if (UserValues.OrgLevel.Key == OrgLevelKeys.School)
            {
                GlobalValues.OrgLevel.Value = GlobalValues.OrgLevel.Range[OrgLevelKeys.District];
                pnlMessage.Visible          = true;
            }

            //Disable Compare To State
            if (UserValues.CompareTo.Key == CompareToKeys.OrgLevel)
            {
                GlobalValues.CompareTo.Value = GlobalValues.CompareTo.Range[CompareToKeys.Current];
            }
            nlrCompareTo.LinkRow.LinkControlAdded += new LinkControlAddedHandler(LinkRow_LinkControlAdded);

            //STYP not supported
            GlobalValues.OverrideSchoolTypeWhenOrgLevelIsSchool_Complete += PageBaseWI.DisableSchoolType;

            //View By Group Not Supported
            GlobalValues.Group.Value = GlobalValues.Group.Range[GroupKeys.All];

            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.WMAS, nlrSubject, WMASKeys.Other);

            base.OnInitComplete(e);
        }
예제 #2
0
        protected override void OnInitComplete(EventArgs e)
        {
            GlobalValues.CurrentYear    = 2013;
            GlobalValues.TrendStartYear = 2006;

            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.Grade, nlrGrade, GradeKeys.Combined_PreK_12);
            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.SubjectID, nlrSubject, SubjectIDKeys.Reading);

            GradeCodesActive = getGradeCodeRange();
            if (!GradeCodesActive.Contains(GlobalValues.Grade.Value))
            {
                GlobalValues.Grade.Key = GradeKeys.Combined_PreK_12;
            }

            nlrGrade.LinkControlAdded += new LinkControlAddedHandler(disableGradeLinks_LinkControlAdded);

            GlobalValues.OverrideSchoolTypeWhenOrgLevelIsSchool_Complete += PageBaseWI.DisableSchoolType;
            GlobalValues.CompareTo.Key = CompareToKeys.Current;
            GlobalValues.Group.Key     = GroupKeys.All;

            QueryMarshaller.gradeCodes.ObeyForceDisAgg       = true;
            QueryMarshaller.WsasSubjectCodes.ObeyForceDisAgg = true;

            base.OnInitComplete(e);
        }
        protected override void OnInitComplete(EventArgs e)
        {
            GlobalValues.CurrentYear      = 2013;
            GlobalValues.ForceCurrentYear = true;

            //Disable "All Tested Subjects"
            if (GlobalValues.SubjectID.Key == SubjectIDKeys.AllTested)
            {
                GlobalValues.SubjectID.Key = SubjectIDKeys.Reading;
            }
            nlrSubject.LinkControlAdded += new LinkControlAddedHandler(disableAllSubjects_LinkControlAdded);

            //View By Group Unsupported.
            GlobalValues.Group.Key = GroupKeys.All;
            //SchoolType Unsupported.
            GlobalValues.OverrideSchoolTypeWhenOrgLevelIsSchool_Complete += PageBaseWI.DisableSchoolType;
            //Compare To Unsupported.
            GlobalValues.CompareTo.Key = CompareToKeys.Current;
            //StateLevel Unsupported.
            if (GlobalValues.OrgLevel.Key == OrgLevelKeys.State)
            {
                GlobalValues.OrgLevel.Key = OrgLevelKeys.District;
            }

            GlobalValues.FAYCode.Key = FAYCodeKeys.FAY;

            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.SubjectID, nlrSubject, SubjectIDKeys.Reading);
            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.Grade, nlrGrade, GradeKeys.Combined_PreK_12);

            GlobalValues.GradeCodesActive = getGradeCodeRange(this);
            if (GlobalValues.GradeCodesActive.Count > 0 &&
                !GlobalValues.GradeCodesActive.Contains(GlobalValues.Grade.Value))
            {
                GlobalValues.Grade.Value = GlobalValues.GradeCodesActive[0];                                                                     //default to minimum grade
            }
            nlrGrade.LinkControlAdded += new LinkControlAddedHandler(disableGradeLinks_LinkControlAdded);

            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.Level, nlrLevel, LevelKeys.AdvancedProficient);
            if (GlobalValues.Level.Key == LevelKeys.All)
            {
                GlobalValues.Level.Key = LevelKeys.AdvancedProficient;
            }
            nlrLevel.LinkControlAdded += new LinkControlAddedHandler(disableLevels_LinkControlAdded);

            if (GlobalValues.WOW.Key == WOWKeys.WSASCombined &&
                (GlobalValues.Level.Key == LevelKeys.WAA_ELL || GlobalValues.Level.Key == LevelKeys.WAA_SwD))
            {
                GlobalValues.Level.Key = LevelKeys.NoWSAS;
            }

            base.OnInitComplete(e);

            if (GlobalValues.Grade.Key == GradeKeys.Combined_PreK_12)
            {
                DataGrid.Columns.FieldsChanged += new EventHandler(renameEnrolledColumn_FieldsChanged);
            }

            nlrLevel.LinkControlAdded += new LinkControlAddedHandler(renameLevelLabels_LinkControlAdded);
        }
예제 #4
0
        protected override void OnInitComplete(EventArgs e)
        {
            GlobalValues.CurrentYear    = 2005;
            GlobalValues.TrendStartYear = 1998;

            GlobalValues.OverrideSchoolTypeWhenOrgLevelIsSchool_Complete += PageBaseWI.DisableSchoolType;

            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.Level, nlrLevel, LevelKeys.Advanced);

            //ViewByGroup Not Supported:
            GlobalValues.Group.Value = GlobalValues.Group.Range[GroupKeys.All];

            base.OnInitComplete(e);
        }
        protected override void OnInitComplete(EventArgs e)
        {
            GlobalValues.TrendStartYear = (GlobalValues.WOW.Key == WOWKeys.WKCE) ? 1997 : 2003;
            //Can't support more than current year because dbObject tblWSASDemographicsFlat has only one year
            GlobalValues.ForceCurrentYear = true;
            GlobalValues.CurrentYear      = 2013;

            //View By Group Unsupported.
            GlobalValues.Group.Key = GroupKeys.All;
            //SchoolType Unsupported.
            GlobalValues.OverrideSchoolTypeWhenOrgLevelIsSchool_Complete += PageBaseWI.DisableSchoolType;
            //StateLevel Unsupported.
            if (GlobalValues.OrgLevel.Key == OrgLevelKeys.State)
            {
                GlobalValues.OrgLevel.Key = OrgLevelKeys.District;
            }

            GlobalValues.FAYCode.Key = FAYCodeKeys.FAY;

            //Subjects
            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.SubjectID, nlrSubject, SubjectIDKeys.Reading);
            if (GlobalValues.CompareTo.Key != CompareToKeys.Current || GlobalValues.Group.Key != GroupKeys.All)
            {
                nlrSubject.LinkControlAdded += new LinkControlAddedHandler(disableSubjects_LinkControlAdded);
                if (GlobalValues.SubjectID.Key == SubjectIDKeys.AllTested)
                {
                    GlobalValues.SubjectID.Key = SubjectIDKeys.Reading;
                }
            }

            //Grades
            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.Grade, nlrGrade, GradeKeys.Combined_PreK_12);
            GlobalValues.GradeCodesActive = StateTestsScatterplot.getGradeCodeRange(this);
            if (!GlobalValues.GradeCodesActive.Contains(GlobalValues.Grade.Value))
            {
                GlobalValues.Grade.Value = GlobalValues.GradeCodesActive[0];                                                                     //default to minimum grade
            }
            nlrGrade.LinkControlAdded += new LinkControlAddedHandler(StateTestsScatterplot.disableGradeLinks_LinkControlAdded);

            //When no Choice On, then override everything
            //also remove it from the QS
            //When no other options are chosen, then Set globals to No Choice On

            if (GlobalValues.inQS.Contains(GlobalValues.NoChce.Name) &&
                GlobalValues.NoChce.Key == NoChceKeys.On)
            {
                UserValues.SPEND.Key      = GlobalValues.SPEND.Key = SPENDKeys.Off;
                UserValues.SIZE.Key       = GlobalValues.SIZE.Key = SIZEKeys.Off;
                UserValues.ECON.Key       = GlobalValues.ECON.Key = ECONKeys.Off;
                UserValues.DISABILITY.Key = GlobalValues.DISABILITY.Key = DISABILITYKeys.Off;
                UserValues.LEP.Key        = GlobalValues.LEP.Key = LEPKeys.Off;

                GlobalValues.inQS.Remove(GlobalValues.NoChce.Name);
            }

            if (!
                (GlobalValues.SPEND.Key == SPENDKeys.On ||
                 GlobalValues.SIZE.Key == SIZEKeys.On ||
                 GlobalValues.ECON.Key == ECONKeys.On ||
                 GlobalValues.DISABILITY.Key == DISABILITYKeys.On ||
                 GlobalValues.LEP.Key == LEPKeys.On)
                )
            {
                GlobalValues.NoChce.Key = NoChceKeys.On;
            }

            base.OnInitComplete(e);

            if (GlobalValues.Grade.Key == GradeKeys.Combined_PreK_12)
            {
                DataGrid.Columns.FieldsChanged += new EventHandler(StateTestsScatterplot.renameEnrolledColumn_FieldsChanged);
            }

            nlrCompareTo.ShowSimilarSchoolsLink    = true;
            nlrCompareTo.LinkRow.LinkControlAdded += new LinkControlAddedHandler(SetURLFile_LinkControlAdded);
        }
        protected override void OnInitComplete(EventArgs e)
        {
            GlobalValues.TrendStartYear = (GlobalValues.WOW.Key == WOWKeys.WKCE) ? 1997 : 2003;
            GlobalValues.CurrentYear    = 2013;

            QueryMarshaller.RaceDisagCodes.Add((int)QueryMarshaller.RaceCodes.RaceEth_NA);

            //Disable View By Grade:
            if (GlobalValues.Group.Key == GroupKeys.Grade)
            {
                GlobalValues.Group.Key = GroupKeys.All;
            }

            //SchoolType Unsupported.
            GlobalValues.OverrideSchoolTypeWhenOrgLevelIsSchool_Complete += PageBaseWI.DisableSchoolType;

            if (GlobalValues.OrgLevel.Key != OrgLevelKeys.State || GlobalValues.SuperDownload.Key == SupDwnldKeys.True)
            {
                GlobalValues.FAYCode.Key = FAYCodeKeys.FAY;
            }
            else
            {
                GlobalValues.FAYCode.Key = FAYCodeKeys.NonFAY;
            }

            // Overrides are ordered by precedence, be careful!!

            //If this is the first time into the page, and CompareTo hasn't been selected on a previous page, then override the default to Current:
            object objCompare = GlobalValues.CompareTo.GetParamFromUser(GlobalValues.CompareTo.Name);

            if (objCompare == null)
            {
                GlobalValues.CompareTo.Key = CompareToKeys.Current;
            }

            //*** Level
            //Override WAA Levels based on WKCE or WSAS:
            if (GlobalValues.WOW.Key == WOWKeys.WSASCombined &&
                (GlobalValues.Level.Key == LevelKeys.WAA_ELL || GlobalValues.Level.Key == LevelKeys.WAA_SwD)
                )
            {
                GlobalValues.Level.Key = LevelKeys.NoWSAS;
            }

            nlrLevel.LinkControlAdded += new LinkControlAddedHandler(WKCEorWSASLevels_LinkControlAdded);
            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.Level, nlrLevel, LevelKeys.AdvancedProficient);

            //***Subjects
            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.SubjectID, nlrSubject, SubjectIDKeys.Reading);

            //***Grades
            QueryMarshaller.gradeCodes.ObeyForceDisAgg = true;
            GlobalValues.OverrideByNavLinksNotPresent(GlobalValues.Grade, nlrGrade, GlobalValues.Grade.Value);
            GradeCodesActive = getGradeCodeRange();
            if (GlobalValues.SuperDownload.Key == SupDwnldKeys.True)
            {//necessary when Combined grades is selected because gives wrong floor.
                GlobalValues.Grade.Key = GradeKeys.AllDisAgg;
            }
            else if (!GradeCodesActive.Contains(GlobalValues.Grade.Value))
            {
                if (GradeCodesActive[0] == GlobalValues.Grade.Range[GradeKeys.Grade_3] &&
                    GradeCodesActive.Contains(GlobalValues.Grade.Range[GradeKeys.Grade_4]))
                {// Don't use Grade 3 for the default
                    GlobalValues.Grade.Key = GradeKeys.Grade_4;
                }
                else
                {
                    GlobalValues.Grade.Value = GradeCodesActive[0];  //default to minimum grade
                }
            }
            nlrGrade.LinkControlAdded += new LinkControlAddedHandler(disableGradeLinks_LinkControlAdded);

            QueryMarshaller.SexDisagCodes.Add((int)SexCodes.Missing);

            base.OnInitComplete(e);

            if (GlobalValues.Grade.Key == GradeKeys.AllDisAgg ||
                GlobalValues.Grade.Key == GradeKeys.Combined_PreK_12)
            {
                QueryMarshaller.gradeCodes.ObeyForceDisAgg = true;
            }

            DataGrid.Columns.FieldsChanged += new EventHandler(Columns_FieldsChanged);

            nlrCompareTo.ShowSimilarSchoolsLink = true;

            nlrLevel.LinkControlAdded += new LinkControlAddedHandler(renameLevelLabels_LinkControlAdded);

            if (GlobalValues.OrgLevel.Key == OrgLevelKeys.District)
            {
                QueryMarshaller.RaceDisagCodes.Add((int)QueryMarshaller.RaceCodes.Comb);
            }

            // Give other overrides a chance to have effect before overriding Year
            if (GlobalValues.CompareTo.Key == CompareToKeys.Years)
            { //due to changes is cut scores, years are not comparable.
                /*if (GlobalValues.SubjectID.Key == SubjectIDKeys.AllTested)
                 * { // Override Subject
                 *  GlobalValues.SubjectID.Key = SubjectIDKeys.Reading;
                 * } */
                if (GlobalValues.Year > 2012 &&
                    (GlobalValues.SubjectID.Key == SubjectIDKeys.Reading ||
                     GlobalValues.SubjectID.Key == SubjectIDKeys.Math ||
                     GlobalValues.SubjectID.Key == SubjectIDKeys.AllTested))
                {
                    GlobalValues.CurrentYear = 2012;
                }

                //nlrSubject.LinkControlAdded += new LinkControlAddedHandler(nlrSubject_LinkControlAdded_DisableAllSubjects);
            }
        }