}//-------------------------

        //###########################################EDND Class DiscountReportControl EVENTS#####################################################

        //###########################################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";

            _cashieringManager.InitializeSemesterCombo(this.cboSemester, this.cboYear.SelectedIndex);
        }//-------------------------
Exemplo n.º 2
0
        }//-----------------------

        //event is raised whent the selected index is changed
        private void ctlPaymentOnSchoolYearSelectedIndexChanged()
        {
            _dateStart = _cashieringManager.GetSchoolYearDateStart(_cashieringManager.GetSchoolYearYearId(this.ctlPayment.SchoolYearComboBox.SelectedIndex)).ToShortDateString()
                         + " 12:00:00 AM";
            _dateEnd = _cashieringManager.GetSchoolYearDateEnd(_cashieringManager.GetSchoolYearYearId(this.ctlPayment.SchoolYearComboBox.SelectedIndex)).ToShortDateString()
                       + " 11:59:59 PM";

            _cashieringManager.InitializeSemesterCombo(this.ctlPayment.SemesterComboBox, this.ctlPayment.SchoolYearComboBox.SelectedIndex);

            this.ShowSearchResultDialog();
        }//-------------------
Exemplo n.º 3
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);
        }//-------------------------