Ejemplo n.º 1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (productService != null)
         {
             productService.Dispose();
             productService = null;
         }
         if (providerRepository != null)
         {
             providerRepository.Dispose();
             providerRepository = null;
         }
         if (packagingRepository != null)
         {
             packagingRepository.Dispose();
             packagingRepository = null;
         }
         if (currencyTypeRepository != null)
         {
             currencyTypeRepository.Dispose();
             currencyTypeRepository = null;
         }
         if (productDocumentService != null)
         {
             productDocumentService.Dispose();
             productDocumentService = null;
         }
     }
     base.Dispose(disposing);
 }
Ejemplo n.º 2
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;
         }
     }
 }
Ejemplo n.º 3
0
 public ProductWithCostController(IProductService productServ,
                                  IProviderRepository providerRepo,
                                  IPackagingRepository packagingRepo,
                                  ICurrencyTypeRepository currencyTypeRepo,
                                  IProductDocumentService productDocumentServ)
 {
     productService         = productServ;
     providerRepository     = providerRepo;
     packagingRepository    = packagingRepo;
     currencyTypeRepository = currencyTypeRepo;
     productDocumentService = productDocumentServ;
 }
Ejemplo n.º 4
0
 public ProductService(
     IProductRepository productRepo,
     ISaleModalityProductRepository saleModalityProductRepo,
     IProductDocumentService productDocumentServ,
     ICustomerProductRepository customerProductRepo,
     ISaleModalityProductMarginRepository saleModalityProductMarginRepo)
 {
     productRepository                   = productRepo;
     saleModalityProductRepository       = saleModalityProductRepo;
     productDocumentService              = productDocumentServ;
     customerProductRepository           = customerProductRepo;
     saleModalityProductMarginRepository = saleModalityProductMarginRepo;
 }
Ejemplo n.º 5
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (productService != null)
         {
             productService.Dispose();
             productService = null;
         }
         if (providerRepository != null)
         {
             providerRepository.Dispose();
             providerRepository = null;
         }
         if (packagingRepository != null)
         {
             packagingRepository.Dispose();
             packagingRepository = null;
         }
         if (freightTypeRepository != null)
         {
             freightTypeRepository.Dispose();
             freightTypeRepository = null;
         }
         if (currencyTypeRepository != null)
         {
             currencyTypeRepository.Dispose();
             currencyTypeRepository = null;
         }
         if (productDocumentService != null)
         {
             productDocumentService.Dispose();
             productDocumentService = null;
         }
         if (sellerCompanyRepository != null)
         {
             sellerCompanyRepository.Dispose();
             sellerCompanyRepository = null;
         }
         if (iibbTreatmentRepository != null)
         {
             iibbTreatmentRepository.Dispose();
             iibbTreatmentRepository = null;
         }
     }
     base.Dispose(disposing);
 }
Ejemplo n.º 6
0
 public ProductController(
     IProductService productServ,
     IProviderRepository providerRepo,
     IPackagingRepository packagingRepo,
     IFreightTypeRepository freightTypeRepo,
     ICurrencyTypeRepository currencyTypeRepo,
     IProductDocumentService productDocumentServ,
     ISellerCompanyRepository sellerCompanyRepo,
     IGenericRepository <IIBBTreatment> iibbTreatmentRepo)
 {
     productService          = productServ;
     providerRepository      = providerRepo;
     packagingRepository     = packagingRepo;
     freightTypeRepository   = freightTypeRepo;
     currencyTypeRepository  = currencyTypeRepo;
     productDocumentService  = productDocumentServ;
     sellerCompanyRepository = sellerCompanyRepo;
     iibbTreatmentRepository = iibbTreatmentRepo;
 }
Ejemplo n.º 7
0
 public ProductDocumentController(IProductDocumentService productDocumentService, IUrlFileService urlFileService)
 {
     _productDocumentService = productDocumentService;
     _urlFileService         = urlFileService;
 }
Ejemplo n.º 8
0
 public ProductService(IProductRepository productRepository, IProductDocumentService productDocumentService, IUnitOfWork unitOfWork)
 {
     _productRepository      = productRepository;
     _productDocumentService = productDocumentService;
     _unitOfWork             = unitOfWork;
 }