diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index c9274041b..453f76189 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -669,6 +669,10 @@ MSBuild:UpdateDesignTimeXaml + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -1546,6 +1550,9 @@ DokumenteView.xaml + + AiConversationView.xaml + SchedulingMasterView.xaml @@ -3444,7 +3451,9 @@ - + + + diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index 2b85a65a3..15468fcdf 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -611,6 +611,7 @@ namespace BeWo //AppSettings.AllowGkvAbrechnung = true; //AppSettings.AllowGkvAbrechnung = false; //showInfoButtonInCalender = true; + AppSettings.ModuleAiEnabled = true; #endif AppSettings.ShowDatevFields = showDatevFields; diff --git a/BeWo/Core/Config/AppSettings.cs b/BeWo/Core/Config/AppSettings.cs index 30b0b0f66..f3cc65903 100644 --- a/BeWo/Core/Config/AppSettings.cs +++ b/BeWo/Core/Config/AppSettings.cs @@ -470,6 +470,9 @@ namespace BeWo.Core.Config public bool ShowAIInternal { get; set; } public bool AllowGkvAbrechnung { get; set; } + + public bool ModuleAiEnabled { get; set; } + public bool ShowWohnhilfe { get; set; } public bool ShowImportAbschlagszahlungen { get; set; } diff --git a/BeWo/DebugConfig.cs b/BeWo/DebugConfig.cs index e64ec478c..ded744c46 100644 --- a/BeWo/DebugConfig.cs +++ b/BeWo/DebugConfig.cs @@ -10,7 +10,8 @@ namespace BeWo FeatureCustomerWohnhilfe, FeatureWohnheimWohneinheit, FeatureAuswertungenQuittierungsbelege, - FeatureDakota + FeatureDakota, + FeatureAiModule } public class DebugConfig @@ -139,6 +140,19 @@ namespace BeWo EnableAutoRemoteDebugging = true }); + name2config.Add("FeatureAiModule", + new DebugConfig() + { + DebugConfigMode = DebugConfigMode.FeatureAiModule, + AutoLogin = true, + //SelectView = UIContext.Finance, + //SelectIndex = 8, + //DefaultLoginUsername = "m1", + //DefaultLoginPassword = "bewobewo", + //DefaultProfilename = "5000000000", + EnableAutoRemoteDebugging = true + }); + return name2config; } #endif diff --git a/BeWo/MainControl.xaml b/BeWo/MainControl.xaml index de5241718..f6745cc14 100644 --- a/BeWo/MainControl.xaml +++ b/BeWo/MainControl.xaml @@ -8,8 +8,8 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="clr-namespace:BeWo.Security" xmlns:t="clr-namespace:BeWo.MultiLanguage.Markup" - d:DesignHeight="300" - d:DesignWidth="300" + d:DesignHeight="1080" + d:DesignWidth="1920" Background="{DynamicResource ApplicationBackground}" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True" @@ -830,6 +830,27 @@ + + + + + + + + + + + diff --git a/BeWo/MainControl.xaml.cs b/BeWo/MainControl.xaml.cs index 0f2cee935..389e385d1 100644 --- a/BeWo/MainControl.xaml.cs +++ b/BeWo/MainControl.xaml.cs @@ -54,7 +54,8 @@ namespace BeWo CustomerTeam, Scheduling, Finance, - Administration + Administration, + AiConversation } public partial class MainControl @@ -307,6 +308,9 @@ namespace BeWo case UIContext.Finance: view = new FinanceView(); break; + case UIContext.AiConversation: + view = new AiConversationView(); + break; } _Views[uiContext] = view; } @@ -1171,6 +1175,14 @@ namespace BeWo } } + private void button_ai_chat_Click(object sender, RoutedEventArgs e) + { + if (DoSaveCheck()) + { + NavigateTo(GetViewForUIContext(UIContext.AiConversation)); + } + } + //private void button_assessmentSheetEntry_Click(object sender, RoutedEventArgs e) //{ // if (this.DoSaveCheck()) @@ -1179,7 +1191,7 @@ namespace BeWo // } //} - + private void button_resources_Click(object sender, RoutedEventArgs e) { if (DoSaveCheck()) diff --git a/BeWo/Ressources/Icons/chatbot2.png b/BeWo/Ressources/Icons/chatbot2.png new file mode 100644 index 000000000..14a9a69b5 Binary files /dev/null and b/BeWo/Ressources/Icons/chatbot2.png differ diff --git a/BeWo/View/Master/AiConversationView.xaml b/BeWo/View/Master/AiConversationView.xaml new file mode 100644 index 000000000..db8928fcd --- /dev/null +++ b/BeWo/View/Master/AiConversationView.xaml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +