Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
 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();
 }
Exemplo n.º 5
0
 public FormDoctorPhysExam(BusinessLayer.AppointmentInformation app)
 {
     InitializeComponent();
     actApp = app;
 }