public DocumentGenerationManager(IRequestDataProvider requestDataProvider, IOfferDataProvider offerDataProvider,
                                         ICustomerDataProvider customerDataProvider, IContactDataProvider contactDataProvider,
                                         IOrderDataProvider orderDataProvider, IInvoiceDataProvider invoiceDateProvider,
                                         IDepositInvoiceDataProvider depositInvoiceDataProvider, ITelephoneDataProvider telephoneDataProvider,
                                         IVisitDataProvider visitDataProvider, IEmployeeDataProvider employeeDataProvider,
                                         IOptions <DocumentGenerationConfiguration> documentGenerationConfiguration,
                                         ILogger <DocumentGenerationManager> logger)
        {
            _requestDataProvider        = requestDataProvider;
            _offerDataProvider          = offerDataProvider;
            _orderDataProvider          = orderDataProvider;
            _invoiceDateProvider        = invoiceDateProvider;
            _depositInvoiceDateProvider = depositInvoiceDataProvider;
            _customerDataProvider       = customerDataProvider;
            _contactDataProvider        = contactDataProvider;
            _telephoneDataProvider      = telephoneDataProvider;
            _visitDataProvider          = visitDataProvider;
            _employeeDataProvider       = employeeDataProvider;
            _httpClient = new HttpClient();
            _documentGenerationConfig = documentGenerationConfiguration.Value;
            _logger = logger;

            _offerStorageLocation                = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.OfferStorageLocation);
            _invoiceStorageLocation              = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.InvoiceStorageLocation);
            _productionTicketStorageLocation     = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.ProductionTicketStorageLocation);
            _generatedCertificateStorageLocation = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.GeneratedCertificateStorageLocation);
            _receivedCertificateStorageLocation  = FileUtils.EnsureStorageDirectory(_documentGenerationConfig.ReceivedCertificateStorageLocation);
        }
Beispiel #2
0
 public InvoiceDataProvider(IDepositInvoiceDataProvider depositInvoiceDataProvider,
                            ISequenceDataProvider sequenceDataProvider, IVatRateDataProvider vatRateDataProvider,
                            CrmContext context, IMapper mapper, ILogger <InvoiceDataProvider> logger)
     : base(sequenceDataProvider, vatRateDataProvider, context, mapper, logger)
 {
     _depositInvoiceDataProvider = depositInvoiceDataProvider;
 }
Beispiel #3
0
 public CaseManager(ICaseDataProvider caseDataProvider, IContactDataProvider contactDataProvider, IBuildingDataProvider buildingDataProvider,
                    IDepositInvoiceDataProvider depositInvoiceDataProvider, IRequestDataProvider requestDataProvider,
                    IOfferDataProvider offerDataProvider, IInvoiceDataProvider invoiceDataProvider)
 {
     _caseDataProvider           = caseDataProvider;
     _contactDataProvider        = contactDataProvider;
     _buildingDataProvider       = buildingDataProvider;
     _requestDataProvider        = requestDataProvider;
     _offerDataProvider          = offerDataProvider;
     _depositInvoiceDataProvider = depositInvoiceDataProvider;
     _invoiceDataProvider        = invoiceDataProvider;
 }
Beispiel #4
0
 public DepositInvoiceManager(IDepositInvoiceDataProvider depositInvoiceDataProvider, ICustomerDataProvider customerDataProvider,
                              IContactDataProvider contactDataProvider, IBuildingDataProvider buildingDataProvider,
                              IOrderDataProvider orderDataProvider, IVatRateDataProvider vatRateDataProvider,
                              IInvoiceDataProvider invoiceDataProvider, ILogger <InvoiceManager> logger)
 {
     _depositInvoiceDataProvider = depositInvoiceDataProvider;
     _customerDataProvider       = customerDataProvider;
     _contactDataProvider        = contactDataProvider;
     _buildingDataProvider       = buildingDataProvider;
     _orderDataProvider          = orderDataProvider;
     _invoiceDataProvider        = invoiceDataProvider;
     _vatRateDataProvider        = vatRateDataProvider;
     _logger = logger;
 }
Beispiel #5
0
 public OrderManager(IOrderDataProvider orderDataProvider, IInvoiceDataProvider invoiceDataProvider,
                     ICustomerDataProvider customerDataProvider, IContactDataProvider contactDataProvider,
                     IBuildingDataProvider buildingDataProvider, IOfferDataProvider offerDataProvider,
                     IOfferlineDataProvider offerlineDataProvider, IVatRateDataProvider vatRateDataProvider,
                     IDepositDataProvider depositDataProvider, IDepositInvoiceDataProvider depositInvoiceDataProvider,
                     IGraphApiService graphApiService, ILogger <OrderManager> logger)
 {
     _orderDataProvider          = orderDataProvider;
     _customerDataProvider       = customerDataProvider;
     _contactDataProvider        = contactDataProvider;
     _buildingDataProvider       = buildingDataProvider;
     _offerDataProvider          = offerDataProvider;
     _invoiceDataProvider        = invoiceDataProvider;
     _offerlineDataProvider      = offerlineDataProvider;
     _depositDataProvider        = depositDataProvider;
     _depositInvoiceDataProvider = depositInvoiceDataProvider;
     _vatRateDataProvider        = vatRateDataProvider;
     _graphApiService            = graphApiService;
     _logger = logger;
 }
