Ejemplo n.º 1
0
 private void BtnEnterPatient_Click(object sender, EventArgs e)
 {
     //reset textboxes
     ValidationMethods.ClearTextBoxes(this.Controls);
     cmbxCategory.DataSource = Category.getCategories_DropDownList();
     //add enter time
     /*0 patient id,1 patient name,2 reserve time,3 reception time,4 current visit notes,5 category name,*/
     //show details of patient
     DoctorsLogic.EnterPatient(listbxWaitingQueue, txtPatientID, txtPatientName, dtpReserveTime, dtpReceptionTime, txtCurrentVisitNotes, cmbxCategory);
 }
Ejemplo n.º 2
0
        private void BtnSave_Click(object sender, EventArgs e)
        {
            if (chkEnableScanTime.Checked)
            {
                Doctor_RegisterVisit_Out(txtPatientName.Text, txtNextVisitNotes.Text, txtCurrentVisitNotes.Text, dtpScanTime.Value.ToString("yyyy-MM-dd"));
            }
            else
            {
                Doctor_RegisterVisit_Out(txtPatientName.Text, txtNextVisitNotes.Text, txtCurrentVisitNotes.Text, null);
            }
            DoctorsLogic.PopulateListBox(listbxWaitingQueue);
            /*************saving picture****************/

            /*************saving picture****************/
            ValidationMethods.ClearTextBoxes(this.Controls);
        }
Ejemplo n.º 3
0
 private void BtnNewReservation_Click(object sender, EventArgs e)
 {
     ValidationMethods.Enable_DisableTextBoxes(new List <TextBox>()
     {
         txtPatientID, txtPatientName, txtPatientPhone
     }, true);
     ValidationMethods.ClearTextBoxes(new List <TextBox>()
     {
         txtPatientID, txtPatientName, txtPatientPhone
     });
     cmbxVisitType.SelectedIndex = 0;
     ValidationMethods.ClearCheckedListBoxSelection(clbAdditionalServices);
     ValidationMethods.ClearTextBoxesNumbers(new List <TextBox>()
     {
         txtDiscount, txtPayed, txtRemaining
     });
     VisitsLogic.CalculateTotalRequired(cmbxVisitType, txtTotal, clbAdditionalServices);
 }