コード例 #1
0
 public TransferController(
     IProjectRepository projectRepository,
     IProjectService projectService,
     IFinanceService financeService,
     IUserRepository userRepository) : base(projectRepository,
                                            projectService,
                                            userRepository) => FinanceService = financeService;
コード例 #2
0
 public IntegrationService(IFinanceService dataService, IConfiguration configuration)
 {
     _telegramCliente = new TelegramBotClient(configuration["TelegramKey"]);
     _telegramCliente.StartReceiving();
     _dataService = dataService;
     _semaphore   = new AutoResetEvent(false);
 }
コード例 #3
0
 public ClaimController(ApplicationUserManager userManager,
                        IProjectRepository projectRepository,
                        IProjectService projectService,
                        IClaimService claimService,
                        IPlotRepository plotRepository,
                        IClaimsRepository claimsRepository,
                        IFinanceService financeService,
                        IExportDataService exportDataService,
                        IPluginFactory pluginFactory,
                        ICharacterRepository characterRepository,
                        IUriService uriService,
                        IAccommodationRequestRepository accommodationRequestRepository,
                        IAccommodationRepository accommodationRepository,
                        IAccommodationService accommodationService,
                        IAccommodationInviteService accommodationInviteService,
                        IAccommodationInviteRepository accommodationInviteRepository)
     : base(userManager, projectRepository, projectService, exportDataService)
 {
     _claimService     = claimService;
     _plotRepository   = plotRepository;
     _claimsRepository = claimsRepository;
     _accommodationRequestRepository = accommodationRequestRepository;
     _accommodationRepository        = accommodationRepository;
     AccommodationService            = accommodationService;
     AccommodationInviteService      = accommodationInviteService;
     AccommodationInviteRepository   = accommodationInviteRepository;
     FinanceService      = financeService;
     PluginFactory       = pluginFactory;
     CharacterRepository = characterRepository;
     UriService          = uriService;
 }
コード例 #4
0
 public InvoicesService(
     IDeletableEntityRepository <InvoiceIn> invoiceIns,
     IDeletableEntityRepository <InvoiceOut> invoiceOuts,
     IDeletableEntityRepository <InvoiceStatus> invoiceStatuses,
     IDeletableEntityRepository <OrderTo> orderTos,
     IDeletableEntityRepository <VATReason> vatReasons,
     IDeletableEntityRepository <Currency> currencies,
     IFinanceService financeService,
     IPdfService pdfService,
     IViewRenderService viewRenderService,
     IOrdersService ordersService,
     IMapper mapper)
 {
     this.invoiceIns        = invoiceIns;
     this.invoiceOuts       = invoiceOuts;
     this.invoiceStatuses   = invoiceStatuses;
     this.orderTos          = orderTos;
     this.vatReasons        = vatReasons;
     this.currencies        = currencies;
     this.financeService    = financeService;
     this.pdfService        = pdfService;
     this.viewRenderService = viewRenderService;
     this.ordersService     = ordersService;
     this.mapper            = mapper;
 }
コード例 #5
0
 public FinanceController(IFinanceService financeService, IFinance3rdService finance3rdService)
     : base(financeService)
 {
     _financeService       = financeService;
     _finance3rdService    = finance3rdService;
     _finance3rdController = new AdminBaseController <Finance3rdQueryEntity, Finance3rdQueryEntityView>(finance3rdService);
 }
コード例 #6
0
 public OrdersController(
     IDeletableEntityRepository <Order> orders,
     IDeletableEntityRepository <OrderTo> orderTos,
     IDeletableEntityRepository <Currency> currencies,
     IDeletableEntityRepository <OrderStatus> orderStatuses,
     IOrdersService ordersService,
     IFinanceService financeService,
     IPdfService pdfService,
     IViewRenderService viewRenderService,
     IContactsService contactsService,
     IInvoicesService invoicesService,
     INotyfService notyfService,
     IStringLocalizer <OrdersController> localizer)
 {
     this.orders            = orders;
     this.orderTos          = orderTos;
     this.currencies        = currencies;
     this.orderStatuses     = orderStatuses;
     this.ordersService     = ordersService;
     this.financeService    = financeService;
     this.pdfService        = pdfService;
     this.viewRenderService = viewRenderService;
     this.contactsService   = contactsService;
     this.invoicesService   = invoicesService;
     this.notyfService      = notyfService;
     this.localizer         = localizer;
 }
