示例#1
0
    public static string[] GetCompletionListGroupG(string prefixText, int count, string contextKey)
    {
        Set_EmployeeGroup_Master objGroup = new Set_EmployeeGroup_Master();
        DataTable dt = new DataView(objGroup.GetEmployeeGroup_Master(HttpContext.Current.Session["CompId"].ToString()), "Group_Name like '" + prefixText.ToString() + "%'", "", DataViewRowState.CurrentRows).ToTable();

        string[] txt = new string[dt.Rows.Count];

        for (int i = 0; i < dt.Rows.Count; i++)
        {
            txt[i] = dt.Rows[i]["Group_Name"].ToString();
        }
        return(txt);
    }