Exemple #1
0
 public void SelectedDateChanged(object sender, EventArgs e)
 {
     CurriculumnCalendar.SelectedDayStyle.BackColor = Color.Gray;
     OpenTestButton.Enabled = false;
     ShowDescriptionForDataSelection();
     BuildTree(CurriculumnCalendar.SelectedDate);
     UserDescription.Text = StudentRecordFinder.GetDateDescription(_userId, CurriculumnCalendar.SelectedDate);
 }
Exemple #2
0
        public void PageLoad(object sender, EventArgs e)
        {
            if (ServerModel.User.Current != null)
            {
                _userId        = ServerModel.User.Current.ID;
                UserName.Value = ServerModel.User.Current.UserName;

                if (!((Page)sender).IsPostBack)
                {
                    ShowCommonDescription();
                    var controlInfo = BuildTree(null);

                    if (controlInfo != null && controlInfo.IsControlStartsNow)
                    {
                        DoPreControlPreparation();
                        BuildTreeForControl(controlInfo);
                        SelectDatesPeriods(controlInfo.DatePeriods);
                        UserDescription.Text = StudentRecordFinder.GetDateDescription(_userId, CurriculumnCalendar.SelectedDate);
                        _isControlInProgress = true;
                    }
                }
                BuildLatestResultTable();
            }
        }