private void load_BangDiem() { if (cboLop.Text != "" && cboMonHoc.Text != "" && cboHocKy.Text != "" && cboNamHoc.Text != "") { string maLop = cboLop.SelectedValue.ToString(); string maMonHoc = cboMonHoc.SelectedValue.ToString(); string maHocKy = cboHocKy.SelectedValue.ToString(); string maNamHoc = cboNamHoc.SelectedValue.ToString(); bindingSourceDiem.DataSource = HOCTAP_BUS.LayDiemMonHocTheoLop(maLop, maMonHoc, maHocKy, maNamHoc); bindingNavigatorXemDiemItem.Enabled = true; } }
private void load_BangDiem() { if (cboLop.Text != "" && cboMonHoc.Text != "" && cboHocKy.Text != "") { string maLop = cboLop.EditValue.ToString(); string maMonHoc = cboMonHoc.EditValue.ToString(); string maHocKy = cboHocKy.EditValue.ToString(); string maNamHoc = NAMHOC_BUS.LayNamHocHienTai().MANAMHOC; bindingSourceDiem.DataSource = HOCTAP_BUS.LayDiemMonHocTheoLop(maLop, maMonHoc, maHocKy, maNamHoc); bindingNavigatorXemDiemItem.Enabled = true; } else { bindingSourceDiem.DataSource = null; } }