Dateien für AI Voice im Mok und Straffälligenhilfe vergessen

This commit is contained in:
2026-03-30 00:13:04 +02:00
parent ea552f03d2
commit 8a381cc4a8
5 changed files with 35 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<NameOfLastUsedPublishProfile>C:\Projects\Bewo\BeWo - Main\Host\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>

View File

@@ -289,11 +289,23 @@
<Compile Include="DefaultReports\ValidationMessagesReport.Designer.cs">
<DependentUpon>ValidationMessagesReport.cs</DependentUpon>
</Compile>
<Compile Include="DefaultReports\VgaStatistikReport.cs">
<Compile Include="DefaultReports\Straffaelligenhilfe\VgaStatistikReport.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="DefaultReports\VgaStatistikReport.Designer.cs">
<Compile Include="DefaultReports\Straffaelligenhilfe\VgaStatistikReport.Designer.cs">
<DependentUpon>VgaStatistikReport.cs</DependentUpon>
</Compile>
<Compile Include="DefaultReports\Straffaelligenhilfe\TgvStatistikReport.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="DefaultReports\Straffaelligenhilfe\TgvStatistikReport.Designer.cs">
<DependentUpon>TgvStatistikReport.cs</DependentUpon>
</Compile>
<Compile Include="DefaultReports\Straffaelligenhilfe\AsaStatistikReport.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="DefaultReports\Straffaelligenhilfe\AsaStatistikReport.Designer.cs">
<DependentUpon>AsaStatistikReport.cs</DependentUpon>
</Compile>
<Compile Include="DefaultReports\VorlageReport.cs">
<SubType>Component</SubType>
@@ -708,7 +720,7 @@
<DependentUpon>ValidationMessagesReport.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="DefaultReports\VgaStatistikReport.resx">
<EmbeddedResource Include="DefaultReports\Straffaelligenhilfe\VgaStatistikReport.resx">
<DependentUpon>VgaStatistikReport.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="DefaultReports\VorlageReport.resx">
@@ -930,6 +942,7 @@
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.2.9.6\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.2.9.6\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>

View File

@@ -516,6 +516,8 @@
<Compile Include="Reporting\JahresBerichtNachAlter.cs" />
<Compile Include="Reporting\AnnualReportFilter.cs" />
<Compile Include="Reporting\AnnualReportFactory.cs" />
<Compile Include="Reporting\Straffaelligenhilfe\AsaStatistic.cs" />
<Compile Include="Reporting\Straffaelligenhilfe\TgvStatistic.cs" />
<Compile Include="Reporting\Straffaelligenhilfe\VgaStatistic.cs" />
<Compile Include="Reporting\Straffaelligenhilfe\StatisticBase.cs" />
<Compile Include="SBD\VertretungsAlgorithmus.cs" />

View File

@@ -9065,7 +9065,7 @@ namespace BeWo.Service.ServiceImplementations
{
var s = PluginLoader.FindClass<TranscriptionService>();
var data = s.StartTranskription(PluginLoader.Tenant);
var data = s.InitTranskription(PluginLoader.Tenant, true);
return s.MapAiVoiceDataDC(data);
}

View File

@@ -17,7 +17,7 @@ namespace BeWo.Service.AI
{
public class TranscriptionService
{
public AiVoiceData StartTranskription(String tenant, String sprache = "de")
public AiVoiceData InitTranskription(String tenant, bool sendOwnChatMessage, String sprache = "de")
{
AiVoiceData avd = null;
@@ -26,9 +26,10 @@ namespace BeWo.Service.AI
{
#if DEBUG
avd = new AiVoiceData();
avd.Token = "Test";
avd.StatusMessage = "1";
DAOFactory.GenericDAO.Update(avd);
avd.ResultUrl = "https://example.com/";
return avd;
#endif
@@ -37,9 +38,18 @@ namespace BeWo.Service.AI
if (!String.IsNullOrEmpty(avd.Token))
{
var url = String.Format("ownchat://voice/?token={0}", avd.Token);
var msg = String.Format("Bitte klicken Sie auf folgenden Link um die Aufnahme zu starten:\n\n{0}", url);
OwnChatHelper.SendOwnChatMessage(msg, UserRightHelper.GetLoggedInUser().Employee);
if (sendOwnChatMessage)
{
var msg = String.Format("Bitte klicken Sie auf folgenden Link um die Aufnahme zu starten:\n\n{0}", url);
OwnChatHelper.SendOwnChatMessage(msg, UserRightHelper.GetLoggedInUser().Employee);
}
else
{
avd.ResultUrl = url;
}
}
return avd;