public FormDoctorAppointment(BusinessLayer.AppointmentInformation app, BusinessLayer.PatientInformation pat) { InitializeComponent(); //Set window title. this.Text = "Appointment - " + pat.FirstName + " " + pat.LastName; //Set active appointment and patient. activeAppointment = app; activePatient = pat; //Set patient name and lastname textBoxFirstName.Text = activePatient.FirstName; textBoxLastName.Text = activePatient.LastName; //Get new description if there was a change activeAppointment = BusinessLayer.DoctorFacade.GetActAppInfo(app); richTextBoxDescription.Text = activeAppointment.Description; richTextBoxDiagnosis.Text = activeAppointment.Diagnosis; if (activeAppointment.Status == "BEG") { buttonBeginAppointment.Text = "Continue appointment"; } else if (activeAppointment.Status == "COMP") { buttonBeginAppointment.Enabled = false; } }
private void showAppointmentResult() { if (dataGridViewAppoinmentsExaminations.SelectedCells.Count > 0 && dataGridViewAppoinmentsExaminations.CurrentRow != null) { int appID = (int)dataGridViewAppoinmentsExaminations.CurrentRow.Cells["AppointmentID"].Value; BusinessLayer.AppointmentInformation app = BusinessLayer.DoctorFacade.GetAppointmentByID(appID); richTextBoxDiagnosis.Text = app.Diagnosis; richTextBoxDescription.Text = app.Description; } }
public FormDoctorHistory(BusinessLayer.AppointmentInformation actApp, BusinessLayer.PatientInformation actPat, BusinessLayer.DoctorInformation actDoc) { InitializeComponent(); //Set window title. this.Text = "Patient History - " + actPat.FirstName + " " + actPat.LastName; activeAppointment = actApp; activeDoctor = actDoc; activePatient = actPat; textBoxFirstName.Text = actPat.FirstName; textBoxLastName.Text = actPat.LastName; searchForAppointments(); }
public FormDoctorManageExaminations(BusinessLayer.AppointmentInformation actApp, BusinessLayer.PatientInformation actPat, BusinessLayer.DoctorInformation actDoc) { InitializeComponent(); //Set window title. this.Text = "Examinations - " + actPat.FirstName + " " + actPat.LastName; activeAppointment = actApp; activeDoctor = actDoc; activePatient = actPat; textBoxFirstName.Text = activePatient.FirstName; textBoxLastName.Text = activePatient.LastName; //Initial search. searchForPhysExams(); searchForLabExams(); }
public FormDoctorPhysExam(BusinessLayer.AppointmentInformation app) { InitializeComponent(); actApp = app; }