Esempio n. 1
0
    public static string[] GetClinicFaclityNames(string prefixText, int count, string contextKey)
    {
        PatientInfoDAL Pat_Info = new PatientInfoDAL();
          List<string> Pat_List = new List<string>();
          Pat_Info = new PatientInfoDAL();
          Pat_List.Clear();
          DataTable Pat_Names;

         // if(contextKey==null)
             Pat_Names = Pat_Info.get_ClinicFacilityNames(prefixText);
          //else
           //   Pat_Names = Pat_Info.get_ClinicFacilityNames(prefixText, contextKey);

          if (Pat_Names.Rows.Count > 0)
          {
              foreach (DataRow dr in Pat_Names.Rows)
              {
                  Pat_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr[0].ToString(), dr[2].ToString()));
              }
          }
          else
          {
              Pat_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem("No Facility Found Under This Clinic..!","0"));
          }
          return Pat_List.ToArray();
    }
Esempio n. 2
0
 public static string[] GetClinicFaclityNames(string prefixText, int count)
 {
     PatientInfoDAL Pat_Info = new PatientInfoDAL();
     List<string> Pat_List = new List<string>();
     Pat_Info = new PatientInfoDAL();
     Pat_List.Clear();
     DataTable Pat_Names = Pat_Info.get_ClinicFacilityNames(prefixText);
     foreach (DataRow dr in Pat_Names.Rows)
     {
         Pat_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr[0].ToString(), dr[1].ToString()));
     }
     return Pat_List.ToArray();
 }