Esempio n. 1
0
        public string[] GetAllBranchAndRMGroupCustomers(string contextKey, string prefixText)
        {
            CustomerBo    customerBo = new CustomerBo();
            DataTable     dtAllRMBranchGroupCustomersName = new DataTable();
            List <string> allRMBranchNames = new List <string>();

            dtAllRMBranchGroupCustomersName = customerBo.GetRMBranchGroupCustomerNames(contextKey, prefixText);
            foreach (DataRow dr in dtAllRMBranchGroupCustomersName.Rows)
            {
                string item = AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr["C_FirstName"].ToString(), dr["C_CustomerId"].ToString());
                allRMBranchNames.Add(item);
            }
            return(allRMBranchNames.ToArray());
        }