diff --git a/BeWo/AI/View/AiTranskriptionView.xaml.cs b/BeWo/AI/View/AiTranskriptionView.xaml.cs
index 9cd82b623..803c2e361 100644
--- a/BeWo/AI/View/AiTranskriptionView.xaml.cs
+++ b/BeWo/AI/View/AiTranskriptionView.xaml.cs
@@ -21,8 +21,6 @@ using BeWo.ViewModel.View.AI;
using BS.Shared;
using BS.Shared.Core;
using BS.Shared.DataContracts;
-using BS.Shared.DataContracts.Feature.AI;
-using BS.Shared.DataContracts.Feature.AI.Functions.ServiceRecords;
using BS.Shared.Extensions;
using BS.Shared.Translation;
using DevExpress.Mvvm;
diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj
index f829adc74..d533cb7ce 100644
--- a/BeWo/BeWo.csproj
+++ b/BeWo/BeWo.csproj
@@ -119,7 +119,9 @@
+
+
AbsenceTimesCreationView.xaml
@@ -147,6 +149,8 @@
DataTemplates.xaml
+
+
@@ -165,17 +169,21 @@
+
+
+
+
-
- AiConversationButton.xaml
+
+ AiChatButton.xaml
-
- AiPromptbausteinButton.xaml
+
+ AiPromptbausteinLibraryControl.xaml
AiPromptbausteinActionResultView.xaml
@@ -205,9 +213,15 @@
AiConfigView.xaml
+
+ AiPromptbausteinRoutineView.xaml
+
DatenbereinigungView.xaml
+
+ DeveloperView.xaml
+
TeamFolderRightView.xaml
@@ -216,6 +230,7 @@
+
AnimatedBeWoWindow.xaml
@@ -287,11 +302,15 @@
MSBuild:Compile
Designer
-
+
Designer
MSBuild:Compile
-
+
+ Designer
+ MSBuild:Compile
+
+
Designer
MSBuild:Compile
@@ -343,10 +362,18 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs
index 569532340..bf48c71a8 100644
--- a/BeWo/BeWoApp.xaml.cs
+++ b/BeWo/BeWoApp.xaml.cs
@@ -37,6 +37,7 @@ using DevExpress.XtraScheduler;
using System.ServiceModel;
using BeWo.View.Windows;
using System.Diagnostics;
+using BeWo.Services;
namespace BeWo
{
@@ -81,6 +82,8 @@ namespace BeWo
public static bool IsInDesignMode = DesignerProperties.GetIsInDesignMode(new DependencyObject());
+ internal static IBeWoWindowService WindowService { get; set; }
+
public static EmployeeDC LoggedOnEmployee
{
get => _LoggedOnEmployee;
@@ -784,10 +787,20 @@ namespace BeWo
//{
// url += "/service45";
//}
- if (url.IndexOf("/service") < 0)
+ if (BeWoAppInfo.IsInAiMode)
{
- url += "/service";
+ if (url.IndexOf("/service_ai") < 0)
+ {
+ url += "/service_ai";
+ }
}
+ else
+ {
+ if (url.IndexOf("/service") < 0)
+ {
+ url += "/service";
+ }
+ }
return new Uri(String.Format("https://{0}", url));
}
@@ -1073,16 +1086,11 @@ namespace BeWo
FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
- BeWoAppInfo.BeWoAppVersion.TryActiveDeveloperMode(e.Args);
+ var controlFactory = new BeWoControlFactory();
+ var windowFactory = new BeWoWindowFactory();
+ WindowService = new BeWoWindowService(windowFactory, controlFactory);
- //if(e.Args.LastOrDefault(x => x.StartsWith("/timeout:") || x.StartsWith("--timeout:")) is string str)
- //{
- // var valuePart = str.Substring(str.IndexOf(':') + 1);
- // if(int.TryParse(valuePart, out int parsedTimeout))
- // {
- // AiTimeout = parsedTimeout;
- // }
- //}
+ BeWoAppInfo.BeWoAppVersion.TryActiveDeveloperMode(e.Args);
}
public static void ShowInfoMessage(string message)
diff --git a/BeWo/BeWoAppInfo.cs b/BeWo/BeWoAppInfo.cs
index f67e545ca..173b2562d 100644
--- a/BeWo/BeWoAppInfo.cs
+++ b/BeWo/BeWoAppInfo.cs
@@ -15,7 +15,7 @@ namespace BeWo
{
var baseVersion = new Version(BeWoApp.ShortVersion);
var stage = BeWoClientReleaseStage.Sandbox;
- var stageVersion = new Version("4.5");
+ var stageVersion = new Version("5.1.5");
var feature = BeWoClientFeature.AI;
#if !DEBUG
diff --git a/BeWo/Converter/CollectionCountToBoolConverter.cs b/BeWo/Converter/CollectionCountToBoolConverter.cs
index 9c164d3f2..8bccca2b4 100644
--- a/BeWo/Converter/CollectionCountToBoolConverter.cs
+++ b/BeWo/Converter/CollectionCountToBoolConverter.cs
@@ -1,5 +1,8 @@
using System;
+using System.Collections;
using System.Globalization;
+using System.Linq;
+using System.Windows;
using System.Windows.Data;
namespace BeWo.Converter
@@ -10,8 +13,29 @@ namespace BeWo.Converter
{
try
{
- var count = (int) value;
- return count > 0;
+ int count;
+
+ switch (value)
+ {
+ case int i:
+ count = i;
+ break;
+ case ICollection collection:
+ count = collection.Count;
+ break;
+ case IEnumerable enumerable:
+ count = enumerable.Cast