public UCLichSuTraHang() { InitializeComponent(); ucth = new UCTraHang2(); KH = new KhachHangO(); TH = new TraHangO(); CTTH = new ChiTietTraHangO(); TK = new TonKhoO(); traHangBUS = new TraHangBUS(); khachHangBUS = new KhachHangBUS(); chiTietPhieuTraHangBUS = new ChiTietPhieuTraHangBUS(); tonKhoBUS = new TonKhoBUS(); }
void initObjectBUS() { TH = new TraHangO(); KH = new KhachHangO(); HH = new HangHoaO(); DV = new DonViO(); CTTH = new ChiTietTraHangO(); TK = new TonKhoO(); traHangBUS = new TraHangBUS(); khachHangBUS = new KhachHangBUS(); nhanVienBUS = new NhanVienBUS(); khoBUS = new KhoBUS(); hangHoaBUS = new HangHoaBUS(); donViBUS = new DonViBUS(); tonKhoBUS = new TonKhoBUS(); chiTietPhieuTraHangBUS = new ChiTietPhieuTraHangBUS(); kieuThanhToanBUS = new KieuThanhToanBUS(); hinhThucThanhToanBUS = new HinhThucThanhToanBUS(); }