Пример #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 gridControlPastExaminations_DoubleClick(object sender, EventArgs e)
        {
            if (bindingSourcePastExaminations.Current.IsNull())
            {
                return;
            }

            Extensions.Extensions.ShowWaitForm(description: "Muayene bilgileri isteniyor...");

            Examination         examination1 = bindingSourcePastExaminations.Current as Examination;
            XtraFormExamDetails examDetails  = new XtraFormExamDetails(examination1);

            examDetails.ShowDialog();
        }