예제 #1
0
        private void barButtonItemWithoutPres_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (!SetExaminationForClosing())
            {
                return;
            }
            Extensions.Extensions.ShowWaitForm(description: "Muayene kapatılıyor");
            ExaminationSolClient client = Extensions.Extensions.GetExaminationService();

            if (client.IsNull())
            {
                return;
            }

            bool update = client.Update(examination);

            Extensions.Extensions.ProcessResultMessage("Muayene kapatma", update);
            SplashScreenManager.CloseForm(false);
            if (!update)
            {
                return;
            }
            RefreshPage();
            GetPatients();
        }
예제 #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);
        }