Пример #1
0
 protected void LoadClinicCombo(Patient pat)
 {
     rdcbClinic.Items.Clear();
     foreach (Clinic cl in CntAriCli.GetClinics(ctx))
     {
         rdcbClinic.Items.Add(new RadComboBoxItem(cl.Name, cl.ClinicId.ToString()));
     }
     rdcbClinic.Items.Add(new RadComboBoxItem(" ", ""));
     rdcbClinic.SelectedValue = "";
     if (pat != null && pat.Clinic != null)
     {
         rdcbClinic.SelectedValue = pat.Clinic.ClinicId.ToString();
     }
 }
 protected void LoadClinicCombo(Clinic clinic)
 {
     rdcbClinic.Items.Clear();
     foreach (Clinic c in CntAriCli.GetClinics(ctx))
     {
         rdcbClinic.Items.Add(new RadComboBoxItem(c.Name, c.ClinicId.ToString()));
     }
     if (clinic != null)
     {
         rdcbClinic.SelectedValue = clinic.ClinicId.ToString();
     }
     else
     {
         rdcbClinic.Items.Add(new RadComboBoxItem(" ", ""));
         rdcbClinic.SelectedValue = "";
     }
 }