public SchoolFeeMaintenance(CommonExchange.SysAccess userInfo, CommonExchange.SchoolFeeInformation feeInfo,
                                    SchoolFeeLogic schoolFeeManager, String courseGroupId)
        {
            this.InitializeComponent();

            _levelInfo   = new CommonExchange.SchoolFeeLevel();
            _detailsInfo = new CommonExchange.SchoolFeeDetails();

            _userInfo         = userInfo;
            _schoolFeeManager = schoolFeeManager;
            _levelInfo.SchoolFeeInfo.FeeInformationSysId   = _detailsInfo.SchoolFeeLevelInfo.SchoolFeeInfo.FeeInformationSysId = feeInfo.FeeInformationSysId;
            _levelInfo.SchoolFeeInfo.SchoolYearInfo.YearId = _detailsInfo.SchoolFeeLevelInfo.SchoolFeeInfo.SchoolYearInfo.YearId =
                feeInfo.SchoolYearInfo.YearId;

            _detailsInfo.SchoolFeeLevelInfo.YearLevelInfo.CourseGroupInfo.CourseGroupId = courseGroupId;

            _errProvider = new ErrorProvider();

            this.Load += new EventHandler(ClassLoad);
            this.cboYearLevel.SelectedIndexChanged     += new EventHandler(cboYearLevelSelectedIndexChanged);
            this.lnkCreateYearLevel.LinkClicked        += new LinkLabelLinkClickedEventHandler(lnkCreateYearLevelLinkClicked);
            this.lnkCreateSchoolFeeDetails.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkCreateLinkClicked);
            this.dgvSchoolFees.MouseDown   += new MouseEventHandler(dgvSchoolFeesMouseDown);
            this.dgvSchoolFees.DoubleClick += new EventHandler(dgvSchoolFeesDoubleClick);
            this.btnClose.Click            += new EventHandler(btnCloseClick);
        }
        public SchoolFeeDetailsUpdate(CommonExchange.SysAccess userInfo, CommonExchange.SchoolFeeDetails detailsInfo, SchoolFeeLogic schoolFeeManager,
                                      String yearId, String courseGroupId, String yearLevelId, String feeLevelSysId)
            : base(userInfo, schoolFeeManager, yearId, courseGroupId, yearLevelId, feeLevelSysId)
        {
            this.InitializeComponent();

            _userInfo         = userInfo;
            _detailsInfo      = detailsInfo;
            _detailsInfoTemp  = (CommonExchange.SchoolFeeDetails)detailsInfo.Clone();
            _schoolFeeManager = schoolFeeManager;

            _isForCreate = false;

            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnEdit.Click   += new EventHandler(btnEditClick);
            this.btnDelete.Click += new EventHandler(btnDeleteClick);
        }
Beispiel #3
0
        public SchoolFeeDetails(CommonExchange.SysAccess userInfo, SchoolFeeLogic schoolFeeManager,
                                String yearId, String courseGroupId, String yearLevelId, String feeLevelSysId)
        {
            this.InitializeComponent();

            _userInfo = userInfo;

            _schoolFeeManager = schoolFeeManager;

            _detailsInfo = new CommonExchange.SchoolFeeDetails();

            _detailsInfo.SchoolFeeLevelInfo.SchoolFeeInfo.SchoolYearInfo.YearId         = yearLevelId;
            _detailsInfo.SchoolFeeLevelInfo.YearLevelInfo.CourseGroupInfo.CourseGroupId = courseGroupId;
            _detailsInfo.SchoolFeeLevelInfo.YearLevelInfo.YearLevelId = yearLevelId;
            _detailsInfo.SchoolFeeLevelInfo.FeeLevelSysId             = feeLevelSysId;

            _yearId = yearId;

            this.lblSchoolYear.Text  = _schoolFeeManager.GetSchoolYearDescription(yearId);
            this.lblCourseGroup.Text = _schoolFeeManager.GetCourseGroupDescription(courseGroupId);
            this.lblYearLevel.Text   = _schoolFeeManager.GetYearLevelDescription(yearLevelId);

            _errProvider = new ErrorProvider();

            this.Load += new EventHandler(ClassLoad);
            this.cboSchoolYearParticular.SelectedIndexChanged += new EventHandler(cboSchoolYearParticularSelectedIndexChanged);
            this.chkLevelIncrease.CheckedChanged      += new EventHandler(chkLevelIncreaseCheckedChanged);
            this.chkOptional.CheckedChanged           += new EventHandler(chkOptionalCheckedChanged);
            this.chkGraduationFee.CheckedChanged      += new EventHandler(chkGraduationFeeCheckedChanged);
            this.chkOfficeAccess.CheckedChanged       += new EventHandler(chkOfficeAccessCheckedChanged);
            this.chkEntryLevelIncluded.CheckedChanged += new EventHandler(chkEntryLevelIncludedCheckedChanged);
            this.chklncldMale.CheckedChanged          += new EventHandler(chklncldMaleCheckedChanged);
            this.chklncldFemale.CheckedChanged        += new EventHandler(chklncldFemaleCheckedChanged);
            this.chklncldFirstSem.CheckedChanged      += new EventHandler(chklncldFirstSemCheckedChanged);
            this.chklncldSecondSem.CheckedChanged     += new EventHandler(chklncldSecondSemCheckedChanged);
            this.chklncldSummer.CheckedChanged        += new EventHandler(chklncldSummerCheckedChanged);
            this.txtAmount.KeyPress   += new KeyPressEventHandler(txtAmountKeyPress);
            this.txtAmount.Validating += new CancelEventHandler(txtAmountValidating);
            this.txtAmount.Validated  += new EventHandler(txtAmountValidated);
        }