Example #1
0
 public BaoCaoHangHoaBusiness()
 {
     dbContext        = new SMSEntities();
     _hangHoaRepo     = new HangHoaRepository(dbContext);
     _loaiHangHoaRepo = new LoaiHangHoaRepository(dbContext);
     _nhanVienBus     = new NhanVienBusiness();
 }
 public ChiTietPhieuDatHangBusiness()
 {
     dbContext = new SMSEntities();
     _chiTietPhieuDatHangRepo = new ChiTietPhieuDatHangRepository(dbContext);
     _hangHoaRepo             = new HangHoaRepository(dbContext);
     _loaiHangHoaRepo         = new LoaiHangHoaRepository(dbContext);
 }
        public ChiTietPhieuKiemKhoBusiness()
        {
            SMSEntities dbContext = new SMSEntities();

            _chiTietPhieuKiemKhoRepo = new ChiTietPhieuKiemKhoRepository(dbContext);
            _hangHoaRepo             = new HangHoaRepository(dbContext);
            _loaiHangHoaRepo         = new LoaiHangHoaRepository(dbContext);
        }
 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();
 }
 public LoaiHangHoaBusiness()
 {
     dbContext        = new SMSEntities();
     _loaiHangHoaRepo = new LoaiHangHoaRepository(dbContext);
 }