Beispiel #6
0
 public OrderManager(IOrderDataProvider orderDataProvider, IInvoiceDataProvider invoiceDataProvider,
                     ICustomerDataProvider customerDataProvider, IContactDataProvider contactDataProvider,
                     IBuildingDataProvider buildingDataProvider, IOfferDataProvider offerDataProvider,
                     IVatRateDataProvider vatRateDataProvider,
                     IDepositDataProvider depositDataProvider, IDepositInvoiceDataProvider depositInvoiceDataProvider,
                     IEmployeeDataProvider employeeDataProvider, IDocumentGenerationManager documentGenerationManager,
                     ILogger <OrderManager> logger)
 {
     _orderDataProvider          = orderDataProvider;
     _customerDataProvider       = customerDataProvider;
     _contactDataProvider        = contactDataProvider;
     _buildingDataProvider       = buildingDataProvider;
     _offerDataProvider          = offerDataProvider;
     _invoiceDataProvider        = invoiceDataProvider;
     _depositDataProvider        = depositDataProvider;
     _depositInvoiceDataProvider = depositInvoiceDataProvider;
     _vatRateDataProvider        = vatRateDataProvider;
     _employeeDataProvider       = employeeDataProvider;
     _documentGenerationManager  = documentGenerationManager;
     _logger = logger;
 }
Beispiel #7
0
        public DocumentGenerationManager(IRequestDataProvider requestDataProvider, IInterventionDataProvider interventionDataProvider,
                                         IOfferDataProvider offerDataProvider, ICustomerDataProvider customerDataProvider,
                                         IContactDataProvider contactDataProvider, IBuildingDataProvider buildingDataProvider,
                                         IOrderDataProvider orderDataProvider, IInvoiceDataProvider invoiceDataProvider,
                                         IDepositInvoiceDataProvider depositInvoiceDataProvider,
                                         IEmployeeDataProvider employeeDataProvider, IFileStorageService fileStorageService,
                                         IOptions <DocumentGenerationConfiguration> documentGenerationConfiguration,
                                         ILogger <DocumentGenerationManager> logger)
        {
            _requestDataProvider        = requestDataProvider;
            _interventionDataProvider   = interventionDataProvider;
            _offerDataProvider          = offerDataProvider;
            _orderDataProvider          = orderDataProvider;
            _invoiceDataProvider        = invoiceDataProvider;
            _depositInvoiceDataProvider = depositInvoiceDataProvider;
            _customerDataProvider       = customerDataProvider;
            _contactDataProvider        = contactDataProvider;
            _buildingDataProvider       = buildingDataProvider;
            _employeeDataProvider       = employeeDataProvider;
            _httpClient               = new HttpClient();
            _fileStorageService       = fileStorageService;
            _documentGenerationConfig = documentGenerationConfiguration.Value;
            _logger = logger;

            _visitReportStorageLocation        = _fileStorageService.EnsureDirectory(_documentGenerationConfig.VisitReportStorageLocation);
            _interventionReportStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.InterventionReportStorageLocation);
            _offerStorageLocation        = _fileStorageService.EnsureDirectory(_documentGenerationConfig.OfferStorageLocation);
            _orderStorageLocation        = _fileStorageService.EnsureDirectory(_documentGenerationConfig.OrderStorageLocation);
            _deliveryNoteStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.DeliveryNoteStorageLocation);
            _invoiceStorageLocation      = _fileStorageService.EnsureDirectory(_documentGenerationConfig.InvoiceStorageLocation);
            _generatedProductionTicketStorageLocation = _fileStorageService.EnsureDirectory(_documentGenerationConfig.GeneratedProductionTicketStorageLocation);
            _receivedProductionTicketStorageLocation  = _fileStorageService.EnsureDirectory(_documentGenerationConfig.ReceivedProductionTicketStorageLocation);
            _generatedCertificateStorageLocation      = _fileStorageService.EnsureDirectory(_documentGenerationConfig.GeneratedCertificateStorageLocation);
            _receivedCertificateStorageLocation       = _fileStorageService.EnsureDirectory(_documentGenerationConfig.ReceivedCertificateStorageLocation);
            _certificateUploadSourceLocation          = _fileStorageService.EnsureDirectory(_documentGenerationConfig.CertificateUploadSourceLocation);
        }