minChz.|<_|
This commit is contained in:
@ -3,6 +3,7 @@ using System.Threading.Tasks;
|
||||
using Microsoft.Data.Entity;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Yavsc.Abstract.Workflow;
|
||||
using Yavsc.Billing;
|
||||
using Yavsc.Models;
|
||||
|
||||
@ -19,11 +20,9 @@ namespace Yavsc.Services
|
||||
DbContext = dbContext;
|
||||
}
|
||||
|
||||
public async Task<IBillable> GetBillAsync(string billingCode, long queryId)
|
||||
public Task<INominativeQuery> GetBillAsync(string billingCode, long queryId)
|
||||
{
|
||||
var dbFunc = Startup.Billing[billingCode];
|
||||
IBillable query = await Task.Run(()=> dbFunc(DbContext, queryId));
|
||||
return query;
|
||||
return Task.FromResult(Startup.GetBillable(DbContext,billingCode,queryId));
|
||||
}
|
||||
|
||||
public async Task<ISpecializationSettings> GetPerformerSettingsAsync(string activityCode, string userId)
|
||||
|
@ -2,7 +2,8 @@ namespace Yavsc.Services
|
||||
{
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Billing;
|
||||
using Yavsc.Abstract.Workflow;
|
||||
|
||||
public interface IBillingService
|
||||
{
|
||||
/// <summary>
|
||||
@ -17,7 +18,7 @@ namespace Yavsc.Services
|
||||
/// <param name="billingCode">Identifiant du type de facturation</param>
|
||||
/// <param name="queryId">Identifiant de la demande du client</param>
|
||||
/// <returns>La facture</returns>
|
||||
Task<IBillable> GetBillAsync(string billingCode, long queryId);
|
||||
Task<INominativeQuery> GetBillAsync(string billingCode, long queryId);
|
||||
Task<IQueryable<ISpecializationSettings>> GetPerformersSettingsAsync(string activityCode);
|
||||
|
||||
Task<ISpecializationSettings> GetPerformerSettingsAsync(string activityCode, string userId);
|
||||
|
Reference in New Issue
Block a user