Exemple #1
0
        private void simpleButtonNewPatient_Click(object sender, EventArgs e)
        {
            XtraFormPatient patientForm = new XtraFormPatient(true);

            patientForm.ShowDialog();
            if (!patientForm.Result)
            {
                return;
            }
            patient = patientForm.patient;
            labelControlPatientName.Text     = patient.NameSurname;
            textEditTCNO.Text                = patient.TcNo;
            simpleButtonNewPatient.Enabled   = false;
            simpleButtonPatientInfos.Enabled = false;
        }
Exemple #2
0
        private void simpleButtonPatientInfos_Click(object sender, EventArgs e)
        {
            Extensions.Extensions.ShowWaitForm(description: "Hasta bilgisi sorgulanıyor...");
            PatientSolClient client = Extensions.Extensions.GetPatientClient();

            patient = client.PatientByTc(textEditTCNO.Text.Trim());
            SplashScreenManager.CloseForm(false);
            if (patient.IsNotNull())
            {
                labelControlPatientName.Text = patient.NameSurname;
            }
            else
            {
                XtraMessageBox.Show("Girilen kimlik numarası ile kişi bulunamadı", "Kişi Bulunamadı",
                                    MessageBoxButtons.OK, MessageBoxIcon.None);
            }
        }