From 3aba7250d0e62b1899d779a1bf5e5b7a93ba0e30 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Tue, 8 Jul 2025 16:30:58 +0200 Subject: [PATCH] Conversation Rename --- .../GeneratedAiEnhancedService.cs | 10 + BeWo/Styles/ControlStyles/ButtonStyles.xaml | 79 ++++++++ BeWo/Styles/Features/AIChatStyles.xaml | 44 +--- .../Detail/AI/AiConversationChatView.xaml | 73 ++++++- .../Detail/AI/AiConversationChatView.xaml.cs | 50 +++++ BeWo/View/Detail/CustomerView.xaml | 18 +- BeWo/ViewModel/AiConversationVM.cs | 37 ++++ .../View/AiConversationChatViewModel.cs | 9 + .../ServiceContracts/IAiEnhancedService.cs | 5 + .../AiEnhancedServiceImp.cs | 191 ++++++++++-------- 10 files changed, 377 insertions(+), 139 deletions(-) diff --git a/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs b/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs index f97d80268..6d349add9 100644 --- a/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs +++ b/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs @@ -43,6 +43,11 @@ namespace BeWo.ServiceProxy [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/CloneAiConversationBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] BS.Shared.DataContracts.Feature.AI.AiConversationDC CloneAiConversation(long conversation_oid, System.Nullable message_oid); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/UpdateAiConversationDisplayname", ReplyAction="http://tempuri.org/IAiEnhancedService/UpdateAiConversationDisplaynameResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/UpdateAiConversationDisplaynameBeWoFaultFau" + + "lt", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + long UpdateAiConversationDisplayname(long oid, long version, string displayname); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/DeleteAiConversation", ReplyAction="http://tempuri.org/IAiEnhancedService/DeleteAiConversationResponse")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/DeleteAiConversationBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] void DeleteAiConversation(long conversation_oid); @@ -121,6 +126,11 @@ namespace BeWo.ServiceProxy return base.Channel.CloneAiConversation(conversation_oid, message_oid); } + public long UpdateAiConversationDisplayname(long oid, long version, string displayname) + { + return base.Channel.UpdateAiConversationDisplayname(oid, version, displayname); + } + public void DeleteAiConversation(long conversation_oid) { base.Channel.DeleteAiConversation(conversation_oid); diff --git a/BeWo/Styles/ControlStyles/ButtonStyles.xaml b/BeWo/Styles/ControlStyles/ButtonStyles.xaml index d6641b5b1..8047b1be9 100644 --- a/BeWo/Styles/ControlStyles/ButtonStyles.xaml +++ b/BeWo/Styles/ControlStyles/ButtonStyles.xaml @@ -230,6 +230,85 @@ + + diff --git a/BeWo/Styles/Features/AIChatStyles.xaml b/BeWo/Styles/Features/AIChatStyles.xaml index 0a4de570b..974756b48 100644 --- a/BeWo/Styles/Features/AIChatStyles.xaml +++ b/BeWo/Styles/Features/AIChatStyles.xaml @@ -137,49 +137,7 @@ - - - - - - - - - - - - - - - - + diff --git a/BeWo/View/Detail/AI/AiConversationChatView.xaml b/BeWo/View/Detail/AI/AiConversationChatView.xaml index 99e8f4544..fff4cdfa2 100644 --- a/BeWo/View/Detail/AI/AiConversationChatView.xaml +++ b/BeWo/View/Detail/AI/AiConversationChatView.xaml @@ -33,7 +33,67 @@ + + + + + + + + + + + + + + + + + + + @@ -272,7 +332,7 @@ VerticalAlignment="Stretch"> -