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

        //###########################################COMBOBOX cboYear EVENTS#####################################################
        //event is raised when the selected index is changed
        private void cboYearSelectedIndexChanged(object sender, EventArgs e)
        {
            _dateStart = _cashieringManager.GetSchoolYearDateStart(_cashieringManager.GetSchoolYearYearId(this.cboYear.SelectedIndex)).ToShortDateString()
                         + " 12:00:00 AM";
            _dateEnd = _cashieringManager.GetSchoolYearDateEnd(_cashieringManager.GetSchoolYearYearId(this.cboYear.SelectedIndex)).ToShortDateString()
                       + " 11:59:59 PM";

            _isSemestral = false;

            _cashieringManager.InitializeCourseCheckedListBox(this.cbxCourse, _isSemestral);
            _cashieringManager.InitializeYearLevelCheckedListBox(this.cbxYearLevel, _isSemestral);

            this.SetAllListAsChecked(this.cbxCourse, lblCourseCount, false);
            this.SetAllListAsChecked(this.cbxYearLevel, this.lblYearLevelCount, false);

            _cashieringManager.InitializeSemesterCombo(this.cboSemester, this.cboYear.SelectedIndex);
        }//-------------------------
Exemple #2
0
        //###############################################CLASS MultipleAdditionalPaymentCreate EVENTS##################################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            dgvList.DataSource = _cashieringManager.StudentTableFormatIsForApply;
            RemoteClient.ProcStatic.SetDataGridViewColumns(dgvList, false);

            _additionalFeeInfo     = new CommonExchange.StudentAdditionalFee();
            _additionalFeeInfoTemp = (CommonExchange.StudentAdditionalFee)_additionalFeeInfo.Clone();

            this.ctlPayment.SchoolYearComboBox.Enabled = false;
            this.ctlPayment.DisableMoveCapability();

            _cashieringManager.InitializeSchoolYearCombo(this.ctlPayment.SchoolYearComboBox);
            _cashieringManager.InitializeCourseCheckedListBox(this.ctlPayment.CourseCheckedListBox);
            _cashieringManager.InitializeYearLevelCheckedListBox(this.ctlPayment.YearLevelCheckedListBox);

            this.ctlPayment.Select();
            this.ctlPayment.SetFocusOnSearchTextBox();
        }//------------------
 //###########################################Class DiscountReportControl EVENTS#####################################################
 //event is raised when the class is loaded
 private void ClassLoad(object sender, EventArgs e)
 {
     _cashieringManager.InitializeSchoolYearCombo(this.cboYear);
     _cashieringManager.InitializeCourseCheckedListBox(this.cbxCourse);
     _cashieringManager.InitializeScholarshipListBox(this.cbxScholarship);
 }//-------------------------