Пример #1
0
        private void getDoctor_info()
        {
            var http = new Http();

           long A= System.DateTime.Now.Ticks;


            string uri = "http://echelper.cloudapp.net/Service.svc/doctor/xiaoming/select?" + A;
            http.StartRequest(@uri,
                result =>
                {
                    //    A = result;
                    //    x = 1;

                    //    getfinished = false;
                    Dispatcher.BeginInvoke(() => Show(result));
                });
        }
Пример #2
0
        private void loadDes_and_Record()
        {
            var http = new Http();

            var app = App.Current as App;
            Patientid = app.selectedPatient.PatientId;

            long A = System.DateTime.Today.Ticks;
            string uri = "http://echelper.cloudapp.net/Service.svc/doctor/" + "xiaoming/" + "outpatient/" + Patientid + "/select?"+A;
            http.StartRequest(@uri,
                result =>
                {
                    //    A = result;
                    //    x = 1;

                    //    getfinished = false;
                    Dispatcher.BeginInvoke(() => showDesp(result));
                });

        }
Пример #3
0
        public recordList()
        {
            InitializeComponent();

            var app = App.Current as App;
            // mail = app.selectedPatient;
            Patientid = app.selectedPatient.PatientId;

            var http = new Http();

            long A = System.DateTime.Today.Ticks;
            string uri = "http://echelper.cloudapp.net/Service.svc/patient/" + Patientid + "/recordlist?"+A;
            http.StartRequest(@uri,
                result =>
                {
                    //    A = result;
                    //    x = 1;

                    //    getfinished = false;
                    Dispatcher.BeginInvoke(() => showrecordlist(result));
                });

        }
Пример #4
0
        private void showCurrentlist()
        {
           

            var http = new Http();

            long A = System.DateTime.Now.Ticks;


            string uri = "http://echelper.cloudapp.net/Service.svc/doctor/xiaoming/outpatient/maillist?" + A;
          
            http.StartRequest(@uri,
                result =>
                {
                    //    A = result;
                    //    x = 1;

                    //    getfinished = false;
                    Dispatcher.BeginInvoke(() => Update(result));
                });



                




              
        }
Пример #5
0
        //==================================以上为推送通知代码





		//======================================
        //public List<Patient> totalpatientlist { get; set; }

        //protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        //{
        //    if (totalpatientlist != null)
        //    {
        //        this.listBox_Patient_to_Diag.ItemsSource = totalpatientlist;
        //    }
        //}
		//=====================================
		

        //private void GestureListenerTap(object sender, Microsoft.Phone.Controls.GestureEventArgs e)
        //{//在此处传递的参数应当包含病人的ID,等到整合时要填上
        //    //listBox_Patient_to_Diag.SelectedItem.
        //    this.NavigationService.Navigate(new Uri("/diagnosisNagivation.xaml", UriKind.Relative));

        //}

        private void patientList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var app = App.Current as App;
            app.selectedPatient = (MailDataContract) listBox_Patient_to_Diag.SelectedItem;

         //   app.list.Add(app.selectedPatient);
            checkedmaillist.Add((MailDataContract)listBox_Patient_to_Diag.SelectedItem);
            //app.checkedmail.Add(app.selectedPatient);
            app.checkedmail = checkedmaillist;

            MailDataContract just = new MailDataContract();
            just = (MailDataContract)listBox_Patient_to_Diag.SelectedItem;


            string MAILID = just.MailId;


            long A = System.DateTime.Today.Ticks;

            string uri = "http://echelper.cloudapp.net/Service.svc/docotr/xiaoming/outpatient/" + MAILID + "/read?" + A;

            var http = new Http();

            http.StartRequest(@uri,
                result =>
                {
                    //    A = result;
                    //    x = 1;

                    //    getfinished = false;
                    //  Dispatcher.BeginInvoke(() => Update(result));
                });



         //   listBox_Patient_to_Diag.Items.Remove(listBox_Patient_to_Diag.SelectedItem);
            this.NavigationService.Navigate(new Uri("/diagnosisNagivation.xaml", UriKind.Relative));

        }
Пример #6
0
        //=================================== blob 相关函数定义

        private void downloadECG(string filename)
        {
            if (_currentRequest != null)
            {
                BackgroundTransferService.Remove(_currentRequest);
            }

          
            //解析文件名,赋给SAVE_LOCATION
        //    filename = "634708322772702206";
            SAVE_LOCATION = SAVE_LOCATION + filename;
            Uri saveLocationUri = new Uri(SAVE_LOCATION, UriKind.RelativeOrAbsolute);
           

            //向服务器请求sas
           // string patient

            var http = new Http();
            long A = System.DateTime.Today.Ticks;
            string uri = "http://echelper.cloudapp.net/Service.svc/doctor/liaomin/downloadrequest?" + A;

            http.StartRequest(@uri,
                result =>
                {
                    //    A = result;
                    //    x = 1;

                    //    getfinished = false;
                    Dispatcher.BeginInvoke(() =>GetSas(result));
                });



       

        }