コード例 #1
0
 public InvItemService(IMapper mapper, IInvitemRepository invitemRepository, IAccountingDocumentRepository accountingDocument, IInventoryRepository inventory)
 {
     _mapper             = mapper;
     _invitemRepository  = invitemRepository;
     _accountingDocument = accountingDocument;
     _inventory          = inventory;
 }
コード例 #2
0
 public CreateAccountingDocumentCommandHandler(
     ILogger <CreateAccountingDocumentCommandHandler> logger,
     IUnitOfWork unitOfWork,
     IIdentityService identityService,
     IMapper mapper,
     IAuthorizationService authorizationService,
     IAccountingDocumentQueries accountingQueries,
     IMasterDataService masterDataService,
     ISystemDateTimeService systemDateTimeService,
     IProcessMessageService processMessageService,
     IAccountingDocumentRepository accountingDocumentRepository,
     IInvoicingRepository documentMatchingRepository,
     IForeignExchangeRateService foreignExchangeRateService)
 {
     _unitOfWork                   = unitOfWork;
     _logger                       = logger;
     _mapper                       = mapper;
     _identityService              = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _authorizationService         = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
     _systemDateTimeService        = systemDateTimeService ?? throw new ArgumentNullException(nameof(systemDateTimeService));
     _processMessageService        = processMessageService ?? throw new ArgumentNullException(nameof(processMessageService));
     _accountingQueries            = accountingQueries;
     _masterDataService            = masterDataService;
     _accountingDocumentRepository = accountingDocumentRepository;
     _invoicingRepository          = documentMatchingRepository;
     _foreignExchangeRateService   = foreignExchangeRateService;
 }
 public UpdateAccountingDocumentStatusToDeletedCommandHandler(
     ILogger <UpdateAccountingDocumentStatusToDeletedCommandHandler> logger,
     IUnitOfWork unitOfWork,
     IMapper mapper,
     IAccountingDocumentRepository accountingDocumentRepository)
 {
     _unitOfWork = unitOfWork;
     _logger     = logger;
     _mapper     = mapper;
     _accountingDocumentRepository = accountingDocumentRepository;
 }
コード例 #4
0
 public UpdateAccountingDocumentCommandHandler(
     ILogger <UpdateAccountingDocumentCommandHandler> logger,
     IUnitOfWork unitOfWork,
     IIdentityService identityService,
     IMapper mapper,
     IAuthorizationService authorizationService,
     IMasterDataService masterDataService,
     IAccountingDocumentRepository accountingDocumentRepository,
     IForeignExchangeRateService foreignExchangeRateService)
 {
     _unitOfWork                   = unitOfWork;
     _logger                       = logger;
     _mapper                       = mapper;
     _identityService              = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _authorizationService         = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
     _masterDataService            = masterDataService;
     _accountingDocumentRepository = accountingDocumentRepository;
     _foreignExchangeRateService   = foreignExchangeRateService;
 }
コード例 #5
0
 public AuthorizeForPostingCommandHandler(
     ILogger <AuthorizeForPostingCommandHandler> logger,
     IUnitOfWork unitOfWork,
     IIdentityService identityService,
     IAuthorizationService authorizationService,
     IAccountingDocumentQueries accountingQueries,
     ISystemDateTimeService systemDateTimeService,
     IProcessMessageService processMessageService,
     IAccountingDocumentRepository accountingDocumentRepository,
     IForeignExchangeRateService foreignExchangeRateService)
 {
     _unitOfWork                   = unitOfWork;
     _logger                       = logger;
     _identityService              = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _authorizationService         = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
     _systemDateTimeService        = systemDateTimeService ?? throw new ArgumentNullException(nameof(systemDateTimeService));
     _processMessageService        = processMessageService ?? throw new ArgumentNullException(nameof(processMessageService));
     _accountingQueries            = accountingQueries;
     _accountingDocumentRepository = accountingDocumentRepository;
     _foreignExchangeRateService   = foreignExchangeRateService;
 }
コード例 #6
0
ファイル: InvItemRepository.cs プロジェクト: mazizi924/Test
 public InvitemRepository(IUnitOfWork unitOfWork, IAccountingDocumentRepository accountingDoc) : base(unitOfWork)
 {
     _invitemDetails = unitOfWork.Set <InvitemDetail>();
     _accountingDoc  = accountingDoc;
 }
 public AccountingDocumentService(IAccountingDocumentRepository repo)
 {
     _repo = repo;
 }