Example #1
0
 public IncomingWaybillRowService(IReceiptWaybillRepository receiptWaybillRepository, IMovementWaybillRepository movementWaybillRepository,
                                  IChangeOwnerWaybillRepository changeOwnerWaybillRepository, IReturnFromClientWaybillRepository returnFromClientWaybillRepository)
 {
     this.receiptWaybillRepository          = receiptWaybillRepository;
     this.movementWaybillRepository         = movementWaybillRepository;
     this.changeOwnerWaybillRepository      = changeOwnerWaybillRepository;
     this.returnFromClientWaybillRepository = returnFromClientWaybillRepository;
 }
        public OutgoingWaybillRowService(IMovementWaybillRepository movementWaybillRepository, IWriteoffWaybillRepository writeoffWaybillRepository,
                                         IExpenditureWaybillRepository expenditureWaybillRepository, IChangeOwnerWaybillRepository changeOwnerWaybillRepository,
                                         IWaybillRowArticleMovementRepository waybillRowArticleMovementRepository)
        {
            this.movementWaybillRepository    = movementWaybillRepository;
            this.writeoffWaybillRepository    = writeoffWaybillRepository;
            this.expenditureWaybillRepository = expenditureWaybillRepository;
            this.changeOwnerWaybillRepository = changeOwnerWaybillRepository;

            this.waybillRowArticleMovementRepository = waybillRowArticleMovementRepository;
        }
        public ChangeOwnerWaybillService(ISettingRepository settingRepository, IChangeOwnerWaybillRepository changeOwnerWaybillRepository, IArticleRepository articleRepository,
                                         IStorageRepository storageRepository, IUserRepository userRepository,
                                         IArticlePriceService articlePriceService, IArticleAvailabilityService articleAvailabilityService, IArticleMovementService articleMovementService,
                                         IReceiptWaybillService receiptWaybillService, IArticleRevaluationService articleRevaluationService)
            : base(articleAvailabilityService)
        {
            this.settingRepository            = settingRepository;
            this.changeOwnerWaybillRepository = changeOwnerWaybillRepository;
            this.articleRepository            = articleRepository;
            this.storageRepository            = storageRepository;
            this.userRepository = userRepository;

            this.articlePriceService    = articlePriceService;
            this.articleMovementService = articleMovementService;

            this.receiptWaybillService     = receiptWaybillService;
            this.articleRevaluationService = articleRevaluationService;

            articleMovementService.ChangeOwnerWaybillReadyToChangedOwner += new ChangeOwnerWaybillEvent(ChangeOwner);
        }
        public AccountOrganizationService(IAccountOrganizationRepository accountOrganizationRepository, ISettingRepository settingRepository,
                                          IReceiptWaybillRepository receiptWaybillRepository, IMovementWaybillRepository movementWaybillRepository,
                                          IChangeOwnerWaybillRepository changeOwnerWaybillRepository, IWriteoffWaybillRepository writeoffWaybillRepository,
                                          IExpenditureWaybillRepository expenditureWaybillRepository, IReturnFromClientWaybillRepository returnFromClientWaybillRepository,
                                          IContractRepository contractRepository, IArticleAvailabilityService articleAvailabilityService,
                                          IOrganizationService organizationService, IUserService userService)
        {
            this.accountOrganizationRepository = accountOrganizationRepository;

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

            this.articleAvailabilityService = articleAvailabilityService;
            this.organizationService        = organizationService;
            this.userService = userService;
        }
        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;
        }
Example #6
0
 public ChangeOwnerWaybillMainIndicatorService(IChangeOwnerWaybillRepository changeOwnerWaybillRepository, IArticleRepository articleRepository, IArticlePriceService articlePriceService)
 {
     this.changeOwnerWaybillRepository = changeOwnerWaybillRepository;
     this.articleRepository            = articleRepository;
     this.articlePriceService          = articlePriceService;
 }