コード例 #1
0
        public string[] GetStaffName(string prefixText, string contextKey)
        {
            CustomerBo    customerBo       = new CustomerBo();
            DataTable     dtGetRMStaffList = new DataTable();
            int           i     = 0;
            List <string> names = new List <string>();

            dtGetRMStaffList = customerBo.GetStaffName(prefixText, int.Parse(contextKey));
            //string[] customerNameList = new string[dtCustomerName.Rows.Count];

            foreach (DataRow dr in dtGetRMStaffList.Rows)
            {
                string item = AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr["AR_FirstName"].ToString(), dr["AR_RMId"].ToString());
                names.Add(item);

                //customerNameList[i] = dr["C_FirstName"].ToString() + "|" + dr["C_PANNum"].ToString();
                //i++;
            }
            return(names.ToArray());
        }