AiUserSetting + Spacing von Transkription Button

This commit is contained in:
2026-03-25 11:38:24 +01:00
parent 10ab897f24
commit 104fad602c
29 changed files with 3214 additions and 2820 deletions

View File

@@ -7,7 +7,10 @@
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Button x:Name="ButtonOpenTranskriptionView" Click="ButtonOpenTranskriptionView_Click">
<Button
x:Name="ButtonOpenTranskriptionView"
Margin="0"
Click="ButtonOpenTranskriptionView_Click">
<Image
Width="22"
Height="22"

View File

@@ -1,5 +1,6 @@
using BeWo.AI.View;
using BeWo.Services;
using BeWo.ViewModel.ListViewModel;
using BS.Shared.Translation;
using System;
using System.Collections.Generic;
@@ -69,9 +70,19 @@ namespace BeWo.AI.Controls
view.InitView();
var serviceRecordList = DataContext as ServiceRecordListVM;
if (serviceRecordList is null)
throw new NotImplementedException("Can't find DataContext");
var settings = serviceRecordList.AiUserSetting;
view.DataContext = settings;
var factory = new BeWoWindowFactory();
var beWoWindow = factory.GetAnimatedBeWoWindow(Translator.Translate("BeWoPlaner"), view, 500, 600);
view.ApplyClicked += (s, e) =>
{
if (TargetTextBox != null)
@@ -83,24 +94,26 @@ namespace BeWo.AI.Controls
};
view.CancelClicked += (s, e) =>
{
if (!String.IsNullOrEmpty(view.GetText()))
{
if (MessageBox.Show("Sind Sie sicher, dass Sie abbrechnen und den Text verwerfen möchten?", "Abbrechen", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
{
beWoWindow.Close();
}
}
else
{
beWoWindow.Close();
}
};
{
if (!String.IsNullOrEmpty(view.GetText()))
{
if (MessageBox.Show("Sind Sie sicher, dass Sie abbrechnen und den Text verwerfen möchten?", "Abbrechen", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
{
beWoWindow.Close();
}
}
else
{
beWoWindow.Close();
}
};
beWoWindow.Closed += (s, e) =>
{
settings.AutoStartRecording = settings.DataContract.AutoStartRecording;
};
beWoWindow.ShowDialog();
beWoWindow.ShowDialog();
}
private void InsertTextAtSelection(string neuerText)

View File

@@ -19,7 +19,8 @@
d:DesignHeight="400"
d:DesignWidth="500"
Focusable="True"
mc:Ignorable="d">
mc:Ignorable="d"
Loaded="BeWoView_Loaded">
<Grid Margin="0" Background="{DynamicResource ObjectEditBackgroundBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
@@ -126,10 +127,17 @@
</Viewbox>
</Grid>
</Button>
<CheckBox
Margin="3"
HorizontalAlignment="Center"
IsChecked="{Binding AutoStartRecording}"
Foreground="#FF000000">
Aufnahme zukünftig automatisch initiieren
</CheckBox>
<Label
x:Name="lblStatus"
Height="23"
HorizontalAlignment="Center" />
HorizontalAlignment="Center"/>
<StackPanel
x:Name="PanelAnimation"
HorizontalAlignment="Center"

View File

@@ -21,6 +21,7 @@ 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;
@@ -32,259 +33,291 @@ using MessageBox = System.Windows.MessageBox;
namespace BeWo.AI.View
{
public partial class AiTranskriptionView : BeWoView
{
public event EventHandler ApplyClicked;
public event EventHandler CancelClicked;
bool timerActive = false;
AiVoiceDataDC currentVoiceData = null;
public ICommand OpenAiPromptSelectionCommand { get; set; }
public AiTranskriptionView()
{
InitializeComponent();
//InitAiPrompt();
}
//private void InitAiPrompt()
//{
// var vm_doku = new AiPromptbausteinSelectionComplexViewModel(AiActionType.ServiceRecordDocumentation);
// vm_doku.PromptAccepted += PromptAccepted;
// OpenAiPromptSelectionCommand = new DelegateCommand(() =>
// {
// BeWoApp.MainControl.WindowService.Show(vm_doku);
// }, () => !string.IsNullOrWhiteSpace(TextBoxErgebnis.Text));
//}
//private void PromptAccepted(object sender, AiPromptbausteinPromptVM prompt)
//{
// if (prompt is null)
// throw new NotImplementedException();
// // 1. Information aufbereiten
// // 1.1 Prompt
// var prompt_oid = prompt.DataContract.Oid.Value;
// var prompt_version = prompt.DataContract.Version;
// // 1.2 Hilfeplan
// var support_concept = SelectedCustomerNode.SupportConceptTreeNodeDC.SupportConcept;
// var support_concept_oid = support_concept.SupportConceptOid;
// var support_concept_version = support_concept.SupportConceptVersion;
// // 1.3 Aktuelles Doku Feld
// var doku_feld = TextBoxErgebnis.Text;
// // 1.4 Sichtbaren Zeiterfassungseinträge
// var service_records = CurrentVisibleVMs;
// var sr_refs = service_records.Select(x => new BeWoRefDC(x.DataContract.ServiceRecordOid.Value, x.DataContract.ServiceRecordVersion));
// // 1.5 Costbearer
// var costbearer = SelectedCustomerNode.SupportConceptTreeNodeDC.CostBearer;
// var cb_oid = costbearer.CostBearerOid.Value;
// var cb_ver = costbearer.CostBearerVersion;
// // Service Aufruf
// var req = new AiFunctionDocRequest()
// {
// AiPromptbausteinPrompt = new BeWoRefDC(prompt_oid, prompt_version),
// SupportConcept = new BeWoRefDC(support_concept_oid, support_concept_version),
// ServiceRecords = sr_refs,
// CostBearer = new BeWoRefDC(cb_oid, cb_ver),
// Dokumentation = doku_feld,
// };
// ServiceFacade.DoAiEnhancedServiceAsnyc(x => x.ExecuteAiFunctionServiceRecordDocumentation(req),
// callback =>
// {
// var viewModel = new AiPromptbausteinActionResultViewModel();
// viewModel.Result = callback.Result;
// viewModel.Accept_Button_Clicked += (s, e) =>
// {
// var sb = new StringBuilder();
// sb.AppendLine("AI Antwort:");
// sb.AppendLine(viewModel.Result);
// sb.AppendLine();
// sb.AppendLine("Original:");
// sb.AppendLine(AktuellerDokutext);
// var str = sb.ToString();
// var idx = _AiActionHistoryIndex;
// var count = _AiActionHistory.Count;
// if (count - 1 > idx)
// {
// _AiActionHistory.RemoveRange(idx + 1, count - idx - 1);
// }
// if (AktuellerDokutext != _AiActionHistory[_AiActionHistoryIndex])
// {
// _AiActionHistory.Add(AktuellerDokutext);
// _AiActionHistoryIndex++;
// }
// _AiActionHistory.Add(str);
// _AiActionHistoryIndex++;
// AktuellerDokutext = str;
// };
// viewModel.Replace_Button_Clicked += (s, e) =>
// {
// var str = viewModel.Result;
// var idx = _AiActionHistoryIndex;
// var count = _AiActionHistory.Count;
// if (count - 1 > idx)
// {
// _AiActionHistory.RemoveRange(idx + 1, count - idx - 1);
// }
// if (AktuellerDokutext != _AiActionHistory[_AiActionHistoryIndex])
// {
// _AiActionHistory.Add(AktuellerDokutext);
// _AiActionHistoryIndex++;
// }
// _AiActionHistory.Add(str);
// _AiActionHistoryIndex++;
// AktuellerDokutext = str;
// };
// viewModel.Retry_Button_Clicked += (s, e) =>
// {
// PromptAccepted(sender, prompt);
// };
// BeWoApp.MainControl.WindowService.Show(viewModel);
// }
// );
//}
public void InitView()
{
}
public string GetText()
{
return TextBoxErgebnis.Text;
}
private void StartAufnahme()
{
timerActive = true;
//lblStatus.Content = "Um die Aufnahme zu starten, klicken Sie auf den Link, den Sie in ownChat erhalten haben.";
StartTimer();
ButtonText.Text = "Aufnahme abbrechen";
currentVoiceData = ServiceFacade.DoOperationsServiceSync(s => s.StartAIVoice());
PanelAnimation.Visibility = Visibility.Visible;
VBPlay.Visibility = Visibility.Hidden;
VBStop.Visibility = Visibility.Visible;
}
private void StopAufnahme()
{
timerActive = false;
VBPlay.Visibility = Visibility.Visible;
VBStop.Visibility = Visibility.Hidden;
}
private void StartTimer()
{
var sec = BeWoApp.AppSettings.AiVoiceRequestInterval;
if (sec <= 0)
{
sec = 10;
}
new DispatcherTimer(
TimeSpan.FromMilliseconds(sec * 1000),
DispatcherPriority.Background,
(s1, e1) =>
{
CheckTranskriptionStatus();
if (!timerActive)
{
((DispatcherTimer)s1).Stop();
PanelAnimation.Visibility = Visibility.Hidden;
ButtonText.Text = "Neue Aufnahme starten";
}
},
this.Dispatcher).Start();
}
private void CheckTranskriptionStatus()
{
currentVoiceData = ServiceFacade.DoOperationsServiceSync(s => s.GetAIVoiceTranscript(currentVoiceData));
if (!String.IsNullOrEmpty(currentVoiceData.TranskriptionText))
{
InsertTextAtSelection(currentVoiceData.TranskriptionText);
lblStatus.Content = Translator.Translate("Transkription erfolgreich durchgeführt");
StopAufnahme();
}
else if (!String.IsNullOrEmpty(currentVoiceData.Error))
{
lblStatus.Content = currentVoiceData.Error;
StopAufnahme();
}
else if (!String.IsNullOrEmpty(currentVoiceData.StatusMessage))
{
lblStatus.Content = currentVoiceData.StatusMessage;
}
}
private void InsertTextAtSelection(string neuerText)
{
int start = TextBoxErgebnis.SelectionStart;
int length = TextBoxErgebnis.SelectionLength;
TextBoxErgebnis.Text =
TextBoxErgebnis.Text.Remove(start, length)
.Insert(start, neuerText);
TextBoxErgebnis.CaretIndex = start + neuerText.Length;
}
private void ButtonStartStop_Click(object sender, RoutedEventArgs e)
{
if (!timerActive)
{
StartAufnahme();
}
else
{
ButtonText.Text = "Bitte warten...";
lblStatus.Content = "Aufnahme wird abgebrochen. Bitte warten...";
StopAufnahme();
}
public partial class AiTranskriptionView : BeWoView
{
public event EventHandler ApplyClicked;
public event EventHandler CancelClicked;
}
bool timerActive = false;
AiVoiceDataDC currentVoiceData = null;
public ICommand OpenAiPromptSelectionCommand { get; set; }
private void ButtonApply_Click(object sender, RoutedEventArgs e)
{
public AiTranskriptionView()
{
InitializeComponent();
//InitAiPrompt();
ApplyClicked?.Invoke(this, EventArgs.Empty);
}
}
private void ButtonClose_Click(object sender, RoutedEventArgs e)
{
CancelClicked?.Invoke(this, EventArgs.Empty);
}
//private void InitAiPrompt()
//{
// var vm_doku = new AiPromptbausteinSelectionComplexViewModel(AiActionType.ServiceRecordDocumentation);
// vm_doku.PromptAccepted += PromptAccepted;
// OpenAiPromptSelectionCommand = new DelegateCommand(() =>
// {
// BeWoApp.MainControl.WindowService.Show(vm_doku);
// }, () => !string.IsNullOrWhiteSpace(TextBoxErgebnis.Text));
//}
//private void PromptAccepted(object sender, AiPromptbausteinPromptVM prompt)
//{
// if (prompt is null)
// throw new NotImplementedException();
// // 1. Information aufbereiten
// // 1.1 Prompt
// var prompt_oid = prompt.DataContract.Oid.Value;
// var prompt_version = prompt.DataContract.Version;
// // 1.2 Hilfeplan
// var support_concept = SelectedCustomerNode.SupportConceptTreeNodeDC.SupportConcept;
// var support_concept_oid = support_concept.SupportConceptOid;
// var support_concept_version = support_concept.SupportConceptVersion;
// // 1.3 Aktuelles Doku Feld
// var doku_feld = TextBoxErgebnis.Text;
// // 1.4 Sichtbaren Zeiterfassungseinträge
// var service_records = CurrentVisibleVMs;
// var sr_refs = service_records.Select(x => new BeWoRefDC(x.DataContract.ServiceRecordOid.Value, x.DataContract.ServiceRecordVersion));
// // 1.5 Costbearer
// var costbearer = SelectedCustomerNode.SupportConceptTreeNodeDC.CostBearer;
// var cb_oid = costbearer.CostBearerOid.Value;
// var cb_ver = costbearer.CostBearerVersion;
// // Service Aufruf
// var req = new AiFunctionDocRequest()
// {
// AiPromptbausteinPrompt = new BeWoRefDC(prompt_oid, prompt_version),
// SupportConcept = new BeWoRefDC(support_concept_oid, support_concept_version),
// ServiceRecords = sr_refs,
// CostBearer = new BeWoRefDC(cb_oid, cb_ver),
// Dokumentation = doku_feld,
// };
// ServiceFacade.DoAiEnhancedServiceAsnyc(x => x.ExecuteAiFunctionServiceRecordDocumentation(req),
// callback =>
// {
// var viewModel = new AiPromptbausteinActionResultViewModel();
// viewModel.Result = callback.Result;
// viewModel.Accept_Button_Clicked += (s, e) =>
// {
// var sb = new StringBuilder();
// sb.AppendLine("AI Antwort:");
// sb.AppendLine(viewModel.Result);
// sb.AppendLine();
// sb.AppendLine("Original:");
// sb.AppendLine(AktuellerDokutext);
// var str = sb.ToString();
// var idx = _AiActionHistoryIndex;
// var count = _AiActionHistory.Count;
// if (count - 1 > idx)
// {
// _AiActionHistory.RemoveRange(idx + 1, count - idx - 1);
// }
// if (AktuellerDokutext != _AiActionHistory[_AiActionHistoryIndex])
// {
// _AiActionHistory.Add(AktuellerDokutext);
// _AiActionHistoryIndex++;
// }
// _AiActionHistory.Add(str);
// _AiActionHistoryIndex++;
// AktuellerDokutext = str;
// };
// viewModel.Replace_Button_Clicked += (s, e) =>
// {
// var str = viewModel.Result;
// var idx = _AiActionHistoryIndex;
// var count = _AiActionHistory.Count;
// if (count - 1 > idx)
// {
// _AiActionHistory.RemoveRange(idx + 1, count - idx - 1);
// }
// if (AktuellerDokutext != _AiActionHistory[_AiActionHistoryIndex])
// {
// _AiActionHistory.Add(AktuellerDokutext);
// _AiActionHistoryIndex++;
// }
// _AiActionHistory.Add(str);
// _AiActionHistoryIndex++;
// AktuellerDokutext = str;
// };
// viewModel.Retry_Button_Clicked += (s, e) =>
// {
// PromptAccepted(sender, prompt);
// };
// BeWoApp.MainControl.WindowService.Show(viewModel);
// }
// );
//}
public void InitView()
{
}
public string GetText()
{
return TextBoxErgebnis.Text;
}
private void StartAufnahme()
{
timerActive = true;
//lblStatus.Content = "Um die Aufnahme zu starten, klicken Sie auf den Link, den Sie in ownChat erhalten haben.";
StartTimer();
ButtonText.Text = "Aufnahme abbrechen";
currentVoiceData = ServiceFacade.DoOperationsServiceSync(s => s.StartAIVoice());
PanelAnimation.Visibility = Visibility.Visible;
VBPlay.Visibility = Visibility.Hidden;
VBStop.Visibility = Visibility.Visible;
}
private void StopAufnahme()
{
timerActive = false;
VBPlay.Visibility = Visibility.Visible;
VBStop.Visibility = Visibility.Hidden;
}
}
private void StartTimer()
{
var sec = BeWoApp.AppSettings.AiVoiceRequestInterval;
if (sec <= 0)
{
sec = 10;
}
new DispatcherTimer(
TimeSpan.FromMilliseconds(sec * 1000),
DispatcherPriority.Background,
(s1, e1) =>
{
CheckTranskriptionStatus();
if (!timerActive)
{
((DispatcherTimer)s1).Stop();
PanelAnimation.Visibility = Visibility.Hidden;
ButtonText.Text = "Neue Aufnahme starten";
}
},
this.Dispatcher).Start();
}
private void CheckTranskriptionStatus()
{
currentVoiceData = ServiceFacade.DoOperationsServiceSync(s => s.GetAIVoiceTranscript(currentVoiceData));
if (!String.IsNullOrEmpty(currentVoiceData.TranskriptionText))
{
InsertTextAtSelection(currentVoiceData.TranskriptionText);
lblStatus.Content = Translator.Translate("Transkription erfolgreich durchgeführt");
StopAufnahme();
}
else if (!String.IsNullOrEmpty(currentVoiceData.Error))
{
lblStatus.Content = currentVoiceData.Error;
StopAufnahme();
}
else if (!String.IsNullOrEmpty(currentVoiceData.StatusMessage))
{
lblStatus.Content = currentVoiceData.StatusMessage;
}
}
private void InsertTextAtSelection(string neuerText)
{
int start = TextBoxErgebnis.SelectionStart;
int length = TextBoxErgebnis.SelectionLength;
TextBoxErgebnis.Text =
TextBoxErgebnis.Text.Remove(start, length)
.Insert(start, neuerText);
TextBoxErgebnis.CaretIndex = start + neuerText.Length;
}
private void ButtonStartStop_Click(object sender, RoutedEventArgs e)
{
if (!timerActive)
{
StartAufnahme();
}
else
{
ButtonText.Text = "Bitte warten...";
lblStatus.Content = "Aufnahme wird abgebrochen. Bitte warten...";
StopAufnahme();
}
}
private void ButtonApply_Click(object sender, RoutedEventArgs e)
{
Save(() => ApplyClicked?.Invoke(this, EventArgs.Empty));
}
private void ButtonClose_Click(object sender, RoutedEventArgs e)
{
Save(() => CancelClicked?.Invoke(this, EventArgs.Empty));
}
private void Save(Action finish = null)
{
var userSettings = DataContext as AiUserSettingVM;
if (userSettings.IsDirty)
{
var dc = userSettings.CommitToDataContract();
ServiceFacade.DoAiEnhancedServiceAsnyc(x => x.UpdateUserSetting(dc),
st =>
{
userSettings.UpdateByDataContract(st);
finish();
});
}
else
{
finish();
}
}
private void BeWoView_Loaded(object sender, RoutedEventArgs e)
{
CheckForAutoStartRecording();
}
private void CheckForAutoStartRecording()
{
var viewmodel = DataContext as AiUserSettingVM;
if (viewmodel is null)
return;
if (viewmodel.AutoStartRecording)
ButtonStartStop_Click(this, new RoutedEventArgs());
}
}
}

View File

@@ -151,6 +151,7 @@
<Compile Include="ViewModel\AiConfigVM.cs" />
<Compile Include="ViewModel\AiPromptbausteinFolderVM.cs" />
<Compile Include="ViewModel\AiPromptbausteinPromptVM.cs" />
<Compile Include="ViewModel\AiUserSettingVM.cs" />
<Compile Include="ViewModel\ListViewModel\AiPromptbausteinPromptListVM.cs" />
<Compile Include="ViewModel\ListViewModel\AiPromptbausteinFolderListVM.cs" />
<Compile Include="ViewModel\ListViewModel\TextModuleListVM.cs" />

View File

@@ -97,6 +97,14 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/ExecuteAiFunctionServiceRecordDocumentation" +
"BeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
BS.Shared.DataContracts.Feature.AI.Functions.ServiceRecords.AiFunctionDocResponse ExecuteAiFunctionServiceRecordDocumentation(BS.Shared.DataContracts.Feature.AI.Functions.ServiceRecords.AiFunctionDocRequest request);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/GetUserSetting", ReplyAction="http://tempuri.org/IAiEnhancedService/GetUserSettingResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/GetUserSettingBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
BS.Shared.DataContracts.Feature.AI.AiUserSettingDC GetUserSetting();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAiEnhancedService/UpdateUserSetting", ReplyAction="http://tempuri.org/IAiEnhancedService/UpdateUserSettingResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IAiEnhancedService/UpdateUserSettingBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
BS.Shared.DataContracts.Feature.AI.AiUserSettingDC UpdateUserSetting(BS.Shared.DataContracts.Feature.AI.AiUserSettingDC aiUserSettingDC);
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
@@ -227,5 +235,15 @@ namespace BeWo.ServiceProxy
{
return base.Channel.ExecuteAiFunctionServiceRecordDocumentation(request);
}
public BS.Shared.DataContracts.Feature.AI.AiUserSettingDC GetUserSetting()
{
return base.Channel.GetUserSetting();
}
public BS.Shared.DataContracts.Feature.AI.AiUserSettingDC UpdateUserSetting(BS.Shared.DataContracts.Feature.AI.AiUserSettingDC aiUserSettingDC)
{
return base.Channel.UpdateUserSetting(aiUserSettingDC);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -17,99 +17,6 @@ namespace BeWo.ServiceProxy
public interface IEmployeeService
{
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployee", ReplyAction="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployeeBeWoFaultFau" +
"lt", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> FindLeadingCompactTeamsOfEmployee(long employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllGroupsCompact", ReplyAction="http://tempuri.org/IEmployeeService/GetAllGroupsCompactResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllGroupsCompactBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactGroupOfPeopleDC> GetAllGroupsCompact(System.Nullable<long> employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllGroups", ReplyAction="http://tempuri.org/IEmployeeService/GetAllGroupsResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllGroupsBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.GroupOfPeopleDC> GetAllGroups(System.Nullable<long> employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadCompactTeam", ReplyAction="http://tempuri.org/IEmployeeService/LoadCompactTeamResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactTeamBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
BS.Shared.DataContracts.Compact.CompactTeamDC LoadCompactTeam(long pTeamOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadCompactEmployee", ReplyAction="http://tempuri.org/IEmployeeService/LoadCompactEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
BS.Shared.DataContracts.Compact.CompactEmployeeDC LoadCompactEmployee(long pEmployeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToAS", ReplyAction="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToASResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToASBeWoFaultF" +
"ault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
bool IsAssessmentSheetEntryBelongingToAS(long assessmentSheetCategoryOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToAS", ReplyAction="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToASRespons" +
"e")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToASBeWoFau" +
"ltFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
bool IsAssessmentSheetCategoryBelongingToAS(long assessmentSheetCategoryOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployee", ReplyAction="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimesFromEmployee(long employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/GetAllOvertimesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimes();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/DeleteOvertimesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
void DeleteOvertimes(System.Collections.Generic.Dictionary<long, long> pOid2Version);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/InsertOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/InsertOvertimesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/InsertOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<long> InsertOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/UpdateOvertimesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<long> UpdateOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/GetAllAuszahlungsartenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> GetAllAuszahlungsarten();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/InsertAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/InsertAuszahlungsartenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/InsertAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<long> InsertAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/UpdateAuszahlungsartenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<long> UpdateAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/DeleteAuszahlungsartenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
void DeleteAuszahlungsarten(System.Collections.Generic.Dictionary<long, long> pOid2Version);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployee", ReplyAction="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> GetTeamOidsByEmployee(long pEmployeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployee", ReplyAction="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
BS.Shared.DataContracts.EmployeeDC LoadLoggedOnEmployee(long pEmployeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompact", ReplyAction="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompactResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompactBeWoFaultFaul" +
"t", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactEmployeeDC> GetAllChatActiveEmployeesCompact();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodes", ReplyAction="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.EmployeeAPPCodeDC> GetAllEmployeeAppCodes(long pEmployeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetEmployeeImage", ReplyAction="http://tempuri.org/IEmployeeService/GetEmployeeImageResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetEmployeeImageBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
byte[] GetEmployeeImage(long employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetEmployeeThumbnail", ReplyAction="http://tempuri.org/IEmployeeService/GetEmployeeThumbnailResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetEmployeeThumbnailBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
byte[] GetEmployeeThumbnail(long employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteEmployeeCustomerRelationForEmployee", ReplyAction="http://tempuri.org/IEmployeeService/DeleteEmployeeCustomerRelationForEmployeeResp" +
"onse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteEmployeeCustomerRelationForEmployeeBeWo" +
@@ -305,6 +212,11 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactTeamsByOidBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> LoadCompactTeamsByOid(System.Collections.Generic.List<long> teamOids);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployee", ReplyAction="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/FindLeadingCompactTeamsOfEmployeeBeWoFaultFau" +
"lt", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> FindLeadingCompactTeamsOfEmployee(long employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/ArchiveEmployee", ReplyAction="http://tempuri.org/IEmployeeService/ArchiveEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/ArchiveEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
void ArchiveEmployee(long pOid, long pVersion);
@@ -582,6 +494,94 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateGroupOfPeople", ReplyAction="http://tempuri.org/IEmployeeService/UpdateGroupOfPeopleResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateGroupOfPeopleBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
long UpdateGroupOfPeople(BS.Shared.DataContracts.GroupOfPeopleDC pGroupOfPeople);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllGroupsCompact", ReplyAction="http://tempuri.org/IEmployeeService/GetAllGroupsCompactResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllGroupsCompactBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactGroupOfPeopleDC> GetAllGroupsCompact(System.Nullable<long> employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllGroups", ReplyAction="http://tempuri.org/IEmployeeService/GetAllGroupsResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllGroupsBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.GroupOfPeopleDC> GetAllGroups(System.Nullable<long> employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadCompactTeam", ReplyAction="http://tempuri.org/IEmployeeService/LoadCompactTeamResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactTeamBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
BS.Shared.DataContracts.Compact.CompactTeamDC LoadCompactTeam(long pTeamOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadCompactEmployee", ReplyAction="http://tempuri.org/IEmployeeService/LoadCompactEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadCompactEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
BS.Shared.DataContracts.Compact.CompactEmployeeDC LoadCompactEmployee(long pEmployeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToAS", ReplyAction="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToASResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetEntryBelongingToASBeWoFaultF" +
"ault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
bool IsAssessmentSheetEntryBelongingToAS(long assessmentSheetCategoryOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToAS", ReplyAction="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToASRespons" +
"e")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/IsAssessmentSheetCategoryBelongingToASBeWoFau" +
"ltFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
bool IsAssessmentSheetCategoryBelongingToAS(long assessmentSheetCategoryOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployee", ReplyAction="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllOvertimesFromEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimesFromEmployee(long employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/GetAllOvertimesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimes();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/DeleteOvertimesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
void DeleteOvertimes(System.Collections.Generic.Dictionary<long, long> pOid2Version);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/InsertOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/InsertOvertimesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/InsertOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<long> InsertOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateOvertimes", ReplyAction="http://tempuri.org/IEmployeeService/UpdateOvertimesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateOvertimesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<long> UpdateOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/GetAllAuszahlungsartenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> GetAllAuszahlungsarten();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/InsertAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/InsertAuszahlungsartenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/InsertAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<long> InsertAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/UpdateAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/UpdateAuszahlungsartenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/UpdateAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<long> UpdateAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/DeleteAuszahlungsarten", ReplyAction="http://tempuri.org/IEmployeeService/DeleteAuszahlungsartenResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/DeleteAuszahlungsartenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
void DeleteAuszahlungsarten(System.Collections.Generic.Dictionary<long, long> pOid2Version);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployee", ReplyAction="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetTeamOidsByEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> GetTeamOidsByEmployee(long pEmployeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployee", ReplyAction="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployeeResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/LoadLoggedOnEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
BS.Shared.DataContracts.EmployeeDC LoadLoggedOnEmployee(long pEmployeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompact", ReplyAction="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompactResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllChatActiveEmployeesCompactBeWoFaultFaul" +
"t", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactEmployeeDC> GetAllChatActiveEmployeesCompact();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodes", ReplyAction="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodesResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetAllEmployeeAppCodesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.List<BS.Shared.DataContracts.EmployeeAPPCodeDC> GetAllEmployeeAppCodes(long pEmployeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetEmployeeImage", ReplyAction="http://tempuri.org/IEmployeeService/GetEmployeeImageResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetEmployeeImageBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
byte[] GetEmployeeImage(long employeeOid);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetEmployeeThumbnail", ReplyAction="http://tempuri.org/IEmployeeService/GetEmployeeThumbnailResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetEmployeeThumbnailBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
byte[] GetEmployeeThumbnail(long employeeOid);
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
@@ -618,116 +618,6 @@ namespace BeWo.ServiceProxy
{
}
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> FindLeadingCompactTeamsOfEmployee(long employeeOid)
{
return base.Channel.FindLeadingCompactTeamsOfEmployee(employeeOid);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactGroupOfPeopleDC> GetAllGroupsCompact(System.Nullable<long> employeeOid)
{
return base.Channel.GetAllGroupsCompact(employeeOid);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.GroupOfPeopleDC> GetAllGroups(System.Nullable<long> employeeOid)
{
return base.Channel.GetAllGroups(employeeOid);
}
public BS.Shared.DataContracts.Compact.CompactTeamDC LoadCompactTeam(long pTeamOid)
{
return base.Channel.LoadCompactTeam(pTeamOid);
}
public BS.Shared.DataContracts.Compact.CompactEmployeeDC LoadCompactEmployee(long pEmployeeOid)
{
return base.Channel.LoadCompactEmployee(pEmployeeOid);
}
public bool IsAssessmentSheetEntryBelongingToAS(long assessmentSheetCategoryOid)
{
return base.Channel.IsAssessmentSheetEntryBelongingToAS(assessmentSheetCategoryOid);
}
public bool IsAssessmentSheetCategoryBelongingToAS(long assessmentSheetCategoryOid)
{
return base.Channel.IsAssessmentSheetCategoryBelongingToAS(assessmentSheetCategoryOid);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimesFromEmployee(long employeeOid)
{
return base.Channel.GetAllOvertimesFromEmployee(employeeOid);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimes()
{
return base.Channel.GetAllOvertimes();
}
public void DeleteOvertimes(System.Collections.Generic.Dictionary<long, long> pOid2Version)
{
base.Channel.DeleteOvertimes(pOid2Version);
}
public System.Collections.Generic.List<long> InsertOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes)
{
return base.Channel.InsertOvertimes(pOvertimes);
}
public System.Collections.Generic.List<long> UpdateOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes)
{
return base.Channel.UpdateOvertimes(pOvertimes);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> GetAllAuszahlungsarten()
{
return base.Channel.GetAllAuszahlungsarten();
}
public System.Collections.Generic.List<long> InsertAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten)
{
return base.Channel.InsertAuszahlungsarten(pAuszahlungsarten);
}
public System.Collections.Generic.List<long> UpdateAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten)
{
return base.Channel.UpdateAuszahlungsarten(pAuszahlungsarten);
}
public void DeleteAuszahlungsarten(System.Collections.Generic.Dictionary<long, long> pOid2Version)
{
base.Channel.DeleteAuszahlungsarten(pOid2Version);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> GetTeamOidsByEmployee(long pEmployeeOid)
{
return base.Channel.GetTeamOidsByEmployee(pEmployeeOid);
}
public BS.Shared.DataContracts.EmployeeDC LoadLoggedOnEmployee(long pEmployeeOid)
{
return base.Channel.LoadLoggedOnEmployee(pEmployeeOid);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactEmployeeDC> GetAllChatActiveEmployeesCompact()
{
return base.Channel.GetAllChatActiveEmployeesCompact();
}
public System.Collections.Generic.List<BS.Shared.DataContracts.EmployeeAPPCodeDC> GetAllEmployeeAppCodes(long pEmployeeOid)
{
return base.Channel.GetAllEmployeeAppCodes(pEmployeeOid);
}
public byte[] GetEmployeeImage(long employeeOid)
{
return base.Channel.GetEmployeeImage(employeeOid);
}
public byte[] GetEmployeeThumbnail(long employeeOid)
{
return base.Channel.GetEmployeeThumbnail(employeeOid);
}
public void DeleteEmployeeCustomerRelationForEmployee(long employeeOid)
{
base.Channel.DeleteEmployeeCustomerRelationForEmployee(employeeOid);
@@ -943,6 +833,11 @@ namespace BeWo.ServiceProxy
return base.Channel.LoadCompactTeamsByOid(teamOids);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> FindLeadingCompactTeamsOfEmployee(long employeeOid)
{
return base.Channel.FindLeadingCompactTeamsOfEmployee(employeeOid);
}
public void ArchiveEmployee(long pOid, long pVersion)
{
base.Channel.ArchiveEmployee(pOid, pVersion);
@@ -1262,5 +1157,110 @@ namespace BeWo.ServiceProxy
{
return base.Channel.UpdateGroupOfPeople(pGroupOfPeople);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactGroupOfPeopleDC> GetAllGroupsCompact(System.Nullable<long> employeeOid)
{
return base.Channel.GetAllGroupsCompact(employeeOid);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.GroupOfPeopleDC> GetAllGroups(System.Nullable<long> employeeOid)
{
return base.Channel.GetAllGroups(employeeOid);
}
public BS.Shared.DataContracts.Compact.CompactTeamDC LoadCompactTeam(long pTeamOid)
{
return base.Channel.LoadCompactTeam(pTeamOid);
}
public BS.Shared.DataContracts.Compact.CompactEmployeeDC LoadCompactEmployee(long pEmployeeOid)
{
return base.Channel.LoadCompactEmployee(pEmployeeOid);
}
public bool IsAssessmentSheetEntryBelongingToAS(long assessmentSheetCategoryOid)
{
return base.Channel.IsAssessmentSheetEntryBelongingToAS(assessmentSheetCategoryOid);
}
public bool IsAssessmentSheetCategoryBelongingToAS(long assessmentSheetCategoryOid)
{
return base.Channel.IsAssessmentSheetCategoryBelongingToAS(assessmentSheetCategoryOid);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimesFromEmployee(long employeeOid)
{
return base.Channel.GetAllOvertimesFromEmployee(employeeOid);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> GetAllOvertimes()
{
return base.Channel.GetAllOvertimes();
}
public void DeleteOvertimes(System.Collections.Generic.Dictionary<long, long> pOid2Version)
{
base.Channel.DeleteOvertimes(pOid2Version);
}
public System.Collections.Generic.List<long> InsertOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes)
{
return base.Channel.InsertOvertimes(pOvertimes);
}
public System.Collections.Generic.List<long> UpdateOvertimes(System.Collections.Generic.List<BS.Shared.DataContracts.OvertimeDC> pOvertimes)
{
return base.Channel.UpdateOvertimes(pOvertimes);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> GetAllAuszahlungsarten()
{
return base.Channel.GetAllAuszahlungsarten();
}
public System.Collections.Generic.List<long> InsertAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten)
{
return base.Channel.InsertAuszahlungsarten(pAuszahlungsarten);
}
public System.Collections.Generic.List<long> UpdateAuszahlungsarten(System.Collections.Generic.List<BS.Shared.DataContracts.AuszahlungsartDC> pAuszahlungsarten)
{
return base.Channel.UpdateAuszahlungsarten(pAuszahlungsarten);
}
public void DeleteAuszahlungsarten(System.Collections.Generic.Dictionary<long, long> pOid2Version)
{
base.Channel.DeleteAuszahlungsarten(pOid2Version);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactTeamDC> GetTeamOidsByEmployee(long pEmployeeOid)
{
return base.Channel.GetTeamOidsByEmployee(pEmployeeOid);
}
public BS.Shared.DataContracts.EmployeeDC LoadLoggedOnEmployee(long pEmployeeOid)
{
return base.Channel.LoadLoggedOnEmployee(pEmployeeOid);
}
public System.Collections.Generic.List<BS.Shared.DataContracts.Compact.CompactEmployeeDC> GetAllChatActiveEmployeesCompact()
{
return base.Channel.GetAllChatActiveEmployeesCompact();
}
public System.Collections.Generic.List<BS.Shared.DataContracts.EmployeeAPPCodeDC> GetAllEmployeeAppCodes(long pEmployeeOid)
{
return base.Channel.GetAllEmployeeAppCodes(pEmployeeOid);
}
public byte[] GetEmployeeImage(long employeeOid)
{
return base.Channel.GetEmployeeImage(employeeOid);
}
public byte[] GetEmployeeThumbnail(long employeeOid)
{
return base.Channel.GetEmployeeThumbnail(employeeOid);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -17,18 +17,6 @@ namespace BeWo.ServiceProxy
public interface IResourceService
{
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultiple", ReplyAction="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultipleRespon" +
"se")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultipleBeWoFa" +
"ultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.Dictionary<BS.Shared.DataContracts.SchedulerAppointmentDC, bool> OverlappingAppointmentsExistForMultiple(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinder", ReplyAction="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinderRespo" +
"nse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinderBeWoF" +
"aultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.Dictionary<BS.Shared.Core.DateTimeSpan, System.Collections.Generic.Dictionary<System.DateTime, bool>> FindAppointmentsInRangeForIntervalFinder(int duration, System.DateTime startDate, System.DateTime endDate, System.Collections.Generic.List<long> resourceOids, System.Collections.Generic.List<long> customerOids, System.Collections.Generic.List<long> employeeOids, long loggedInEmployeeOid, int intervalBuffer, bool skipWeekends);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/DeactivateResource", ReplyAction="http://tempuri.org/IResourceService/DeactivateResourceResponse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/DeactivateResourceBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
void DeactivateResource(long pOid, long pVersion);
@@ -327,6 +315,18 @@ namespace BeWo.ServiceProxy
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/DeleteOrUpdateSchedulerAppointmentsBeWoFaultF" +
"ault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
void DeleteOrUpdateSchedulerAppointments(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments2DeleteOrUpdate);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultiple", ReplyAction="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultipleRespon" +
"se")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/OverlappingAppointmentsExistForMultipleBeWoFa" +
"ultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.Dictionary<BS.Shared.DataContracts.SchedulerAppointmentDC, bool> OverlappingAppointmentsExistForMultiple(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments);
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinder", ReplyAction="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinderRespo" +
"nse")]
[System.ServiceModel.FaultContractAttribute(typeof(BS.Shared.Core.BeWoFault), Action="http://tempuri.org/IResourceService/FindAppointmentsInRangeForIntervalFinderBeWoF" +
"aultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BS.Shared.Core")]
System.Collections.Generic.Dictionary<BS.Shared.Core.DateTimeSpan, System.Collections.Generic.Dictionary<System.DateTime, bool>> FindAppointmentsInRangeForIntervalFinder(int duration, System.DateTime startDate, System.DateTime endDate, System.Collections.Generic.List<long> resourceOids, System.Collections.Generic.List<long> customerOids, System.Collections.Generic.List<long> employeeOids, long loggedInEmployeeOid, int intervalBuffer, bool skipWeekends);
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
@@ -363,16 +363,6 @@ namespace BeWo.ServiceProxy
{
}
public System.Collections.Generic.Dictionary<BS.Shared.DataContracts.SchedulerAppointmentDC, bool> OverlappingAppointmentsExistForMultiple(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments)
{
return base.Channel.OverlappingAppointmentsExistForMultiple(appointments);
}
public System.Collections.Generic.Dictionary<BS.Shared.Core.DateTimeSpan, System.Collections.Generic.Dictionary<System.DateTime, bool>> FindAppointmentsInRangeForIntervalFinder(int duration, System.DateTime startDate, System.DateTime endDate, System.Collections.Generic.List<long> resourceOids, System.Collections.Generic.List<long> customerOids, System.Collections.Generic.List<long> employeeOids, long loggedInEmployeeOid, int intervalBuffer, bool skipWeekends)
{
return base.Channel.FindAppointmentsInRangeForIntervalFinder(duration, startDate, endDate, resourceOids, customerOids, employeeOids, loggedInEmployeeOid, intervalBuffer, skipWeekends);
}
public void DeactivateResource(long pOid, long pVersion)
{
base.Channel.DeactivateResource(pOid, pVersion);
@@ -692,5 +682,15 @@ namespace BeWo.ServiceProxy
{
base.Channel.DeleteOrUpdateSchedulerAppointments(appointments2DeleteOrUpdate);
}
public System.Collections.Generic.Dictionary<BS.Shared.DataContracts.SchedulerAppointmentDC, bool> OverlappingAppointmentsExistForMultiple(System.Collections.Generic.List<BS.Shared.DataContracts.SchedulerAppointmentDC> appointments)
{
return base.Channel.OverlappingAppointmentsExistForMultiple(appointments);
}
public System.Collections.Generic.Dictionary<BS.Shared.Core.DateTimeSpan, System.Collections.Generic.Dictionary<System.DateTime, bool>> FindAppointmentsInRangeForIntervalFinder(int duration, System.DateTime startDate, System.DateTime endDate, System.Collections.Generic.List<long> resourceOids, System.Collections.Generic.List<long> customerOids, System.Collections.Generic.List<long> employeeOids, long loggedInEmployeeOid, int intervalBuffer, bool skipWeekends)
{
return base.Channel.FindAppointmentsInRangeForIntervalFinder(duration, startDate, endDate, resourceOids, customerOids, employeeOids, loggedInEmployeeOid, intervalBuffer, skipWeekends);
}
}
}

View File

@@ -2,11 +2,11 @@
x:Class="BeWo.View.Controls.AI.AiConversationButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ai="clr-namespace:BeWo.View.Detail.AI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:draw="clr-namespace:System.Drawing;assembly=System.Drawing"
xmlns:local="clr-namespace:BeWo.View.Controls.AI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ai="clr-namespace:BeWo.View.Detail.AI"
x:Name="root"
mc:Ignorable="d">
<Grid>
@@ -22,20 +22,20 @@
</ResourceDictionary>
</StackPanel.Resources>
<Button
Background="Transparent"
x:Name="btnOpenAi4"
Height="30"
Margin="0"
Background="Transparent"
Click="btnOpenAi4_Click"
Content="{StaticResource AiDesignsIconKIChatWeissOrange}"
Style="{StaticResource NavigationToolbarButtonStyle}"
ToolTip="KI Chat öffnen"
ToolTipService.ShowOnDisabled="True" />
<Button
Background="Transparent"
x:Name="btnOpenAi5"
Height="30"
Margin="10,0,0,0"
Background="Transparent"
Click="btnOpenAi5_Click"
Content="{StaticResource AiDesignsIconKIFunktionWeissGruen}"
MouseRightButtonUp="btnOpenAi5_MouseRightButtonUp"
@@ -63,23 +63,19 @@
</StackPanel>
<Popup
x:Name="popup_promptbaustein_all"
Width="600"
Height="400"
Placement="Top"
PlacementTarget="{Binding ElementName=btnOpenAi5}"
StaysOpen="False"
Width="600"
Height="400">
<Border BorderThickness="1" x:Name="border_promptbaustein_al">
</Border>
StaysOpen="False">
<Border x:Name="border_promptbaustein_al" BorderThickness="1" />
</Popup>
<Popup
x:Name="popup_promptbaustein_favoriten"
Placement="Top"
PlacementTarget="{Binding ElementName=btnOpenAi5}"
StaysOpen="False">
<Border BorderThickness="1" x:Name="border_promptbaustein_favoriten">
</Border>
<Border x:Name="border_promptbaustein_favoriten" BorderThickness="1" />
</Popup>
</Grid>
</UserControl>

View File

@@ -64,9 +64,9 @@
x:Name="treeView"
MinHeight="100"
Padding="4,16,4,16"
AllowDrop="True"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
AllowDrop="True"
ContextMenuOpening="treeView_ContextMenuOpening"
ItemContainerStyle="{DynamicResource igoal_treeitemstyle}"
ItemTemplate="{StaticResource ai_promptbaustein_folder_itemtemplate}"
@@ -137,9 +137,9 @@
<dxe:ListBoxEdit
x:Name="listBoxEdit1"
Padding="4,16,4,16"
AllowDrop="False"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
AllowDrop="False"
ContextMenuOpening="ListBox_ContextMenuOpening"
ItemContainerStyle="{StaticResource PromptListBoxItem}"
ItemsSource="{Binding SelectedFolder.Prompts, UpdateSourceTrigger=PropertyChanged}"

View File

@@ -1696,7 +1696,7 @@
<StackPanel
Grid.Row="1"
Grid.ColumnSpan="4"
Margin="3,3,3,3"
Margin="3"
HorizontalAlignment="Right"
Orientation="Horizontal"
Visibility="{Binding IsAiRowVisible, Converter={StaticResource BoolVisibilityConverter}}">
@@ -1713,13 +1713,13 @@
Visibility="{Binding IsAiDocuButtonVisible, Converter={StaticResource BoolVisibilityConverter}}">
<Button
x:Name="btn_AiPromptbausteinUndo"
Margin="3,0,3,0"
Margin="3,0,0,0"
Command="{Binding UndoAiActionCommand}"
Style="{StaticResource ButtonPreviousStyle}"
Visibility="{Binding IsUndoButtonVisible, Converter={StaticResource BoolVisibilityHiddenConverter}}" />
<Button
x:Name="btn_AiPromptbausteinRedo"
Margin="3,0,0,0"
Margin="3,0,3,0"
Command="{Binding RedoAiActionCommand}"
Style="{StaticResource ButtonRedoStyle}"
Visibility="{Binding IsRedoButtonVisible, Converter={StaticResource BoolVisibilityHiddenConverter}}" />
@@ -1733,7 +1733,7 @@
</StackPanel>
<ai1:VoiceToTextButtonControl TargetTextBox="{Binding ElementName=dokumentationsTextBox}" />
<ai1:VoiceToTextButtonControl Margin="6,0,0,0" TargetTextBox="{Binding ElementName=dokumentationsTextBox}" />
</StackPanel>
<Button

View File

@@ -0,0 +1,43 @@
using System;
using BS.Shared;
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.Feature.AI;
namespace BeWo.ViewModel
{
public class AiUserSettingVM : AbstractDCMapperVM<AiUserSettingDC>
{
private bool _AutoStartRecording;
public AiUserSettingVM(AiUserSettingDC dc) : base(dc, dc.Oid)
{
}
public bool AutoStartRecording
{
get => _AutoStartRecording;
set => SetProperty(ref _AutoStartRecording, value, nameof(AutoStartRecording), () => DataContract.AutoStartRecording);
}
protected override void InitByDataContract(AiUserSettingDC pDataContract)
{
_AutoStartRecording = pDataContract.AutoStartRecording;
}
protected override AiUserSettingDC MapToDataContract(AiUserSettingDC pDataContract, bool doCommit)
{
pDataContract.AutoStartRecording = _AutoStartRecording;
return pDataContract;
}
public override void UpdateByDataContract(AiUserSettingDC pDataContract)
{
AutoStartRecording = pDataContract.AutoStartRecording;
DataContract = pDataContract;
}
}
}

View File

@@ -18,6 +18,7 @@ using BS.Shared;
using BS.Shared.Core;
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.Compact;
using BS.Shared.DataContracts.Feature.AI;
using BS.Shared.DataContracts.Feature.AI.Functions.ServiceRecords;
using BS.Shared.Extensions;
using BS.Shared.Services;
@@ -112,6 +113,8 @@ namespace BeWo.ViewModel.ListViewModel
public ICommand UndoEditAiActionCommand { get; set; }
public ICommand RedoEditAiActionCommand { get; set; }
public AiUserSettingVM AiUserSetting { get; set; }
public ServiceRecordListVM(
Dictionary<ServiceCategoryDC, List<ServiceDescriptionDC>> pCategory2Services,
IEnumerable<ValueListEntryDC> pAllGoalCategories,
@@ -179,10 +182,14 @@ namespace BeWo.ViewModel.ListViewModel
VMList.ListChanged += (s, e) => CheckCustomerAbsenceTimes();
InitAiStuff();
InitAiTranscriptionStuff();
}
private void InitAiStuff()
{
if (!BeWoApp.AppSettings.ShowAI)
return;
//var vm_doku = new AiPromptbausteinSelectionComplexViewModel(AiActionType.ServiceRecordDocumentation);
//vm_doku.PromptAccepted += PromptAccepted;
@@ -219,6 +226,23 @@ namespace BeWo.ViewModel.ListViewModel
_EditAiActionHistory = new List<string>();
_EditAiActionHistory.Add(AktuellerEditDokutext);
_EditAiActionHistoryIndex = 0;
}
private void InitAiTranscriptionStuff()
{
if (!BeWoApp.AppSettings.ShowAIVoice)
return;
ServiceFacade.DoAiEnhancedServiceAsnyc(x => x.GetUserSetting(),
settings => InitAiUserSettings(settings));
}
private void InitAiUserSettings(AiUserSettingDC settings)
{
AiUserSetting = new AiUserSettingVM(settings);
FirePropertyChanged(nameof(AiUserSetting));
}
public AiConversationButtonState AiConversationButtonState
@@ -367,7 +391,6 @@ namespace BeWo.ViewModel.ListViewModel
}
);
}
public void EditPromptAccepted(object sender, AiPromptbausteinPromptVM prompt)
{
if (prompt is null)
@@ -474,7 +497,6 @@ namespace BeWo.ViewModel.ListViewModel
}
);
}
public void UpdateViewYearFilter(IEnumerable<ServiceRecordVM> enumerable)
{
if (!IsAiChatButtonVisible)
@@ -500,7 +522,6 @@ namespace BeWo.ViewModel.ListViewModel
(exp) => AiConversationButtonState = AiConversationButtonState.Disabled);
}
}
public void ResetAiAction()
{
_AiActionHistory.Clear();
@@ -510,7 +531,6 @@ namespace BeWo.ViewModel.ListViewModel
FirePropertyChanged(nameof(IsRedoButtonVisible));
FirePropertyChanged(nameof(IsUndoButtonVisible));
}
public void ResetEditAiAction()
{
_EditAiActionHistory.Clear();