diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj
index eb517d5b0..77e84b1e1 100644
--- a/BeWo/BeWo.csproj
+++ b/BeWo/BeWo.csproj
@@ -118,7 +118,7 @@
-
+
AiPromptbausteinDetailView.xaml
diff --git a/BeWo/Scheduler/Converter/AptToServRecsIconVisibilityConverter.cs b/BeWo/Scheduler/Converter/AptToServRecsIconVisibilityConverter.cs
index 6b697b730..4a9d6fe7f 100644
--- a/BeWo/Scheduler/Converter/AptToServRecsIconVisibilityConverter.cs
+++ b/BeWo/Scheduler/Converter/AptToServRecsIconVisibilityConverter.cs
@@ -5,7 +5,6 @@ using System.Linq;
using System.Windows;
using System.Windows.Data;
using BeWo.Scheduler.ViewModel;
-using BS.Shared.DataContracts;
namespace BeWo.Scheduler.Converter
{
diff --git a/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstEmployeeView.xaml.cs b/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstEmployeeView.xaml.cs
index dd8845fcb..8ebd9a0c4 100644
--- a/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstEmployeeView.xaml.cs
+++ b/BeWo/SchulbegleitenderDienst/SchulbegleitenderDienstEmployeeView.xaml.cs
@@ -18,7 +18,6 @@ using BeWo.Core.Service;
using BeWo.ViewModel;
using BeWo.ServiceProxy;
using BeWo.View.Detail;
-using BS.Shared.DataContracts;
using BS.Shared.Extensions;
using BS.Shared;
using BS.Shared.Core;
diff --git a/BeWo/SchulbegleitenderDienst/VertretenderKlientSearchView.xaml.cs b/BeWo/SchulbegleitenderDienst/VertretenderKlientSearchView.xaml.cs
index ecea0f1dd..621122f37 100644
--- a/BeWo/SchulbegleitenderDienst/VertretenderKlientSearchView.xaml.cs
+++ b/BeWo/SchulbegleitenderDienst/VertretenderKlientSearchView.xaml.cs
@@ -31,7 +31,6 @@ using BeWo.View.Detail;
using BeWo.ViewModel.ListViewModel;
using BS.Shared;
using BS.Shared.Core;
-using BS.Shared.DataContracts;
using BS.Shared.DataContracts.Compact;
using DevExpress.Xpf.Core;
using DevExpress.Xpf.Editors;
diff --git a/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs b/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs
index 7af20fdc8..0205a4853 100644
--- a/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs
+++ b/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs
@@ -7,6 +7,8 @@
// der Code erneut generiert wird.
//
//------------------------------------------------------------------------------
+using BS.Shared.DataContracts.Feature.AI;
+
namespace BeWo.ServiceProxy
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
@@ -54,19 +56,19 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/SendNewMessage", ReplyAction="http://tempuri.org/IAiEnhancedService/SendNewMessageResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/SendNewMessageBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- System.Collections.Generic.List SendNewMessage(long conversation, string message);
+ System.Collections.Generic.List SendNewMessage(long conversation, string message);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/GetAiPromptbausteine", ReplyAction="http://tempuri.org/IAiEnhancedService/GetAiPromptbausteineResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/GetAiPromptbausteineBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- System.Collections.Generic.List GetAiPromptbausteine();
+ System.Collections.Generic.List GetAiPromptbausteine();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/CreateAiPromptbausteine", ReplyAction="http://tempuri.org/IAiEnhancedService/CreateAiPromptbausteineResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/CreateAiPromptbausteineBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- System.Collections.Generic.List CreateAiPromptbausteine(System.Collections.Generic.List aiPromptbausteinDC);
+ System.Collections.Generic.List CreateAiPromptbausteine(System.Collections.Generic.List aiPromptbausteinDC);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/UpdateAiPromptbausteine", ReplyAction="http://tempuri.org/IAiEnhancedService/UpdateAiPromptbausteineResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/UpdateAiPromptbausteineBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
- System.Collections.Generic.Dictionary UpdateAiPromptbausteine(System.Collections.Generic.List aiPromptbausteinDCs);
+ System.Collections.Generic.Dictionary UpdateAiPromptbausteine(System.Collections.Generic.List aiPromptbausteinDCs);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/DeleteAiPromptbausteine", ReplyAction="http://tempuri.org/IAiEnhancedService/DeleteAiPromptbausteineResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/DeleteAiPromptbausteineBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")]
@@ -152,22 +154,22 @@ namespace BeWo.ServiceProxy
base.Channel.DeleteAiConversation(conversation_oid);
}
- public System.Collections.Generic.List SendNewMessage(long conversation, string message)
+ public System.Collections.Generic.List SendNewMessage(long conversation, string message)
{
return base.Channel.SendNewMessage(conversation, message);
}
- public System.Collections.Generic.List GetAiPromptbausteine()
+ public System.Collections.Generic.List GetAiPromptbausteine()
{
return base.Channel.GetAiPromptbausteine();
}
- public System.Collections.Generic.List CreateAiPromptbausteine(System.Collections.Generic.List aiPromptbausteinDC)
+ public System.Collections.Generic.List CreateAiPromptbausteine(System.Collections.Generic.List aiPromptbausteinDC)
{
return base.Channel.CreateAiPromptbausteine(aiPromptbausteinDC);
}
- public System.Collections.Generic.Dictionary UpdateAiPromptbausteine(System.Collections.Generic.List aiPromptbausteinDCs)
+ public System.Collections.Generic.Dictionary UpdateAiPromptbausteine(System.Collections.Generic.List aiPromptbausteinDCs)
{
return base.Channel.UpdateAiPromptbausteine(aiPromptbausteinDCs);
}
diff --git a/BeWo/Services/BeWoControlFactory.cs b/BeWo/Services/BeWoControlFactory.cs
index f2f793462..1cb406a88 100644
--- a/BeWo/Services/BeWoControlFactory.cs
+++ b/BeWo/Services/BeWoControlFactory.cs
@@ -1,8 +1,6 @@
using BeWo.View.Controls;
using BeWo.View.Detail.AI;
using BeWo.ViewModel;
-using BeWo.ViewModel.View;
-using BeWo.ViewModel.View.Administration;
using BeWo.ViewModel.View.AI;
using BS.Shared;
using System;
diff --git a/BeWo/Services/BeWoWindowFactory.cs b/BeWo/Services/BeWoWindowFactory.cs
index 9e4d2a489..282794926 100644
--- a/BeWo/Services/BeWoWindowFactory.cs
+++ b/BeWo/Services/BeWoWindowFactory.cs
@@ -1,6 +1,5 @@
using BeWo.View.Detail.AI;
using BeWo.View.Windows;
-using BeWo.ViewModel.View;
using BeWo.ViewModel.View.AI;
using BS.Shared;
using DevExpress.Mvvm.Native;
diff --git a/BeWo/Services/BeWoWindowService.cs b/BeWo/Services/BeWoWindowService.cs
index 6cee3b205..eac8a8df4 100644
--- a/BeWo/Services/BeWoWindowService.cs
+++ b/BeWo/Services/BeWoWindowService.cs
@@ -2,11 +2,10 @@
using BeWo.View.Detail.AI;
using BeWo.View.Windows;
using BeWo.ViewModel;
-using BeWo.ViewModel.View;
using BeWo.ViewModel.View.Administration;
using BeWo.ViewModel.View.AI;
+using BeWo.ViewModel.View.Dialogs;
using BS.Shared;
-using BS.Shared.DataContracts;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BeWo/Services/IControlFactory.cs b/BeWo/Services/IControlFactory.cs
index 488c0681b..f6d03a2cd 100644
--- a/BeWo/Services/IControlFactory.cs
+++ b/BeWo/Services/IControlFactory.cs
@@ -1,6 +1,4 @@
using BeWo.ViewModel;
-using BeWo.ViewModel.View;
-using BeWo.ViewModel.View.Administration;
using BeWo.ViewModel.View.AI;
using BS.Shared;
using System;
diff --git a/BeWo/Services/IWindowService.cs b/BeWo/Services/IWindowService.cs
index 6e4fc615d..87eea994c 100644
--- a/BeWo/Services/IWindowService.cs
+++ b/BeWo/Services/IWindowService.cs
@@ -1,5 +1,4 @@
using BeWo.ViewModel;
-using BeWo.ViewModel.View;
using BeWo.ViewModel.View.Administration;
using BeWo.ViewModel.View.AI;
using BS.Shared;
diff --git a/BeWo/View/Controls/DPCtrlMonth.cs b/BeWo/View/Controls/DPCtrlMonth.cs
index eee0fb048..00ff2274b 100644
--- a/BeWo/View/Controls/DPCtrlMonth.cs
+++ b/BeWo/View/Controls/DPCtrlMonth.cs
@@ -1,5 +1,4 @@
-using BS.Shared.DataContracts;
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
diff --git a/BeWo/View/Controls/DPCtrlWeek.cs b/BeWo/View/Controls/DPCtrlWeek.cs
index dcf0c7480..00ff8cc49 100644
--- a/BeWo/View/Controls/DPCtrlWeek.cs
+++ b/BeWo/View/Controls/DPCtrlWeek.cs
@@ -1,5 +1,4 @@
-using BS.Shared.DataContracts;
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
diff --git a/BeWo/View/Controls/DienstplanerControl.xaml.cs b/BeWo/View/Controls/DienstplanerControl.xaml.cs
index 157f4b6a8..8a507ee06 100644
--- a/BeWo/View/Controls/DienstplanerControl.xaml.cs
+++ b/BeWo/View/Controls/DienstplanerControl.xaml.cs
@@ -7,7 +7,6 @@ using System.Windows.Media;
using BeWo.View.Detail;
using BeWo.View.Detail.Report;
using BeWo.ViewModel;
-using BS.Shared.DataContracts;
namespace BeWo.View.Controls
{
diff --git a/BeWo/View/Controls/GkvAbrechnungDetailControl.xaml.cs b/BeWo/View/Controls/GkvAbrechnungDetailControl.xaml.cs
index d362e83ff..b5c7068fb 100644
--- a/BeWo/View/Controls/GkvAbrechnungDetailControl.xaml.cs
+++ b/BeWo/View/Controls/GkvAbrechnungDetailControl.xaml.cs
@@ -4,7 +4,6 @@ using BeWo.View.Windows;
using BeWo.ViewModel;
using BeWo.ViewModel.Light;
using BeWo.ViewModel.ListViewModel;
-using BS.Shared.DataContracts.GkvAbrechnung;
using BS.Shared.DataContracts.Light;
using BS.Shared.Extensions;
using DevExpress.Xpf.Grid;
diff --git a/BeWo/View/Controls/ListboxSelectControl.xaml.cs b/BeWo/View/Controls/ListboxSelectControl.xaml.cs
index 73a37bf3b..dba9a68ff 100644
--- a/BeWo/View/Controls/ListboxSelectControl.xaml.cs
+++ b/BeWo/View/Controls/ListboxSelectControl.xaml.cs
@@ -11,7 +11,6 @@ using BeWo.Annotations;
using BS.Shared;
using BS.Shared.Core;
-using BS.Shared.DataContracts;
using BS.Shared.Extensions;
namespace BeWo.View.Controls
diff --git a/BeWo/View/Controls/MonthPicker.xaml.cs b/BeWo/View/Controls/MonthPicker.xaml.cs
index 831edea2a..b79f50900 100644
--- a/BeWo/View/Controls/MonthPicker.xaml.cs
+++ b/BeWo/View/Controls/MonthPicker.xaml.cs
@@ -9,7 +9,6 @@ using System.Windows.Media;
using BeWo.View.Detail;
using BeWo.View.Detail.Report;
using BeWo.ViewModel;
-using BS.Shared.DataContracts;
namespace BeWo.View.Controls
{
diff --git a/BeWo/View/Controls/NewsItemEditControl.xaml.cs b/BeWo/View/Controls/NewsItemEditControl.xaml.cs
index 3b30a53ae..884e35ac9 100644
--- a/BeWo/View/Controls/NewsItemEditControl.xaml.cs
+++ b/BeWo/View/Controls/NewsItemEditControl.xaml.cs
@@ -6,7 +6,6 @@ using System.Windows.Input;
using BeWo.Validation;
using BeWo.ViewModel;
using BS.Shared.Core;
-using BS.Shared.DataContracts.Compact;
namespace BeWo.View.Controls
{
diff --git a/BeWo/View/Detail/AI/AiConversationChatView.xaml.cs b/BeWo/View/Detail/AI/AiConversationChatView.xaml.cs
index 88d3146b0..8d74827e8 100644
--- a/BeWo/View/Detail/AI/AiConversationChatView.xaml.cs
+++ b/BeWo/View/Detail/AI/AiConversationChatView.xaml.cs
@@ -2,7 +2,6 @@
using BeWo.ServiceProxy;
using BeWo.ViewModel;
using BeWo.ViewModel.ListViewModel;
-using BeWo.ViewModel.View;
using BeWo.ViewModel.View.AI;
using BS.Shared.Extensions;
using DevExpress.Mvvm;
diff --git a/BeWo/View/Detail/AI/AiPromptbausteinSelectionView.xaml.cs b/BeWo/View/Detail/AI/AiPromptbausteinSelectionView.xaml.cs
index de4f536d1..bcd88c54c 100644
--- a/BeWo/View/Detail/AI/AiPromptbausteinSelectionView.xaml.cs
+++ b/BeWo/View/Detail/AI/AiPromptbausteinSelectionView.xaml.cs
@@ -29,6 +29,8 @@ namespace BeWo.View.Detail.AI
InitializeComponent();
DataContext = ViewModel = viewModel;
+
+ Loaded += (s, e) => VMFactory.CreateAiPromptbausteinTreeListAsync(vm => ViewModel.UpdateVMList(vm));
}
private void treeView_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs