Esempio n. 1
0
        private void TeacherCardsList_Load(object sender, EventArgs e)
        {
            LoadYearsList();

            LoadTeacherList();

            LoadDepartmentList();

            GrayOutControls();

            rates = pyrhRepo.year(currentYear);
        }
        private void ReloadYearHours(int year)
        {
            var hours = pyrhRepo.year(year);

            hoursGridView.DataSource = hours.OrderBy(i => i.rate_hours).ToList();

            hoursGridView.Columns["id"].Visible            = false;
            hoursGridView.Columns["year"].HeaderText       = "Год";
            hoursGridView.Columns["position"].HeaderText   = "Должность";
            hoursGridView.Columns["position"].Width        = 200;
            hoursGridView.Columns["rate_hours"].HeaderText = "Часов на ставку";
        }