Do not show ATA message as changed when changing CORE values on Overview page
This commit is contained in:
parent
c4cd477002
commit
c11e571473
@ -89,7 +89,7 @@ namespace ENI2
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Eine in der Detailansicht enthaltene Meldeklasse hat sich geändert
|
/// Eine in der Detailansicht enthaltene Meldeklasse hat sich geändert
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public event Action<Message.NotificationClass> NotificationClassChanged;
|
public event Action<Message.NotificationClass?> NotificationClassChanged;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Eine Maske soll neu erzeugt werden weil sich dort "indirekt" etwas geändert hat durch eine Änderung in einer anderen Maske.
|
/// Eine Maske soll neu erzeugt werden weil sich dort "indirekt" etwas geändert hat durch eine Änderung in einer anderen Maske.
|
||||||
@ -258,11 +258,16 @@ namespace ENI2
|
|||||||
{
|
{
|
||||||
_typeMessageDict[notificationClass].IsDirty = true;
|
_typeMessageDict[notificationClass].IsDirty = true;
|
||||||
// signal this notification class changed..
|
// signal this notification class changed..
|
||||||
|
this.OnNotificationClassChanged(notificationClass);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void OnNotificationClassChanged(Message.NotificationClass? notificationClass)
|
||||||
|
{
|
||||||
this.NotificationClassChanged?.Invoke(notificationClass);
|
this.NotificationClassChanged?.Invoke(notificationClass);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#region "BHV Spezial" Datetime Parsing..
|
#region "BHV Spezial" Datetime Parsing..
|
||||||
|
|
||||||
|
|||||||
@ -551,7 +551,7 @@ namespace ENI2
|
|||||||
this.DetailControl_RequestReload(this.Core.Id.Value);
|
this.DetailControl_RequestReload(this.Core.Id.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DetailControl_NotificationClassChanged(Message.NotificationClass notificationClass)
|
private void DetailControl_NotificationClassChanged(Message.NotificationClass? notificationClass)
|
||||||
{
|
{
|
||||||
// in der Übersicht die Meldeklasse als geändert markieren..?
|
// in der Übersicht die Meldeklasse als geändert markieren..?
|
||||||
this.buttonSaveAll.Visibility = Visibility.Visible;
|
this.buttonSaveAll.Visibility = Visibility.Visible;
|
||||||
|
|||||||
@ -19,6 +19,8 @@ using System.Collections.Generic;
|
|||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using static bsmd.database.Message;
|
||||||
|
|
||||||
namespace ENI2.DetailViewControls
|
namespace ENI2.DetailViewControls
|
||||||
{
|
{
|
||||||
@ -46,11 +48,11 @@ namespace ENI2.DetailViewControls
|
|||||||
{
|
{
|
||||||
// die Controls nach Änderungen monitoren
|
// die Controls nach Änderungen monitoren
|
||||||
// diese Einträge gehen auf core
|
// diese Einträge gehen auf core
|
||||||
this.RegisterTextboxChange(this.textBoxTicketNo, Message.NotificationClass.ATA);
|
this.textBoxTicketNo.TextChanged += CoreTextBox_TextChanged;
|
||||||
this.RegisterTextboxChange(this.textBoxDisplayId, Message.NotificationClass.ATA);
|
this.textBoxDisplayId.TextChanged += CoreTextBox_TextChanged;
|
||||||
this.RegisterTextboxChange(this.textBoxIMO, Message.NotificationClass.ATA);
|
this.textBoxIMO.TextChanged += CoreTextBox_TextChanged;
|
||||||
this.RegisterTextboxChange(this.textBoxENI, Message.NotificationClass.ATA);
|
this.textBoxENI.TextChanged += CoreTextBox_TextChanged;
|
||||||
this.RegisterLocodeChange(this.locodePoC, Message.NotificationClass.ATA);
|
this.locodePoC.PropertyChanged += CoreLocode_LocodeChanged;
|
||||||
|
|
||||||
this.RegisterDateTimePickerChange(this.dateTimePickerATA, Message.NotificationClass.ATA);
|
this.RegisterDateTimePickerChange(this.dateTimePickerATA, Message.NotificationClass.ATA);
|
||||||
this.RegisterDateTimePickerChange(this.dateTimePickerATD, Message.NotificationClass.ATD);
|
this.RegisterDateTimePickerChange(this.dateTimePickerATD, Message.NotificationClass.ATD);
|
||||||
@ -58,6 +60,16 @@ namespace ENI2.DetailViewControls
|
|||||||
this.RegisterDateTimePickerChange(this.dateTimePickerETD, Message.NotificationClass.NOA_NOD);
|
this.RegisterDateTimePickerChange(this.dateTimePickerETD, Message.NotificationClass.NOA_NOD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void CoreLocode_LocodeChanged(object sender, PropertyChangedEventArgs e)
|
||||||
|
{
|
||||||
|
this.OnNotificationClassChanged(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CoreTextBox_TextChanged(object sender, TextChangedEventArgs e)
|
||||||
|
{
|
||||||
|
this.OnNotificationClassChanged(null);
|
||||||
|
}
|
||||||
|
|
||||||
#region Initialize
|
#region Initialize
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user