Пример #1
0
        private void bindingSourceExaminations_CurrentChanged(object sender, EventArgs e)
        {
            examination = bindingSourceExaminations.Current as Examination;

            if (examination.IsNull())
            {
                return;
            }
            bindingSourceMessages.DataSource         = null;
            bindingSourcePastExaminations.DataSource = null;
            if (open)
            {
                Extensions.Extensions.ShowWaitForm(description: "Sayfa yenileniyor...");
            }

            labelControlNameSurname.Text  = examination.Patient.NameSurname;
            lookUpEditDiagnosis.EditValue = examination.DiagnosisId;
            textEditNextDay.Text          = examination.NextTime.IsNull()
                ? String.Empty
                : (Convert.ToDateTime(examination.NextTime) - examination.Time).Days.ToString();
            checkEditCanSendMessage.Checked = examination.CanSendMessage;
            textBoxNote.Text = examination.DoctorNote;

            groupControlCurrentExamination.Text = String.Format("Şuanki Muayene Bilgisi ({0} Muayene)",
                                                                examination.IsActive ? "Açık" : "Kapalı");

            LaboratoryRequestSolClient client = Extensions.Extensions.GetLaboratoryRequest();

            bindingSourceLabResult.DataSource = client.LaboratoryRequests(examination.Id, true);
            client.Close();
            if (open)
            {
                SplashScreenManager.CloseForm(false);
            }
        }
Пример #2
0
        private void simpleButtonLabRequest_Click(object sender, EventArgs e)
        {
            if (examination.IsNull())
            {
                XtraMessageBox.Show("Laboratuvar isteği almak için herhangi bir hasta seçilmedi.", "Hata",
                                    MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            Extensions.Extensions.ShowWaitForm(description: "Tetkik listesi alınıyor...");
            XtraFormLaboratuvarRequest form = new XtraFormLaboratuvarRequest(examination.Id);

            form.ShowDialog();
            if (form.Result)
            {
                bindingSourceExaminations_CurrentChanged(null, null);
            }
        }