private void DocDanhSachBan() { cbB_MaBan.Items.Clear(); cbB_MaBan.Items.Add("All"); DataTable tb = DatBan_BUS.DocBanTrong(maNH); for (int i = 0; i < tb.Rows.Count; i++) { cbB_MaBan.Items.Add(tb.Rows[i]["MaBan"].ToString()); } cbB_MaBan.SelectedIndex = 0; }
private void DocBanAn() { cbbBanAn.DataSource = DatBan_BUS.DocBanTrong(int.Parse(bandat.MaNH)); cbbBanAn.DisplayMember = "MaBan"; cbbBanAn.ValueMember = "MaBan"; }
private void DocBanTrong() { tbBanTrong = DatBan_BUS.DocBanTrong(maNH); gridControl_BanTrong.DataSource = tbBanTrong; }