ServiceEditView
This commit is contained in:
@@ -1520,8 +1520,7 @@
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</StackPanel.Resources>
|
||||
<ai:AiChatButton
|
||||
x:Name="btn_ai_docu" />
|
||||
<ai:AiChatButton x:Name="btn_ai_docu" DataContext="{Binding Path=AiChatButtonDocumentationEditViewModel}" />
|
||||
|
||||
</StackPanel>
|
||||
|
||||
|
||||
@@ -351,6 +351,7 @@ namespace BeWo.View.Detail.Zeiterfassung
|
||||
|
||||
pViewModel.AiChatButtonConversationViewModel.GetAiVisualContext = () => getAiVisualContext();
|
||||
pViewModel.AiChatButtonDocumentationViewModel.GetAiVisualContext = () => getAiVisualContext2();
|
||||
pViewModel.AiChatButtonDocumentationEditViewModel.GetAiVisualContext = () => getAiVisualContext3();
|
||||
}
|
||||
|
||||
private void SrGridControl_ItemsSourceChanged(object sender, DevExpress.Xpf.Grid.ItemsSourceChangedEventArgs e)
|
||||
@@ -1191,7 +1192,7 @@ namespace BeWo.View.Detail.Zeiterfassung
|
||||
{
|
||||
var view = new ServiceRecordEditView();
|
||||
|
||||
view.SetAiViewmodel(ViewModel.AiChatButtonDocumentationEditViewModel);
|
||||
ViewModel.AiChatButtonDocumentationEditViewModel.CheckContextSize();
|
||||
|
||||
serviceRecordEditView = view;
|
||||
}
|
||||
@@ -5107,6 +5108,15 @@ namespace BeWo.View.Detail.Zeiterfassung
|
||||
return context;
|
||||
}
|
||||
|
||||
private AiViewContextDC getAiVisualContext3()
|
||||
{
|
||||
var context = getAiVisualContext();
|
||||
|
||||
context.Secondary = ViewModel.EditVM.Notice;
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
private IEnumerable<ServiceRecordVM> GetVisibleRecordVMs()
|
||||
{
|
||||
var list = new List<ServiceRecordVM>();
|
||||
|
||||
@@ -186,6 +186,7 @@ namespace BeWo.ViewModel.ListViewModel
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
AiChatButtonDocumentationViewModel = new AiChatButtonWithHistoryViewModel(AiActionType.ServiceRecordDocumentation, this, "docu")
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user