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

            tb = NhaSanXuatBLL.LayDanhSachNhaSanXuat();
            dgvNSX.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()
                });
            }
        }