Exemple #1
0
        private void btnThemMaChinhsach_Click(object sender, EventArgs e)
        {
            frmChinhSachTra chtr = new frmChinhSachTra();

            chtr.ShowDialog();
            dvctrl.HienthiComboBoxMaSuDung(cmbMaSDDVu);
        }
Exemple #2
0
        private void ChiTietHoaDon_Load(object sender, EventArgs e)
        {
            pctrl1.HienthiComboBoxPhongTra(cmbMaPhong);
            cmbMaPhong.SelectedValue = maphong;
            pctrl.HienthiDataGridviewComboBoxMaPhong(MaPhong);

            cmbMaPhong.SelectedIndexChanged += new EventHandler(cmbMaPhong_SelectedValueChanged);

            dvctrl.HienthiComboBoxMaSuDung(cmbMaSDDVu);
            dataGridViewX1.Rows.Add(dvctrl.HienthiDataGridViewComboBoxColumn());
            cmbMaSDDVu.SelectedIndexChanged += new EventHandler(cmbMaSDDVu_SelectedIndexChanged);

            cstr.HienThiCombobox(cmbMaChinhSach);
            dataGridViewX1.Columns.Add(cstr.HienthiDataGridViewComboBoxColumn());
            cmbMaChinhSach.SelectedIndexChanged += new EventHandler(cmbMaChinhSach_SelectedIndexChanged);

            cmbMaNhanPhong.SelectedIndexChanged += new EventHandler(cmbMaNhanPhong_SelectedIndexChanged);

            khctrl.HienthiComboBox(cmbTenKhachHang);
            pnctrl.HienthiComboBoxMaPhieuNhan(cmbMaNhanPhong);
            ctrl.HienThiHoaDon(dataGridViewX1, bindingNavigator1);
            bindingNavigator1.BindingSource.CurrentChanged -= new EventHandler(BindingSource_CurrentChanged);
            bindingNavigator1.BindingSource.CurrentChanged += new EventHandler(BindingSource_CurrentChanged);

            ctctrl.HienThi(dataGridViewX1, txtMaHoaDon.Text);
            if (status == Controll.AddNew)
            {
                txtMaHoaDon.Text = ThamSo.LayHoaDon().ToString();
                Allow(true);
            }
            else
            {
                Allow(false);
            }
        }
Exemple #3
0
        private void frmTimMaSuDungDVu_Load(object sender, EventArgs e)
        {
            DanhSachSuDungDichVuControl ds = new DanhSachSuDungDichVuControl();

            ds.HienthiComboBoxMaSuDung(cmbmaSuDung);
        }