}//--------------------------- //#############################################END COMBOBOX cboYearSemester EVENTS################################################# //##############################################BUTTON btnSearchAuxiliary EVENTS#################################################### //event is raised when the button is clicked private void btnSearchAuxiliaryClick(object sender, EventArgs e) { try { this.Cursor = Cursors.WaitCursor; using (AuxiliarySearchOnTextboxList frmSearch = new AuxiliarySearchOnTextboxList(_userInfo, _auxiliaryManager)) { frmSearch.AdoptGridSize = true; frmSearch.ShowDialog(this); if (frmSearch.HasSelected) { CommonExchange.AuxiliaryServiceInformation serviceInfo = _auxiliaryManager.GetDetailsAuxiliaryServiceInfomation(frmSearch.PrimaryId); _serviceInfoSchedule.AuxiliaryServiceInfo.AuxServiceSysId = serviceInfo.AuxServiceSysId; _serviceInfoSchedule.AuxiliaryServiceInfo.DepartmentInfo.DepartmentId = serviceInfo.DepartmentInfo.DepartmentId; _serviceInfoSchedule.AuxiliaryServiceInfo.DepartmentInfo.DepartmentName = serviceInfo.DepartmentInfo.DepartmentName; _serviceInfoSchedule.AuxiliaryServiceInfo.DescriptiveTitle = serviceInfo.DescriptiveTitle; _serviceInfoSchedule.AuxiliaryServiceInfo.CourseGroupInfo.IsSemestral = serviceInfo.CourseGroupInfo.IsSemestral; _serviceInfoSchedule.AuxiliaryServiceInfo.LabUnits = serviceInfo.LabUnits; _serviceInfoSchedule.AuxiliaryServiceInfo.LectureUnits = serviceInfo.LectureUnits; _serviceInfoSchedule.AuxiliaryServiceInfo.NoHours = serviceInfo.NoHours; _serviceInfoSchedule.AuxiliaryServiceInfo.ServiceCode = serviceInfo.ServiceCode; lblSysIdAuxiliary.Text = serviceInfo.AuxServiceSysId; lblAuxiliaryCodeDescription.Text = serviceInfo.ServiceCode + " - " + serviceInfo.DescriptiveTitle; lblAuxiliaryDepartment.Text = serviceInfo.DepartmentInfo.DepartmentName; lblUnitsLabHours.Text = _auxiliaryManager.GetAuxiliaryUnitsHours(serviceInfo.LectureUnits, serviceInfo.LabUnits, serviceInfo.NoHours); _auxiliaryManager.InitializeSchoolYearSemesterCombo(this.cboYearSemester, serviceInfo.CourseGroupInfo.IsSemestral); this.tabAuxiliary.Enabled = true; } } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Auxiliary Service Infomation Search Module"); } finally { this.Cursor = Cursors.Arrow; } }//------------------------
} //-------------------------- //this procedure shows the subject schedule update dialog private void ShowUpdateAuxiliaryServiceDialog(String id) { try { this.Cursor = Cursors.WaitCursor; using (AuxiliaryServiceUpdate frmUpdate = new AuxiliaryServiceUpdate(_userInfo, _auxiliaryManager.GetDetailsAuxiliaryServiceInfomation(id), _auxiliaryManager)) { _frmAuxiliaryInfoSearch.WindowState = FormWindowState.Minimized; frmUpdate.ShowDialog(this); if (frmUpdate.HasUpdated) { this.ShowSearchResultDialog(true); } _frmAuxiliaryInfoSearch.WindowState = FormWindowState.Normal; } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Update Subject Schedule Module"); } finally { this.ctlManager.SetFocusOnSearchTextBox(); this.Cursor = Cursors.Arrow; } } //-------------------------