コード例 #7
0
        public void RealFTTest()
        {
            XmlNode settings               = GetNode("TestMessages/MessageGroup[@name='PrepaidVoucher']/Message[@name='RealFTTest']/MessageContent/CustomContent/Settings");
            int     customerId             = Int32.Parse(XmlUtilities.SafeSelectText(settings, "CustomerId"));
            int     financialAccountId     = Int32.Parse(XmlUtilities.SafeSelectText(settings, "FinancialAccountId"));
            decimal baseAmount             = Decimal.Parse(XmlUtilities.SafeSelectText(settings, "BaseAmount"));
            int     ledgerAccountId        = Int32.Parse(XmlUtilities.SafeSelectText(settings, "LedgerAccountId"));
            int     currencyId             = Int32.Parse(XmlUtilities.SafeSelectText(settings, "CurrencyId"));
            string  paymentReferenceNumber = XmlUtilities.SafeSelectText(settings, "PaymentReferenceNumber");

            FinancialTransactionCollection transactionsCollection = new FinancialTransactionCollection();
            FinancialTransaction           transaction            = new FinancialTransaction();

            transaction.CustomerId             = customerId;
            transaction.FinancialAccountId     = financialAccountId;
            transaction.BaseAmount             = baseAmount;
            transaction.LedgerAccountId        = ledgerAccountId;
            transaction.CurrencyId             = currencyId;
            transaction.PaymentReferenceNumber = paymentReferenceNumber;

            transactionsCollection.Add(transaction);

            IFinanceService financeService = ServiceUtilities.GetService <IFinanceService>(_context);

            financeService.CreatePaymentTransactions(transactionsCollection, PaymentReceiptNumberingMethod.Automatic);
        }
コード例 #8
0
 public ClaimController(
     IProjectRepository projectRepository,
     IProjectService projectService,
     IClaimService claimService,
     IPlotRepository plotRepository,
     IClaimsRepository claimsRepository,
     IFinanceService financeService,
     IPluginFactory pluginFactory,
     ICharacterRepository characterRepository,
     IUriService uriService,
     IAccommodationRequestRepository accommodationRequestRepository,
     IAccommodationRepository accommodationRepository,
     IAccommodationInviteService accommodationInviteService,
     IAccommodationInviteRepository accommodationInviteRepository,
     IUserRepository userRepository)
     : base(projectRepository, projectService, userRepository)
 {
     _claimService     = claimService;
     _plotRepository   = plotRepository;
     _claimsRepository = claimsRepository;
     _accommodationRequestRepository = accommodationRequestRepository;
     _accommodationRepository        = accommodationRepository;
     AccommodationInviteService      = accommodationInviteService;
     AccommodationInviteRepository   = accommodationInviteRepository;
     FinanceService      = financeService;
     PluginFactory       = pluginFactory;
     CharacterRepository = characterRepository;
     UriService          = uriService;
 }
コード例 #9
0
 public FinancesController(ApplicationUserManager userManager, IProjectRepository projectRepository,
                           IProjectService projectService, IExportDataService exportDataService, IFinanceService financeService, IUriService uriService)
     : base(userManager, projectRepository, projectService, exportDataService)
 {
     FinanceService = financeService;
     UriService     = uriService;
 }
コード例 #10
0
 public FaPiaoController(IMapperFactory mapperFactory, IFaPiaoService fapiaoService, IFinanceService financeService, IEmployeesService employeesService)
 {
     _mapperFactory = mapperFactory;
     _fapiaoService = fapiaoService;
     _financeService = financeService;
     _employeesService = employeesService;
 }
コード例 #11
0
		public CheckoutController(IShoppingCartService shoppingCartService, ICatalogService catalogService, IFinanceService financeService, IErpService erpService, ApplicationUserManager userManager)
		{
			this.shoppingCartService = shoppingCartService;
			this.catalogService = catalogService;
			this.financeService = financeService;
			this.erpService = erpService;
			this.userManager = userManager;
		}
コード例 #12
0
 public CheckoutController(IShoppingCartService shoppingCartService, ICatalogService catalogService, IFinanceService financeService, IErpService erpService, ApplicationUserManager userManager)
 {
     this.shoppingCartService = shoppingCartService;
     this.catalogService      = catalogService;
     this.financeService      = financeService;
     this.erpService          = erpService;
     this.userManager         = userManager;
 }
コード例 #13
0
 public ContentController(IUnitOfWork unitOfWork,
     IFileStorageManager fileStorageManager,
     IFinanceService financeService)
     : base(unitOfWork)
 {
     _fileStorageManager = fileStorageManager;
     _financeService = financeService;
 }
コード例 #14
0
 public RegistrationController(IPatientService ipatient, ICoreService icore, IFinanceService ifinance, IConceptService iconcept, IDoctorService idoctor)
 {
     IPatientService = ipatient;
     ICoreService    = icore;
     IFinanceService = ifinance;
     IConceptService = iconcept;
     IDoctorService  = idoctor;
 }
コード例 #15
0
 public DrHospitalBillPaymentViewModel(IFinanceService financeService,
                                       IWindowManager windowManager)
 {
     this.financeService = financeService;
     _windowManager      = windowManager;
     EditToolbarButtonVisibilityState.FlavourTwo();
     CreateCommands();
     GetModelItems();
     SelectedHdl = null;
 }
