private void frmPhong_Load(object sender, EventArgs e) { btnLuu.Enabled = btnHuy.Enabled = false; txtSoPhong.Enabled = txtSoSVHT.Enabled = cbSucChua.Enabled = cbMaDay.Enabled = cbTrangThai.Enabled = false; txtSoSVHT.Text = "0"; CapNhatThongTinTrang(); LoadGridView(); PBLL.LoadCBTrangThai(cbTrangThai); PBLL.LoadCB(cbSucChua, "SUCCHUA", "Phong"); PBLL.LoadCB(cbMaDay, "MADAY", "DayPhong"); }
private void tabPhong_Click(object sender, EventArgs e) { if (PhongStatut == 0) { PhongStatut = 1; PBLL.LoadCB(cbPSoPhong, "SOPHONG", "Phong"); PBLL.LoadCB(cbPSucChua, "SUCCHUA", "Phong"); PBLL.LoadCBTrangThai(cbPTrangThai); PBLL.LoadCB(cbPMaDay, "MADAY", "DayPhong"); PBLL.LoadCB(cbPLoaiPhong, "LOAIPHONG", "DayPhong"); PBLL.LoadCB(cbPMaSV, "MASV", "SinhVien"); cbPNhanVienQuanLy.DataSource = DPBLL.DanhSachNhanVien("%"); cbPNhanVienQuanLy.ValueMember = "MANV"; cbPNhanVienQuanLy.DisplayMember = "TENNV"; cbPSoPhong.Text = cbPSucChua.Text = cbPMaDay.Text = cbPTrangThai.Text = cbPNhanVienQuanLy.Text = cbPLoaiPhong.Text = cbPMaSV.Text = ""; } }