Exemplo n.º 1
0
 public ReportController()
 {
     _countryRepository         = new CountryRepository();
     _foundryDynamicsRepository = new FoundryDynamicsRepository();
     _rfqRepository             = new RfqRepository();
     _priceSheetRepository      = new PriceSheetRepository();
     _quoteRepository           = new QuoteRepository();
     _foundryOrderRepository    = new FoundryOrderRepository();
     _packingListRepository     = new PackingListRepository();
     _debitMemoRepository       = new DebitMemoRepository();
     _creditMemoRepository      = new CreditMemoRepository();
 }
Exemplo n.º 2
0
 public ReportController(ICountryRepository countryRepository,
                         IFoundryDynamicsRepository foundryDynamicsRepository,
                         IRfqRepository rfqRepository,
                         IPriceSheetRepository priceSheetRepository,
                         IQuoteRepository quoteRepository,
                         IFoundryOrderRepository foundryOrderRepository,
                         IPackingListRepository packingListRepository,
                         IDebitMemoRepository debitMemoRepository,
                         ICreditMemoRepository creditMemoRepository)
 {
     _countryRepository         = countryRepository;
     _foundryDynamicsRepository = foundryDynamicsRepository;
     _rfqRepository             = rfqRepository;
     _priceSheetRepository      = priceSheetRepository;
     _quoteRepository           = quoteRepository;
     _foundryOrderRepository    = foundryOrderRepository;
     _packingListRepository     = packingListRepository;
     _debitMemoRepository       = debitMemoRepository;
     _creditMemoRepository      = creditMemoRepository;
 }
Exemplo n.º 3
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_userManager != null)
                {
                    _userManager.Dispose();
                    _userManager = null;
                }

                if (_countryRepository != null)
                {
                    _countryRepository.Dispose();
                    _countryRepository = null;
                }

                if (_foundryDynamicsRepository != null)
                {
                    _foundryDynamicsRepository.Dispose();
                    _foundryDynamicsRepository = null;
                }

                if (_rfqRepository != null)
                {
                    _rfqRepository.Dispose();
                    _rfqRepository = null;
                }

                if (_priceSheetRepository != null)
                {
                    _priceSheetRepository.Dispose();
                    _priceSheetRepository = null;
                }

                if (_quoteRepository != null)
                {
                    _quoteRepository.Dispose();
                    _quoteRepository = null;
                }

                if (_foundryOrderRepository != null)
                {
                    _foundryOrderRepository.Dispose();
                    _foundryOrderRepository = null;
                }

                if (_packingListRepository != null)
                {
                    _packingListRepository.Dispose();
                    _packingListRepository = null;
                }

                if (_debitMemoRepository != null)
                {
                    _debitMemoRepository.Dispose();
                    _debitMemoRepository = null;
                }

                if (_creditMemoRepository != null)
                {
                    _creditMemoRepository.Dispose();
                    _creditMemoRepository = null;
                }
            }

            base.Dispose(disposing);
        }