diff --git a/BeWo/AI/View/AiChatView.xaml b/BeWo/AI/View/AiChatView.xaml
index a345a4664..be279766b 100644
--- a/BeWo/AI/View/AiChatView.xaml
+++ b/BeWo/AI/View/AiChatView.xaml
@@ -40,17 +40,23 @@
-
-
+
+
+
-
+
+
+
+
+
+
diff --git a/BeWo/AI/View/AiChatView.xaml.cs b/BeWo/AI/View/AiChatView.xaml.cs
index 14f6dad66..4c17cdfd8 100644
--- a/BeWo/AI/View/AiChatView.xaml.cs
+++ b/BeWo/AI/View/AiChatView.xaml.cs
@@ -40,6 +40,7 @@ namespace BeWo.AI.View
private TableID tableID;
private DateTime startDate;
private DateTime endDate;
+ private AiSettingsDC aiSettings;
public AiChatView()
{
@@ -53,8 +54,11 @@ namespace BeWo.AI.View
this.cb2scOid = c2sOid;
this.startDate = start;
this.endDate = end;
+
+ LoadAiSettings(1);
}
+
public void InitSingleCustomerQuery(long customerOid)
{
type = 1;
@@ -67,6 +71,11 @@ namespace BeWo.AI.View
tableID = tableId;
}
+ private void LoadAiSettings(int settingsType)
+ {
+ aiSettings = ServiceFacade.DoOperationsServiceSync(s => s.GetAiSettings(settingsType));
+ }
+
private void ReloadViewModel(AiChatDC dc)
{
TextBoxErgebnis.Text = dc.Result;
@@ -118,12 +127,35 @@ namespace BeWo.AI.View
private void btnSettings_Click(object sender, RoutedEventArgs e)
{
+ if (aiSettings != null)
+ {
+ TextBoxTemplate.Text = aiSettings.Settings;
+ }
PopupTemplate.IsOpen = true;
}
- private void popup_Closed(object sender, EventArgs e)
+
+ private void btnSaveSettings_Click(object sender, RoutedEventArgs e)
{
-
+ PopupTemplate.IsOpen = false;
+ if (aiSettings != null)
+ {
+ aiSettings.Settings = TextBoxTemplate.Text;
+
+ ServiceFacade.DoOperationsServiceAsync(s => s.UpdateAiSettings(aiSettings),
+ dc =>
+ {
+ this.Dispatch(delegate
+ {
+ aiSettings = dc;
+ });
+ });
+ }
+ }
+
+ private void btnCancelSettings_Click(object sender, RoutedEventArgs e)
+ {
+ PopupTemplate.IsOpen = false;
}
}
}
diff --git a/BeWo/ServiceProxy/Generated.cs b/BeWo/ServiceProxy/Generated.cs
index 1a7b9c55a..5fa8cef80 100644
--- a/BeWo/ServiceProxy/Generated.cs
+++ b/BeWo/ServiceProxy/Generated.cs
@@ -1759,6 +1759,33 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.CustomerWohnhilfeDC))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.CustomerWohnhilfeBereichBundDC))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Angebot))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Geschlecht))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Unterbringungsart))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Verbandszugehorigkeit))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.CustomerWohnhilfeBereichEinkommenUndArbeitDC))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.AufstockungEinkommen))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Beschaftigungsstatus))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.WohnhilfeBoolData))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Einkommenssituation))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Berufsabschluss))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.DauerArbeitslosigkeit))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.CustomerWohnhilfeBereichSozialeKontakteDC))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.KontaktArzt))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Krankenversicherung))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.CustomerWohnhilfeBereichSozialstrukturDC))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.ArtDerBeendigung))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.ArtDesHilfeangebots))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Aufenthaltsstatus))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Bundesland))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Familienstand))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Geschlechtidentitat))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Haushaltsstruktur))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.HochsterSchulabschluss))]
+ [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.Wohnhilfe.Staatsangehorigkeit))]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List