Example #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;
        }
Example #2
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;
            }
        }