//#####################################################CLASS SCHOOLFEEMANAGER EVENTS ################################################################# //event is raised when the class is loaded private void ClassLoad(object sender, EventArgs e) { try { _schoolFeeManager = new SchoolFeeLogic(_userInfo); _feeInfo = new CommonExchange.SchoolFeeInformation(); if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo))) { throw new Exception("You are not authorized to access this module."); } else { _schoolFeeManager.InitializeSchoolYearCombo(this.cboYear); if (String.IsNullOrEmpty(_feeInfo.SchoolYearInfo.YearId)) { this.lblStatus.Visible = this.btnRecord.Visible = false; } this.InitializeListViewControl(); } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating"); this.Close(); } }//-----------------------------------
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 SchoolFeeParticularCreate(CommonExchange.SysAccess userInfo, SchoolFeeLogic schoolFeeManager) : base(userInfo, schoolFeeManager) { this.InitializeComponent(); this.FormClosing += new FormClosingEventHandler(ClassClosing); this.btnCancel.Click += new EventHandler(btnCancelClick); this.btnCreate.Click += new EventHandler(btnCreateClick); }
public ParticularSearchOnTextBoxList(CommonExchange.SysAccess userInfo, SchoolFeeLogic schoolFeeManager) { this.InitializeComponent(); _userInfo = userInfo; _schoolFeeManager = schoolFeeManager; this.pbxRefresh.Click += new EventHandler(pbxRefreshClick); this.lnkCreate.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkCreateLinkClicked); }
public SchoolFeeDetailsCreate(CommonExchange.SysAccess userInfo, SchoolFeeLogic schoolFeeManager, String yearId, String courseGroupId, String yearLevelId, String feeLevelSysId) : base(userInfo, schoolFeeManager, yearId, courseGroupId, yearLevelId, feeLevelSysId) { this.InitializeComponent(); _isForCreate = true; this.FormClosing += new FormClosingEventHandler(ClassClosing); this.btnCancel.Click += new EventHandler(btnCancelClick); this.btnCreate.Click += new EventHandler(btnCreateClick); }
public SchoolFeeParticularUpdate(CommonExchange.SysAccess userInfo, CommonExchange.SchoolFeeParticular particularInfo, SchoolFeeLogic schoolFeeManager) : base(userInfo, schoolFeeManager) { this.InitializeComponent(); _particularInfo = particularInfo; _particularInfoTemp = (CommonExchange.SchoolFeeParticular)particularInfo.Clone(); this.FormClosing += new FormClosingEventHandler(ClassClosing); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnUpdate.Click += new EventHandler(btnUpdateClick); this.btnDelete.Click += new EventHandler(btnDeleteClick); }
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); }
public SchoolFeeParticular(CommonExchange.SysAccess userInfo, SchoolFeeLogic schoolFeeManager) { this.InitializeComponent(); _userInfo = userInfo; _schoolFeeManager = schoolFeeManager; _errProvider = new ErrorProvider(); this.Load += new EventHandler(ClassLoad); this.cboFeeCategory.SelectedIndexChanged += new EventHandler(cboFeeCategorySelectedIndexChanged); this.txtParticularDescription.Validated += new EventHandler(txtParticularDescriptionValidated); this.txtParticularDescription.KeyPress += new KeyPressEventHandler(txtParticularDescriptionKeyPress); this.chkIsOptional.CheckedChanged += new EventHandler(chkIsOptionalCheckedChanged); this.chkIsOfficesAccess.CheckedChanged += new EventHandler(chkIsOfficesAccessCheckedChanged); this.chkIsGraduationFee.CheckedChanged += new EventHandler(chkIsGraduationFeeCheckedChanged); this.chkEntryLevelIncluded.CheckedChanged += new EventHandler(chkEntryLevelIncludedCheckedChanged); }
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); }