コード例 #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 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();
        }
コード例 #3
0
        public static ExaminationSolClient GetExaminationService()
        {
            ExaminationSolClient client;

            try
            {
                client = new ExaminationSolClient(binding,
                                                  new EndpointAddress(String.Format(GlobalVariables.ServiceRoot + "/{0}", "ExaminationService.svc")));
                client.Select(-1);
            }
            catch (Exception)
            {
                bool b = Program.TestService();
                if (!b)
                {
                    Application.Exit();
                }
                client = new ExaminationSolClient(binding,
                                                  new EndpointAddress(String.Format(GlobalVariables.ServiceRoot + "/{0}", "ExaminationService.svc")));
            }

            return(client);
        }
コード例 #4
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);
        }