Exemple #1
0
        public void LayTenDichVu(BunifuDropdown ddDichVu)
        {
            int n;

            string[] tendichvu = new string[100];
            conn.LayMangSql(tendichvu, "EXEC PROC_SELECT_TENDICHVU", out n, 0);
            ddDichVu.Clear();
            for (int i = 0; i < n; i++)
            {
                ddDichVu.AddItem(tendichvu[i]);
            }
            ddDichVu.selectedIndex = 0;
        }
Exemple #2
0
        void fillItems(BunifuDropdown name)
        {
            List <string> list = new List <string>();

            foreach (item i in itemsList)
            {
                list.Add(i.Name);
            }
            foreach (string s in list.Distinct())
            {
                name.AddItem(s);
            }
        }
Exemple #3
0
        public void LayTenPhong(BunifuDropdown ddsotang, BunifuDropdown ddtenphong)
        {
            string[] tenphong = new string[15];
            int      m;

            conn.LayMangSql(tenphong, "EXEC PRO_SELECT_TENPHONG1 " + ddsotang.selectedValue, out m, 0);
            ddtenphong.Clear();
            for (int i = 0; i < m; i++)
            {
                ddtenphong.AddItem(tenphong[i]);
            }
            if (m != 0)
            {
                ddtenphong.selectedIndex = 0;
            }
        }