예제 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // Free managed resources
         if (productRepository != null)
         {
             productRepository.Dispose();
             productRepository = null;
         }
         if (saleModalityProductRepository != null)
         {
             saleModalityProductRepository.Dispose();
             saleModalityProductRepository = null;
         }
         if (productDocumentService != null)
         {
             productDocumentService.Dispose();
             productDocumentService = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
         if (saleModalityProductMarginRepository != null)
         {
             saleModalityProductMarginRepository.Dispose();
             saleModalityProductMarginRepository = null;
         }
     }
 }
예제 #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (customerOrderRepository != null)
         {
             customerOrderRepository.Dispose();
             customerOrderRepository = null;
         }
         if (shipmentTrackingRepository != null)
         {
             shipmentTrackingRepository.Dispose();
             shipmentTrackingRepository = null;
         }
         if (customerOrderService != null)
         {
             customerOrderService.Dispose();
             customerOrderService = null;
         }
         if (productQuoteRepository != null)
         {
             productQuoteRepository.Dispose();
             productQuoteRepository = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
     }
     base.Dispose(disposing);
 }
예제 #3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && customerProductRepository != null)
     {
         customerProductRepository.Dispose();
         customerProductRepository = null;
     }
     base.Dispose(disposing);
 }
예제 #4
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (contactTypeRepository != null)
         {
             contactTypeRepository.Dispose();
             contactTypeRepository = null;
         }
         if (contactRepository != null)
         {
             contactRepository.Dispose();
             contactRepository = null;
         }
         if (customerService != null)
         {
             customerService.Dispose();
             customerService = null;
         }
         if (creditRatingRepository != null)
         {
             creditRatingRepository.Dispose();
             creditRatingRepository = null;
         }
         if (userManager != null)
         {
             userManager.Dispose();
             userManager = null;
         }
         if (workflowMessageService != null)
         {
             workflowMessageService.Dispose();
             workflowMessageService = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
         if (contactClassRepository != null)
         {
             contactClassRepository.Dispose();
             contactClassRepository = null;
         }
         if (salesChannelRepository != null)
         {
             salesChannelRepository.Dispose();
             salesChannelRepository = null;
         }
         if (salesChannelUserRepository != null)
         {
             salesChannelUserRepository.Dispose();
             salesChannelUserRepository = null;
         }
     }
     base.Dispose(disposing);
 }
예제 #5
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (productQuoteRepository != null)
         {
             productQuoteRepository.Dispose();
             productQuoteRepository = null;
         }
         if (customerRepository != null)
         {
             customerRepository.Dispose();
             customerRepository = null;
         }
         if (userManager != null)
         {
             userManager.Dispose();
             userManager = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
         if (productQuoteService != null)
         {
             productQuoteService.Dispose();
             productQuoteService = null;
         }
         if (dueDateReasonRepository != null)
         {
             dueDateReasonRepository.Dispose();
             dueDateReasonRepository = null;
         }
         if (reasonsForClosureRepository != null)
         {
             reasonsForClosureRepository.Dispose();
             reasonsForClosureRepository = null;
         }
     }
     base.Dispose(disposing);
 }
예제 #6
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // Free managed resources
         if (customerRepository != null)
         {
             customerRepository.Dispose();
             customerRepository = null;
         }
         if (saleModalityCustomerMarginRepository != null)
         {
             saleModalityCustomerMarginRepository.Dispose();
             saleModalityCustomerMarginRepository = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
     }
 }
예제 #7
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Free managed resources
                if (_productQuoteRepository != null)
                {
                    _productQuoteRepository.Dispose();
                }
                if (_productRepository != null)
                {
                    _productRepository.Dispose();
                }
                if (_workflowMessageService != null)
                {
                    _workflowMessageService.Dispose();
                }
                if (_pdfService != null)
                {
                    _pdfService.Dispose();
                }
                if (_saleModalityProductRepository != null)
                {
                    _saleModalityProductRepository.Dispose();
                }
                if (_saleModalityCreditRatingRepository != null)
                {
                    _saleModalityCreditRatingRepository.Dispose();
                }
                if (_globalVariableRepository != null)
                {
                    _globalVariableRepository.Dispose();
                }
                if (_customerOrderRepository != null)
                {
                    _customerOrderRepository.Dispose();
                }
                if (_customerRepository != null)
                {
                    _customerRepository.Dispose();
                }
                if (_transportTypeRepository != null)
                {
                    _transportTypeRepository.Dispose();
                }
                if (_geographicAreaTransportTypeRepository != null)
                {
                    _geographicAreaTransportTypeRepository.Dispose();
                }
                if (_packagingRepository != null)
                {
                    _packagingRepository.Dispose();
                }

                if (_rofexRepository != null)
                {
                    _rofexRepository.Dispose();
                }
                if (_paymentDeadlineRepository != null)
                {
                    _paymentDeadlineRepository.Dispose();
                }
                if (_shipmentTrackingRepository != null)
                {
                    _shipmentTrackingRepository.Dispose();
                }
                if (_customerProductRepository != null)
                {
                    _customerProductRepository.Dispose();
                }
                if (_customerOrderService != null)
                {
                    _customerOrderService.Dispose();
                }
                if (_transportService != null)
                {
                    _transportService.Dispose();
                }
                if (_marginServices != null)
                {
                    _marginServices.Dispose();
                }
                if (_wayOfExceptionRepository != null)
                {
                    _wayOfExceptionRepository.Dispose();
                }
                if (_wayOfExceptionServices != null)
                {
                    _wayOfExceptionServices.Dispose();
                }
            }
        }
예제 #8
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (productQuoteService != null)
         {
             productQuoteService.Dispose();
             productQuoteService = null;
         }
         if (productQuoteRepository != null)
         {
             productQuoteRepository.Dispose();
             productQuoteRepository = null;
         }
         if (productRepository != null)
         {
             productRepository.Dispose();
             productRepository = null;
         }
         if (saleModalityRepository != null)
         {
             saleModalityRepository.Dispose();
             saleModalityRepository = null;
         }
         if (geographicAreaRepository != null)
         {
             geographicAreaRepository.Dispose();
             geographicAreaRepository = null;
         }
         if (saleModalityProductRepository != null)
         {
             saleModalityProductRepository.Dispose();
             saleModalityProductRepository = null;
         }
         if (geographicAreaTransportTypeRepository != null)
         {
             geographicAreaTransportTypeRepository.Dispose();
             geographicAreaTransportTypeRepository = null;
         }
         if (creditRatingPaymentDeadlineRepository != null)
         {
             creditRatingPaymentDeadlineRepository.Dispose();
             creditRatingPaymentDeadlineRepository = null;
         }
         if (exchangeTypeRepository != null)
         {
             exchangeTypeRepository.Dispose();
             exchangeTypeRepository = null;
         }
         if (stockTimeRepository != null)
         {
             stockTimeRepository.Dispose();
             stockTimeRepository = null;
         }
         if (deliveryAmountRepository != null)
         {
             deliveryAmountRepository.Dispose();
             deliveryAmountRepository = null;
         }
         if (customerProductRepository != null)
         {
             customerProductRepository.Dispose();
             customerProductRepository = null;
         }
         if (customerRepository != null)
         {
             customerRepository.Dispose();
             customerRepository = null;
         }
         if (globalVariableRepository != null)
         {
             globalVariableRepository.Dispose();
             customerRepository = null;
         }
         if (logRecordRepository != null)
         {
             logRecordRepository.Dispose();
             logRecordRepository = null;
         }
         if (salesChannelUserRepository != null)
         {
             salesChannelUserRepository.Dispose();
             salesChannelUserRepository = null;
         }
         if (globalVariableRepository != null)
         {
             globalVariableRepository.Dispose();
             globalVariableRepository = null;
         }
     }
     base.Dispose(disposing);
 }