Exemplo n.º 1
0
 public PhieuNhapKhoBusiness()
 {
     dbContext                = new SMSEntities();
     _phieuNhapKhoRepo        = new PhieuNhapKhoRepository(dbContext);
     _nhanVienRepo            = new NhanVienRepository(dbContext);
     _nhaCungCapRepo          = new NhaCungCapRepository(dbContext);
     _chiTietPhieuNhapKhoRepo = new ChiTietPhieuNhapKhoRepository(dbContext);
     _hangHoaRepo             = new HangHoaRepository(dbContext);
     _hangHoaBus              = new HangHoaBusiness();
     _nhanVienBus             = new NhanVienBusiness();
 }
Exemplo n.º 2
0
 public ServiceAccessor(AnhSanPhamRepository anhSanPhamRepository, BannerKhuyenMaiRepository bannerKhuyenMaiRepository, BinhLuanRepository binhLuanRepository, ChiTietDonHangRepository chiTietDonHangRepository, CountryRepository countryRepository, DistrictRepository districtRepository, DonHangRepository donHangRepository, LoaiSpRepository loaiSpRepository, NhaCungCapRepository nhaCungCapRepository, NhaSanXuatRepository nhaSanXuatRepository, ParameterRepository parameterRepository, ProvinceRepository provinceRepository, Core.Repository.SanPhamRepository sanPhamRepository, ThongSoKiThuatRepository thongSoKiThuatRepository, ThongSoRepository thongSoRepository, TraLoiRepository traLoiRepository, TrangThaiDonHangRepository trangThaiDonHangRepository, TrangThaiSanPhamRepository trangThaiSanPhamRepository, VoucherRepository voucherRepository, VoucherTypeRepository voucherTypeRepository, WardRepository wardRepository)
 {
     this.anhSanPhamRepository       = anhSanPhamRepository;
     this.bannerKhuyenMaiRepository  = bannerKhuyenMaiRepository;
     this.binhLuanRepository         = binhLuanRepository;
     this.chiTietDonHangRepository   = chiTietDonHangRepository;
     this.countryRepository          = countryRepository;
     this.districtRepository         = districtRepository;
     this.donHangRepository          = donHangRepository;
     this.loaiSpRepository           = loaiSpRepository;
     this.nhaCungCapRepository       = nhaCungCapRepository;
     this.nhaSanXuatRepository       = nhaSanXuatRepository;
     this.parameterRepository        = parameterRepository;
     this.provinceRepository         = provinceRepository;
     this.sanPhamRepository          = sanPhamRepository;
     this.thongSoKiThuatRepository   = thongSoKiThuatRepository;
     this.thongSoRepository          = thongSoRepository;
     this.traLoiRepository           = traLoiRepository;
     this.trangThaiDonHangRepository = trangThaiDonHangRepository;
     this.trangThaiSanPhamRepository = trangThaiSanPhamRepository;
     this.voucherRepository          = voucherRepository;
     this.voucherTypeRepository      = voucherTypeRepository;
     this.wardRepository             = wardRepository;
 }
Exemplo n.º 3
0
 public NhaCungCapBusiness()
 {
     _dbContext      = new SMSEntities();
     _nhaCungCapRepo = new NhaCungCapRepository(_dbContext);
 }
Exemplo n.º 4
0
 public DataAccess(AnhSanPhamRepository anhSanPhamRepository, BannerKhuyenMaiRepository bannerKhuyenMaiRepository, BinhLuanRepository binhLuanRepository, ChiTietDonHangRepository chiTietDonHangRepository, CountryRepository countryRepository, DistrictRepository districtRepository, DonHangRepository donHangRepository, LoaiSpRepository loaiSpRepository, NhaCungCapRepository nhaCungCapRepository, NhaSanXuatRepository nhaSanXuatRepository, ParameterRepository parameterRepository, ProvinceRepository provinceRepository, Core.Repository.SanPhamRepository sanPhamRepository, ThongSoKiThuatRepository thongSoKiThuatRepository, ThongSoRepository thongSoRepository, TraLoiRepository traLoiRepository, TrangThaiDonHangRepository trangThaiDonHangRepository, TrangThaiSanPhamRepository trangThaiSanPhamRepository, VoucherRepository voucherRepository, VoucherTypeRepository voucherTypeRepository, WardRepository wardRepository) : base(anhSanPhamRepository, bannerKhuyenMaiRepository, binhLuanRepository, chiTietDonHangRepository, countryRepository, districtRepository, donHangRepository, loaiSpRepository, nhaCungCapRepository, nhaSanXuatRepository, parameterRepository, provinceRepository, sanPhamRepository, thongSoKiThuatRepository, thongSoRepository, traLoiRepository, trangThaiDonHangRepository, trangThaiSanPhamRepository, voucherRepository, voucherTypeRepository, wardRepository)
 {
 }