Ejemplo n.º 1
0
    public string[] GetStage(string prefixText, int count)
    {
        MatterView BEL = new MatterView();
        DataTable  dt  = BEL.SelectLikeDataStage(prefixText.ToUpper());

        List <string> txtItems = new List <string>();
        String        dbValues;

        foreach (DataRow row in dt.Rows)
        {
            //String From DataBase(dbValues)
            dbValues = row["stage_type_desc"].ToString().ToUpper();
            dbValues = dbValues.ToUpper();
            txtItems.Add(dbValues);
            if (txtItems.Count > count)
            {
                return(txtItems.ToArray());
            }
        }

        return(txtItems.ToArray());
    }