diff --git a/Service/Service.csproj b/Service/Service.csproj index 0ffcfe7a0..8fe6229a1 100644 --- a/Service/Service.csproj +++ b/Service/Service.csproj @@ -598,7 +598,6 @@ - diff --git a/Service/ServiceUtils/AiFunctionContextLoader.cs b/Service/ServiceUtils/AiFunctionContextLoader.cs deleted file mode 100644 index 9422740e3..000000000 --- a/Service/ServiceUtils/AiFunctionContextLoader.cs +++ /dev/null @@ -1,43 +0,0 @@ -using AICore.Context.Summary; -using BeWo.Data.Access; -using BeWo.Data.Entities; -using BS.Shared; -using BS.Shared.DataContracts.Feature.AI.Functions.ServiceRecords; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using AICore.Context.Core; -using BS.Shared.DataContracts; - -namespace BeWo.Service.ServiceUtils -{ - public class AiFunctionContextLoader - { - public static BaseContextSummary LoadServiceRecordDocumentationContext(AiFunctionDocRequest request, int samplesCount) - { - IEnumerable srs_loaded = null; - - if(samplesCount > 0) - { - var srs = request.ServiceRecords; - srs_loaded = DataContractLoader.LoadServiceRecordDCs(srs) - .OrderByDescending(x => x.Start) - .Take(samplesCount); - } - - var sc_ref = request.SupportConcept; - var sc_loaded = DataContractLoader.LoadSupportConceptDC(sc_ref); - - var customer_loaded = sc_loaded.Customer; - var costbearer_loaded = sc_loaded.CostBearerList.First(x => request.CostBearer.Oid == x.CostBearerOid); - - var doku = request.Dokumentation; - - var context = AiContextSummaryFactory.CreateServiceRecordDocumentationFunction(srs_loaded, customer_loaded, costbearer_loaded, sc_loaded, doku); - - return context; - } - } -}