//public void updateDataPointPatient(
        //    string idPassportUI,
        //    string fullNameUI,
        //    string birthdayUI,
        //    string statusUI,
        //    string originalIdPatientUI)
        //{
        //    patientBus.updatePatient(
        //        idPassportUI,
        //        fullNameUI,
        //        birthdayUI,
        //        statusUI,
        //        originalIdPatientUI
        //        );
        //}

        #endregion CRUD

        public bool loadDataMedicalReceiveToView()
        {
            // Fill data patient - combobox medical record
            PersonalClinicDataSet.PATIENTDataTable tablePatient = patientBUS.getData();
            cbxMedicalRecordPatient.DataSource    = tablePatient;
            cbxMedicalRecordPatient.ValueMember   = "idPatient";
            cbxMedicalRecordPatient.DisplayMember = "fullName";

            // Fill data doctor - combobox medical record
            PersonalClinicDataSet.DOCTORDataTable tableDoctor = doctorBUS.getData();
            cbxMedicalRecordDoctor.DataSource    = tableDoctor;
            cbxMedicalRecordDoctor.ValueMember   = "idDoctor";
            cbxMedicalRecordDoctor.DisplayMember = "fullName";

            if (this.medicalRecordState == null)
            {
                return(false);
            }

            lbidMedicalRecord.Text       = Convert.ToString(medicalRecordState.IdMedicalRecord);
            cbxMedicalRecordPatient.Text = Convert.ToString(medicalRecordState.IdPatient);
            cbxMedicalRecordDoctor.Text  = Convert.ToString(medicalRecordState.IdDoctor);
            cbxMedicalRecordRequest.Text = Convert.ToString(medicalRecordState.Request);
            tbxHistoryMedicalRecord.Text = Convert.ToString(medicalRecordState.History);

            return(true);
        }
        public void getDataPatientGrid()
        {
            PersonalClinicDataSet.PATIENTDataTable tablePatient = patientBUS.getData();
            dgvPatient.DataSource = tablePatient;

            // Fill data patient - combobox medical record
            cbxMedicalRecordPatient.DataSource    = tablePatient;
            cbxMedicalRecordPatient.ValueMember   = "idPatient";
            cbxMedicalRecordPatient.DisplayMember = "fullName";
        }
Example #3
0
 public PersonalClinicDataSet.PATIENTDataTable getDataTarget(string contentSearch)
 {
     PersonalClinicDataSet.PATIENTDataTable _tblPatient = patientDal.getCoreDataTarget(contentSearch);
     return(_tblPatient);
 }
Example #4
0
 public PersonalClinicDataSet.PATIENTDataTable getData()
 {
     PersonalClinicDataSet.PATIENTDataTable _tblPatient = patientDal.getData();
     return(_tblPatient);
 }
 private void tbxSearchPatient_TextChanged(object sender, EventArgs e)
 {
     PersonalClinicDataSet.PATIENTDataTable tablePatientSearch = patientBUS.getDataTarget(tbxSearchPatient.Text);
     dgvPatient.DataSource = tablePatientSearch;
 }