public UCLichSuMuaHang() { InitializeComponent(); ucmh = new UCMuaHang(); MH = new MuaHangO(); CTPMH = new ChiTietPhieuMuaHangO(); TK = new TonKhoO(); muaHangBUS = new MuaHangBUS(); nhaCungCapBUS = new NhaCungCapBUS(); chiTietPhieuMuaHangBUS = new ChiTietPhieuMuaHangBUS(); tonKhoBUS = new TonKhoBUS(); }
void initObjectBUS() { MH = new MuaHangO(); NCC = new NhaCungCapO(); HH = new HangHoaO(); DV = new DonViO(); CTPMH = new ChiTietPhieuMuaHangO(); TK = new TonKhoO(); muaHangBUS = new MuaHangBUS(); nhaCungCapBUS = new NhaCungCapBUS(); nhanVienBUS = new NhanVienBUS(); khoBUS = new KhoBUS(); hangHoaBUS = new HangHoaBUS(); donViBUS = new DonViBUS(); tonKhoBUS = new TonKhoBUS(); chiTietPhieuMuaHangBUS = new ChiTietPhieuMuaHangBUS(); kieuThanhToanBUS = new KieuThanhToanBUS(); hinhThucThanhToanBUS = new HinhThucThanhToanBUS(); }