Esempio n. 1
0
 public ArticlePriceService(IAccountingPriceListRepository accountingPriceListRepository, IReceiptWaybillRepository receiptWaybillRepository,
                            IArticleAccountingPriceIndicatorService articleAccountingPriceIndicatorService)
 {
     this.accountingPriceListRepository          = accountingPriceListRepository;
     this.receiptWaybillRepository               = receiptWaybillRepository;
     this.articleAccountingPriceIndicatorService = articleAccountingPriceIndicatorService;
 }
        public AccountingPriceListService(IAccountingPriceListRepository accountingPriceListRepository, IReceiptWaybillRepository receiptWaybillRepository,
                                          IMovementWaybillRepository movementWaybillRepository, IChangeOwnerWaybillRepository changeOwnerWaybillRepository,
                                          IExpenditureWaybillRepository expenditureWaybillRepository, IWriteoffWaybillRepository writeoffWaybillRepository,
                                          IReturnFromClientWaybillRepository returnFromClientWaybillRepository, IArticleRevaluationService articleRevaluationService)
        {
            articleAvailabilityService             = IoCContainer.Resolve <IArticleAvailabilityService>();
            articlePriceService                    = IoCContainer.Resolve <IArticlePriceService>();
            storageService                         = IoCContainer.Resolve <IStorageService>();
            accountingPriceCalcRuleService         = IoCContainer.Resolve <IAccountingPriceCalcRuleService>();
            accountingPriceCalcService             = IoCContainer.Resolve <IAccountingPriceCalcService>();
            articleAccountingPriceIndicatorService = IoCContainer.Resolve <IArticleAccountingPriceIndicatorService>();

            this.accountingPriceListRepository = accountingPriceListRepository;

            this.receiptWaybillRepository          = receiptWaybillRepository;
            this.movementWaybillRepository         = movementWaybillRepository;
            this.changeOwnerWaybillRepository      = changeOwnerWaybillRepository;
            this.expenditureWaybillRepository      = expenditureWaybillRepository;
            this.writeoffWaybillRepository         = writeoffWaybillRepository;
            this.returnFromClientWaybillRepository = returnFromClientWaybillRepository;

            this.articleRevaluationService = articleRevaluationService;
        }