From 49492a27edf780656cf7ab4eed42a4c75bf0919d Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Fri, 12 Dec 2025 14:15:58 +0100 Subject: [PATCH] Verwaltung2 update --- .../GeneratedAiEnhancedService.cs | 27 ++ .../Detail/AI/AiPromptbausteinDetailView.xaml | 4 +- .../AI/AiPromptbausteinTreeView.xaml.cs | 2 +- BeWo/View/Detail/TextbausteinView.xaml | 288 +++++++++++++----- BeWo/ViewModel/AiPromptbausteinTreeVM.cs | 12 +- .../ListViewModel/AbstractDCListMapperVM.cs | 2 + .../AiPromptbausteinTreeListVM.cs | 48 --- .../AiPromptbausteinTreeViewModel.cs | 77 ++++- Data/Access/SearchDAO.cs | 8 + Data/Data.csproj | 5 + Data/Entities/AiPromptbausteinTree.cs | 45 +++ Data/Mappings/AiPromptbausteinTree.hbm.xml | 35 +++ Data/Utils/BeWoEntityExtension.cs | 15 + ...AiPromptbausteinTreeDC_AiPromptbaustein.cs | 4 +- ...omptbausteinTreeDC_AiPromptbausteinTree.cs | 67 ++++ Service/DCEntityMapper/MapperFactory.cs | 1 + Service/Plugins/AiPromptbausteineService.cs | 37 +-- Service/Service.csproj | 1 + .../Enhanced/IAiEnhancedService.cs | 28 +- .../Enhanced/AiEnhancedServiceImp.cs | 12 +- Shared/BeWoEntityEnums.cs | 3 +- .../Feature/AI/AiPromptbausteinTreeDC.cs | 2 +- 22 files changed, 534 insertions(+), 189 deletions(-) create mode 100644 Data/Entities/AiPromptbausteinTree.cs create mode 100644 Data/Mappings/AiPromptbausteinTree.hbm.xml create mode 100644 Data/Utils/BeWoEntityExtension.cs create mode 100644 Service/DCEntityMapper/AiPromptbausteinTreeDC_AiPromptbausteinTree.cs diff --git a/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs b/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs index 4b048e404..62f1057ff 100644 --- a/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs +++ b/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs @@ -63,6 +63,18 @@ namespace BeWo.ServiceProxy [System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/GetAiPromptbausteineTreeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")] System.Collections.Generic.List GetAiPromptbausteineTree(); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/CreateAiPromptbausteineTree", ReplyAction="http://tempuri.org/IAiEnhancedService/CreateAiPromptbausteineTreeResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/CreateAiPromptbausteineTreeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")] + System.Collections.Generic.List CreateAiPromptbausteineTree(System.Collections.Generic.List aiPromptbausteinDC); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/UpdateAiPromptbausteineTree", ReplyAction="http://tempuri.org/IAiEnhancedService/UpdateAiPromptbausteineTreeResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/UpdateAiPromptbausteineTreeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")] + System.Collections.Generic.Dictionary UpdateAiPromptbausteineTree(System.Collections.Generic.List aiPromptbausteinDCs); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/DeleteAiPromptbausteineTree", ReplyAction="http://tempuri.org/IAiEnhancedService/DeleteAiPromptbausteineTreeResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/DeleteAiPromptbausteineTreeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")] + void DeleteAiPromptbausteineTree(System.Collections.Generic.Dictionary oid2version); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/GetAiPromptbausteine", ReplyAction="http://tempuri.org/IAiEnhancedService/GetAiPromptbausteineResponse")] [System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/GetAiPromptbausteineBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")] System.Collections.Generic.List GetAiPromptbausteine(); @@ -176,6 +188,21 @@ namespace BeWo.ServiceProxy return base.Channel.GetAiPromptbausteineTree(); } + public System.Collections.Generic.List CreateAiPromptbausteineTree(System.Collections.Generic.List aiPromptbausteinDC) + { + return base.Channel.CreateAiPromptbausteineTree(aiPromptbausteinDC); + } + + public System.Collections.Generic.Dictionary UpdateAiPromptbausteineTree(System.Collections.Generic.List aiPromptbausteinDCs) + { + return base.Channel.UpdateAiPromptbausteineTree(aiPromptbausteinDCs); + } + + public void DeleteAiPromptbausteineTree(System.Collections.Generic.Dictionary oid2version) + { + base.Channel.DeleteAiPromptbausteineTree(oid2version); + } + public System.Collections.Generic.List GetAiPromptbausteine() { return base.Channel.GetAiPromptbausteine(); diff --git a/BeWo/View/Detail/AI/AiPromptbausteinDetailView.xaml b/BeWo/View/Detail/AI/AiPromptbausteinDetailView.xaml index 248e2673b..28e4121f4 100644 --- a/BeWo/View/Detail/AI/AiPromptbausteinDetailView.xaml +++ b/BeWo/View/Detail/AI/AiPromptbausteinDetailView.xaml @@ -69,12 +69,12 @@ IsEnabled="False" SelectedCompactEmployeeDC="{Binding Node.Creator}" /> - +