Example #1
0
        private void btnCheckPatient_Click(object sender, RoutedEventArgs e)
        {
            CheckPatientPage objCheckPatient = new CheckPatientPage();

            objCheckPatient.hmmtext.Text = loginAsDoctor.Text.ToString();
            doctorFrame.NavigationService.Navigate(objCheckPatient);
            objCheckPatient.check_doctor_dept();
        }
Example #2
0
 public TestWindow(CheckPatientPage p)
 {
     InitializeComponent();
     p1           = p;
     this.disease = p.testingprocess.Text.ToString();
     if (p.check().Equals("Accepted"))
     {
         Query = "select test_name from user.test_name where disease_type='" + this.disease + "';";
     }
     else if (p.check().Equals("Admitted"))
     {
         Query = "select test_name from user.test_name where disease_name='" + this.disease + "';";
     }
     loadtest();
 }
Example #3
0
 public MedicineWindow(CheckPatientPage p1)
 {
     InitializeComponent();
     p = p1;
     fill_combo_timming();
     this.disease.Text = p1.testingprocess.Text.ToString();
     if (p1.check().Equals("Accepted"))
     {
         QueryMedicine = "select medicine_name from medicine_name where disease_type='" + this.disease.Text.ToString() + "';";
     }
     else if (p1.check().Equals("Admitted"))
     {
         QueryMedicine = "select medicine_name from medicine_name where disease_name='" + this.disease.Text.ToString() + "';";
     }
     fill_combo_medicine_name();
 }