private Domain.Billing GetLastValidBilling(IBillingRepository billingRepository, Guid walletId, long fromBadBillingPosition = 0) { var currentId = fromBadBillingPosition; while (true) { var billing = billingRepository.GetLastBefore(walletId, currentId); if (billing == null) { return(null); } if (billing.Type == DataDefinition.BillType.Expend) { return(billing); } if (billing.Type == DataDefinition.BillType.Recharge) { return(billing); } var switchBilling = billingRepository.GetSwitchTarget(billing.Id); if (switchBilling != null && switchBilling.IsValidTransfer(billing)) { return(billing); } billing.Break(); billingRepository.Replace(billing); currentId = billing.Id; } }
public PatientViewModel(Patient patient) { var dbOptions = new DbContextOptionsBuilder <ApplicationContext>().UseSqlServer("Data Source=reception\\SQLEXPRESS;Initial Catalog=Billing;User Id=sa;Password=sa@12345;"); Repository = new BillingRepository(dbOptions); //addpatient(); Patient = patient ?? new Patient(); }
public CustomerController(ICustomerRepository customerRepository, IEstateRepository estateRepository, IMeterRepository meterRepository, IBillingRepository billingRepository, IEstateAdminRepository estateAdminRepository) { _customerRepository = customerRepository; _estateRepository = estateRepository; _meterRepository = meterRepository; _billingRepository = billingRepository; _estateAdminRepository = estateAdminRepository; }
public DashboardModel(ISubscriberRepository subscriberData, IDeviceRepository deviceData, IBillingRepository billingData) { _SubscriberData = subscriberData; _DeviceData = deviceData; _BillingData = billingData; }
public CompanyService(ICompanyRepository companyRepository, ISiteRepository siteRepository, IBillingRepository billingRepository) { _companyRepository = companyRepository; _siteRepository = siteRepository; _billingRepository = billingRepository; }
public UploadJsonModel(IDeviceRepository employeeRepository, IWebHostEnvironment webHostEnvironment, IBillingRepository BillingData) { _BillingData = BillingData; _deviceRepository = employeeRepository; // IWebHostEnvironment service allows us to get the // absolute path of WWWRoot folder this.webHostEnvironment = webHostEnvironment; }
public CheckoutController( ICheckoutRepository checkoutRepository, IDeliveryRepository deliveryRepository, IBillingRepository billingRepository) { this.checkoutRepository = checkoutRepository; this.deliveryRepository = deliveryRepository; this.billingRepository = billingRepository; }
public BillingController(IBillingRepository billingRepository, IConfiguration _config) { this._config = _config; _billingRepository = billingRepository; string connectionString = _config["ConnectionStrings:lagoonDB"]; _conn = new SqlConnection(connectionString); _conn.Open(); }
public UnitOfWork(ApplicationDbContext.ApplicationDbContext context, IProductLogRepository productLogs, IBillingRepository billings, IProductRepository products, IUserRepository users, IProductLikeRepository productLikes) { _context = context; ProductLogs = productLogs; Billings = billings; Products = products; Users = users; ProductLikes = productLikes; }
public EstateController(IEstateRepository estateRepository, IHostingEnvironment hostingEnvironment, IBillingRepository billingRepository, IEstateAdminRepository estateAdminRepository, UserManager <ApplicationUser> userManager) { _estateRepository = estateRepository; _hostingEnvironment = hostingEnvironment; _billingRepository = billingRepository; _estateAdminRepository = estateAdminRepository; _userManager = userManager; }
public UserService( IOrganizationRepository organizationRepository, IUserProfileRepository userProfileRepository, IBillingRepository billingRepository, ITransactionHelper transactionHelper) { _organizationRepository = organizationRepository; _userProfileRepository = userProfileRepository; _billingRepository = billingRepository; _transactionHelper = transactionHelper; }
public BillingController(IBillingRepository billingRepository, IClientRepository clientRepository, ITherapistRepository therapistRepository, IAppointmentRepository appointmentRepository, IAppointmentTypeRepository appointmentTypeRepository, IMapper mapper, IOptions <AppSettings> appSettings) { _billingRepository = billingRepository; _clientRepository = clientRepository; _therapistRepository = therapistRepository; _appointmentRepository = appointmentRepository; _appointmentTypeRepository = appointmentTypeRepository; _mapper = mapper; _appSettings = appSettings.Value; }
public PatientController(IPatientRepo patientRepo, //IBloodGroupRepo bloodGroupRepo, ITitleRepo titleRepo, IBillingRepository _BillingRepo, IPatientServices ps, EmailConfiguration _config) { this.patientRepo = patientRepo; this.ps = ps; patientPayorTypes = new DataContextRepo <PatientPayorTypes>(); patientDB = new DataContextRepo <Patient>(); _ctx = new DataContext(); _emailHelper = EmailMessageHelper.instance(_config); this._Billingrepo = _BillingRepo; //this.bloodGroupRepo = bloodGroupRepo; }
public BillingContext(IBillingRepository context) { Context = context; }
public BillingService(IBillingRepository billingRepository, IValidator<BillValidator> billValidator ) { _billingRepository = billingRepository; _billValidator = billValidator; }
public UsagetimedailyModel(IBillingRepository BillingData) { _BillingData = BillingData; }
public BillingController(IBillingRepository billingRepository, IMapper mapper, IValidator <Billing> validator) { _billingRepository = billingRepository; _mapper = mapper; _validator = validator; }
public BillingService(IBillingRepository billingRepository ) { _billingRepository = billingRepository; }
public PaymentpageModel(IBillingRepository BillingData, IHttpClientFactory httpClientFactory) { _httpClientFactory = httpClientFactory; _BillingData = BillingData; }
public BillingLogic(IBillingContext context) { BillingRepository = new BillingRepository(context); }
public MeterusageModel(IBillingRepository BillingData) { _BillingData = BillingData; }
public BillingService(IBillingRepository iBillingRepository) { _BillingRepository = iBillingRepository; }
public BillingReceiptController(IBillingRepository billingRepository) { _billingRepository = billingRepository; }
public StripePayModel(IBillingRepository BillingData, IHttpClientFactory httpClientFactory) { _httpClientFactory = httpClientFactory; _BillingData = BillingData; }
public BillingTrModel(IBillingRepository BillingData) { _BillingData = BillingData; }
public TurnOnMeterModel(IBillingRepository BillingData, IDeviceRepository DeviceData) { _BillingData = BillingData; _DeviceData = DeviceData; }
public AlertsNotificationModel(IBillingRepository BillingData) { _BillingData = BillingData; }
public BillService(IBillingRepository repo) { this.repo = repo; }
public MyService(IAccountRepository accountRepository, IInvoiceRepository invoiceRepository, IBillingRepository billingRepository) { _accountRepository = accountRepository; _invoiceRepository = invoiceRepository; _billingRepository = billingRepository; }
public EditTarrifModel(IBillingRepository BillingData) { _BillingData = BillingData; }
public BillingService(IBillingRepository repos) { Repository = repos; BillingMapper.Map(); }
public DetailmeterModel(IBillingRepository BillingData) { _BillingData = BillingData; }