void loadLookUpEdit() { // kho chuyen lueKhoChuyen.Properties.DataSource = khoBUS.getAllKhoBUS(); lueKhoChuyen.Properties.DisplayMember = "TenKho"; lueKhoChuyen.Properties.ValueMember = "MaKho"; // kho cnhan lueKhoNhan.Properties.DataSource = khoBUS.getAllKhoBUS(); lueKhoNhan.Properties.DisplayMember = "TenKho"; lueKhoNhan.Properties.ValueMember = "MaKho"; //Nguoi chuyen lueNguoiChuyen.Properties.DataSource = nhanVienBUS.getAllNhanVien(); lueNguoiChuyen.Properties.DisplayMember = "TenNhanVien"; lueNguoiChuyen.Properties.ValueMember = "MaNhanVien"; //nguoi nhan lueNguoiNhan.Properties.DataSource = nhanVienBUS.getAllNhanVien(); lueNguoiNhan.Properties.DisplayMember = "TenNhanVien"; lueNguoiNhan.Properties.ValueMember = "MaNhanVien"; //Hang Hoa lueHangHoa.Properties.DataSource = hangHoaBUS.getAllHangHoa(); lueHangHoa.Properties.DisplayMember = "TenHangHoa"; lueHangHoa.Properties.ValueMember = "MaHangHoa"; }
void loadLookUpEdit() { //load lookupedit Nha Cung Cap lueNhaCungCap.Properties.DataSource = nhaCungCapBUS.getAllNhaCungCap(); lueNhaCungCap.Properties.DisplayMember = "MaNhaCungCap"; lueNhaCungCap.Properties.ValueMember = "MaNhaCungCap"; //NhanVien lueNhanVien.Properties.DataSource = nhanVienBUS.getAllNhanVien(); lueNhanVien.Properties.DisplayMember = "TenNhanVien"; lueNhanVien.Properties.ValueMember = "MaNhanVien"; // kho lueKho.Properties.DataSource = khoBUS.getAllKhoBUS(); lueKho.Properties.DisplayMember = "TenKho"; lueKho.Properties.ValueMember = "MaKho"; //Hang Hoa lueHangHoa.Properties.DataSource = hangHoaBUS.getAllHangHoa(); lueHangHoa.Properties.DisplayMember = "TenHangHoa"; lueHangHoa.Properties.ValueMember = "MaHangHoa"; //Kieu thanh toan lueKieuThanhToan.Properties.DataSource = kieuThanhToanBUS.getAllKieuThanhToan(); lueKieuThanhToan.Properties.DisplayMember = "TenKieuThanhToan"; lueKieuThanhToan.Properties.ValueMember = "MaKieuThanhToan"; //Hinh Thuc Thanh Toan lueHinhThucThanhToan.Properties.DataSource = hinhThucThanhToanBUS.getAllHinhThucThanhToan(); lueHinhThucThanhToan.Properties.DisplayMember = "TenHinhThuc"; lueHinhThucThanhToan.Properties.ValueMember = "MaHinhThuc"; }
private void panelChiTietHoaDon() { List <HangHoa> listHH = hhBUS.getAllHangHoa(); if (listHH.Count == 0) { MessageBox.Show("Bổ sung Hàng hóa công ty", "Error"); deleteInfo(); return; } loadComboBoxHH(listHH); gridTotalHH.DataSource = listHHSelect; }
void loadLookUpEdit() { //load lookupedit Khach Hang lueKhachHang.Properties.DataSource = khachHangBUS.getAllKhachHang(); lueKhachHang.Properties.DisplayMember = "MaKhachHang"; lueKhachHang.Properties.ValueMember = "MaKhachHang"; //NhanVien lueNhanVien.Properties.DataSource = nhanVienBUS.getAllNhanVien(); lueNhanVien.Properties.DisplayMember = "TenNhanVien"; lueNhanVien.Properties.ValueMember = "MaNhanVien"; // kho lueKho.Properties.DataSource = khoBUS.getAllKhoBUS(); lueKho.Properties.DisplayMember = "TenKho"; lueKho.Properties.ValueMember = "MaKho"; //Hang Hoa lueHangHoa.Properties.DataSource = hangHoaBUS.getAllHangHoa(); lueHangHoa.Properties.DisplayMember = "TenHangHoa"; lueHangHoa.Properties.ValueMember = "MaHangHoa"; }
void loadData() { gridControlHangHoa.DataSource = hangHoaBUS.getAllHangHoa(); }