コード例 #16
0
 public UsersController(IUserService userService,
                        IFinanceService financeService,
                        IProjectService projectService,
                        ITaskService taskService)
 {
     _userService    = userService;
     _financeService = financeService;
     _projectService = projectService;
     _taskService    = taskService;
 }
コード例 #17
0
        public async Task <IActionResult> GetDocument(string accountId)
        {
            _logger.LogInformation(accountId);
            _financeServiceOptions.Value.AccountId = accountId;
            _financeService = _serviceProvider.GetRequiredService <IFinanceService>();
            var result = await _financeService.GetFinanceDocumentAsync();

            //
            return(Ok(result.SuccessValue));
        }
コード例 #18
0
ファイル: Company.cshtml.cs プロジェクト: MMSlavov/BCKFreight
 public CompanyModel(
     UserManager <ApplicationUser> userManager,
     IFinanceService financeService,
     IDeletableEntityRepository <TaxCountry> taxCountries,
     IDeletableEntityRepository <Company> companies)
 {
     this.userManager    = userManager;
     this.financeService = financeService;
     this.taxCountries   = taxCountries;
     this.companies      = companies;
 }
コード例 #19
0
 public DrHospitalBillViewModel(IFinanceService financeService,
                                IWindowManager windowManager,
                                IPatientService patientService)
 {
     this.financeService = financeService;
     this.patientService = patientService;
     _windowManager      = windowManager;
     EditToolbarButtonVisibilityState.FlavourTwo();
     CreateCommands();
     GetModelItems();
 }
コード例 #20
0
 public TransferController(ApplicationUserManager userManager,
                           IProjectRepository projectRepository,
                           IProjectService projectService,
                           IExportDataService exportDataService,
                           IFinanceService financeService,
                           IUserRepository userRepository) : base(projectRepository,
                                                                  projectService,
                                                                  userRepository)
 {
     FinanceService = financeService;
 }
コード例 #21
0
 public ClaimController(ApplicationUserManager userManager, IProjectRepository projectRepository,
                        IProjectService projectService, IClaimService claimService, IPlotRepository plotRepository,
                        IClaimsRepository claimsRepository, IFinanceService financeService, IExportDataService exportDataService, IPluginFactory pluginFactory)
     : base(userManager, projectRepository, projectService, exportDataService)
 {
     _claimService     = claimService;
     _plotRepository   = plotRepository;
     _claimsRepository = claimsRepository;
     FinanceService    = financeService;
     PluginFactory     = pluginFactory;
 }
コード例 #22
0
 public ClientsController(IClientService clientService,
                          IUserService userService,
                          IProjectService projectService,
                          IFinanceService financeService,
                          IStatusService statusService)
 {
     _clientService  = clientService;
     _userService    = userService;
     _projectService = projectService;
     _financeService = financeService;
     _statusService  = statusService;
 }
コード例 #23
0
 public SpendingsController(
     ISpendingService spendingService,
     ICNWService cnwService,
     IFinanceService financeService,
     IIncomeService incomeService,
     IBaseService baseService)
 {
     this.spendingService = spendingService ?? throw new ArgumentNullException(nameof(spendingService));
     this.cnwService      = cnwService ?? throw new ArgumentNullException(nameof(cnwService));
     this.financeService  = financeService ?? throw new ArgumentNullException(nameof(financeService));
     this.incomeService   = incomeService ?? throw new ArgumentNullException(nameof(incomeService));
     this.baseService     = baseService ?? throw new ArgumentNullException(nameof(baseService));
 }
コード例 #24
0
 public ProjectsController(IProjectService projectService,
                           IUserService userService,
                           IParticipantService participantService,
                           IStatusService statusService,
                           IFinanceService financeService,
                           IClientService clientService)
 {
     _projectService     = projectService;
     _userService        = userService;
     _participantService = participantService;
     _statusService      = statusService;
     _financeService     = financeService;
     _clientService      = clientService;
 }
コード例 #25
0
        public async Task FillCartAsync(Cart cart, ICatalogService catalogService, IFinanceService financeService)
        {
            foreach (CartItem item in cart.Items)
            {
                item.Product = await catalogService.FindAsync(item.ProductId);

                item.Total = item.Quantity * item.Product.Price;
            }

            cart.SubTotal = cart.Items.Sum(x => x.Quantity * x.Product.Price);
            cart.Tax      = financeService.Tax;
            cart.TaxTotal = financeService.CalculateTax(cart.SubTotal);
            cart.Total    = cart.SubTotal + cart.TaxTotal;
        }
