Exemple #1
0
        }//---------------------------

        //this procedure will InitializeEmployee Information Tree View
        private void InitializeEmployeeInformationTreeView()
        {
            if (this.cboSemester.SelectedIndex >= 0)
            {
                _teacherLoadingManager.GetSearchedEmployee(this.trvEmployee, this.txtEmployeeSearch.Text,
                                                           _teacherLoadingManager.GetSchoolYearYearId(this.cboYear.SelectedIndex),
                                                           _teacherLoadingManager.GetSemesterSystemId(this.cboYear.SelectedIndex, this.cboSemester.SelectedIndex));

                this.btnPrintAll.Enabled = _teacherLoadingManager.HasTeacherLoad(_teacherLoadingManager.GetSchoolYearYearId(this.cboYear.SelectedIndex),
                                                                                 _teacherLoadingManager.GetSemesterSystemId(this.cboYear.SelectedIndex, this.cboSemester.SelectedIndex));
            }
            else
            {
                _teacherLoadingManager.GetSearchedEmployee(this.trvEmployee, this.txtEmployeeSearch.Text,
                                                           _teacherLoadingManager.GetSchoolYearYearId(this.cboYear.SelectedIndex), "");

                this.btnPrintAll.Enabled = _teacherLoadingManager.HasTeacherLoad(_teacherLoadingManager.GetSchoolYearYearId(this.cboYear.SelectedIndex), String.Empty);
            }

            _teacherLoadingManager.InitializePersonImageTable(_userInfo, Application.StartupPath);

            _teacherLoadingManager.SelectBySysIDEmployeeListDateStartEndSpecialClassInformation(_userInfo, _dateStart, _dateEnd);
        }//--------------------------