public BaoCaoBanHangBusiness() { dbContext = new SMSEntities(); _phieuBanHangRepo = new PhieuBanHangRepository(dbContext); _nhanVienRepo = new NhanVienRepository(dbContext); _hangHoaRepo = new HangHoaRepository(dbContext); _nhanVienBus = new NhanVienBusiness(); }
public HangHoaBusiness() { dbContext = new SMSEntities(); _phieuKiemKhoRepo = new PhieuKiemKhoRepository(dbContext); _nhanVienRepo = new NhanVienRepository(dbContext); _hangHoaRepo = new HangHoaRepository(dbContext); _phieuBanHangRepo = new PhieuBanHangRepository(dbContext); _chiTietPhieuBanHangRepo = new ChiTietPhieuBanHangRepository(dbContext); _loaiHangHoaRepo = new LoaiHangHoaRepository(dbContext); _nhanVienBus = new NhanVienBusiness(); }