private void PhieuNhanPhong_Load(object sender, EventArgs e) { //if (pnguoiDungBO.NguoiDung != "Admin") // PhanQuyen(); pctrl1.HienthiComboBoxPhongDat(cmbMaPhg); cmbMaPhg.SelectedValue = maphong; pctrl.HienthiDataGridviewComboBoxMaPhong(MaPhong); ptctrl.HienthiComboBoxMaPhieuThue(cmbMaPThue); khctrl.HienthiComboBox(cmbMaKH); ctrl.HienThiPhieuNhan(dataGridViewX1, bindingNavigator1); bindingNavigator1.BindingSource.CurrentChanged -= new EventHandler(BindingSource_CurrentChanged); bindingNavigator1.BindingSource.CurrentChanged += new EventHandler(BindingSource_CurrentChanged); ctpnctrl.HienThi(dataGridViewX1, txtMaNhanPhong.Text); if (status == Controll.AddNew) { txtMaNhanPhong.Text = ThamSo.LayPhieuNhan().ToString(); Allow(true); } else { Allow(false); } f(); }
private void frmTimPhieuThue_Load(object sender, EventArgs e) { PhieuThuePhongControl ctrl = new PhieuThuePhongControl(); ctrl.HienthiComboBoxMaPhieuThue(cmbMaPhieuThue); }