コード例 #1
0
 private void doctorVisitViewExamDetailsButton_Click(object sender, EventArgs e)
 {
     if (doctorVisitViewCurrExamDataGrid.RowCount == 0 || doctorVisitViewCurrExamDataGrid.SelectedCells.Count == 0)
     {
         //MessageBox.Show("No visit selected", "Error");
         MessageBox.Show("No examination selected !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else if (doctorVisitViewCurrExamDataGrid.SelectedRows.Count > 1)
     {
         //MessageBox.Show("Selected too many visits, please select just one", "Error");
         MessageBox.Show("Selected too many examinations ! \nPlease select just one...", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         int examinationIndex = doctorVisitViewCurrExamDataGrid.CurrentRow.Index;
         int idExam           = Int32.Parse(doctorVisitViewCurrExamDataGrid.Rows[examinationIndex].Cells[7].Value.ToString());
         if (doctorVisitViewCurrExamDataGrid.Rows[examinationIndex].Cells[1].Value.Equals("Laboratory"))
         {
             LabolatoryExaminationForm examinationView = new LabolatoryExaminationForm(idExam);
             examinationView.ShowDialog(this);
         }
         else
         {
             DoctorExaminationViewForm examinationView = new DoctorExaminationViewForm(this.idVisit, idExam);
             examinationView.ShowDialog(this);
         }
     }
 }
コード例 #2
0
        private void doctorOrderLaboratoryExaminationButton_Click(object sender, EventArgs e)
        {
            //MessageBox.Show("Laboratory examination ordered !", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);

            DoctorExaminationViewForm examinationView = new DoctorExaminationViewForm(this.idVisit);

            examinationView.SetLabExamMode();
            examinationView.ShowDialog(this);
            RefreshExamGrid();
        }
コード例 #3
0
        private void doctorPhysicalExaminationButton_Click(object sender, EventArgs e)
        {
            // refresh examination history
            //MessageBox.Show("Physical examination submited !", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
            DoctorExaminationViewForm examinationView = new DoctorExaminationViewForm(this.idVisit, 0, 1);

            examinationView.SetPhyExamMode();
            examinationView.ShowDialog(this);
            RefreshExamGrid();
        }