neues Recht für KI Voice

This commit is contained in:
2026-02-26 11:50:50 +01:00
parent 7d9eba0e0f
commit f3dacd1233
5 changed files with 40 additions and 27 deletions

View File

@@ -18,7 +18,7 @@
<converter:BoolVisibilityConverter x:Key="BoolVisibilityConverter" /> <converter:BoolVisibilityConverter x:Key="BoolVisibilityConverter" />
</Window.Resources> </Window.Resources>
<Grid Background="{StaticResource ObjectEditBackgroundBrush}"> <Grid Background="{StaticResource ObjectEditBackgroundBrush}" >
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<!-- 6 Spalten --> <!-- 6 Spalten -->
@@ -150,7 +150,15 @@
EditValue="True"/> EditValue="True"/>
<!--#endregion Ganztägig--> <!--#endregion Ganztägig-->
<!--#region Speichern & Abbrechen--> <!--#region Speichern & Abbrechen-->
<StackPanel Margin="3" Orientation="Horizontal" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="6" HorizontalAlignment="Right" VerticalAlignment="Bottom"> <Border Grid.Row="5" Grid.ColumnSpan="6" Height="40" Margin="0,0,0,0" VerticalAlignment="Bottom" Background="#FF000000" >
<Border.OpacityMask>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#19000000" Offset="0" />
<GradientStop Color="#33FFFFFF" Offset="1" />
</LinearGradientBrush>
</Border.OpacityMask>
</Border>
<StackPanel Margin="8" Orientation="Horizontal" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="6" HorizontalAlignment="Right" VerticalAlignment="Bottom">
<Button <Button
x:Name="ButtonSpeichern" x:Name="ButtonSpeichern"
Height="23" Height="23"

View File

@@ -464,8 +464,8 @@ namespace BeWo.ServiceUtils.History
SupportConcept_ConferenceVenue = lOriginal.ConferenceVenue, SupportConcept_ConferenceVenue = lOriginal.ConferenceVenue,
SupportConcept_ConsultingNeeded = lOriginal.ConsultingNeeded, SupportConcept_ConsultingNeeded = lOriginal.ConsultingNeeded,
//SupportConcept_CostBearer2SupportConceptList = lOriginal.CostBearer2SupportConceptList, //SupportConcept_CostBearer2SupportConceptList = lOriginal.CostBearer2SupportConceptList,
SupportConcept_CustomerOid = lOriginal.Customer.Oid, SupportConcept_CustomerOid = lOriginal.Customer?.Oid,
SupportConcept_EmployeeOid = lOriginal.Originator.Oid, SupportConcept_EmployeeOid = lOriginal.Originator?.Oid,
SupportConcept_RenewalSendDate = lOriginal.RenewalSendDate, SupportConcept_RenewalSendDate = lOriginal.RenewalSendDate,
SupportConcept_RequisitionSendDate = lOriginal.RequisitionSendDate, SupportConcept_RequisitionSendDate = lOriginal.RequisitionSendDate,
SupportConcept_SupportConceptSendDate = lOriginal.RequisitionSendDate, SupportConcept_SupportConceptSendDate = lOriginal.RequisitionSendDate,

View File

