diff --git a/BeWo/Core/BeWoWpfUtils.cs b/BeWo/Core/BeWoWpfUtils.cs index 86083b566..b78f48448 100644 --- a/BeWo/Core/BeWoWpfUtils.cs +++ b/BeWo/Core/BeWoWpfUtils.cs @@ -294,6 +294,16 @@ namespace BeWo.Core return null; } + public static void ScrollToTop(ListBox listBox) + { + if (VisualTreeHelper.GetChildrenCount(listBox) > 0) + { + Border border = (Border)VisualTreeHelper.GetChild(listBox, 0); + ScrollViewer scrollViewer = (ScrollViewer)VisualTreeHelper.GetChild(border, 0); + scrollViewer.ScrollToTop(); + } + } + public static void ScrollToBottom(ListBox listBox) { if (VisualTreeHelper.GetChildrenCount(listBox) > 0) diff --git a/BeWo/DebugConfig.cs b/BeWo/DebugConfig.cs index badf2fb8b..ad6d26b7f 100644 --- a/BeWo/DebugConfig.cs +++ b/BeWo/DebugConfig.cs @@ -147,9 +147,9 @@ namespace BeWo AutoLogin = true, //SelectView = UIContext.AiConversation, //SelectIndex = 8, - DefaultLoginUsername = "m1", - DefaultLoginPassword = "bewobewo", - DefaultProfilename = "5000000000", + //DefaultLoginUsername = "m1", + //DefaultLoginPassword = "bewobewo", + //DefaultProfilename = "5000000000", EnableAutoRemoteDebugging = true }); diff --git a/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs b/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs index 19d6241cc..f97d80268 100644 --- a/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs +++ b/BeWo/ServiceProxy/GeneratedAiEnhancedService.cs @@ -28,12 +28,17 @@ namespace BeWo.ServiceProxy [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/GetAiConversations", ReplyAction="http://tempuri.org/IAiEnhancedService/GetAiConversationsResponse")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/GetAiConversationsBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] - System.Collections.Generic.List GetAiConversations(int uicontext, long? oid); + System.Collections.Generic.List GetAiConversations(int uicontext, System.Nullable oid); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/CreateAiConversation", ReplyAction="http://tempuri.org/IAiEnhancedService/CreateAiConversationResponse")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/CreateAiConversationBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] BS.Shared.DataContracts.Feature.AI.AiConversationDC CreateAiConversation(BS.Shared.DataContracts.Feature.AI.AiConversationDC conversation, long modell_oid); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/CreateAiConversationWithMessage", ReplyAction="http://tempuri.org/IAiEnhancedService/CreateAiConversationWithMessageResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/CreateAiConversationWithMessageBeWoFaultFau" + + "lt", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + BS.Shared.DataContracts.Feature.AI.AiConversationDC CreateAiConversationWithMessage(BS.Shared.DataContracts.Feature.AI.AiConversationDC conversation, long modell_oid, string message); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/CloneAiConversation", ReplyAction="http://tempuri.org/IAiEnhancedService/CloneAiConversationResponse")] [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); @@ -96,7 +101,7 @@ namespace BeWo.ServiceProxy return base.Channel.GetAiModels(); } - public System.Collections.Generic.List GetAiConversations(int uicontext, long? oid) + public System.Collections.Generic.List GetAiConversations(int uicontext, System.Nullable oid) { return base.Channel.GetAiConversations(uicontext, oid); } @@ -106,6 +111,11 @@ namespace BeWo.ServiceProxy return base.Channel.CreateAiConversation(conversation, modell_oid); } + public BS.Shared.DataContracts.Feature.AI.AiConversationDC CreateAiConversationWithMessage(BS.Shared.DataContracts.Feature.AI.AiConversationDC conversation, long modell_oid, string message) + { + return base.Channel.CreateAiConversationWithMessage(conversation, modell_oid, message); + } + public BS.Shared.DataContracts.Feature.AI.AiConversationDC CloneAiConversation(long conversation_oid, System.Nullable message_oid) { return base.Channel.CloneAiConversation(conversation_oid, message_oid); diff --git a/BeWo/Services/BeWoWindowFactory.cs b/BeWo/Services/BeWoWindowFactory.cs index c1fdcfae3..4ae304a18 100644 --- a/BeWo/Services/BeWoWindowFactory.cs +++ b/BeWo/Services/BeWoWindowFactory.cs @@ -15,13 +15,13 @@ namespace BeWo.Services { public Dictionary UIContext2Header { get; set; } = new Dictionary() { - {UIContext.ServiceRecord, "Zeiterfassung KI Chat" }, - {UIContext.Customer, "Klienten Übersicht KI Chat" }, - {UIContext.Person, "Personen Übersicht KI Chat" }, - {UIContext.Employee, "Mitarbeiter Übersicht KI Chat" }, - {UIContext.Organisation, "Organisation Übersicht KI Chat" }, - {UIContext.SupportConcept, "Hilfeplan Übersicht KI Chat" }, - {UIContext.CustomerSingle, "Klient KI Chat" }, + {UIContext.ServiceRecord, "KI Chat: Zeiterfassung" }, + {UIContext.Customer, "KI Chat: Klienten Übersicht" }, + {UIContext.Person, "KI Chat: Personen Übersicht" }, + {UIContext.Employee, "KI Chat: Mitarbeiter Übersicht" }, + {UIContext.Organisation, "KI Chat: Organisation Übersicht" }, + {UIContext.SupportConcept, "KI Chat: Hilfeplan Übersicht" }, + {UIContext.CustomerSingle, "KI Chat: Klient" }, }; public AnimatedBeWoWindow GetAiConversationWindow(UIContext uIContext, Control control, double height = 600, double width = 1200) diff --git a/BeWo/Styles/Colors/Colors.xaml b/BeWo/Styles/Colors/Colors.xaml index d4d28f236..4b888ffa5 100644 --- a/BeWo/Styles/Colors/Colors.xaml +++ b/BeWo/Styles/Colors/Colors.xaml @@ -102,33 +102,48 @@ + + + + #ffaaaaaa #FFD7DADB #FF92A9B3 - #FFC80000 - #FFD7DADB - #FF92A9B3 + #FF5C1919 + #FF993B3B + #FF5C1919 - #FF993B3B - #FFD7DADB - #FF92A9B3 + #FF5C1919 + #FF993B3B + #FF5C1919 #FF19485C - #FFD7DADB - #FF92A9B3 + #FF3B7799 + #FF19485C + #FF9E3D02 - #FFD7DADB - #FF92A9B3 + #FFB5662D + #FF9E3D02 #FF205C19 - #FFD7DADB - #FF92A9B3 + #FF45993B + #FF205C19 #FFC8C000 - #FFD7DADB - #FF92A9B3 + #FFC8C000 + #FF706000 + + #FFFFFFFF + #FFD2D2D2 + + #FFD2D2D2 + #FFA0A0A0 + + #FF111111 + #FF777777 diff --git a/BeWo/Styles/Features/AIChatStyles.xaml b/BeWo/Styles/Features/AIChatStyles.xaml index 8ebd2383b..0a4de570b 100644 --- a/BeWo/Styles/Features/AIChatStyles.xaml +++ b/BeWo/Styles/Features/AIChatStyles.xaml @@ -14,14 +14,19 @@ + + - - - - - - @@ -122,9 +143,9 @@ Width="auto" Margin="0,0,0,0" HorizontalAlignment="Stretch" - Background="#44000000" + Background="#17000000" BorderBrush="Black" - BorderThickness="1" + BorderThickness="0" CornerRadius="10, 10, 10, 10"> @@ -133,22 +154,23 @@ + Text="{Binding Created, StringFormat=Erstellt: {0:dd.MM.yy HH:mm}}" /> + Text="{Binding Updated, StringFormat=Aktualisiert: {0:dd.MM.yy HH:mm}}" /> - + + SelectedItem="{Binding SelectedVM, Mode=TwoWay}" + SelectionChanged="listbox_conversations_SelectionChanged">