private void frmQLDatDia_Load(object sender, EventArgs e) { datDiaController = new BusDatDia(); dsHangDoi = new List <eDanhSachHangDoi>(); dsTieuDeDuocChon = new List <eTieuDeDuocChon>(); dsHangDoiCuaKhachHang = new List <eDanhSachHangDoi>(); //String.Format("{0:ddMMyyyy}", dtpNgayLap.Value) //Mặc định txtMaDat.Text = "DD" + kiemTraMaTuDong(getMaDD_AuTo(datDiaController.LayDanhSachHangDoi())); txtNgayDat.Text = DateTime.Now.ToString(); customLock(); customLockHangDoiKhachHang(); dgrDSTieuDe.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgrDSDoiCuaKhachHang.SelectionMode = DataGridViewSelectionMode.FullRowSelect; //Lấy danh sách khách hàng dsKhachHang = datDiaController.LayDanhSachKhachHang(); //Load danh sách hàng đợi lên datagridview loadHangDoi(); //Load danh sách tiêu đề lên combobox tiêu đề dsTieuDe = datDiaController.LayDanhSachTieuDe(); cboDSTieuDe.DataSource = dsTieuDe; cboDSTieuDe.DisplayMember = "TenTieuDe"; cboDSTieuDe.ValueMember = "MaTieuDe"; //Gọi hàm Autocomplete cho combobox,textbox autoCompleteData(); }
private void frmQLKhachHang_Load(object sender, EventArgs e) { dsKH = new List <eKhachHang>(); dsHangDoiCuaKH = new List <eDanhSachHangDoi>(); busQuanLyKhachHang = new BusQuanLyKhachHang(); busDatDia = new BusDatDia(); btnXoa.Enabled = false; btnSua.Enabled = false; dsKH = busQuanLyKhachHang.layDSKhachHang(); txtMaKH.Text = "KH" + kiemTraMaTuDong(getMaDD_AuTo(busQuanLyKhachHang.layDSKhachHang())); griDanhSachKhachHang.DataSource = dsKH; formatDatagridsKhachHang(); }
private void frmQLTieuDe_Load(object sender, EventArgs e) { dsTieuDe = new List <eTieuDe>(); busQuanTieuDe = new BusTieuDe(); busQuanLyDia = new BusQuanLyDia(); busDatDia = new BusDatDia(); dsLoaiDia = new List <eLoaiDia>(); dsDiaCD = new List <eDiaCD>(); dsLoaiDia = busQuanTieuDe.LayDSLoaiDia(); cboMaLoai.DataSource = dsLoaiDia; cboMaLoai.DisplayMember = "TenLoai"; cboMaLoai.ValueMember = "MaLoai"; // mã đĩa tăng tự động griViewTieuDe.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dsTieuDe = busQuanTieuDe.layDSTieuDe(); txtMaTieuDe.Text = "TD" + kiemTraMaTuDong(getMaDD_AuTo(busQuanTieuDe.layDSTieuDe())); griViewTieuDe.DataSource = dsTieuDe; formatDatagridsTieuDe(); }
private void frmQLDia_Load(object sender, EventArgs e) { dsTieuDe = new List <eTieuDe>(); busQuanLyDia = new BusQuanLyDia(); busDatDia = new BusDatDia(); busLapPhieuTra = new BusLapPhieuTra(); dsDia = new List <eDiaCD>(); dsTieuDe = busQuanLyDia.LayDSTieuDe(); txtSoLuong.Text = "1"; cboTieuDe.DataSource = dsTieuDe; cboTieuDe.DisplayMember = "TenTieuDe"; cboTieuDe.ValueMember = "MaTieuDe"; // Mã đĩa tăng tự động griDanhSachDia.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dsDia = busQuanLyDia.layDSDia(); txtMaDia.Text = "CD" + kiemTraMaTuDong(getMaDD_AuTo(busQuanLyDia.layDSDia())); griDanhSachDia.DataSource = dsDia; formatDatagridsDia(); }
public frmTraDia() { InitializeComponent(); busLapPhieuTra = new BusLapPhieuTra(); busDatDia = new BusDatDia(); }