Exemplo n.º 1
0
        private void LoadLearningPlanList()
        {
            var plans     = lpRepo.all();
            var plansView = LearningPlanView.FromLearningPlanList(plans);

            LearningPlanList.DataSource    = plansView;
            LearningPlanList.ValueMember   = "id";
            LearningPlanList.DisplayMember = "summary";
        }
Exemplo n.º 2
0
        private void RefreshLearningPlanList()
        {
            LearningPlans = lpRepo.all()
                            .OrderBy(lp => lp.starting_year)
                            .ThenBy(lp => lp.speciality_code)
                            .ThenBy(lp => lp.speciality_name)
                            .ToList();

            LearningPlanGridView.DataSource                            = LearningPlans;
            LearningPlanGridView.Columns["id"].Visible                 = false;
            LearningPlanGridView.Columns["name"].HeaderText            = "Название";
            LearningPlanGridView.Columns["speciality_code"].HeaderText = "Код направления / специальности";
            LearningPlanGridView.Columns["speciality_code"].Width      = 60;
            LearningPlanGridView.Columns["speciality_name"].HeaderText = "Название направления / специальности";
            LearningPlanGridView.Columns["profile"].Visible            = false;
            LearningPlanGridView.Columns["starting_year"].HeaderText   = "Год начала обучения";
            LearningPlanGridView.Columns["education_standard"].Visible = false;
            LearningPlanGridView.Columns["faculty_id"].Visible         = false;
        }