Ejemplo n.º 1
0
        public ProductApiController(IDocumentRepository _documentRepository,
            ITypeOfTaskRepository _typeOfTaskRepository,
            IFormatsNameRepository _formatsName,
            IProductRepository _productRepository,
            ITaskExecutorRepository _taskExecutorRepository,
            IArticleRepository _articleRepository,
            ICustomerSupplierRepository _customerSupplierRepository,
            IMenuProductRepository _menuProduct,
            ICostDetailRepository _costDetailRepository,
            ITaskCenterRepository _taskCenterRepository)
        {
            typeOfTaskRepository = _typeOfTaskRepository;
            documentRepository = _documentRepository;
            productRepository = _productRepository;
            taskExecutorRepository = _taskExecutorRepository;
            articleRepository = _articleRepository;
            customerSupplierRepository = _customerSupplierRepository;
            menu = _menuProduct;
            costDetailRepository = _costDetailRepository;
            taskCenterRepository = _taskCenterRepository;

            this.Disposables.Add(typeOfTaskRepository);
            this.Disposables.Add(documentRepository);
            this.Disposables.Add(productRepository);
            this.Disposables.Add(taskExecutorRepository);
            this.Disposables.Add(articleRepository);
            this.Disposables.Add(customerSupplierRepository);
            this.Disposables.Add(menu);
            this.Disposables.Add(costDetailRepository);
            this.Disposables.Add(taskCenterRepository);

        }
Ejemplo n.º 2
0
        public TaskExecutorController(ITaskExecutorRepository _tskExDataRep, ITypeOfTaskRepository _typeOfTask)
        {
            taskExecutorRepository = _tskExDataRep;
            typeOfTaskRepository = _typeOfTask;

            this.Disposables.Add(taskExecutorRepository);
            this.Disposables.Add(typeOfTaskRepository);
        }
Ejemplo n.º 3
0
        public ArticleController(IArticleRepository _articleDataRep,
            ICustomerSupplierRepository _dataRepCS,
            IWarehouseRepository _warehouseDataRep,
            ITaskExecutorRepository _taskExecutorRep)
        {
            articleRepository = _articleDataRep;
            customerSupplierRepository = _dataRepCS;
            warehouseRepository = _warehouseDataRep;
            taskExecutorRepository = _taskExecutorRep;

            this.Disposables.Add(articleRepository);
            this.Disposables.Add(customerSupplierRepository);
            this.Disposables.Add(warehouseRepository);
            this.Disposables.Add(taskExecutorRepository);
        }
Ejemplo n.º 4
0
        //constructor
        public AccountController(IProfileRepository _profDataRep,
            IMenuProductRepository _profMenuRep,
            ICustomerSupplierRepository _crFrom,
            ICustomerSupplierRepository _crTo,
            IArticleRepository _arFrom,
            IArticleRepository _arTo,
            ITaskExecutorRepository _trFrom,
            ITaskExecutorRepository _trTo,
            ITypeOfTaskRepository _ttrFrom,
            ITypeOfTaskRepository _ttrTo,
            IWarehouseRepository _warehouseRepository)
        {
            //passare al costruttore anche un riferimento di tipo IMenuProductRepository
            //e fare le stesse cose che si fanno ora per il IProfileRepository
            profMenuRep = _profMenuRep;
            profDataRep = _profDataRep;
            crFrom = _crFrom;
            crTo = _crTo;
            arFrom = _arFrom;
            arTo = _arTo;
            trFrom = _trFrom;
            trTo = _trTo;
            ttrFrom = _ttrFrom;
            ttrTo = _ttrTo;

            warehouseRepository = _warehouseRepository;

            this.Disposables.Add(profMenuRep);
            this.Disposables.Add(profDataRep);
            this.Disposables.Add(crFrom);
            this.Disposables.Add(crTo);
            this.Disposables.Add(arFrom);
            this.Disposables.Add(arTo);
            this.Disposables.Add(trFrom);
            this.Disposables.Add(trTo);
            this.Disposables.Add(ttrFrom);
            this.Disposables.Add(ttrTo);
            this.Disposables.Add(warehouseRepository);

        }
Ejemplo n.º 5
0
        public ProductController(IProductRepository _productRepository,
            ITypeOfTaskRepository _typeOfTaskRepository,
            IMenuProductRepository _menuProduct,
            IProductTaskNameRepository _productTaskName,
            IFormatsNameRepository _formatsName,
            IDocumentRepository _documentRepository,
            IArticleRepository _articleRepository,
            ICostDetailRepository _costDetailRepository,
            ITaskExecutorRepository _taskExecuteRepository,
            ICustomerSupplierRepository _customerSupplierRepository,
            IWarehouseRepository _warehouseRepository

            )
        {
            formatsRepository = _formatsName;
            prodTskNameRepository = _productTaskName;
            menu = _menuProduct;
            typeOfTaskRepository = _typeOfTaskRepository;
            productRepository = _productRepository;
            documentRepository = _documentRepository;
            articleRepository = _articleRepository;
            costDetailRepository = _costDetailRepository;
            taskExecuteRepository = _taskExecuteRepository;
            customerSupplierRepository = _customerSupplierRepository;
            warehouseRepository = _warehouseRepository;

            this.Disposables.Add(typeOfTaskRepository);
            this.Disposables.Add(documentRepository);
            this.Disposables.Add(productRepository);
            this.Disposables.Add(formatsRepository);
            this.Disposables.Add(articleRepository);
            this.Disposables.Add(prodTskNameRepository);
            this.Disposables.Add(costDetailRepository);
            this.Disposables.Add(taskExecuteRepository);
            this.Disposables.Add(customerSupplierRepository);

            this.Disposables.Add(menu);
        }
Ejemplo n.º 6
0
        private void Init()
        {

            typeOfTaskRepository = new TypeOfTaskRepository();
            documentRepository = new DocumentRepository();
            productRepository = new ProductRepository();
            taskExecutorRepository = new TaskExecutorRepository();
            articleRepository = new ArticleRepository();
            customerSupplierRepository = new CustomerSupplierRepository();
            costDetailRepository = new CostDetailRepository();
            taskCenterRepository = new TaskCenterRepository();

            this.Disposables.Add(typeOfTaskRepository);
            this.Disposables.Add(documentRepository);
            this.Disposables.Add(productRepository);
            this.Disposables.Add(taskExecutorRepository);
            this.Disposables.Add(articleRepository);
            this.Disposables.Add(customerSupplierRepository);
            this.Disposables.Add(menu);
            this.Disposables.Add(costDetailRepository);
            this.Disposables.Add(taskCenterRepository);



        }