예제 #1
0
        private void HienThiDanhSachNhomThuoc()
        {
            DataTable tb = new DataTable();

            tb = NhomThuocBLL.LayDanhSachNhomThuoc();
            dgvNT.DataSource = tb;
        }
예제 #2
0
        private void DoDuLieuVaoComboBox()
        {
            DataTable tb1 = NhomThuocBLL.LayDanhSachNhomThuoc();

            foreach (DataRow i in tb1.Rows)
            {
                cbxNhomThuoc.Items.Add(new CBBItem {
                    Text = i["TenNhom"].ToString(), Value = i["MaNhom"].ToString()
                });
            }

            DataTable tb2 = NhaSanXuatBLL.LayDanhSachNhaSanXuat();

            foreach (DataRow i in tb2.Rows)
            {
                cbxNSX.Items.Add(new CBBItem {
                    Text = i["TenNSX"].ToString(), Value = i["MaNSX"].ToString()
                });
            }
        }