private void FormBanHangPhieu_Load(object sender, EventArgs e)
 {
     //hinhthucthanhtoan
     gridLookUpEditHinhThucThanhToan.Properties.DataSource    = XL_HinhThucThanhToan.LayDuLieuHinhThucThanhToan();
     gridLookUpEditHinhThucThanhToan.Properties.DisplayMember = "MaHinhThuc";
     //nhanvien
     gridLookUpEditNhanVien.Properties.DataSource    = XL_NhanVien.LayDuLieuNhanVien();
     gridLookUpEditNhanVien.Properties.DisplayMember = "MaNV";
     //dieu khoan
     gridLookUpEditDieuKhoanThanhToan.Properties.DataSource    = XL_DieuKhoan.LayDuLieuDieuKhoan();
     gridLookUpEditDieuKhoanThanhToan.Properties.DisplayMember = "MaDieuKhoan";
     //khach hang
     gridLookUpEditMaKhachHang.Properties.DataSource    = XL_KhachHang.LayDuLieuKhachHang();
     gridLookUpEditMaKhachHang.Properties.DisplayMember = "MaKhachHang";
     //datagrid sp
     MaSP.DataSource    = XL_SanPham.LayDuLieuSanPham();
     MaSP.DisplayMember = "MaSP";
     sp = XL_SanPham.ChuyenDoiDTOSanPham(XL_SanPham.LayDuLieuSanPham());
     // ct phieu xuat
     ctpx = XL_CTPhieuXuat.ChuyenDoiDTOCTPhieuXuat(XL_CTPhieuXuat.LayCTPhieuXuat());
 }
Exemplo n.º 2
0
 private void FormMuaHangPhieu_Load(object sender, EventArgs e)
 {
     //hinhthucthanhtoan
     gridLookUpEditHinhThucThanhToan.Properties.DataSource    = XL_HinhThucThanhToan.LayDuLieuHinhThucThanhToan();
     gridLookUpEditHinhThucThanhToan.Properties.DisplayMember = "MaHinhThuc";
     //nhanvien
     gridLookUpEditNhanVien.Properties.DataSource    = XL_NhanVien.LayDuLieuNhanVien();
     gridLookUpEditNhanVien.Properties.DisplayMember = "MaNV";
     //kho
     gridLookUpEditKho.Properties.DataSource    = XL_KhoHang.LayDuLieuKhoHang();
     gridLookUpEditKho.Properties.DisplayMember = "MaKho";
     //dieu khoan
     gridLookUpEditDieuKhoanThanhToan.Properties.DataSource    = XL_DieuKhoan.LayDuLieuDieuKhoan();
     gridLookUpEditDieuKhoanThanhToan.Properties.DisplayMember = "MaDieuKhoan";
     //ncc
     gridLookUpEditNCC.Properties.DataSource    = XL_NhaCungCap.LayDuLieuNhaCungCap();
     gridLookUpEditNCC.Properties.DisplayMember = "MaNhaCungCap";
     //datagridn sp
     MaSP.DataSource    = XL_SanPham.LayDuLieuSanPham();
     MaSP.DisplayMember = "MaSP";
     sp = XL_SanPham.ChuyenDoiDTOSanPham(XL_SanPham.LayDuLieuSanPham());
     // ct phieu nhap
     ctpn = XL_CTPhieuNhap.ChuyenDoiDTOCTPhieuNhap(XL_CTPhieuNhap.LayCTPhieuNhap());
 }