Пример #1
0
    public static string[] GetSIGNames(string prefixText, int count, string contextKey)
    {
        List<string> sig_List = new List<string>();
        PatientInfoDAL pat_Info = new PatientInfoDAL();
        if (contextKey == "0")
        {
            sig_List.Clear();
            DataTable dtsig = pat_Info.get_SIGCodes(prefixText, count, contextKey);
            foreach (DataRow dr in dtsig.Rows)
            {
                sig_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr["SIG_Code"].ToString(), dr[0].ToString()));
            }
        }

        return sig_List.ToArray();
    }