示例#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);
        }