public void update_datagrid() { ParserJSON pj = new ParserJSON(); string result = pj.GetPatient(); RadicalObject ro = JsonConvert.DeserializeObject<RadicalObject>(result); RegistryGrid.ItemsSource = ro.patients; }
private void Window_Loaded(object sender, RoutedEventArgs e) { try { ParserJSON pj = new ParserJSON(); string resultdoc = pj.GetCountDoctors(); CountDoctors cd = JsonConvert.DeserializeObject <CountDoctors>(resultdoc); var countdoc = cd.doctors[0]; lb_CountDoctor.Content = countdoc.Doctors; string resultpat = pj.GetCountPatient(); CountPatients cp = JsonConvert.DeserializeObject <CountPatients>(resultpat); var countpat = cp.patients[0]; lb_CountPatient.Content = countpat.Patient; string resuls = pj.GetCountChief(); CountChief ch = JsonConvert.DeserializeObject <CountChief>(resuls); var countch = ch.doctors[0]; lb_CountC.Content = countch.Chief; string resulo = pj.GetCountOculist(); CountOculist co = JsonConvert.DeserializeObject <CountOculist>(resulo); var counto = co.doctors[0]; lb_CountO.Content = counto.Oculist; string resus = pj.GetCountSurgeon(); CountSurgeon cs = JsonConvert.DeserializeObject <CountSurgeon>(resus); var counts = cs.doctors[0]; lb_CountS.Content = counts.Surgeon; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void update_datagrid() { ParserJSON pj = new ParserJSON(); string result = pj.GetDiagnosis(); DiagnosisObject di = JsonConvert.DeserializeObject <DiagnosisObject>(result); DiagnosisGrid.ItemsSource = di.userdiagnosis; }
public void update_datagrid() { ParserJSON pj = new ParserJSON(); string result = pj.GetRegister(); RegisterObject ro = JsonConvert.DeserializeObject <RegisterObject>(result); RegisterGrid.ItemsSource = ro.register; }
public void update_datagrid() { ParserJSON pj = new ParserJSON(); string result = pj.GetDoctors(); RootObject ro = JsonConvert.DeserializeObject <RootObject>(result); DoctorsGrid.ItemsSource = ro.doctors; }
public void update_datagrid() { ParserJSON pj = new ParserJSON(); string result = pj.GetJournal(); RadixObject ro = JsonConvert.DeserializeObject <RadixObject>(result); JournalGrid.ItemsSource = ro.journal; this.Title = DataValue.Position; }
private void Window_Loaded(object sender, RoutedEventArgs e) { //Cвязывание ComboBox c Position ParserJSON pj = new ParserJSON(); string resultPosition = pj.GetPosition(); PositionObject po = JsonConvert.DeserializeObject <PositionObject>(resultPosition); Cb_Position.ItemsSource = po.positions; Cb_Position.DisplayMemberPath = "position_name"; }
private void LoadForm() { ParserJSON pj = new ParserJSON(); HeadPhysicianWindows hpw = new HeadPhysicianWindows(); hpw.DoctorsGrid.ItemsSource = null; string result = pj.GetDoctors(); RootObject ro = JsonConvert.DeserializeObject <RootObject>(result); hpw.DoctorsGrid.ItemsSource = ro.doctors; }
private void Load() { ParserJSON pj = new ParserJSON(); string result = pj.GetLoadDoctors(); LoadDoctorsObject ld = JsonConvert.DeserializeObject <LoadDoctorsObject>(result); var about = ld.doctors[0]; var login = ld.doctors[0]; var id = ld.doctors[0]; DoctorsData.Id = id._id; Tb_Description.Text = about.about; Tb_Email.Text = login.login; }
private void Cb_Position_DropDownClosed(object sender, EventArgs e) { try { ParserJSON pj = new ParserJSON(); DataValue.ChoiceDoctors = Cb_Position.Text; string resultDoctor = pj.GetChoiceDoctors(); SelObject so = JsonConvert.DeserializeObject <SelObject>(resultDoctor); Cb_Doctor.ItemsSource = so.doctors; Cb_Doctor.DisplayMemberPath = "fio"; } catch (Exception ex) { } }
private void Window_Loaded(object sender, RoutedEventArgs e) { try { ParserJSON pj = new ParserJSON(); //Cвязывание ComboBox c Position string resultPosition = pj.GetPosition(); PositionObject po = JsonConvert.DeserializeObject <PositionObject>(resultPosition); Cb_Position.ItemsSource = po.positions; Cb_Position.DisplayMemberPath = "position_name"; string resultPatient = pj.GetPatient(); RadicalObject ro = JsonConvert.DeserializeObject <RadicalObject>(resultPatient); Cb_Patient.ItemsSource = ro.patients; Cb_Patient.DisplayMemberPath = "fio"; } catch (Exception) { } }
private void textBoxName_TextChanged_1(object sender, TextChangedEventArgs e) { try { ParserJSON pj = new ParserJSON(); string result = pj.GetJournal(); RadixObject ro = JsonConvert.DeserializeObject <RadixObject>(result); JournalGrid.ItemsSource = ro.journal; var oc = ro.journal; DataValue.TextSearch = textBoxName.Text; var filter_col = oc.Where(itemF => itemF.search == textBoxName.Text); JournalGrid.ItemsSource = filter_col; if (textBoxName.Text == "") { update_datagrid(); } } catch (Exception ex) { }; }