@@ -24,12 +24,13 @@ namespace BeWo.Service.AI
try try
{ {
#if DEBUG
//avd = new AiVoiceData(); avd = new AiVoiceData();
//avd.StatusMessage = "1"; avd.StatusMessage = "1";
//DAOFactory.GenericDAO.Update(avd); DAOFactory.GenericDAO.Update(avd);
//return avd; return avd;
#endif
avd = GetTranskriptionToken(tenant, sprache); avd = GetTranskriptionToken(tenant, sprache);
@@ -59,12 +60,14 @@ namespace BeWo.Service.AI
try try
{ {
//if (!String.IsNullOrEmpty(avd.StatusMessage) && Int32.TryParse(avd.StatusMessage, out var test))
//{
// test++;
// avd.StatusMessage = String.Format("{0}", test);
//}
#if DEBUG
if (!String.IsNullOrEmpty(avd.StatusMessage) && Int32.TryParse(avd.StatusMessage, out var test))
{
test++;
avd.StatusMessage = String.Format("{0}", test);
}
#endif
if (!String.IsNullOrEmpty(avd.ResultUrl)) if (!String.IsNullOrEmpty(avd.ResultUrl))
{ {
if (CheckValidUrl(avd.ResultUrl)) if (CheckValidUrl(avd.ResultUrl))

View File

@@ -644,7 +644,6 @@ namespace BS.Shared
AiModuleChatAdd = 201001, AiModuleChatAdd = 201001,
AiModuleChatEdit = 201002, AiModuleChatEdit = 201002,
AiModuleChatDelete = 201003, AiModuleChatDelete = 201003,
//AiModuleView2 = 201004,
AiModuleViewSetting = 201005, AiModuleViewSetting = 201005,
AiModuleChatClone = 201006, AiModuleChatClone = 201006,
@@ -653,7 +652,8 @@ namespace BS.Shared
AiModulePromptbausteineEdit = 201009, AiModulePromptbausteineEdit = 201009,
AiModulePromptbausteineRemove = 201010, AiModulePromptbausteineRemove = 201010,
AiModulePromptbausteineSeeAll = 201011, AiModulePromptbausteineSeeAll = 201011,
} AiVoiceView= 201020,
}
public enum PersonType public enum PersonType
{ {

View File

@@ -765,18 +765,20 @@ namespace BS.Shared.Core
dict.Add(UserRightType.Finance_Gkv_Send, Translator.Translate($"Finanzen-> Gkv Abrechnung {action_keywords[5]}")); dict.Add(UserRightType.Finance_Gkv_Send, Translator.Translate($"Finanzen-> Gkv Abrechnung {action_keywords[5]}"));
dict.Add(UserRightType.Finance_Gkv_Delete, Translator.Translate($"Finanzen-> Gkv Abrechnung {action_keywords[4]}")); dict.Add(UserRightType.Finance_Gkv_Delete, Translator.Translate($"Finanzen-> Gkv Abrechnung {action_keywords[4]}"));
dict.Add(UserRightType.AiModuleView, Translator.Translate($"Module AI {action_keywords[0]}")); dict.Add(UserRightType.AiVoiceView, Translator.Translate($"KI-Spracheingabe & Transkription verwenden"));
dict.Add(UserRightType.AiModuleChatAdd, Translator.Translate($"Module AI-> Konversationen/Nachrichten {action_keywords[2]}"));
dict.Add(UserRightType.AiModuleChatClone, Translator.Translate($"Module AI-> Konversationen/Nachrichten {action_keywords[6]}"));
dict.Add(UserRightType.AiModuleChatEdit, Translator.Translate($"Module AI-> Konversationen/Nachrichten {action_keywords[3]}"));
dict.Add(UserRightType.AiModuleChatDelete, Translator.Translate($"Module AI-> Konversationen/Nachrichten {action_keywords[4]}"));
dict.Add(UserRightType.AiModuleViewSetting, Translator.Translate($"Module AI-> Einstellungen {action_keywords[0]}"));
dict.Add(UserRightType.AiModulePromptbausteineView, Translator.Translate($"Module AI-> Promptbausteine {action_keywords[0]}")); dict.Add(UserRightType.AiModuleView, Translator.Translate($"KI-Chat verwenden {action_keywords[0]}"));
dict.Add(UserRightType.AiModulePromptbausteineAdd, Translator.Translate($"Module AI-> Promptbaustein {action_keywords[2]}")); dict.Add(UserRightType.AiModuleChatAdd, Translator.Translate($"KI-Konversationen/Nachrichten {action_keywords[2]}"));
dict.Add(UserRightType.AiModulePromptbausteineEdit, Translator.Translate($"Module AI-> Promptbaustein {action_keywords[3]}")); dict.Add(UserRightType.AiModuleChatClone, Translator.Translate($"KI-Konversationen/Nachrichten {action_keywords[6]}"));
dict.Add(UserRightType.AiModulePromptbausteineRemove, Translator.Translate($"Module AI-> Promptbaustein {action_keywords[4]}")); dict.Add(UserRightType.AiModuleChatEdit, Translator.Translate($"KI-Konversationen/Nachrichten {action_keywords[3]}"));
dict.Add(UserRightType.AiModulePromptbausteineSeeAll, Translator.Translate($"Module AI-> Promptbausteine {action_keywords[7]}")); dict.Add(UserRightType.AiModuleChatDelete, Translator.Translate($"KI-Konversationen/Nachrichten {action_keywords[4]}"));
dict.Add(UserRightType.AiModuleViewSetting, Translator.Translate($"KI-Einstellungen {action_keywords[0]}"));
dict.Add(UserRightType.AiModulePromptbausteineView, Translator.Translate($"KI-Promptbausteine {action_keywords[0]}"));
dict.Add(UserRightType.AiModulePromptbausteineAdd, Translator.Translate($"KI-Promptbaustein {action_keywords[2]}"));
dict.Add(UserRightType.AiModulePromptbausteineEdit, Translator.Translate($"KI-Promptbaustein {action_keywords[3]}"));
dict.Add(UserRightType.AiModulePromptbausteineRemove, Translator.Translate($"KI-Promptbaustein {action_keywords[4]}"));
dict.Add(UserRightType.AiModulePromptbausteineSeeAll, Translator.Translate($"KI-Promptbausteine {action_keywords[7]}"));
dict.Add(UserRightType.PersonView_Create, Translator.Translate("Personen anlegen")); dict.Add(UserRightType.PersonView_Create, Translator.Translate("Personen anlegen"));
dict.Add(UserRightType.PersonView_Delete, Translator.Translate("Personen löschen")); dict.Add(UserRightType.PersonView_Delete, Translator.Translate("Personen löschen"));