//================以上为 blob 相关的变量 public diagnosisNagivation() { InitializeComponent(); var app = App.Current as App; mail = app.selectedPatient; ECGName = app.selectedPatient.ECG; Patientid = app.selectedPatient.PatientId; downloadECG(ECGName); }
public Record() { InitializeComponent(); var app = App.Current as App; record = app.selectedRecord; patientdesp = app.PatientDescription; // mail = app.selectedPatient; TextBlock_Name.Text = "Name : " + record.PatientId; TextBlock_Age.Text = "Age : " + patientdesp.Age; TextBlock_Gender.Text = "Gender : " + patientdesp.Gender; TextBlock_Desp.Text = record.TextContent; TextBlock_DoctorId.Text = record.DoctorId; TextBlock_Time.Text = record.Time; }
//==================================以上为推送通知代码 //====================================== //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)); }
public Record() { InitializeComponent(); var app=App.Current as App; record=app.selectedRecord; patientdesp = app.PatientDescription; // mail = app.selectedPatient; TextBlock_Name.Text = "Name : "+record.PatientId; TextBlock_Age.Text = "Age : "+ patientdesp.Age; TextBlock_Gender.Text = "Gender : "+ patientdesp.Gender; TextBlock_Desp.Text = record.TextContent; TextBlock_DoctorId.Text =record.DoctorId; TextBlock_Time.Text = record.Time; }
//==================================以上为推送通知代码 //====================================== //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)); }