Exemplo n.º 1
0
 public PhieuBanHangBusiness()
 {
     dbContext         = new SMSEntities();
     _phieuBanHangRepo = new PhieuBanHangRepository(dbContext);
     _nhanVienRepo     = new NhanVienRepository(dbContext);
     _hangHoaRepo      = new HangHoaRepository(dbContext);
     _nhanVienBus      = new NhanVienBusiness();
     _hangHoaBus       = new HangHoaBusiness();
 }
Exemplo n.º 2
0
 public PhieuBanHangBusiness()
 {
     dbContext                = new QLWebDBEntities();
     _phieuBanHangRepo        = new PhieuBanHangReponsitory(dbContext);
     _nhanVienRepo            = new NhanVienReponsitory(dbContext);
     _hangHoaRepo             = new HangHoaReponsitory(dbContext);
     _chiTietPhieuBanHangRepo = new ChiTietPhieuBanHangReponsitory(dbContext);
     _nhanVienBus             = new NhanVienBusiness();
     _hangHoaBus              = new HangHoaBusiness();
 }
 public PhieuXuatKhoBusiness()
 {
     dbContext                = new SMSEntities();
     _phieuXuatKhoRepo        = new PhieuXuatKhoRepository(dbContext);
     _nhanVienRepo            = new NhanVienRepository(dbContext);
     _chiTietPhieuXuatKhoRepo = new ChiTietPhieuXuathoRepository(dbContext);
     _hangHoaRepo             = new HangHoaRepository(dbContext);
     _nhanVienBus             = new NhanVienBusiness();
     _hangHoaBus              = new HangHoaBusiness();
 }
Exemplo n.º 4
0
 public PhieuXuatKhoBusiness()
 {
     _dbContext               = new QLWebDBEntities();
     _phieuXuatKhoRepo        = new PhieuXuatKhoReponsitory(_dbContext);
     _nhanVienRepo            = new NhanVienReponsitory(_dbContext);
     _hangHoaRepo             = new HangHoaReponsitory(_dbContext);
     _chiTietPhieuXuatKhoRepo = new ChiTietPhieuXuatKhoReponsitory(_dbContext);
     _nhanVienBus             = new NhanVienBusiness();
     _hangHoaBus              = new HangHoaBusiness();
 }
Exemplo n.º 5
0
 public PhieuNhapKhoBusiness()
 {
     dbContext             = new QLWebDBEntities();
     _phieuNhapRepo        = new PhieuNhapReponsitory(dbContext);
     _nhanVienRepo         = new NhanVienReponsitory(dbContext);
     _hangHoaRepo          = new HangHoaReponsitory(dbContext);
     _nhaCungCapRepo       = new NhaCungCapReponsitory(dbContext);
     _chiTietPhieuNhapRepo = new ChiTietPhieuNhapReponsitory(dbContext);
     _nhanVienBus          = new NhanVienBusiness();
     _hangHoaBus           = new HangHoaBusiness();
     _baoCaoTonKhoBus      = new BaoCaoTonKhoBusiness();
 }