Example #1
0
 void FrmDanhMuc_Load(object sender, System.EventArgs e)
 {
     dgvNhaCungCap.DataSource        = busNhaCungCap.GetAll();
     lkDanhMuc.Properties.DataSource = busDanhMuc.GetAll();
     dgvSanPham.DataSource           = busHangHoa.GetAll();
     btnLuu.Enabled = false;
 }
 private void FrmDanhMucHoaDon_Load(object sender, EventArgs e)
 {
     lkKhachHang.Properties.DataSource = busKhachHang.GetAll();
     lkNhanVien.Properties.DataSource  = busNhanVien.GetAll();
     dgvHoaDon.DataSource = busHoaDon.GetAllBill();
     lkDanhMucSP.Properties.DataSource = busDanhMuc.GetAll();
     dgvSanPham.DataSource             = busHangHoa.GetAll();
     panelControl4.Enabled             = false;
 }
Example #3
0
 private void FrmBaoGia_Load(object sender, EventArgs e)
 {
     dgvPhieuBaoGia.DataSource         = busHoaDon.GetAllPrice();
     lkDanhMucSP.Properties.DataSource = busDanhMuc.GetAll();
     dgvSanPham.DataSource             = busHangHoa.GetAll();
     panelControl4.Enabled             = false;
     lkKhachHang.Properties.DataSource = busKhachHang.GetAll();
     lkNhanVien.Properties.DataSource  = busNhanVien.GetAll();
 }
Example #4
0
 private void FrmDanhMuc_Load(object sender, EventArgs e)
 {
     dgvPhieuNhapHang.DataSource        = busNhapHang.GetAll();
     lkDanhMucSP.Properties.DataSource  = busDanhMuc.GetAll();
     lkNhaCungCap.Properties.DataSource = busNhaCungCap.GetAll();
     lkNhanVien.Properties.DataSource   = busNhanVien.GetAll();
     dgvSanPham.DataSource = busHangHoa.GetAll();
     Enable(false);
 }