コード例 #26
0
 public TasksController(ITaskService taskService,
                        IUserService userService,
                        IParticipantService participantService,
                        IStatusService statusService,
                        IFinanceService financeService,
                        IClientService clientService)
 {
     _taskService        = taskService;
     _userService        = userService;
     _participantService = participantService;
     _statusService      = statusService;
     _financeService     = financeService;
     _clientService      = clientService;
 }
コード例 #27
0
ファイル: Sample2.cs プロジェクト: itvijaykumar/MRTest
 public HoldingBayController(
     IFinanceService financeService,
     ITimesheetService timesheetService,
     IRoleService roleService,
     IAssociateService associateService,
     IEmailService emailService)
 {
     this.financeService   = financeService;
     this.timesheetService = timesheetService;
     this.roleService      = roleService;
     this.associateService = associateService;
     this.emailService     = emailService;
     this.vatRate          = Convert.ToDecimal(ConfigurationManager.AppSettings["VatRate"]);
 }
コード例 #28
0
 public FinancesController(
     IProjectRepository projectRepository,
     IProjectService projectService,
     IExportDataService exportDataService,
     IFinanceService financeService,
     IUriService uriService,
     IFinanceReportRepository financeReportRepository,
     IUserRepository userRepository)
     : base(projectRepository, projectService, userRepository)
 {
     ExportDataService       = exportDataService;
     FinanceService          = financeService;
     UriService              = uriService;
     FinanceReportRepository = financeReportRepository;
 }
コード例 #29
0
        public AppLauncher(
            IFinanceService <decimal> financeService,
            IDataReceiver dataReceiver,
            ILoginService loginService,
            ICookieManager authorizer,
            IDisplayer displayer)
        {
            _financeService = financeService ?? throw new ArgumentNullException(nameof(financeService));
            _dataReceiver   = dataReceiver ?? throw new ArgumentNullException(nameof(dataReceiver));
            _loginService   = loginService ?? throw new ArgumentNullException(nameof(loginService));
            _cookieManager  = authorizer ?? throw new ArgumentNullException(nameof(authorizer));
            _displayer      = displayer ?? throw new ArgumentNullException(nameof(displayer));

            _isAppOn = true;
        }
コード例 #30
0
 public RegisterModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     ApplicationDbContext dbContext,
     IFinanceService financeService)
 {
     this.userManager    = userManager;
     this.signInManager  = signInManager;
     this.logger         = logger;
     this.emailSender    = emailSender;
     this.dbContext      = dbContext;
     this.financeService = financeService;
 }
コード例 #31
0
 public QualifyingRoleRateReportGeneratorTask(IQualifyingRoleService qualifyingRoleService,
                                              IEmployeeCategoryService employeeCategoryService,
                                              IQualifyingRoleRateService qualifyingRoleRateService,
                                              IEmployeeQualifyingRoleService employeeQualifyingRoleService,
                                              IEmployeeService employeeService,
                                              IDepartmentService departmentService, IFinanceService financeService)
     : base()
 {
     _qualifyingRoleService         = qualifyingRoleService;
     _employeeCategoryService       = employeeCategoryService;
     _qualifyingRoleRateService     = qualifyingRoleRateService;
     _employeeQualifyingRoleService = employeeQualifyingRoleService;
     _employeeService   = employeeService;
     _departmentService = departmentService;
     _financeService    = financeService;
 }
コード例 #32
0
 public ConfigurationsController(IUserService userService,
                                 IStatusService statusService,
                                 IParticipantService participantService,
                                 IFinanceService financeService,
                                 IProjectService projectService,
                                 ISourceService sourceService,
                                 ICustomOptionsService customOptionsService)
 {
     _userService          = userService;
     _statusService        = statusService;
     _participantService   = participantService;
     _financeService       = financeService;
     _projectService       = projectService;
     _sourceService        = sourceService;
     _customOptionsService = customOptionsService;
 }
コード例 #33
0
            protected override IFinanceService GetFinanceService()
            {
                IFinanceService      svcFinance           = m_mock.NewMock <IFinanceService>();
                FinancialTransaction financialTransaction = new FinancialTransaction();

                financialTransaction.Id = 123;
                FinancialTransactionCollection col = new FinancialTransactionCollection(new FinancialTransaction[] { financialTransaction });

                col.TotalCount = 1;

                Expect.Once.On(svcFinance)
                .Method("CreatePaymentTransactions")
                .WithAnyArguments()
                .Will(Return.Value(col));

                return(svcFinance);
            }
コード例 #34
0
		public ShoppingCartController(IShoppingCartService shoppingCartService, ICatalogService catalogService, IFinanceService financeService)
		{
			this.shoppingCartService = shoppingCartService;
			this.catalogService = catalogService;
			this.financeService = financeService;
		}
コード例 #35
0
        public FinanceByOrderController(IMapperFactory mapperFactory, IFinanceService financeService)
        {
            _mapperFactory = mapperFactory;
            _financeService = financeService;

        }