예제 #1
0
        private void GetPatients()
        {
            ExaminationSolClient client = Extensions.Extensions.GetExaminationService();

            if (client == null)
            {
                return;
            }

            int doctorid = GlobalVariables.Doctor.Id;

            examinations = client.Examinations(DateTime.Today, doctorid, null, null, false)
                           .OrderByDescending(e => e.IsActive)
                           .ThenBy(e => e.RendezvousId).ToList();

            ShowClosedOrHideClosed();

            client.Close();
        }
예제 #2
0
        private void simpleButtonLastExams_Click(object sender, EventArgs e)
        {
            if (examination.IsNull())
            {
                return;
            }

            ExaminationSolClient client = Extensions.Extensions.GetExaminationService();

            if (client.IsNull())
            {
                return;
            }
            MessageSolClient messageService = Extensions.Extensions.GetMessageService();

            Extensions.Extensions.ShowWaitForm(description: "Geçmiş muayene bilgileri sorgulanıyor");
            bindingSourcePastExaminations.DataSource = client.Examinations(null, GlobalVariables.Doctor.Id,
                                                                           examination.PatientId, false, true);
            gridControlPastExaminations.Refresh();
            bindingSourceMessages.DataSource = messageService.Messages(GlobalVariables.Doctor.Id, examination.PatientId,
                                                                       true);
            gridControlMessages.Refresh();
            SplashScreenManager.CloseForm(false);
        }